cancel
Showing results for 
Search instead for 
Did you mean: 

RFC SENDER produces wrong xml

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Nop . I tried everything you suggested but I keep having the same problem .

Former Member
0 Kudos

Dear Markos,

check the RFC connection from the SAP ERP to SAP XI in order to be compatible with the encoding setting. For examplke if both systems are UNICODE then check on the appropriate tab of the RFC connection if the UNICODE checkbox is marked.

Thanks, John

Answers (6)

Answers (6)

Former Member
0 Kudos

This was it !!!

Thank you very much mr Sirigos .

I had to check sm59 and set utf-8 . It seems that there were some invalid characters produced that were ruining the structure of the xml file .

Former Member
0 Kudos

Hi Markos Daskalakis,

you have to release the RFC in SAP R/3. (Even though your RFC is activated U have to release the same.)

1.open RFC in SE37 .

2.go to display mode .

3. in the Menu

function module-->release

4.again one more time import the RFC in integration repository

Try this , It 'll work

Cheers,

Dhanabal

Former Member
0 Kudos

Thanks all, but we have done all of these .

Even rebooting the XI didn't work .

Former Member
0 Kudos

did you check Cache Notifications in IR????

do some Changes in sender Comm Channel and Activate it..

run the Scenario and check it...

let me knw ur result of this

Former Member
0 Kudos

Dear Markos,

1.Try Reimporting the RFC and activate it.

2. Activate RFC Adapter Once

3.Even after this if problem persists try refreshing the Cache (SXI_CACHE transaction code).

For complete cache refresh - http://<hostname>:<port>/CPACache/refresh?mode=full

For delta cache refresh - http://<hostname>:<port>/CPACache/refresh?mode=delta

regards

Prasad

Former Member
0 Kudos

Hi,

Use UNPACK Statement Instead of MOVE Statement.

Thanks

R.Ragu

Former Member
0 Kudos

Hi ,

i hope you r using MATNR Field...

in ABAP MATNR Domain contains Conversion Routine CONVERSION_EXIT_MATN1_INPUT...

it will convert input into 18 characters Format... it works internally....

so u need to populate 18 chars for the same.... other wise ur problem will continue

ask them to use it....

check with ur ABAP Team...

Regards,

R.Ragu