SAP Reports / Programs

FP_TEST_SAVE_PDF_TO_SPOOL SAP ABAP Report - Save Appended PDF to Spool Request







FP_TEST_SAVE_PDF_TO_SPOOL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter FP_TEST_SAVE_PDF_TO_SPOOL into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT FP_TEST_SAVE_PDF_TO_SPOOL. "Basic submit
SUBMIT FP_TEST_SAVE_PDF_TO_SPOOL AND RETURN. "Return to original report after report execution complete
SUBMIT FP_TEST_SAVE_PDF_TO_SPOOL VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: FPAGES = Number of Pages
Selection Text: PROG = Create PDF from Form
Selection Text: P_REPEAT = Retries
Selection Text: UPLOAD = Upload PDF
Selection Text: P_CONN = D .
Selection Text: S_CUSTID = D .
Title: Save Appended PDF to Spool Request


INCLUDES used within this REPORT FP_TEST_SAVE_PDF_TO_SPOOL

INCLUDE FP_UTILITIES. "#EC INCL_OK


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

FP_GET_PDF_TABLE CALL FUNCTION 'FP_GET_PDF_TABLE' IMPORTING e_pdf_table = lt_pdf_table.

ADS_CREATE_PDF_SPOOLJOB CALL FUNCTION 'ADS_CREATE_PDF_SPOOLJOB' EXPORTING dest = gs_outputparams-dest pages = total_pages pdf_data = content name = gs_outputparams-dataset suffix1 = gs_outputparams-suffix1 suffix2 = gs_outputparams-suffix2 copies = copies * PRIO = ps_op- immediate_print = gs_outputparams-reqimm auto_delete = gs_outputparams-reqdel titleline = gs_outputparams-covtitle receiver = gs_outputparams-receiver division = gs_outputparams-division authority = gs_outputparams-authority lifetime = lifetime IMPORTING spoolid = spoolid EXCEPTIONS no_data = 1 not_pdf = 2 wrong_devtype = 3 operation_failed = 4 cannot_write_file = 5 device_missing = 6 no_such_device = 7 OTHERS = 8.

FP_FUNCTION_MODULE_NAME CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING i_name = gc_form_1 IMPORTING e_funcname = gv_fm_name_1.

FP_JOB_OPEN CALL FUNCTION 'FP_JOB_OPEN' CHANGING ie_outputparams = gs_outputparams EXCEPTIONS cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 OTHERS = 5.

FP_JOB_CLOSE CALL FUNCTION 'FP_JOB_CLOSE' IMPORTING e_result = gs_joboutput EXCEPTIONS usage_error = 1 system_error = 2 internal_error = 3 OTHERS = 4.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = name filetype = filetype IMPORTING filelength = bin_filesize TABLES data_tab = datatab EXCEPTIONS file_open_error = 1 file_read_error = 2 invalid_type = 3 no_batch = 4 OTHERS = 5.

SCMS_BINARY_TO_XSTRING CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = bin_filesize * FIRST_LINE = 0 * LAST_LINE = 0 IMPORTING buffer = buffer TABLES binary_tab = datatab EXCEPTIONS failed = 1 OTHERS = 2.

FPCOMP_SHOW_DIALOG CALL FUNCTION 'FPCOMP_SHOW_DIALOG' CHANGING ie_outpar = ls_outpars EXCEPTIONS cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 OTHERS = 5.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name FP_TEST_SAVE_PDF_TO_SPOOL or its description.