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

Customize IDoc outbound processing

Former Member
0 Likes
717

Hi,

I created a custom IDoc for a production order and its segments, now I have to export this IDoc to an XML file at the same time to a print process which is start from an existing report and to do this I'd like to insert the code to fill the IDoc in an internal form of the existing report and than I could associate the IDoc to a message type that is associate to the function module "IDOCS_OUTPUT_IN_XML_FORMAT" to create the XML file from IDoc. can you tell me if I can proceed in this way to realize my project and how I can send my IDoc from the same form where I fill it. thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
644

Hi

Once the Idoc is created successfully you can have two options in the partner profile ,you can collect al the Idocs and then move them or you can send the Idoc immidiately to the external system.

see the configuration steps for Outbound Idocs:

http://www.abapprogramming.net/2007/12/idoc-out-bound-triggers.html

http://help.sap.com/saphelp_di46c2/helpdata/EN/dc/6b812a43d711d1893e0000e8323c4f/content.htm

http://help.sap.com/saphelp_di46c2/helpdata/EN/dc/6b7e7943d711d1893e0000e8323c4f/frameset.htm

Regards

Neha

Edited by: Neha Shukla on Nov 27, 2008 7:02 PM

5 REPLIES 5
Read only

Former Member
0 Likes
645

Hi

Once the Idoc is created successfully you can have two options in the partner profile ,you can collect al the Idocs and then move them or you can send the Idoc immidiately to the external system.

see the configuration steps for Outbound Idocs:

http://www.abapprogramming.net/2007/12/idoc-out-bound-triggers.html

http://help.sap.com/saphelp_di46c2/helpdata/EN/dc/6b812a43d711d1893e0000e8323c4f/content.htm

http://help.sap.com/saphelp_di46c2/helpdata/EN/dc/6b7e7943d711d1893e0000e8323c4f/frameset.htm

Regards

Neha

Edited by: Neha Shukla on Nov 27, 2008 7:02 PM

Read only

Former Member
0 Likes
644

Hi Neha,

thank you for your helpful answer but I haven't solve my problem yet, beacause I created IDocs but I don't know how I can set partner profiles to create the XML files. I filled the outbound parameter of my sender system but I don't know to which system I can send the IDoc (IDoc control record field: rcvprn) to create XML files from IDocs. Please help me!!! I need help urgently!!!

Read only

0 Likes
644

Hi Emanuele Morretta

Flow the below Steps

1 Create XML Port in WE21

2 Create Partner Profile Using WE20 With XML port. (Dont forget to Define Message type in partner profile)

Now generate the IDoc.

I hope now u can see the IDoc is converted in to XML File.

Note: U Can get Xml file location path .....from Port Definition

Ramesh

Read only

0 Likes
644

thank you ramesh for your help.

Edited by: Emanuele Morretta on Dec 16, 2008 1:07 PM

Edited by: Emanuele Morretta on Dec 16, 2008 1:08 PM

Read only

0 Likes
644

Hi,

I created the XML from IDoc but now I'd like to delete IDoc control record XML elements that appear in the XML structure before data elements. How I can do this? please help me!!!