on 05-29-2009 1:09 PM
Hello,
I have following szenario:
I have an interactive form, I want to fill it with data retrieved dynamically and then I want to make the PDF downloadable without the need to show it in Reader first. The user shall continue to fill in data into the prefiled PDF "offline" outside of the browser.
When I make the Interactive Form element visible, everything works as expected and I get my prefilled PDF and I can download it. The pdfsource in the context is filled with binary data.
When the element is invisible, nothing happens...
Is the Adobe Reader required in the process of putting data into an interactive form?
Thx for any help or ideas,
Frank
Hi Frank,
For your requirement you need to design an Offline Adobe Interactive Form ABAP Based i.e. here you design the AIF similar to Smartform using a ABAP Driver Program. In that driver program you need to include the below two lines
fp_outputparams-nodialog = 'X'.
fp_outputparams-getpdf = 'X'.
before call to function "FP_JOB_OPEN". Imediately after the call to this function module write the below program lines, these lines are to make the Adobe Form as Interactive.
fp_docparams-fillable = 'X'.
fp_docparams-dynamic = 'X'.
Now proceed with other steps and while calling the PDF Form dynamically using the function module dont forget to mention the IMPORTING Statement. After the call to function "FP_JOB_CLOSE", you can have the Complete PDF in the XSTRING Format in the IMPORTING Statement. Generally the IMPORTING Statement looks like
IMPORTING
/1BCDWB/FORMOUTPUT = fpformoutput
so you can get the PDF by accessing like "fpformoutput-pdf".
So here convert that XSTRING PDF into BINARY format and write the Steps in ABAP to download to desktop directly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.