I have a Java application that uses SAP JCo 3 libraries. One of the use cases consists of receiving a IDoc file from the SAP instance (R/3, ERP 6.0 EhP 7) and convert it to XML. The problem is that, during the conversion (executed by the IDoc library), the right spaces at the end of the fields get trimmed. Apparently, to reduce the message size. So far, I haven't found any configuration that can be done from the Java side.
Searching the net, I found the following suggestions from the SAP side:
- setting
whiteSpace=preserve
from the XSD Editor - setting
xml.fieldContentFormatting=nothing
in the Sender File/FTP Adapter
However, I haven't been able to find those tools nor configure them accordingly.
I would appreciate any insights on these two approaches or any other solution.