Application Development and Automation 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 only

xml to IDOC

Former Member
0 Likes
3,126

Hi all,

We have a customer who sends PO in xml format. The requirement is to convert this into an SAP document. We are not using XI or any other EDI translator.

I am thinking of parsing of this xml file and creating an IDOC with this data. Is there any easy way to do this ????

It will be great if you guyz can give me some suggestions on this.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,105

Hi,

Please check FM IDOC_XML_FROM_FILE to convert XML IDoc file into an IDoc.

Hope this will help.

Regards,

Ferry Lianto

Hi all,

We have a customer who sends PO in xml format. The requirement is to convert this into an SAP document. We are not using XI or any other EDI translator.

I am thinking of parsing of this xml file and creating an IDOC with this data. Is there any easy way to do this ????

It will be great if you guyz can give me some suggestions on this.

Thanks.

9 REPLIES 9
Read only

Former Member
0 Likes
2,106

Hi,

Please check FM IDOC_XML_FROM_FILE to convert XML IDoc file into an IDoc.

Hope this will help.

Regards,

Ferry Lianto

Read only

0 Likes
2,105

Hi Ferry,

When you say XML IDoc file into an IDoc, This is possible only when the xml has diret mapping to an existing IDOC format right ????.

So In my case I think the xml has not been created to map an IDoc so the best way to do this is to create an IDoc in the same format as the xml file and use this

funciton module right ?????

Thanks.

Read only

Former Member
0 Likes
2,105

Hi mg,

if you are not using any other tools to translate, it is better to read the xml file and then map the data to your IDOC type and then create an IDOC and post it.

Shylesh

Read only

former_member194669
Active Contributor
0 Likes
2,105

Hi,

1. Read XML file using XSLT (Create a XSLT file using XML Schema) and CALL TRANSFORMATION .

2. Call function module IDOC_WRITE_AND_START_INBOUND

3. Call your application thru BDC or Function module

4. Call function module IDOC_STATUS_WRITE_TO_DATABASE to update the status to IDoc

aRs

Read only

0 Likes
2,105

Hi ars mony,

It will be great if you can explain me a bit more or send me some document on this.

I am just looking into what xslt and xml schema are ..... can you explaint me what you mean by CALL TRANSFORMATION .....

Thanks.

Read only

0 Likes
2,105

Hello Mr. Mony, Can I get your contact number or e-mail.

I need some help on this topic.

Thanks and regards

Abhishek.

Read only

former_member194669
Active Contributor
0 Likes
2,105

Hi,

Please give your mail id. I can able to send you the document

aRs

Read only

0 Likes
2,105

Hi,

My email id [email protected]

Thanks a lot.

Read only

0 Likes
2,105

Me too, please

Regards,

Ivan