cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA Mapping--Multi Mapping

rajasekhar_reddy14
Active Contributor
0 Kudos

I have a source message below structure

Purchaseorder

*ProduletLineItem

If suppose 2 product line items occur

the target message should occur 2 times

Purchaseorder

ProductLineItem

Purchaseorder

ProductLineiItem

i have to see 2 messages in SXMB_MONI.

Using JAVA SAX Parsing mechanism i have to implement, its little bit tricky...

anybody help me..

Regards,

Raja Sekhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can write some loop for it..

the logic would be...

startElement code...

if startTag.equals("ProduleLineItem") {

printPurchaseOrder(); // call method

}

printPurchaseOrder() { // method definition

<Purchaseorder>

<ProductLineItem>

print the value for ProductLineItem

</ProductLineItem>

<Purchaseorder>

}

Answers (2)

Answers (2)

rajasekhar_reddy14
Active Contributor
0 Kudos

thanks..answered

Former Member
0 Kudos

Hi Rajasekhar,

I think you can also acheive this in graphical mapping, by changing the occurance in the Messages tab.

In the Messages tab on the target side you can change the occurence from 1 to 0 ..unbounded.

Thanks,

Srini

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Srinu,

I donr using GUI,XSLT but i want to do JAVA Mapping...

i worked on nor mal java Mapping , but ineverworked on multimaping using JAVA Maping...

at any time you worked??

Regards,

raj