cancel
Showing results for 
Search instead for 
Did you mean: 

help! RFC response mapping exception

former_member186158
Active Participant
0 Kudos

I'm trying to download RFC response to db.

But BAPI_PO_GETDETAIL1 response invalid characters:

<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_ISSDEMO_QUERY_PO_RESPONSE_

Thrown:

com.sap.aii.utilxi.misc.api.BaseRuntimeException: Character reference &quot;&amp;#00&quot; is an invalid XML character.

I look into the RFC response payload:

<EXTENSIONOUT><item><STRUCTURE>AD_SUBCON_EKPO</STRUCTURE><VALUEPART1>00010 00000000 000000</VALUEPART1><VALUEPART2></VALUEPART2><VALUEPART3></VALUEPART3><VALUEPART4></VALUEPART4></item><item><STRUCTURE>AD_SUBCON_EKPO</STRUCTURE><VALUEPART1>00020 00000000 000000</VALUEPART1><VALUEPART2></VALUEPART2><VALUEPART3></VALUEPART3><VALUEPART4></VALUEPART4></item><item><STRUCTURE>AD_SUBCON_EKPO</STRUCTURE><VALUEPART1>00030 00000000 000000</VALUEPART1><VALUEPART2></VALUEPART2><VALUEPART3></VALUEPART3><VALUEPART4></VALUEPART4></item><item><STRUCTURE>FMFG_NEW_HEADER_MM_FIELDS</STRUCTURE><VALUEPART1> .....</VALUEPART1><VALUEPART2></VALUEPART2><VALUEPART3></VALUEPART3><VALUEPART4></VALUEPART4></item><item><STRUCTURE>FMFG_NEW_MM_FIELDS</STRUCTURE><VALUEPART1>00 0000000000000000 ..../VALUEPART1><VALUEPART2></VALUEPART2><VALUEPART3>00010</VALUEPART3>...

.....

<VALUEPART2>00020</VALUEPART2><VALUEPART3></VALUEPART3><VALUEPART4></VALUEPART4></item><item><STRUCTURE>BAPI_MEPO_ITEM_EMPST</STRUCTURE><VALUEPART1>4500004841</VALUEPART1><VALUEPART2>00030</VALUEPART2><VALUEPART3></VALUEPART3><VALUEPART4></VALUEPART4></item></EXTENSIONOUT>

I have replaced the invalid characters with .... to post this message.

What can I do?

Thanks very much.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member463616
Contributor
0 Kudos

Hi,

It seems to like problem with inconsistency in RFC been maintained in ERP to XI as non-unicode.

Please make RFC as unicode.

Regards,

P.Rajesh

Former Member
0 Kudos

As Rajesh suggest, try with UNICODE flag in communication channel configuration.

If this problem occur in request from 3rdSystem -> RFC, try to replace invalid character with an UDF in your mapping, as suggested above by Debashish.

former_member854360
Active Contributor
0 Kudos

Hi,

you can use Java mapoping to replace the character

see this