Skip to Content
-1

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

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.

yard-xml.png (43.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 09, 2017 at 12:09 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 09, 2017 at 08:38 PM

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

    Add comment
    10|10000 characters needed characters exceeded