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

converting idoc to xml

Former Member
0 Likes
2,342

Hi

I am having an idoc and I have to convert the idoc to xml format.

First thing what should be the status of Idoc which I have createdand the status of my idoc is 29 .

Secondly if any one can tell me step by step details how to do it.

Thanking in advance.

regards

Harpreet

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,097

Here are the FM to convert IDOC to XML,try them :


IDX_IDOC_TO_XML
IDOCS_OUTPUT_IN_XML_FORMAT
IDOC_XML_DISPLAY
IDOC_XML_TRANSFORM

Reward If found helpful.

5 REPLIES 5
Read only

Former Member
0 Likes
1,097

Hi,

IDoc in status 29 means there is a error in the ALE layer , probably because of missing partner profile.So you need to first solve that issue.

May I ask what is the requirment to convert the IDoc into xml ?

regards,

Advait.

Read only

Former Member
0 Likes
1,097

Hi,

create an XML file port in WE21 and give process code of Function Module (EDI_PATH_CREATE_CLIENT_DOCNUM) for creating that.

make an entry in partner profile for that idoc in WE20.

process that idoc with test tcode WE19.

Regards,

Sandeep Kaushik

Read only

Former Member
0 Likes
1,098

Here are the FM to convert IDOC to XML,try them :


IDX_IDOC_TO_XML
IDOCS_OUTPUT_IN_XML_FORMAT
IDOC_XML_DISPLAY
IDOC_XML_TRANSFORM

Reward If found helpful.

Read only

Former Member
0 Likes
1,097

Hi Harpreet

To send iDOCs out, use WE14 when buffering iDOCs. If you want t use XML, then use an XML port. On your file or XML port, enter an appropriate function module for your FILE NAME GENERATIO routine, e.g. EDI_LPATH_CREATE_CLIENT_DOCNUM. If not bufferin iDOCs, then the writing of the file is automatic.

Reward if helpful

Regards

Lakshman

Read only

Former Member
0 Likes
1,097

Hi All,

My requirement is to create a xml for given idoc number, pls. suggest how to create it, is there any FM which can save this xml file to my local drive.

Thanks in advance.

Regards,

Harpreet