cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve IDoc schema via a service call

Former Member
0 Kudos

Hi,

I'm aware the schema for an IDoc type can be generated from WE60. I'm wondering if the same can be accessed either via a service call (HTTP/SOAP) to the SAP system or by executing a function module using JCo. I'm also aware of IDOCTYPE_READ_COMPLETE function module that can return the structure of the IDoc. But then I will have to parse this structure and create the schema myself if I were to call it from a Java application. Is there an easier way to achieve this.

Thanks,

Praneeth

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Have a look at FM SDIXML_IDOC_TO_SCHEMA and it´s usage

br

Former Member
0 Kudos

Hi Praneeth,

If schema needs to get for SAP PI systems, then we can import directly to PI ESR.

If requirement is to provide schema to other systems, then i think you can have option 'Export XSD' in WE60.

Also check standard BAPI's like BAPI_PO_CREATE1

Or

look at the service at trnsaction SICF

sap/bc/idoc_xml

to this node the external application can post XML document (IDOC in xml format).

Regards,prasanth

Former Member
0 Kudos

Thanks Prasanth for your reply. I'm able to generate the XSD from WE60. Also, I'm aware of the service sap/bc/idoc_xml. My requirement is to connect to SAP system from a Java application and retrieve the XSD for a given IDoc type. I will then use this XSD to create data model in my non-SAP system. At runtime, based on the values set by the user on my data model, I will generate the XML and POST it to sap/bc/idoc_xml.

I'm looking for ways to retrieve the XSD from Java either using an HTTP call or an RFC call using JCo library. I do not want someone to manually download the XSD from the SAP system and feed it into my non-SAP system to generate the data model.

Hope you get my question.

Thanks,

Praneeth