Skip to Content
0
Former Member
Sep 11, 2007 at 06:26 PM

create xml tag dynamically within simple transformation

1019 Views

Hi all together,

I'm faceing the following problem:

There is a internal table provided, consisting of name/value-pairs. Something like

ls_struc-name = 'NAME1'.

ls_struc-value = 'XYZ'.

append ls_struc to lt_struc

ls_struc-name = 'CITY1'.

ls_struc-value = 'Munich'.

append ls_struc to lt_struc

and so on.

I have to create this XML (with simple transformation):

<NAME1>XYZ</NAME1>

<CITY1>Munich</CITY1>

Everythings works fine so far (tables, values etc.), but I have problems with creating the XML-Tag, e.g <NAME1> from "$line.name" within the transformation. I don't have any information about the data structure (therefore "call transaction id" does not work).

Any hint is useful!!!

Best regards,

Thomas