on 12-08-2008 5:15 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use the standard statistic function count.
if count = 12 then do your logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.