on 11-11-2014 10:14 AM
Hi Group,
I am working on Message mapping where I need to select the record which having lowest price based on material , for example
if I have 5 records with material and price , I need to select one record with lowest price.
Material Price
-------- ------
900 10.00
901 5.00
902 3.00
903 15.00
904 4.00
output should be
902 3.00
Can any body suggest how I can achieve this in graphical mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajiv,
Based on your requirement, I assume that the Target Parent Node is with Occurrence 0..1
You can map a Constant [] to Parent Node...
Do you need to concatenate the Price+Material and map it to some target field? If yes, you can add a concat function from the Text group after the CollapseContext and map the Output to the required target field.
Regards,
Azhar
Hi Rajiv,
Can you provide the screenshot of your message mapping with Source n Target Structures..
What I understand from your abv post is that there can be multiple Price (same lowest value) and all those needs to be mapped to target alongwith the Material?
Can you also give sample Input and required Output...
Regards,
Azhar
Hi Rajiv,,
Seems you want to select the lowest Price amongst the Materials with same number rite?
For Material 900..of 4 values you want the lowest Price 3.00 to be mapped rite
And for Material 901...u have selected 23.00?? don't you want to select the lowest price here as well? On what bases you have selected this value
Also is there any context change when when there is change in Material Numbers?
Regards,
Azhar
use sort and sort by function:
in the end result you can use collapse context to get the first value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.