cancel
Showing results for 
Search instead for 
Did you mean: 

Error during XML => ABAP conversion- ABAP Proxy

Former Member
0 Kudos

Hi,

I am sending data from XI to BW system using Proxy.

The data from Source system comes as :

<?xml version="1.0" encoding="UTF-8" ?>

- <GeoSalesOrg>

- <GEO>

<Geo_Code>AMER</Geo_Code>

<SalesOrg_Code>AM01, AM02</SalesOrg_Code>

</GEO>

</GeoSalesOrg>

and within the XI mapping gets converted to:

<?xml version="1.0" encoding="UTF-8" ?>

- <GeoSalesOrg>

- <GEO>

<Geo_Code>AMER</Geo_Code>

<SalesOrg_Code>AM01</SalesOrg_Code>

</GEO>

- <GEO>

<Geo_Code>ASSP</Geo_Code>

<SalesOrg_Code>AM02</SalesOrg_Code>

</GEO>

</GeoSalesOrg>

this is sent to BW system using a proxy.

But we are getting an error in the BW sxmb_moni:

Error during XML => ABAP conversion (Request Message; error ID: CX_ST_DESERIALIZATION_ERROR; (/1SAI/TXSAE5D7CFBC58767DDBC59 XML Byte

pos.: 208 XML Path: ns0:_-BIC_-CFYDS_RPMGEOSAORG(1)DATA(1)item(2)SALESORG(1) Error Text: Data loss occurred when converting AM02 K

ernel ErrorId: CONVT_DATA_LOSS))

Exception of class CX_XMS_SYSERR_PROXY

Could you please help us out as to why this error is occuring and how to solve it.

We have tried changin the function module in BW as per the blog:

but it doesnt work.

Any inputs would be appreciated.

Regards,

Sampada

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Can you please tell that is it a synchronous scenario?

Bcz i think while sending data from BW Proxy to XI it is failing and data is lost.

This is because of the data type that you have used.

Mostly it happens when your RFC output is in Char and your XI data type is in String.

Then before sending the output of RFC to XI change the data type.

Or check the lengh of the field on both the sides, that should be same.

Thanks,

Hetal

VijayKonam
Active Contributor
0 Kudos

Check the data type and the XSD datatype used in XI for the destination message. It looks like the data is getting lost. Check in the generated proxy structures if the data length is sufficient to hold 4 characters.

VJ

Former Member
0 Kudos

Hi,

Thanks for replying.

For the destination message we are imporitng an RFC from the BW system.

And when we are trying a similar scenario with normal records its working.

Regards,

Sampada

VijayKonam
Active Contributor
0 Kudos

You said its a proxy scenario..!! Check if the RFC changed after you have imported it in to XI. If so re import and activate.

VJ

Former Member
0 Kudos

Ya its a proxy scenario where only the message is an RFC imported from BW.

I'll chk the Function module in XI..but the problem is that there is no error on the XI end..the message is getting passed on. The error is seen in the sxmb_moni of the BW system.

Edited by: Sampada Atri on Jul 3, 2008 4:19 PM

VijayKonam
Active Contributor
0 Kudos

Regenerate the proxy in BW also.

VJ

Former Member
0 Kudos

Hi,

I have had the same issue so the issue was on the database field because the field was defined as char 30 so in the ABAP program was defined as char 10, so I have validate the map in xi with a simple trim function so the issue was solved!!

try

definitely it's a data length issue!!

Edited by: Juan Pablo Jimenez on Feb 17, 2009 10:12 PM