Skip to Content
0
Former Member
Feb 19, 2009 at 08:54 AM

Messasge Mapping

24 Views

Hello Friends,

I am wokring on the mapping and got stuck at a point.

it is an IDoc to Idoc mapping. Only the fields that i am using are mentioned other fields are to be assumed as per the standard IDOC.

This is the source structure:

IDOC

EDI_DC_40

.........Segment

.........SNDPRN

ES1

.......ES2

..............Segment

..............Qualf

..............Time

This is the Target structure :

IDOC

EDI_DC_40

.........

ER1

.......ER2

..............Segment

..............TimeStamp

..............TimeZone

Exisitng object :

1) If 'Qualf' = 1 then map ES2 to ER2 (IfwithoutElse Used)

2) If 'Qualf' = 1 then map Time to Timstamp (IfwithoutElse Used)

New Requirement :

SNDPRN of segment EDIDC40 has to be mapped to TimeZone of segment ER2 using a value mapping.

I have tried out in many options:

1) directly mapped SNDPRN to Timezone using value mapping

2) Used the same condition If qualf = 1 then map sndprn to timezone with valuemapping ( ifelse used)

none of the above options worked, the field itself is not generated when executed. it was not that easy as it appears here.

when i defaulted the timezone using a constant, it worked and the field got generated.

Please provide a resolution, if something is not clear i would add upon a request,

thanks,

Raggy