cancel
Showing results for 
Search instead for 
Did you mean: 

Not very clear when to go for Java mapping ?

Former Member
0 Kudos

Hi Experts

I am learning XI and I am practicing java mapping and i have seen my links on this but " <b>I haven't get clear idea like when exactly go for java mappin</b><b>g</b> "

--- as many palces mentioned complex mapping scenario's !!!

--- And context changing cases !!!

Can any one pl...exaplin on this When exactly we will go for java mapping in realtime projects ?

Adv...thanks and regards

--- Rakesh Behera

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

when graphical mapping doesnt solve ur purpose u go for either java,abapor xlst mapping. u decide based on ur level of comforts whether to go 4 any one of the above mapping. You can go for java mapping when you have complex mapping structures.You can achive maximum of your requirements through message mapping using standard complex.When the structures are very complex to build you can go for SAX or DOM parsers.

when you have the complex mapping , then go for Java mapping,

Or if you have more than 30 fields ..in your structure also go for Java mapping

see some helpful links

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

Usually Java mapping is preferred when the target structure is relatively complex and the transformation cannot be accomplished by simple graphical mapping.

For e.g. consider a simple File->IDoc scenarion where the source file is a simple XML file, whereas the target file is an IDoc with more than one hierarchy level e.g FINSTA01. Content conversion in XI can only create a single level hierarchy, so in this scenario a Java mapping would come in handy.If the hierarchy of the structure is more then its easy to use JAVA mapping.

Use SAX and DOM parsers for the mapping.

Regards

sreeram.G.reddy

Former Member
0 Kudos

Hi

Thanks to res.....

But If i am able map graphically, in this case if go by Java Mapping

then any performance better here ?

So we can choose java mapping when nested structures, more fields, complex

business scenario's !!!

Or other cases ? pl..mention

regards

--- rakesh

prabhu_s2
Active Contributor
0 Kudos

<b>But If i am able map graphically, in this case if go by Java Mapping

then any performance better here ?</b>

not much of performace improvement seen here as the graphical mappping converts to a class on execution

<b>So we can choose java mapping when nested structures, more fields, complex

business scenario's</b>

depends....if u are NOT ABLE to get it done using graphical then other mapping aids prefered.

Former Member
0 Kudos

But If i am able map graphically, in this case if go by Java Mapping

then any performance better here ?

if you can do it graphically mapping then dont use JAVAmapping. unless ABAP mapping i dont see any perfomance improvment over graphical mapping.

So we can choose java mapping when nested structures, more fields, complex

business scenario's

Yes

Former Member
0 Kudos

Hi Rakesh,

Even if you implement the mapping using Graphically....it generates the java code internally.The Funcations which you are able to see in the Graphical editor was developed by using the Java.

Comminig to the performance wise......I hope in this case the JavaMapping takes more consumtion.

Even if you Implement java mapping using any Parser..though the Parsers SAX and DOM will have different performance issue.

You have to use these parsing techiniques according to your business requirement and how the data it containes.

Hope I am clear.

Please let me know if you have any further queries!

Thanks and Regards,

Chandu....

Answers (2)

Answers (2)

prabhu_s2
Active Contributor
0 Kudos

rakesh

one example....u have a message in the following format:

<Source>

<Line>

<PONumber>490000</PONumber>

<Item>010</Item>

<Material>Bread</Material>

</Line>

<Line>

<PONumber>490000</PONumber>

<Item>020</Item>

<Material>Cheese</Material>

</Line>

<Line>

<PONumber>490001</PONumber>

<Item>011</Item>

<Material>Water</Material>

</Line>

<Line>

<PONumber>490001</PONumber>

<Item>021</Item>

<Material>Beer</Material>

</Line>

<Line>

<PONumber>490001</PONumber>

<Item>031</Item>

<Material>Wine</Material>

</Line>

<Line>

<PONumber>490001</PONumber>

<Item>041</Item>

<Material>Juice</Material>

</Line>

</Source>

and u want the data in the following format based on PONumber:

<PurchaseOrder>

<PurchaseOrderNumber>490001</PurchaseOrderNumber>

<LineItem>

<ItemNumber>011</ItemNumber>

<Material>Water</Material>

</LineItem>

<LineItem>

<ItemNumber>021</ItemNumber>

<Material>Beer</Material>

</LineItem>

<LineItem>

<ItemNumber>031</ItemNumber>

<Material>Wine</Material>

</LineItem>

</PurchaseOrder>

For this kinda a scenario we maygo for java mapping if design in graphical is found to be too complex

Former Member
0 Kudos

Hi Rakesh,

At times, when the strucutre is deep nested and mapping logic to complex to handle, it is easier to use mapping like java / XSLT where you can programmaatically control the mapping logic. in the end, it all boils down to the resource availability and ease of development / testing of the mapping logic.

Hope I am clear.

Please let me know if you have any queries?

Thanks and Regards,

Chandu...