Skip to Content
0
Former Member
Nov 10, 2008 at 04:16 AM

Mapping issue

12 Views

Hi sdn

Looking for a java udf or some mapping logic for below

It is a IDOC to file scenario.Need to create a target segment conditionally.

SOURCE : IDOC

E1EDP01

TDID 690456

E1EDP01

TDID 000012

E1EDP01

TDID 690489

In the above source structure E1EDP01 is an IDOC segment which is repeating in nature and TDID is a field which has the above mentioned values.

TARGET : FILE

P01 : Repeating segment within the target file structure.

P01

Field 1

Field 2

P01

Field 1

Field 2

In the above scenario 2 target segments will be created.

I want 2 target segments by comparing value from a source field. If TDID=6904... then dont create target P01 segment.Basically if TDID starts with 6904 then dont create target segment P01

Thanks