cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI/CI: Groovy scrip for sending CSV file with UTF-8 with BOM to Concur SFTP

0 Kudos
1,762

Hello Experts,

I have special requiremnet to send the CSV file encoding with UTF-8 BOM to concur SFTP is there any way to achieve this through Groovy please help me on this.

The sample CSV format is as below with (,) separator

100,0,welcome,UPDATE,EN,N,N

305,user1,,Sriram,0123456,test.abcd@Gmail.com,Welcome123,test.abcd@gmail.com,en_GB,....etc

305,Users2,,Raju,0768123,test.asdf@Gmail.com,Welcome123,test.asdf@gmail,en_GB,SG,,....etc,

Concur 305 structure expecting txt file with encoding format UTF-8 BOM

Regards,

Abdul Raheem.

View Entire Topic
PriyankaChak
Active Contributor

You can refer to the below link.

https://pizug.com/cpi-groovy-examples/add-utf8-bom

0 Kudos

Hi Priyanka ,

I have used this script for XML and its converting utf-8 to utf-8 BOM but after this conversion there is xml to csv conversion

after this conversion utf-8 BOM encoding converting again to UTF-8 so we have to encode the CSV file to utf-8 with BOM.

This will work out.

Any idea how can we send csv file with encoding format as utf-8 BOM.

Regards,

Abdul.