Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Adobe forms

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

Former Member
replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question