Skip to Content

Mapping values from line level to header level based on condition

Hi all,

Mapping I am working on is ORDERS05 to ORDERS05. I am trying to map line-level text from E1EDPT1/E1EDPT2/TDLINE field to header E1EDKT1/E1EDKT2/TDLINE field. Only fields having E1EDPT1/TID value = 00 should be mapped and only one segment E1EDKT1 should be created.

Example input:

IDOC
E1EDP01
	E1EDPT1
	TDID = 00
		E1EDPT2
		TDLINE = 111
		E1EDPT2
		TDLINE = 222
	E1EDPT1
	TDID = 12
		E1EDPT2
		TDLINE = 333
E1EDP01		
	E1EDPT1
	TDID = 00
		E1EDPT2
		TDLINE = 444
		E1EDPT2
		TDLINE = 555
	E1EDPT1
	TDID = 12
		E1EDPT2
		TDLINE = 666

Example output

IDOC
	E1EDKT1
		E1EDKT2
		TDLINE = 111
		E1EDKT2
		TDLINE = 222
		E1EDKT2
		TDLINE = 444
		E1EDKT2
		TDLINE = 555

What is the best way to achieve that?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 28, 2017 at 01:10 PM

    Hi ,

    Follow as below :

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded