cancel
Showing results for 
Search instead for 
Did you mean: 

- Sapscript output convert to XML -

Former Member
0 Kudos

Hi Gurus,

I need to convert sapscript output with values - not template - to an XML File or txt.

i tried RSTXSCRP program and FB_CONVERT_FORM_TO_XML function module but doesn't help me.

Please help me with the solution.

Regards

Emre.

Edited by: emre karakurum on May 21, 2010 11:38 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

How about using

FM : SAP_CONVERT_TO_XML_FORMAT

or

You can also use the folloing two function modules to convert the data in an internal table to XML format.

Step 1: Convert to Data Object Model using

'SDIXML_DATA_TO_DOM'

Step 2: Conver to XML using

'SDIXML_DOM_TO_XML'

Regards

Bhanu

Answers (1)

Answers (1)

Former Member
0 Kudos

In my opinion, SAPScript form is something quite unstructured - the layout of it can be very complicated and as well containing graphic and so on. XML is, on the other side, something pretty structured. I don't think that you can find something standard for simple conversion SAPScript to XML. SAPScript is simply not like IDOC - it's human readable layout rather than strucutre of data. You will have to write your own print-program which will create your own XML file instead of printing SAPScript form. The logic how to structure the XML file (which tags will be there and which values) will be coded in this print-program.