cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC value with Mapping

Former Member
0 Kudos

Hi,

i have a segment that will hold n number of occurences. Ex: E1BPE1MARAEXTRT. Field name called field1.

i need to pass the occurence value to target field and the same value should not repeat in target .

Ex:

field1 value 1000------target- Outputfield-1000

field1 value 1000-----target - i should not send.

field1 value 1001-----target - i should send to target field.

i have an idea how to find the second occurences. i don't know how to check the value which i receive from idoc and the prior idoc value.

Please Suggest..

Accepted Solutions (0)

Answers (2)

Answers (2)

STALANKI
Active Contributor
0 Kudos

My logic works.you can try and allot me points.:)

STALANKI
Active Contributor
0 Kudos

create advanced user defined function with 1 parameter and cache entire queue option ticked in the mapping editor and map as follows.

field1-advanced user function-target output field.

result.addvalue(a[0)).

This should solve ur problem and make the occurence of ur output field to 1.

Former Member
0 Kudos

Hi Sravya,

thanks for your reply.segment have n number of occurences.i need to check the FIELD1 field,and pick the unique value. remaining values i should skip.

Please suggest.