cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving data from offline filled PDF

Former Member
0 Kudos

Hi,all

I need to retrieve data from PDF which was filled offline.

Any ideas?

Regards

Michael

Accepted Solutions (1)

Accepted Solutions (1)

amolgupta
Active Contributor
0 Kudos

hi Michael,

i mailed you one tutorial.

i got this tutorial from sdn only...

it will tell how to get an pdf form for "offline scenario" as well as how to create the "online scenario"...

wherein you extract the contents filled in the form into dynpro context.

pls confirm if you got it, because sometimes my company mail server removes attachments from mail...

this is quite a to the point tutorial and will clear your idea...

regards,

-amol gupta

sushant_singh
Participant
0 Kudos

Hi experts,

I also have the same requirement , Can you please send me the details

of the procedure required. If possible kindly send me the code required for extracting data.

Thanks.

Sushant Singh

amolgupta
Active Contributor
0 Kudos

hi Sushant,

Please specify your problem clearly.

regards,

-ag.

Former Member
0 Kudos

Hi amol gupta,

currently i also facing the same problem..

as i was wondering how to fill data from the database to an offline form. and then send email out to the necessary user.

example is the leave form.

Once click then it will retrieve form the database with the user records and then send a email out.

hope you could send me a sample to see.

thanks you

Answers (2)

Answers (2)

amolgupta
Active Contributor
0 Kudos

hi Michael,

Once you fill data in a PDF form offline,

the filled in contents...can be retrieved by uploading the form...into dynpro.

thats called "online scenario", using the offline form is called "offline scenario" which you are already using.

Recall when you created the form, you created ur UI elements in the form according to the fields available in the Data View.

there is binding between UI elements in the Interactive form and the Dynpro context.

so like you had ui elements in the dynpro layout, u have ui elements in the interactive form and in both cases are bound to the Dynpro Context.

use a FileUpload Ui element in dynpro. Receive the pdf file in a Context attribute of type "binary" and map this attribute to the <pdfObjectAttribute> which is bound to the interactive form.

the basic idea is that....

ur interactive form -> properties -> pdfSource = <some Context Attribute> of type "binary".

ur uploaded pdfFile should reach into this Context attribute.

further interactive form -> properties ->mode="usePdfF"

i.e. we use the same interactive form that we used to generate the initial pdf.

thus it already knows the structure of ur pdf file.

as soon as you upload it, the contents of the uploaded pdf are filled into the Context attributes.

(Recall... interactive form ->properties -> dataSource = <Some Context Node>

when you were creating the blank pdf for offline use)

Once you get all the data in the pdf in the context, you can do anything with it, using get set methods.

there are plenty of tutorials on sdn. just search interactive forms. take a look into the online scenario.

hope this helps.

regards,

-amol gupta

Former Member
0 Kudos

Hi,amol

Thanks for your reply.I have tried to do this but without success.

Can you explain me more detailed the algorithm?

Or may be you can send me a sample project?

my email is michaelbeilin@gmail.com

Regards,

Michael

Former Member
0 Kudos

Hello Michael,

It can be done through Web Serrvices or through Guided procedures.

Please check about them on SDN-> Interactive Forms homepage and this forum.

If you have any queries, please post them here :).

A sample offline scenario - Approve or reject the Form received through e-mail. Once approced or rejected, the data has to be updated in the respective R/3 DDIC tables.

This can be done through the above said approaches.

Hope this helps :).

- anto.