2008 Nov 20 10:47 AM
hi,
I have to export production order data to an xml file and to do this I want to use an IDoc but I don't know how I can map an Idoc to an XML document after I created it. Please help me
2008 Nov 20 10:58 AM
Hello Emanuelle
If you require an XML-IDoc then just send your IDoc to an XML port (WE21).
Regards
Uwe
hi,
I have to export production order data to an xml file and to do this I want to use an IDoc but I don't know how I can map an Idoc to an XML document after I created it. Please help me
2008 Nov 20 10:52 AM
Hi
Check these FMs, all can be used to convert idoc to xml.
ISIA_CE_IDOC_TO_XML.
CFG_API_CONVERT_IDOC_TO_XML
IDOCS_OUTPUT_IN_XML_FORMAT
Regards,
Vishwa.
2008 Nov 20 10:58 AM
Hello Emanuelle
If you require an XML-IDoc then just send your IDoc to an XML port (WE21).
Regards
Uwe
2008 Nov 20 11:14 AM
thank you very much your answers are very helpful but I can't understand how I can configure a port to send an IDoc to an XML file.
2008 Nov 20 11:17 AM
Hello Emanuelle
Define an XML port in WE21 which saves the XML-IDoc files in a directory on the application server.
The next step is probably to define a distribution model (BD64) where you send your production order as outbound IDoc from you logical system (sender) to the XML port (receiver).
Regards
Uwe
2008 Nov 20 2:15 PM
Hi,
I believe I solved my problem on the receiver side but I have a problem to send IDoc. I need to a function module that fill an IDoc for a production order or if not exist I need a similar function as programming model.
2008 Nov 21 12:20 PM
Hello Emanuelle
Report RCCLORD can be used to generate LOIPRO IDocs for production orders.
Regards
Uwe
2008 Nov 27 1:15 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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |