Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 03, 2008 at 07:57 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded