cancel
Showing results for 
Search instead for 
Did you mean: 

Sender RFC - Order of fields

Former Member
0 Kudos

Hi all,

I am configuring a simple RFC-XI-File scenario. The scenario is asynch. I can get pass the values from R/3 to XI server, but the order of fields in the RFC differs from the order that is passed to XI server(SXMB_MONI).

The order of fields in my RFC is

FM_MATNR

FM_ERSDA

FM_MTART

FM_MBRSH

FM_MATKL

FM_MEINS

FM_MAKTX

But the order that is getting didplayed in SXMB_MONI is

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

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

<b><FM_ERSDA></b>2006-11-08<b></FM_ERSDA></b>

<b><FM_MAKTX></b>semi finished goods<b></FM_MAKTX> </b>

<b><FM_MATKL></b>003<b></FM_MATKL> </b>

<b><FM_MATNR></b>000000000000000006<b></FM_MATNR> </b>

<b><FM_MBRSH></b>M<b></FM_MBRSH> </b>

<b><FM_MEINS></b>EA<b></FM_MEINS> </b>

<b><FM_MTART></b>HALB<b></FM_MTART> </b>

</rfc:ZMATERIAL_DETAILS>

Can you let me know why this is caused? Also is there any setting to avoid this?

Regards,

Jai Shankar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Jai,

What about the structure of the RFC imported in Design of XI?

Is it the same as that the one in MONI?

Regards,

Sudharshan

Former Member
0 Kudos

Hi Sudarshan,

The imported RFC has the same structure as that displayed in the XML message.

Regards,

Jai Shankar

Former Member
0 Kudos

Hi Sudarshan,

The imported RFC has the same structure as that displayed in the XML message.

Regards,

Jai Shankar

bhavesh_kantilal
Active Contributor
0 Kudos

Jai,

The RFC adapter caches the RFC Metdata and it is responsible for converting the RFC data into the RFC XML and vice versa.

Your RFC XML has the fields in a particular order and so, when the RFC adapter is converting the incoming RFC data into the RFC XML message, it is creating the XML message in the order as the XML . This is the default behavior, and as far as I know it cannot be altered.

Any specific reason as to why you are concerned about the order of the fields?

Regards

Bhavesh

Former Member
0 Kudos

Hi,

Thanks for the inputs.

In this case, the order of the fields is not a big concern to me but what if my RFC is a deeply nested structure?

Regards,

Jai Shankar

bhavesh_kantilal
Active Contributor
0 Kudos

Jai,

Irrespective of whether it is a deeply nested structure or not, the RFC adapter will create a valid RFC XML similar to the RFC you have imported in your Integratiuon Repository!

If the data is being populated correctly in your report, then the RFC adapter will also create a valid and correct XML. You need not worry abt this!

Regards

Bhavesh

Answers (0)