Tuesday, 8 August 2023

Remove the lines inbetween the header and item after csv conversion



import com.sap.gateway.ip.core.customdev.util.Message;

import java.util.HashMap;


def Message processData(Message message)

{

def content= message.getBody(java.lang.String); // Read Body

def newcontent=content.replaceAll('\n\n', '\n');

message.setBody(newcontent); // Set message body


return message;

}


No comments:

Post a Comment