on 2011 Jun 03 10:06 AM
Hi forumers,
I'm a new abap developer and I'm tasked to create an interactive adobe form that will require the user to input data in the form.
No data is passed and received from PDF, but PDF has to be u2018Fillableu2019. I am able to fill out the form but when I actually save the form, it will be saved as a blank form again. I've seen the relevance of the LS_DOCPARAMS-FILLABLE = 'X' on this forum and I have incorporated it in my code. But how should I code the abap program to enable to save the user input as well into the form.
DATA: GV_FMNAME TYPE FPNAME,
LS_DOCPARAMS TYPE SFPDOCPARAMS,
LS_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
I_NAME = 'ZSC_ZRUFORREP'
IMPORTING
E_FUNCNAME = GV_FMNAME
* E_INTERFACE_TYPE =
* EV_FUNCNAME_INBOUND =
.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
IE_OUTPUTPARAMS = LS_OUTPUTPARAMS
EXCEPTIONS
CANCEL = 1
USAGE_ERROR = 2
SYSTEM_ERROR = 3
INTERNAL_ERROR = 4
OTHERS = 5
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LS_DOCPARAMS-FILLABLE = 'X'.
LS_DOCPARAMS-DYNAMIC = 'X'.
CALL FUNCTION GV_FMNAME
EXPORTING
/1BCDWB/DOCPARAMS = LS_DOCPARAMS
* IMPORTING
* /1BCDWB/FORMOUTPUT =
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3
OTHERS = 4
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
* E_RESULT =
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3
OTHERS = 4
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
dgrachee
The problem is the Adobe Form License. If you check the domain for that field, X = "Interactive Form with Additional Usage Rights".
Hence, you need to install Adobe Form Credentials in your Netweaver Server to actually save data into the PDF.
Cheers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Andre.
Is this credential user-specific or company specific? I asked because I have tried downloading the form in FP_TEST_IA_01 with user input data in the desktop and I was able to download it with the data. However, with the form I tried to create, it is just a blank form that I was able to download.
Regards,
dgrachee
That is a SAP Standard form. The credentials apply for custom developed forms. Credentials are for the company, per form per user. Do some search about that, there is a lot of info out there. Alternatively, your first point of contact should be your SAP Account Manager Representative. Also, look for a particular SAP Note that explain the licencing process.
As said above, Basis team install the licence... Perhaps your company has already purchased the licence but was never installed.
Not quite yet, I have to say...
If you check the domain "FPINTERACTIVE", you'll see these values:
Print Form
X Interactive Form with Additional Usage Rights
N Interactive Form Without Additional Usage Rights
F
So, you are not providing "additional usage rights" (Adobe Form Credentials), meaning there could be a problem when you want to use those forms in a Production environment.
Sorry, I was out of the loop for sometime. I checked out some link: [http://help.sap.com/saphelp_nw73/helpdata/en/70/96aa7442ee484386ca81dacfe08394/content.htm]
and F almost has the same property as X.
FILLABLE = F generates an interactive offline form with UsageRights, like FILLABLE = X.
Based on our requirements, the form just needs to be filled, printed/saved. Therefore no data is required to be pulled or to be returned to SAP.
So then again, should the F suffice?
You need a licence if you use interactive forms in a production environment. You don't need a licence for a development/qa environment. As far as I know, a fillable form qualifies as interactive, regardless of the data pulled/returned from/to SAP. So, better to check it.
By the way... if you are not pulling any data from SAP onto your form, what's the point in using SAP to create it?
User | Count |
---|---|
68 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.