on 08-03-2010 1:01 PM
Hi Experts,
I am calling a adobe form from a BAPI.I am using the following function modules FP_FUNCTION_MODULE_NAME and CALL FUNCTION fun_name. But when I try to execute the BAPI a print preview pop-up appears.Please let me know the steps to avoid the print preview pop-up while execution of the BAPI.
Thanks in Advance.
Warm Regards,
Arun.
before calling the function FP_JOB_OPEN, set the output parameters something like:
.
..
gs_outputpar type sfpoutputparams,
..
..
gs_outputpar-nodialog = abap_true.
gs_outputpar-getpdf = abap_true.
call function 'FP_JOB_OPEN'
changing
ie_outputparams = gs_outputpar
exceptions
cancel = 1
.
.
....
or you can refer the doc
in this tutorial, see page 7.
regards,
BJagdishwar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for you quick responses.
But when I use * CALL FUNCTION 'FP_JOB_OPEN'* the form output parameter /1bcdwb/formoutput of the funtion module CALL FUNCTION Fun_name is initial.It does not have any XSTRING values.
When I am not using the function module 'FP_JOB_OPEN' and execute the BAPI,I have xstring values in the output parameter /1bcdwb/formoutput .
Is this issue becase of enabling of RFC in BAPI.Please let me know your suggestions on this.
Warm Regards,
Arun
Hello
I don´t understand the connection between BAPI and the printing program. I guess - at least that is what I have done - is to generate the form when creating and invoice or something, then I could understand.
When you ask for GETPDF = 'X' then you always get the PDF data back and not the popup.
Or if you would like to display the print preview without a print settings popup. Or variants...
FUNCTION ZPDF_SET_OUTPUT_MODE.
*"----------------------------------------------------------------------
*"*"Lokální rozhraní:
*" CHANGING
*" VALUE(FP_OUTPUTPARAMS) TYPE SFPOUTPUTPARAMS
*"----------------------------------------------------------------------
fp_outputparams-dest = 'ZPDF'.
fp_outputparams-nodialog = 'X'.
fp_outputparams-preview = 'X'.
ENDFUNCTION.
regards Otto
Hi,
When I ecexute the BAPI(Which generates a Adobe Form) in SE37 I get usage error and sy-subrc =1 while calling the generated function module for adobe form name( CALL FUNCTION generated_adobe_name ) and hence no values are populated in the function module output parameter /1bcdwb/formoutput.
Warm Regrads,
Arun
Hello Arun,
You have to call the FM "FP_JOB_OPEN" to set the required parameters then call your form .
Refer report "FP_TEST_IA_01".
Thanks & Regards,
Omkar Mirvankar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.