‎2008 Nov 27 12:19 PM
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
‎2008 Nov 27 1:31 PM
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
‎2008 Nov 27 1:31 PM
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
‎2008 Dec 15 11:57 AM
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!!!
‎2008 Dec 15 7:12 PM
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
‎2008 Dec 16 8:31 AM
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
‎2008 Dec 16 12:07 PM
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!!!