cancel
Showing results for 
Search instead for 
Did you mean: 

Convert to XML

Former Member
0 Kudos

Hi All,

Can any one tell me how to convert context values from Adobe form in WD ABAP to xml? I want to transfer this XML to trigger workflow along with PDF attachement?

Regards,

Ravi.D

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ravi,

Check out this blog, it can help you

[Adobe Interactive Form - Read A Table Manually WDA|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9121] [original link is broken] [original link is broken] [original link is broken];

In this I think you need to process only the First Eight Steps.

Regards

Pradeep Goli

Former Member
0 Kudos

Hi Pradeep,

In the weblog at 3rd step:

l_pdfobj->set_document( pdfdata = lv_pdf_data_source ).

lv_pdf_data_sourcce can be retrived by using an upload UI element and get the xml string to an attribute of type xstring

Im not sure how to set the document here. I dont have Upload UI lement ,im directly using online interactive form.

can u guide me what I need to pass?

Regards,

Ravi

Former Member
0 Kudos

Hi Ravi,

Do place a submit WebDynpro Native "Submit" button in the PDF Form, this can be done by going to the Library in the Layout Palette of the Adobe Form.

Before this go to the Utilities in the menu bar and click on "Insert webDynpro Script". And create a context variable like example "PDFSTRING" with type "XSTRING".

Now in the VIEW of the WebDynpro, goto the properties of the "Interactive Form" UI Element. There you'll find a Property called "pdfSource", link this property to the context variable "PDFSTRING". Also there you'll find the Property called "Events" in that create one event, for this a method will be generated, goto the Methods of this view and goto the relevant Method that you created. From there using the code wizard read the context variable "PDFSTRING". Now below this write your own code, so as to complete your task

Regards

Pradeep Goli