cancel
Showing results for 
Search instead for 
Did you mean: 

adobe form not displaying through driver program

pashattec
Explorer
0 Kudos
265

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.
DATALV_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

pashattec_0-1707032837013.png

This form is not getting through driver program. Kindly please help me why it is not getting displayed through program.

 

Accepted Solutions (0)

Answers (0)