on 2024 Feb 04 9:28 AM
Hi, Gurus,
I am working on displaying adobe form. I have written the code in the driver program . There is no syntax error as I can see sy-subrc = 0 till the end. When I directly open the smartform , I can able to execute it but through the driver program it is not working.
data : wa_outparams type SFPOUTPUTPARAMS.
DATA: LV_FNAME type FUNCNAME.
data : lv_result type FPFORMOUTPUT.
data : SFPDOCPARAMS type SFPDOCPARAMS.
data : /1BCDWB/FORMOUTPUT type FPFORMOUTPUT.
data : lv_result1 type SFPJOBOUTPUT.
wa_outparams-nodialog = 'X'.
wa_outparams-nopreview = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = wa_outparams
EXCEPTIONS
CANCEL = 1
USAGE_ERROR = 2
SYSTEM_ERROR = 3
INTERNAL_ERROR = 4
OTHERS = 5
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZMATERIAL_EXP_QA_CHECK'
IMPORTING
E_FUNCNAME = LV_FNAME
* E_INTERFACE_TYPE =
* EV_FUNCNAME_INBOUND =
.
*CALL FUNCTION '/1BCDWB/SM00000014'
CALL FUNCTION LV_FNAME
EXPORTING
/1BCDWB/DOCPARAMS = SFPDOCPARAMS
WA_HEAD = wa_head
IMPORTING
/1BCDWB/FORMOUTPUT = /1BCDWB/FORMOUTPUT
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3
OTHERS = 4
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
E_RESULT = lv_result1
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3
OTHERS = 4
.
*IF sy-subrc <> 0.
* Implement suitable error handling here
*ENDIF.
ENDFORM.
when I execute through SFP, it is getting displayed
This form is not getting through driver program. Kindly please help me why it is not getting displayed through program.
Request clarification before answering.
User | Count |
---|---|
58 | |
8 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.