cancel
Showing results for 
Search instead for 
Did you mean: 

extract XML

Former Member
0 Kudos

Hi,

I have developed one ABAP WD application with interactive form. Now, after user enters data and submit, I want to extract XML from the form and send it as a variable.

Can some body help me on this how to extract data as xml?

Regards,

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can get the full source of the PDF document back via the context attribute mapping to the interactiveForm UI element. In the following example code assume that this PDF source has already been read from the context into a XSTRING variable called pdf_xstring.

data l_fp type ref to if_fp.
l_fp = cl_fp=>get_reference( ).

data l_pdfobj type ref to if_fp_pdf_object.
l_pdfobj = l_fp->create_pdf_object( ).
l_pdfobj->set_document( pdfdata = pdf_xstring ).
l_pdfobj->set_extractdata( ).
l_pdfobj->execute( ).

data pdf_form_data type xstring.
l_pdfobj->get_data( importing formdata = pdf_form_data ).

PDF_FORM_DATA then holds the XML content for just the interactive data that filled in via the interactiveForm.

Former Member
0 Kudos

Hi Thomas,

Thanks its solved.

Regards,

Ravi

Answers (0)