Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC_XML_FROM_FILE Error while loading XML as IDOC to ECC 6.0

Former Member
0 Kudos

I have successfully converted IDOC to XML file.

Getting Error while converting XML back to IDOC in ECC 6.0 using function: IDOC_XML_FROM_FILE

Segment EDI_DS40 is not defined.....I am really not sure about the error as this idoc was previously posted to the same ECC 6.0...

Exception SEGMENT_ERROR

Message ID: EA Message number: 721

Message:

The segment EDI_DS40 is not defined.

Secondly is there a way to load XML file via WE19?

Tx

Salman

4 REPLIES 4

Former Member
0 Kudos

Hello Salman,

EDI_DS40 segments are status segments. Usually they don't exists outside of the SAP system (in a XML file).

How did you create your XML files?

Best regards,

Oliver

0 Kudos

Thanks alot Oliver for taking a stab...

I created the XML file from within SAP by using the functionailty of this function module:-

IDOC_XML_TRANSFORM

I created my ZIDOC_XML_TRANSFORM and just added file download facility in that the rest is the same as the orignal function.

Is there any way for me to supress generation of ED_DS40 segements in the XML file??

0 Kudos

I don't know your requirements, but usually you create a XML file using a XML port.

0 Kudos

Thanks Oliver. I just needed confirmation if the EDI_DS40 segements were significant from IDOC data prospective. From your response I guess they are status message so they are not very significant for me. I have simply removed the EDI_DS40 string from XML and now also managed to successfully load the IDOCS....

Tx