Skip to Content
avatar image
Former Member

Adobe print form

Hi

Can someone please give me a step by step example on how to make a print form with Adobe (transaction SFP). I have installed Adobe Designer. There is a lot of threads on this but none of them show a step by step example from the beginning to the end.

Please help me to do the following.

1) Step by step example, something simple just to start with, get data from a common table in SAP, customer master file maybe.

2) An example where you show how to get the data, the interface, then in the designer hot to pull through the data to use on the form.

3) Program to display the form.

4) Do not point me to other threads. Show me in this thread.

If you can show me the above and it works you got full points.

Thanks in advance 😉

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 25, 2007 at 07:02 AM

    Source code for Adobe print form taken from code samples...

    &----


    2 *& Report Z_SDN_ADOBE_1

    3 *&

    4 &----


    5 *&

    6 *&

    7 &----


    8

    9 report z_sdn_adobe_1.

    10

    11 parameter: i_carrid type sflight-carrid obligatory.

    12 parameter: i_down type c as checkbox.

    13 type-pools: abap.

    14

    15 start-of-selection.

    16 data: ie_outputparams type sfpoutputparams.

    17 if i_down = abap_true.

    18 ie_outputparams-getpdf = 'X'.

    19 endif.

    20 call function 'FP_JOB_OPEN'

    21 changing

    22 ie_outputparams = ie_outputparams.

    23

    24 try.

    25 data: i_name type fpname,

    26 i_funcname type funcname.

    27 i_name = 'ZZ_SFLIGHT'.

    28 call function 'FP_FUNCTION_MODULE_NAME'

    29 exporting

    30 i_name = i_name

    31 importing

    32 e_funcname = i_funcname.

    33 catch cx_fp_api_repository.

    34 catch cx_fp_api_usage.

    35 catch cx_fp_api_internal.

    36 endtry.

    37

    38 data: isflight type zsflight_with_icon_data_tbl.

    39 isflight = zcl_adobe_fill_sflight=>get_data( i_carrid = i_carrid ).

    40

    41 data: fp_docparams type sfpdocparams.

    42 data: fp_formoutput type fpformoutput.

    43

    44 call function i_funcname

    45 exporting

    46 /1bcdwb/docparams = fp_docparams

    47 sflight = isflight

    48 importing

    49 /1bcdwb/formoutput = fp_formoutput

    50 exceptions

    51 usage_error = 1

    52 system_error = 2

    53 internal_error = 3.

    54

    55

    56 call function 'FP_JOB_CLOSE'

    57 exceptions

    58 usage_error = 1

    59 system_error = 2

    60 internal_error = 3

    61 others = 4.

    62

    63 if i_down = abap_true.

    64 data: filename type string,

    65 path type string,

    66 fullpath type string,

    67 default_extension type string value 'PDF'.

    68 cl_gui_frontend_services=>file_save_dialog(

    69 exporting

    70 default_extension = default_extension

    71 changing

    Page : 2 / 2

    File : C DownloadZ_SDN_ADOBE_1.abap. Date: 09.05.2006

    72 filename = filename

    73 path = path

    74 fullpath = fullpath ).

    75 check fullpath is not initial.

    76

    77 data: data_tab type table of x255.

    78

    79 call function 'SCMS_XSTRING_TO_BINARY'

    80 exporting

    81 buffer = fp_formoutput-pdf

    82 tables

    83 binary_tab = data_tab.

    84

    85 cl_gui_frontend_services=>gui_download(

    86 exporting

    87 filename = filename

    88 filetype = 'BIN'

    89 changing

    90 data_tab = data_tab ).

    91 cl_gui_frontend_services=>execute(

    92 exporting

    93 document = filename ).

    94

    95

    96 endif.

    Regards,

    SaiRam

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      This does not help, the tables that SAP uses in all there examples (the flights one) is blank.