Skip to Content

sap po content conversion problem with newline

Jul 31, 2017 at 09:03 PM


avatar image

hi experts,

In a file sender adapter, I have to convert a file with the following structure:

H|1|2|3|4|<br>L|a|b|c|d<br>L|a|b|c|d<br>F|1|2|3|4 (no fixed field length)

The structure should be: Header, Line*, Footer

The problem is that there is no real line break in the file, only <br>

I tried to use the endSeparator parameter with '<br>', '<', '>' but no luck so far. Is there maybe a way to replace the string or maybe use the encoding option? Any hints appreciated...


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Margit Schmid Aug 18, 2017 at 01:19 PM

I solved this issue with a workaround using an adapter module to replace the '<br>' string with a newline before calling the MessageTransformBean

the adapter module was developed similar to this one:

Blog: Adapter Module ReplaceString

... but I still would like to know if there is a more 'standard' solution

10 |10000 characters needed characters left characters exceeded