09-27-2011 11:25 AM
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
09-27-2011 12:57 PM
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
09-27-2011 1:05 PM
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??
09-27-2011 1:19 PM
I don't know your requirements, but usually you create a XML file using a XML port.
09-27-2011 6:15 PM
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