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