cancel
Showing results for 
Search instead for 
Did you mean: 

adobe form not saving user-input data into saved pdf file

0 Kudos
1,006

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

Accepted Solutions (1)

Accepted Solutions (1)

andrs_sarcevic
Contributor
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

Take help from Basis team to install Adobe usage credentials.

Regards,

Sanoosh

andrs_sarcevic
Contributor
0 Kudos

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.

0 Kudos

I figured out the answer! It' s quite weird but I just changed the value of the output parameter fillable = 'F'. as oppposed to my original value of fillable ='x'.

andrs_sarcevic
Contributor
0 Kudos

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.

0 Kudos

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?

andrs_sarcevic
Contributor
0 Kudos

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?

Answers (0)