on 03-31-2011 5:40 PM
HI,
I am working on IDOC to file scenario.
Here i have a segment by name E1EDL24 which repeats multiple time. i need to populate only those segments which has fieled EAN_qty values in it.
How can i do this in PI?
Ex: IF E1EDL24 comes 7 times and has EAN_QTY values only in 5 segments.then i should populate only those 5 segments.if i dont filter it...PI wil take only first segment into consideration...How do i this in PI?
appreciate your help.
Regards
Rightly said, you can achieve this using the "createif" and "exists" functions available under "node functions" in graphical mapping.
You may try this.
EAN_QTY -
> Exists---> CreateIF--> RemoveContext--
>Target Field
Remember to handle the context for E1EDL24 segment to the root node of your Target field accordingly.
I hope this helps.
Regards, Gaurav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this.
EAN_QTY -
Exists--->IfWithoutElse->CreateIF-->RemoveContext--
>E1EDL24.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Depending on your structure you may also want to drop the RemoveContext-function, so:
EAN_QTY -> Exists -> CreateIf -> E1EDL24
This way PI will "know" about the segments you filtered out (PI sets SUPPRESS for their context), and will also filter out their child fields so they don't sneak into the segments you want to keep.
Br,
Kenneth
May be in Mapping.... use node functions.... CreateIf, exists.... Search SDN for these or mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.