cancel
Showing results for 
Search instead for 
Did you mean: 

How to ignore segment occurances in IDoc

Former Member
0 Kudos

Hi

I have a IDOC to file scenario.

How do i ignore the first segment of a multiple accuring segment. For Example if the segment E1EDXX occurs 5 times in the IDOC i have to ignore only the first (segment)occurance and the remaining 4 (segment )occurances shold be mapped to the target

How can i map this

Any udf or nodefunctio combination would really be appreciated

Thanks

-keerthi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Keerthika,

You can use index function. So if index is not equal to 1 then pass to the target. Else ignore it.

Regards,

---Satish

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Satish.

Problem resolved. Index helped

Former Member
0 Kudos

Keerthika,

You can see an example given by ravi here. You can change accordingly.

Regards,

---Satish

Former Member
0 Kudos

Hi

You can try to build an UDF


//you initialize the array since one.
if (list.length >=5){
   for (int i =1; i < list.length ; i++)
    { result.addValue(list<i>); }
}