Skip to Content
0
Former Member
Jun 08, 2005 at 10:07 AM

mapping help

14 Views

Hi all,

I am doing a message mapping with source and target as same idoc. The requirement is as follows.

The target field in the idoc has a field colno. It should be 10,20,10,20 and so on based upon the incoming idoc.

ie, if an idoc is coming in XI, then colno. should be 10.

for the next idoc, its value should be 20 and so on.

I am planning to do this logic in message mapping by taking idoc number as reference.

ie, if idocnumber divided by 2 =0, then colno=10 else colno = 20.

How can i implement this in the message mapping?

The idoc number is in EDIDC40-docnum field.

its occurence is 0..1. Its already mapped to docnum in the target.

So if i map it again with the colno, there would be an error, right? How can i resolve this?

Thanks in advance,

Deno