Skip to Content
0
Former Member
Feb 18, 2009 at 12:50 AM

Mapping issues while using MapwithDefault Node function for Idoc

154 Views

Hi Experts,

We are facing issues while trying to generate nodes at reciver side even though it does not exist at sender side.

we are using the matmas05 and we want the nodes E1marcm and e1mardm to generated at target structure.

the structure is like this

Matmas05

idoc

E1maram

segment

E1marcm

segment

msgfn

.....other fields

E1mardm (can be many segments)

segment

lgort

..other fields

E1mpgdm

segment

...e1mpgdm fields

the mapping has been done like:

e1marcm -mapwithdefault-e1marcm

constant -segment

werks-mapwithdefault-werks

other fields(one to one mapping)

e1mardm-mapwith default-e1mardm

lgort-mapwithdefault(value 1000)-lgort

other fields -one to one mapping

now the problem we are facing is when e1mardm is not existing in source structure the values from the other node of e1mardm(which exists) are getting overwritten into it.

we want only the lgort to be 1000 and the segment should populate at target side.

like

e1mardm

segment

lgort value 1000

Could you please assist in solving this issue and give your valuable suggestions as how could we handle it.

Thanks and regards,

jyoti