cancel
Showing results for 
Search instead for 
Did you mean: 

File to Idoc Error

Former Member
0 Kudos

Hi I am doing a simple File to IDOC :

here is my source file in the interface mapping while testing

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

<ns:VENDOR xmlns:ns="http://www.GMS_TRAINING/File2IDOC">

<VendorNumber>13000</VendorNumber>

<LastName>Joseph</LastName>

<SearchName>mathew</SearchName>

<Currency>USD</Currency>

<Address>

<Street>4001</Street>

<City>texas</City>

<Zip>75634</Zip>

<Country>US</Country>

</Address>

</ns:VENDOR>

and the result:

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

<CREMAS03>

<IDOC BEGIN="1">

<E1LFA1M SEGMENT="1">

<MSGFN>009</MSGFN>

<LIFNR>13000</LIFNR>

<ANRED>COMPANY</ANRED>

<KTOKK>LIEF</KTOKK>

<LAND1>US</LAND1>

<NAME1>Joseph</NAME1>

<ORT01>texas</ORT01>

<PSTLZ>75634</PSTLZ>

<SORTL>mathew</SORTL>

<STRAS>4001</STRAS>

</E1LFA1M>

</IDOC>

</CREMAS03>

I copied the source file to the server(the first xml file) and received the following error in the moni :

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

- <!-- Call Adapter

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIAdapter</SAP:Category>

<SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_RUNTIME</SAP:Code>

<SAP:P1>MSGGUID 0756CEE0DBFD11DBBDFA000FEA9FDF4E: Tag #TEXT found instead of tag IDOC BEGIN=</SAP:P1>

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Error: MSGGUID 0756CEE0DBFD11DBBDFA000FEA9FDF4E: Tag #TEXT found instead of tag IDOC BEGIN=</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Any help is highly appreciated

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Bhavesh and chilla .

It got resolved.

bhavesh_kantilal
Active Contributor
0 Kudos

What exactly was the cause for the error?

Regards

Bhavesh

Former Member
0 Kudos

I didnt mention the mapping in the receiver determination . Sorry for the delayed reply

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Look at the final payload / response payload in MONI. Does it confirm to what you have shown above?

I think in the output of the mapping in runtime the IDOC tag does not contain the BEGIN = 1 attribute. And this is the problem.

regards

Bhavesh

Former Member
0 Kudos

Hi,

Yes exactly correct , i expected it and due to that reason i have given the standards of mapping link.

Regards

Chilla

Former Member
0 Kudos

Hi,

Check the mapping with source payload xml in SXMB_MONI. so that you can understand the runtime error.

See the mapping standards

idoc mapping - /people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping

Chilla