on 10-30-2014 12:37 PM
Hi Experts,
I have an issue while mapping one field in PI and maybe you can help me.
Source:
I have two segments with Value “1” in field “Nr”( transaction number) but only one of them have an entry in field “CardID”
Target:
I need a mapping which ist copy the value from “CardID” when “Nr” is the same.
Thanks and best regard,
Alex
Hi,
Target:
I need a mapping which ist copy the value from “CardID” when “Nr” is the same.
Without providing the source fields and their hierarchy, it would be hard to recommend a solution.
For example, in your source XML, 4711 exists only once but has two rows for Nr, in that case you can use the node function useOneAsMany to multiply 4711 to Nr to produce two 4711's. Concat would also work in this case.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
I dnt think Graphical mapping will suffice (might get complex)
Instead write a UDF..and loop through values for Nr and CardID
If Nr is same you need to write the same value for CardID else take the nxt value.
Regards,
Azhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try using CreateIf or other functions provided to meet your requirements
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.