Remove the new line for the XML to 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
newcontent=content.replaceAll("[\n\r]", "")
message.setBody(newcontent); // Set message body
return message;
}
No comments:
Post a Comment