on 09-19-2006 4:53 AM
Hi all,
I am using FP_JOB_OPEN FM to open a PDF form in EP.
But I am getting an error stating that "Define all the required parameters".
Please help me on this.
Regards,
Amit
Hi Amit
what are you trying to do? You need FP_JOB_OPEN and FP_JOB_CLOSE for printing, i.e. to start a spool job in ABAP. What kind of form do you want to display, an interactive one? In that case, working with the spool makes not a lot of sense.
Best regards,
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus,
I was trying to open a simple print form, previously I had not defined the connection field in SFPOUTPUTPARAMS
Now PDF is not giving any error. But nothng is coming up, neither the error nor the form.
This is the code I have written :
DATA : lv_fname TYPE funcname,
lt_ie_outputparams TYPE sfpoutputparams,
lt_pernr TYPE qisr_tab_type,
lt_ename TYPE qisr_tab_type,
ls_special_data LIKE LINE OF special_data,
ls_pernr LIKE LINE OF lt_pernr,
ls_ename LIKE LINE OF lt_ename.
DATA fp_docparams TYPE sfpdocparams .
DATA fp_formoutput TYPE fpformoutput .
DATA t_head TYPE thead .
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'Z_ISR_FORM_TEST1'
IMPORTING
e_funcname = lv_fname
E_INTERFACE_TYPE = .
lt_ie_outputparams-nodialog = 'X'.
lt_ie_outputparams-getpdf = 'X'.
lt_ie_outputparams-connection = 'ADS'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = lt_ie_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.
fp_docparams-langu = 'E'.
fp_docparams-country = 'GB'.
fp_docparams-fillable = ''.
fp_docparams-fillable = 'X'.
CALL FUNCTION lv_fname
EXPORTING
/1BCDWB/DOCPARAMS = fp_docparams
pernr = lt_pernr
ename = lt_ename
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.
Hello Amit,
lt_ie_outputparams-getpdf = 'X'.
This asks the system to render the form and send back a pdf that you will have to capture and continue whatever processes you have in mind. However, it also has the effect of stopping the creation of a spool. So, if you set this flag do not expect a spool.
IMPORTING
/1BCDWB/FORMOUTPUT = This is where you will capture the resulting pdf...
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.