Skip to Content
0
Former Member
Apr 20, 2009 at 01:44 PM

Abap mapping: copy substructures

28 Views

Hi all,

I try to find a simple and quick way to fill some fields of a destination message getting values from an input message by tag name.

More exactly:

Input message.

S1.

f1

f2

f3

S2

f4

f5

f5

Output message,

D1.

d1

d2

d3

D3

d4

I need to copy S1 to D1 to have all field dx... filled and to fill d4 with f5, for exaple.

I can use idocument->get_elements_by_tag_name( 'BookingCode' ). to get a value of 'BookingCode' from

the input message. Is it the possibility to modify a specific field in a "odocument" after a copy of a structure from the idocument?

Is it possible?

Thanks in advance.

Regards,

Giovanni