cancel
Showing results for 
Search instead for 
Did you mean: 

Reading the pdf context and passing to rfc?

Former Member
0 Kudos

Hi All,

I have a interactive adobe pdf which has a table, the details of the line items get populated with the data coming from rfc. The end user downloads the pdf, it has one column which is a input field for each line item. Now i have another WebDynpro application where the user uploads the filled pdf, here I have to read the context with the new data which the user has entered and pass it back to different rfc.

How do i achieve that?

Kindly help.

Regards,

Vishal

Accepted Solutions (0)

Answers (1)

Answers (1)

Sigiswald
Contributor
0 Kudos

Hi Vishal,

Using the <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/adobe/pdfdocument/api/package-summary.html">PDFDocument</a> (NW04s) or <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/pdfobject/api/package-summary.html">PDFObject</a> (NW04) API, you can pass the uploaded PDF file as input and get the data.xml as output, which you can parse usinge some XML parser.

But in your case, a much easier option is probably to use the <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/adobe/api/WDInteractiveFormHelper.html">WDInteractiveFormHelper</a> to populate a node in the Web Dynpro context based on the uploaded PDF file. The only "limitation" is that the structure of the context node must match the one of the context node in the Web Dynpro application used to create the form. It's probably a good idea to define the context once in a separate Web Dynpro component and reuse the context definition, using context mapping, in both Web Dynpro applications (the one that produces the form and the one that consumes the form).

Kind regards,

Sigiswald

Former Member
0 Kudos

Hi,

Hope you have gone through -><a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/288e9c7d-0c01-0010-5382-dbec82af50b2">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/288e9c7d-0c01-0010-5382-dbec82af50b2</a> and other tutorials in the Interactive fforms Home page in SDN.

Hope these helps.

Rgds,

Anto.