cancel
Showing results for 
Search instead for 
Did you mean: 

mapping problem

Former Member
0 Kudos

Hi

My senders side idoc is orderssp and reciever is orders 05,i need to map orgid field of E1EDK14 segment(occurence 12 times),my requirement is i need to map at 12th occurence to reciever segment E1DK14 at 12 th occurence by checking the value at sender side ex:

if orgid = zab at sender side at reciever side orgid = zhj,this i can do by fixed value,but how to specify in mapping that at 12 th occurence only this should be mapped to reciever side

this is requirement

(sender)orgid orgid(reciever) occurence

a a 1

b b 2

c c 3

zab zhj 12

zbc zxy 12

can any body suggest how to map

regards

raghu

Accepted Solutions (1)

Accepted Solutions (1)

former_member193376
Active Contributor
0 Kudos

Hi

A normal UDF should solve your problem.

use a counter and check the value of counter, if the counter = 12 then return the value you have passed to the UDF.

Hope this helps

Thanks

Saiyog

Answers (2)

Answers (2)

Shabarish_Nair
Active Contributor
0 Kudos

use the standard statistic function count.

if count = 12 then do your logic.

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

You could do this using advanced UDF...

Loop at orgid of source. For 1 to 11 add the same source value to the target, for 12th occurance do the if condition and add the required content to the target.

Thanks

SaNv...