‎2009 Dec 15 4:12 PM
Hi friends! I'm need to create an variable for ech line of internal table to build xml file, but i have a problem. How can I create variables dynamically in abap?
Thanks for any help!!
‎2009 Dec 15 4:32 PM
Be more specific with your problem.
I don't think you need to create variables, but just assign the fields in the table to a field-symbols to achieve what you want.
‎2009 Dec 15 4:32 PM
Be more specific with your problem.
I don't think you need to create variables, but just assign the fields in the table to a field-symbols to achieve what you want.
‎2009 Dec 15 4:44 PM
You can achive this by using field-symbols.
There will be no need to create variables for each line of internal table.
Search SDN for the use of same.
‎2009 Dec 15 5:33 PM
Please explain the scenario correctly.
what about moving the internal table line to a string.
‎2009 Dec 17 5:56 PM
Thanks for reply...I made a mistake. I tought would need this, but only one variable for each tag works 'cause every XML element is created in a base document.
The code I'm used:
LOOP AT xml_item_tab INTO wa_xml_item_tab.
*Numero item
CLEAR value.
TRANSLATE wa_xml_item_tab-nitem USING '0 '.
value = wa_xml_item_tab-nitem.
CONDENSE value NO-GAPS.
g_rc = i_det->set_attribute(
name = 'nItem'
value = value ).
Edited by: Fulvio Valente on Dec 17, 2009 6:56 PM