cancel
Showing results for 
Search instead for 
Did you mean: 

problem in mapping xml data with imported RFC parameters

Former Member
0 Kudos

I am currently working on a senario in which a flat file is generated by an RFID server and placed in FTP server.

The flat file is picked up from the FTP server using XI and the contents are mapped to the corresponding imported RFC parameters.

The content of the file which is in text format is successfully converted in XML at the XI side.

File contains records of 2 fields Functional location and RFID equipment number . In the R/3 side these fields

are used as Functional location and equipment number of PM module .

The structure of the FTP message is as follows

<ns:RFID_MSG_TYPE xmlns:ns="urn://sisl:rfiddemo">

<RecordSet>

<Row>

<FL1>"f1</FL1>

<FL2>01</FL2>

<FL3>01</FL3>

<RFID_NUM>I001"</RFID_NUM>

</Row>

</RecordSet>

</ns:RFID_MSG_TYPE>

After the mapping program which maps the above structure to the imported RFC is executed the following payload document is generated

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

<RECORDS>

<item>

<FLOC>f1-01-01</FLOC>

<RFID_NO>I001</RFID_NO>

</item>

</RECORDS>

</ns:ZRFID_EQUIP>

The size of FLOC is 30 of type string and RFID_NO is also a string with size 18.

When the data is brought in R/3 both the fields FLOC and RFID_NO gets mapped in FLOC which is of type char30.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rahul,

Are you having a mapping problem where FLOC and RFID_NO are getting mapped to FLOC during RFC Call???

Thanks,

Naveen

Former Member
0 Kudos

Hi Naveen,

Naveen you are correct, I am having the same problem which you are thinking of.

If you have any solution to the problem please let me know.

Thanks,

Rahul

Former Member
0 Kudos

Hi Rahul,

Check you message mapping. I bet you are concatenating FL1,FL2,FL3 and RFID_NUM to FLOC. You should be able to view the contents transmitted to the adaptor(RFC) in sxmb_moni.

thanks,

naveen

Former Member
0 Kudos

Hi Naveen,

In sxmb_moni the content transmitted to the adapter(RFC)is as follows

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

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

- <RECORDS>

- <item>

<FLOC>f1-01-01</FLOC>

<RFID_NO>I006</RFID_NO>

</item>

- <item>

<FLOC>f1-01-02</FLOC>

<RFID_NO>I002</RFID_NO>

</item>

- <item>

<FLOC>f1-01-03</FLOC>

<RFID_NO>I003</RFID_NO>

</item>

- <item>

<FLOC>f1-01-04</FLOC>

<RFID_NO>I004</RFID_NO>

</item>

- <item>

<FLOC>f1-01-05</FLOC>

<RFID_NO>I005</RFID_NO>

</item>

- <item>

<FLOC>f1-01-06</FLOC>

<RFID_NO>I001</RFID_NO>

</item>

</RECORDS>

</ns:ZRFID_EQUIP>

At r/3 side the field floc and rfid_no gets mapped to floc which is of char30

eg floc=f1-01-01I006

rfid_no=