cancel
Showing results for 
Search instead for 
Did you mean: 

Quantity Mapping in Message mapping

Former Member
0 Kudos

I have the below mapping conditions...

Create for every quantity related to billcode and Sponsorcode. If there is no quantity, create segment with quantity 0.

How to map this? Please help how to map this clearly...

Thanks in advance..

Accepted Solutions (0)

Answers (3)

Answers (3)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Yes use mapwithdefault function. Map your source and target with mapwithdefault. initialize the function with value 0.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

This can be solved by using the node function mapWithDefault. Since your quantity is 0..1, you can use a logic that looks like this


quantity --> mapWithDefault: 0 --> target

Please take note that for the mapWithDefault to work, there should be no context manipulations in your quantity field.

Hope this helps,

Mark

Former Member
0 Kudos

Vijay your requirement is not clear, can you elaborate?