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: 

Read of XML file and post to IDOC

Former Member
0 Kudos

Hi

I'm working on a <b>WAS620</b> and need to read an XML file from a customer, extract the fields needed and post these via IDOC ORDERS01. My problem is HOW to read the XML file? Can anyone give me the steps involved/links to examples etc - I have not processed XML files via ABAP before.

The file is posted to a shared folder and the ABAP I am about to develop will pick up this file.

The file is <b>NOT</b> in IDOC/XML format but the customers own format

Hope someone can help me asap.

Thanks all in advance

/Bo

5 REPLIES 5

Peter_Inotai
Active Contributor
0 Kudos

If it's not in IDOC format, then you have to use XLST transformator to get the data from XML to ABAP.

I would try to press them to use standard Idoc/XML format, then you could use FM 'EDI_DATA_INCOMING' to process IDocs. It would be much easier.

Peter

Former Member
0 Kudos

Try to use FM IDOC_XML_FROM_FILE.

Former Member
0 Kudos

Hi,

I would like to extend this question for <b>WAS620</b> and <b>reading</b> a <b>proprietary customer specific XML</b> file/data that is <b>send via HTTP to SAP WAS</b>.

<b>Q1</b>: What is the best way to read this HTTP sent XML data (as it is, without transformations) into ABAP?

<b>Q2</b>: What is the appropriate handler to use in the ICF object?

Thanks all in advance

Former Member
0 Kudos

Do you have some example XML file suitble for this function module (IDOC_XML_FROM_FILE)? Could you please provide me?

BR

Martin

Former Member
0 Kudos

closing this one down