SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | SAPscript(BC-SRV-SCR) SAP BC

RSTXPDFT SAP ABAP Report - Test report for PDF conversion - converting standard texts to PDF







RSTXPDFT 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 RSTXPDFT 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 RSTXPDFT. "Basic submit
SUBMIT RSTXPDFT AND RETURN. "Return to original report after report execution complete
SUBMIT RSTXPDFT 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: TEXTNAME = Text Name
Selection Text: NUMLOOPS = Number of Runs
Selection Text: LIST_PDF = List PDF format
Selection Text: LIST_OTF = List OTF format
Selection Text: LANGUAGE = Text Language
Selection Text: ID = Text ID
Selection Text: DOWNLOAD = Download to PDF file
Title: Test report for PDF conversion - converting standard texts to PDF
Text Symbol: 024 = Message
Text Symbol: 023 = Download
Text Symbol: 022 = PDF Conversion
Text Symbol: 021 = Error
Text Symbol: 020 = ****************** PDF format *********************
Text Symbol: 019 = ****************** OTF format *********************
Text Symbol: 018 = CONVERT_OTF Error - Incorrect OTF Data
Text Symbol: 017 = The standard text specified does not exist
Text Symbol: 015 = Error when Downloading File
Text Symbol: 014 = GUI_DOWNLOAD successful in file
Text Symbol: 013 = CONVERT_OTF error - PDF conversion not possible
Text Symbol: 012 = CONVERT_OTF successful, file size
Text Symbol: 011 = Error at PRINT_TEXT, rc=
Text Symbol: 010 = Error at READ_TEXT, rc=
Text Symbol: 005 = Other parameters
Text Symbol: 004 = Adobe PDF format and PDF file download
Text Symbol: 003 = Control Parameters for List Output/Dwnld
Text Symbol: 002 = Param. for Standard Text
Text Symbol: 001 = Converting a SAPscript Standard Text to


INCLUDES used within this REPORT RSTXPDFT

INCLUDE RSTXDATA.


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:

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING LANGUAGE = LANGUAGE NAME = TEXTNAME OBJECT = 'TEXT' ID = ID IMPORTING HEADER = HEADER TABLES LINES = TEXTLINES EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

PRINT_TEXT CALL FUNCTION 'PRINT_TEXT' EXPORTING DEVICE = 'PRINTER' DIALOG = ' ' HEADER = HEADER OPTIONS = OPTIONS IMPORTING RESULT = RESULT TABLES LINES = TEXTLINES OTFDATA = OTF EXCEPTIONS CANCELED = 01 DEVICE = 02 FORM = 03 OPTIONS = 04 UNCLOSED = 05 UNKNOWN = 06 FORMAT = 07 TEXTFORMAT = 08 COMMUNICATION = 09.

CONVERT_OTF CALL FUNCTION 'CONVERT_OTF' EXPORTING FORMAT = 'PDF' IMPORTING BIN_FILESIZE = FILESIZE TABLES OTF = OTF LINES = LINES EXCEPTIONS ERR_CONV_NOT_POSSIBLE = 1 ERR_BAD_OTF = 2.

GET_TEXT_PRINT_PARAMETERS CALL FUNCTION 'GET_TEXT_PRINT_PARAMETERS' EXPORTING OPTIONS = OPTIONS FORMAT_ITF = ' ' NO_PRINT_BUTTONS = 'X' IMPORTING NEWOPTIONS = OPTIONS * PRINT_FORMAT = EXCEPTIONS CANCELED = 1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING BIN_FILESIZE = bin_filesize FILENAME = fullpath FILETYPE = mode * APPEND = ' ' * CODEPAGE = ' ' * NO_BYTEORDER_MARK = ' ' IMPORTING FILELENGTH = bin_filesize TABLES DATA_TAB = datatab * FORMAT_TAB = EXCEPTIONS FILE_WRITE_ERROR = 1 NO_BATCH = 2 GUI_REFUSE_FILETRANSFER = 3 INVALID_TYPE = 4 NO_AUTHORITY = 5 UNKNOWN_ERROR = 6.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING BIN_FILESIZE = bin_filesize FILENAME = fullpath FILETYPE = mode * APPEND = ' ' * CODEPAGE = ' ' * NO_BYTEORDER_MARK = ' ' * IMPORTING * FILELENGTH = c TABLES DATA_TAB = datatab * FORMAT_TAB = EXCEPTIONS FILE_WRITE_ERROR = 1 NO_BATCH = 2 GUI_REFUSE_FILETRANSFER = 3 INVALID_TYPE = 4 NO_AUTHORITY = 5 UNKNOWN_ERROR = 6.

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.

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.

SYSTEM_CODEPAGE CALL FUNCTION 'SYSTEM_CODEPAGE' IMPORTING * CODEPAGE = CURRENT_DYNAMIC_CODEPAGE = syscp.



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 RSTXPDFT or its description.