This blog is created to throw some lights on SAP CPI concepts, which experienced in my journey. Trying to explore more about HCI/Cloud platform integration/SCPI and sharing the contents to help you. Thanks for all Users your support. Please give your comments below ...
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;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment