on 2019 Jan 30 8:03 AM
Hi Experts,
I am trying to populate a list of employee ids in Content Modifier as follows and then writing it to a file on SFTP server,
11111
22222
33333
However, in the output file, it's displayed as,
111112222233333
Could you please help me understand how can we add a new line character in content modifier so that it's added in the file as well and every employee number appears on a new line?
Thanks in advance,
Netrey
Request clarification before answering.
You can handle this via groovy script
import com.sap.gateway.ip.core.customdev.util.Message;
import java.util.HashMap;
def Message processData(Message message)
{
def body = message.getBody(java.lang.String) as String;
body = body + "\n" ;
message.setBody(body );
return message;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
7 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.