RSTXPDFT2 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 RSTXPDFT2 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: DOWNLOAD = Download PDF file
Selection Text: P_FILE = PDF file name
Selection Text: SPOOLNO = Spool request
Title: Test
Text Symbol: 007 = Conversion by batch job
Text Symbol: 006 = bytes downloaded into file
Text Symbol: 001 = Function CONVERT_OTFSPOOLJOB_2_PDF successful
Text Symbol: 002 = No OTF spool request found
Text Symbol: 003 = Spool request does not exist
Text Symbol: 004 = Not authorization to read spool request
Text Symbol: 005 = Error in function CONVERT_OTFSPOOLJOB_2_PDF
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
CONVERT_OTFSPOOLJOB_2_PDF CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF' EXPORTING SRC_SPOOLID = spoolno NO_DIALOG = ' ' * DST_DEVICE = * PDF_DESTINATION = IMPORTING PDF_BYTECOUNT = numbytes PDF_SPOOLID = pdfspoolid * OTF_PAGECOUNT = BTC_JOBNAME = jobname BTC_JOBCOUNT = jobcount TABLES PDF = pdf EXCEPTIONS ERR_NO_OTF_SPOOLJOB = 1 ERR_NO_SPOOLJOB = 2 ERR_NO_PERMISSION = 3 ERR_CONV_NOT_POSSIBLE = 4 ERR_BAD_DSTDEVICE = 5 USER_CANCELLED = 6 ERR_SPOOLERROR = 7 ERR_TEMSEERROR = 8 ERR_BTCJOB_OPEN_FAILED = 9 ERR_BTCJOB_SUBMIT_FAILED = 10 ERR_BTCJOB_CLOSE_FAILED = 11.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.