Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Data loss occurred when converting Kilogram during middle ware XML connects to SAP ABAP FM

yarnagula_sudhir
Active Participant
0 Kudos

Hi All,

My requirement is to receive XML file through a middle ware and perform a BDC Recording which is in a ABAP FM via Web Service.

SAP ECC (Function Module via Web Service) <- <- <- Middle ware (XML).

But during the process when XML tries to contact SAP, the following is the error analysis done by Middle ware and Basis Team.

  • Web service in SAP is up and working fine.
  • ERROR_TEXT: Data loss occurred when converting Kilogram
  • Technical Details: CX_SY_CONVERSION_DATA_LOSS and YYBOL_QTY_UNIT
  • <YYBOL_QTY>184999.009</YYBOL_QTY>
  • <YYBOL_QTY_UNIT>Kilogram</YYBOL_QTY_UNIT>

Now please let me know where exactly the issue was and the importance of CX_SY_CONVERSION_DATA_LOSS.

Thank You.

With Regards,

Sudhir.

2 REPLIES 2

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

The exception CX_SY_CONVERSION_DATA_LOSS occurs if the rules described in

asXML - Mapping of Elementary ABAP Types

are violated and it is not prevented by the OPTIONS addition of CALL TRANSFORMATION.

Sandra_Rossi
Active Contributor
0 Kudos

Are you trying to store "Kilogram" into a 3 character-length unit of measure, without translating into "KG" ?