cancel
Showing results for 
Search instead for 
Did you mean: 

XML file generation?

Former Member
0 Kudos

hi all,

I want to generate XML file from webdynpro, i tried this..

lv_data = '<?xml version="1.0" encoding="utf-8"?> <CUSTOMERS> <PERSON>' &

'<first_name>Jan</first_name>' &

'<last_name>Koran</last_name>' &

' </PERSON>' &

' <PERSON> <customer_id>2</customer_id>' &

' <first_name>James</first_name> ' &

' <last_name>Kirk</last_name> ' &

' </PERSON></CUSTOMERS>'.

This works fine.

Now I need to pass the values in variable form in place of the black colored values. The values that are to be passed is in internal table, that are fetched from the screen.

thanks,

venkat.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi all,

Any clues regarding this...

thanks,

venkat.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I don't see how this is a Web Dynpro related question, unless you are asking how to get the values out of the context. If you just want to know how to add variables, use the CONCATENATE syntax to combine text literals and variables. But for that question we should really move your thread to ABAP General. Please clarify the exact area of your question.