Skip to Content
0

Mapping values from line level to header level based on condition

Sep 28, 2017 at 12:13 PM

43

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Manoj K Sep 28, 2017 at 01:10 PM
0

Hi ,

Follow as below :

Br,

Manoj


mapp.png (42.9 kB)
out.png (36.3 kB)
Share
10 |10000 characters needed characters left characters exceeded