Skip to Content
author's profile photo
Former Member

Convert to XML format

Hi,

I need to convert one apllication form to XML format. Kindly help.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 21, 2008 at 08:19 AM

    there is no one worked in PWB to help me out in this?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      in your END form, you can do as follows:

      data w_xml type string.

      call transformation id

      source l_main = l_main

      l_clerk = l_clerk

      l_inv_xdf_header = l_inv_xdf_header

      .

      .

      .

      .

      .

      .

      result xml w_xml.

      And then write the result to a file, be carefull to create a logical file name that has a parameter that changes depending on a job id, so if you do parallel printing you can have a file per job and you won't crash data in the same file, you can use a logical file name and there you can define a parameter that you can fill using function module FILE_GET_NAME. You can use GET_JOB_RUNTIME_INFO to retreive active job information.

      Cheers.