How to read an XML

Mike Pokraka wug at workflowconnections.com
Mon Jul 6 05:26:23 EDT 2009


Hi, 

Have a look at the CALL TRANSFORMATION command. 

Class CL_XML_DOCUMENT may also work but I find the above easier to work
with. 

Cheers, 

Mike

 

 

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of
Acar Gökselin
Sent: 06 July 2009 07:05
To: sap-wug at mit.edu
Subject: How to read an XML

 

Dear Experts,

 

I have created an Interactive Form. When I process this form I get an XML
(Datatype is XString) as Import.

 

How do I read this XML to save the Data in a SAP Database?

 

Is there any Function Module or Class? I didn’t find anything.

 

Thanks in advance.

 

With kind regards

Goekselin Acar

 

 

*Call From

CALL FUNCTION fm_name

 EXPORTING

    /1bcdwb/docparams        = fp_docparams

    auftrag                  = itab_zabeanstandung

 IMPORTING

   /1bcdwb/formoutput       = return_pdf ßthe XML saved as Xstring

* EXCEPTIONS

*   USAGE_ERROR              = 1

*   SYSTEM_ERROR             = 2

*   INTERNAL_ERROR           = 3

*   OTHERS                   = 4

          

IF sy-subrc <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20090706/293ca32e/attachment.htm


More information about the SAP-WUG mailing list