Skip to Content
avatar image
Former Member

XML file generation?

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Apr 15, 2011 at 06:26 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 17, 2011 at 05:00 AM

    Hi all,

    Any clues regarding this...

    thanks,

    venkat.

    Add comment
    10|10000 characters needed characters exceeded