cancel
Showing results for 
Search instead for 
Did you mean: 

How to map a basic data type to a Standard IDoc using Java Mapping?...

SudheerJ
Participant
0 Kudos

Hello Everybody!......

My Scenario in Java Mapping is: -

"Mapping a basic data type to a ORDERS05 IDoc provided by SAP."

I am facing difficulty in writing code for generating ORDERS05 IDoc through Java Code as the IDoc contains nearly 250 fields and 20 segments in it. As it is tedious to generate code for such a huge structure can anybody help me out with any easy way to generate code or if any tool is available for generating code for an Standard IDoc provided by SAP.

With Regards,

Sudheer

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sudheer, have you considered using XSLT (XML mapping/stylesheets)?

Try these links with sample code and explanation about XSLT in XI:

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/gen... xslt mapping in sap xi, part i.pdf

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923...

Good luck!

Cheers,

Roberto

SudheerJ
Participant
0 Kudos

Hi Roberto,

Thanks for the response...

I want my scenario to be done in Java Mapping and not in XSLT. So, if you can please suggest me with any idea to complete it with Java Mapping Code.

bye...

Former Member
0 Kudos

Hi Sudheer,

In that case you would like to experiment with JAXM (Java API for XML messaging).

With this standard Java package you can concentrate on sending/receiving and processing XML messages rather than doing low level XML parsing/programming etc. With other words with this API your objects (in your case IDOCS) will be translated by JAVA to XML messages and vice versa.

Hope this can be helpful for you.

Check this link:

http://java.sun.com/xml/downloads/jaxm.html

Cheers,

Roberto