cancel
Showing results for 
Search instead for 
Did you mean: 

Generate multiple Idoc segments

Former Member
0 Kudos

Hi all,

I have a Flat file to Idoc Scenario.

I need to generate no. of multiple Idoc Segments based on the source field value.

For Eg: if Field1 starts with 5 or 6 then E1 segment should be created 5 times,

similarly if Field1 starts with 4 then E1 segment is created 6 times

And as many times E1 is created that many times the corresponding other E2,E3 segments are created

i.e E2 E3 has 1-1 relationship with E1

Can this be done graphically ?

Working on PI 7.0 Environment

I would appreciate your Inputs.

Regards,

Varun

Edited by: Varun Reddy on Oct 5, 2010 8:21 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

varun_k
Contributor
0 Kudos

Used function Startswith2 to check field starting with and used createif node function to generate the target node.

Issue solved

Former Member
0 Kudos

Im pretty sure that if you duplicate the target segment the max number of times (6) but you only map to 4 of them, only 4 will be created in the target structure. Let the Mapping/Data drive how many segments actually get created in your target structure.

I could be wrong but Im pretty sure thats how Ive handled repeating segments before.