on 09-03-2008 4:17 PM
Hi,
I'm trying to develop a program in abap that creates an adobe form, but i have the next problem.
The first time i executed the program everything was ok, and there was a message saying that a PDF file was created, but in the next executions the program seems to do nothing.
Can anyone help me?
here is the source code:
REPORT ZPRUEBA_PDF.
data:
data_tab type table of x255,
texto(20),
fm_name type rs38l_fnam,
fp_outputparams type sfpoutputparams,
fp_docparams type sfpdocparams,
fp_result type fpformoutput,
interface_type type fpinterfacetype.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
I_NAME = 'Z_PRUEBA_PDF'
IMPORTING
IMPORTING
E_FUNCNAME = fm_name
E_INTERFACE_TYPE = interface_type.
fp_outputparams-nodialog = 'X'.
fp_outputparams-GETPDF = 'X'.
texto = 'esto es una pqdwqrueba'.
call function 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
others = 5.
Set form language and country (->form locale)
fp_docparams-langu = 'E'.
fp_docparams-country = 'US'.
fp_docparams-FILLABLE = 'X'.
call function fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
Z_VNDBNK = texto
IMPORTING
/1BCDWB/FORMOUTPUT = fp_result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
call function 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
thanx
Hi,
Do not specify the foll:
fp_outputparams-nodialog = 'X'.
fp_outputparams-GETPDF = 'X'.
Now when u run the program, there will be a popup for printing the pdf
Put PDF1 as the device type and click on print preview, you will be able to see the pdf.
Regards,
Reema.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Reema,
First of all thanks for your answer, now I have the next problem. I've created the interface and the contexte associated to the interface. As you can see in the source code i posted. But when I call the function module that generates the form, the fp_result-PDF returns nothing.
It seems that the form is not being created. Can anyone help me?
Thanx.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.