cancel
Showing results for 
Search instead for 
Did you mean: 

Another mapping question

Former Member
0 Kudos

Hi,

I need help on mapping. I have a target field vbeln (with SAP delivery number), with this delivery number I need to get all delivery items. How can I get them?

Points will be rewarded.

Cheers.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI Wong,

The usage of If-Else statements are possible, but if you have multiple line items then probably you need to use Advanced UDFs to recover all the line Items from the queue.

In UDF use below logic,

Cache parameter -- Queue

Header -- VBELN ---> A

LineITEM - VBELN ---> B

LineItem-details --> C

//Write your code

for(int i = 0; i<B.length; i++)

{

if(A[0]==B<i>)

result.addValue(C<i>);

}

Use above UDF for all line Item fields

Thanks

swarup

sunil_singh13
Active Contributor
0 Kudos

Hi Wong,

For this Purpose you can use ifWithoutElse available in Boolean,

If SAP delivery number = delivery number

then send the Delivery item.

Thanks

Sunil Singh

Former Member
0 Kudos

Hey

If i understood your question correctly you can do this via If-Then mapping

If Delivery_Number=11111

then map Delivery_Item to target node.

You might need to use Remove context though before If.

Thanx

Aamir