cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering IDOC segments.

former_member223432
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

SudhirT
Active Contributor
0 Kudos

Try this.

EAN_QTY -


Exists--->IfWithoutElse->CreateIF-->RemoveContext--


>E1EDL24.

KennethEriksen
Participant
0 Kudos

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

former_member191735
Active Contributor
0 Kudos

May be in Mapping.... use node functions.... CreateIf, exists.... Search SDN for these or mapping.