SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Convert to XML format

Former Member
0 Kudos

Hi,

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

8 REPLIES 8

Former Member
0 Kudos

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

0 Kudos

hi depika

we use xslt converters to convert xsl to hml

vat fpormat do u wish to convert the xml form to??

kr

raj

0 Kudos

Create a END exit and populate final internal table.

and call this FM.

Check out the FM SAP_CONVERT_TO_XML_FORMAT

Below are the useful threads:

Generate XML

[Download XML|]

Download XML.

Let me know any more doubts

Regards,

Shiva Kumar

0 Kudos

Thanks Shiva,

But actually i'm working on application form in which i need to fetch the required fields as per the logic given. Then my client wants me to send this in XML format so that they can use it in taking printout by a third-party.

0 Kudos

You know PWB rite!!!

You can create user-exits in that application!!!

IF you want to create a XML output file through PWB then create a END exit and call that Function module it will work.

What exactly you want through that PWB application ?

What is the form name?

Regards,

Shiva Kumar

0 Kudos

thanks shiva,

the application form name is ZIS_U_STANDARD_BILL and the form class used is IS_U_BI_BILL.

as per my requirment i need to fetch certain fields in the application form and convert it into XML format and send it to my client. My client is using a third-party who have their layout and they will pass this XML format in order to get output.

Now in this function module SAP_CONVERT_TO_XML_FORMAT what paramaters needs to be passed and where i'll get the output?

thanks a lot...

0 Kudos

Please see the code on this links!!!

.

Regards,

Shiva Kumar

0 Kudos

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.