on 07-28-2008 2:00 PM
hi friends,
iam calling the adobe form from se38.
in my adobe forms there are one import froms and some text elements and one subform,in that subform there is one table.
i had inserted the data into the table.
when i executed the form in SFP transaction code the out put is coming.
but when i executed the same form from se38 iam not getting the table.
iam getting the text element and the input parameters.
how to get the table data in the PDF output when we executed the form by se38.
Hi,
You have to call FM FP_JOB_OPEN and FP_JOB_CLOSE before and after you are calling PDF form.
Check this code below.
* Determine PDF function module for CMR Belgium
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = l_formname
IMPORTING
e_funcname = l_fm_name.
* E_INTERFACE_TYPE =
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN OTHERS.
ENDCASE. " CASE sy-subrc
ENDIF.
* Calling Function module
CALL FUNCTION l_fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
vbeln = p_vbeln
itemdetails = it_item_data
* IMPORTING
* /1BCDWB/FORMOUTPUT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4 .
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN OTHERS.
ENDCASE. " CASE sy-subrc
ENDIF. " IF sy-subrc <> 0.
*Close spool job
CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
* E_RESULT = result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4
.
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN OTHERS.
ENDCASE. " CASE sy-subrc
ENDIF. " IF sy-subrc <> 0.
Thanks,
Phani Diwakar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this ...
DATA: gs_outputparams TYPE sfpoutputparams.
DATA: gv_fm_name TYPE rs38l_fnam.
DATA: zdocparams TYPE sfpdocparams.
DATA: MY_OUTPUT TYPE FPFORMOUTPUT.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZFORM_NAME'
IMPORTING
e_funcname = gv_fm_name.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_outputparams
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION gv_fm_name
EXPORTING
/1bcdwb/docparams = zdocparams
IMPORTING
/1bcdwb/formoutput = my_output
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
CALL FUNCTION 'FP_JOB_CLOSE'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.