Skip to Content
0
Former Member
Jul 22, 2008 at 09:23 AM

RFC SENDER produces wrong xml

31 Views

The problem is the following.

I have an RFC, with this table type :

VKORG

VTWEG

MATNR

MAKTX

MEINS

T_KBETR

UMREZ

KOEIN

EAN11

KPEIN

KMEIN

I call it from my program and the debugger shows that I pass the following data :

VKORG 1000

VTWEG 10

MATNR 000000000000000004

MAKTX test material if exists

MEINS ST

T_KBETR 1

UMREZ 1.000

KOEIN

EAN11

KPEIN 0

KMEIN

BUT !!!

when I check the SXMB-MONI the inbound xml message is the following :

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

- <rfc:ZGSAR_MSALES_PRODUCT xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

- <PRODUCTS_DATA>

- <item>

<VKORG>1000</VKORG>

<VTWEG>00</VTWEG>

<MATNR>000000000004test m</MATNR>

<MAKTX>ST 1 </MAKTX>

<MEINS />

<T_KBETR />

<UMREZ>0</UMREZ>

<KOEIN />

<EAN11 />

<KPEIN>0</KPEIN>

<KMEIN />

</item>

</PRODUCTS_DATA>

</rfc:ZGSAR_MSALES_PRODUCT>

I would also like to mention that each time we change something in the rfc structure, although we import it again and everything seems fine, in SXMB-MONI the xml structure contains the OLD structure. We have to use a different name for our new structure and restart for XI to work .

Any help will be highly appreciated