cancel
Showing results for 
Search instead for 
Did you mean: 

Remove BOM characters from xml file with file adapter

former_member585940
Participant
0 Kudos

Hi Experts,

We have one file to file by pass scenario in which one xml file is being genrated by abap program and PI picks it from applicatopn server and sends it to 3rd party ftp.

The issue is, when the xml file is recieved by 3rd party, there are BOM characters in the file.

In SAP ECC & PI, i dont see this at all, so can't convince them that issue is happening in ECC.

Will it be possible to remove this with encoding techniques?

Please share your thoughts.

Regards,

Vikram

Accepted Solutions (0)

Answers (1)

Answers (1)

RaghuVamseedhar
Active Contributor
0 Kudos

Vikram,

To see BOM characters, download the file with .txt extension. Open with Notepad++ and Enable Hex Editor in Notepad++ - YouTube

Please read

Please try TextCodepageConvertionBean: Conversion.charset = "utf-8", try other modules in above blog.

Last option is to write a Java mapping to remove BOM characters.

former_member585940
Participant
0 Kudos

Hi Raghu,

In PI, we are not able to see BOM characters, how will our java mapping work here.

Regards,

Varinder

RaghuVamseedhar
Active Contributor
0 Kudos

Vikram,

BOM characters can be seen using hex editor, if they are present.

Please check with SAP ABAP team if they can send file without BOM characters (as target system is able to see BOM and in SAP PI it is pass-through scenario). If ABAP team cannot handle it, ( and if BOM is sent out of SAP ECC) try utf-8 encoding options is the blog, as a last option  use Java mapping to remove BOM.

ABAP Keyword Documentation

former_member585940
Participant
0 Kudos

Hi Raghu,

I meant we are not able to see this character in PI not externally.

How will our mapping work there.