Posted: Mon Sep 17, 2007 6:42 pm Post subject: Spools
RSPO_RID_SPOOLREQ_DISP - Displays spool(s) contents on screen Input: Spool ID list.
RSPO_ISELECT_TSP01 - Spool Information Input: Spool ID
Output: Spool Info (Structure TSP01SYS)
RSPO_IRETURN_RAW_DATA - Input: Spool Info (Structure TSP01SYS)
Output: Raw data table (text with some format codes) The raw data contains format codes and therefore cannot be used in WRITE statement (in some cases). To display ABAP spool can be used two function modules below. How to write SAPscript spool - example can be found in SAP utility FM RSPO_ROUTPUT_JOB, which prints spool(s).
RSPO_SPOOLDATA_WRITE_INIT - Should be called before using next function module
RSPO_SPOOLDATA_WRITE - Just write line. Input: Raw data table line
RSPO_RETURN_SPOOLJOB - Return spool data in text [or PDF format]:
Input: Spool #; Desired Type for output (RAW - text data ready to be printed, PDF - can be used only for OTF spools)
Output: text table (line length = 255), [table for PDF data]
RSPO_DISPLAY_SPOOLJOB - Input: Spool #
RSPO_RETURN_ABAP_SPOOLJOB - Output: text table ready to be printed
RSPO_GET_TYPE_SPOOLJOB - Output: IS_OTF='X'|' '
RSPO_DOWNLOAD_SPOOLJOB - Input: Spool # and File name.
Just calls consecutively RSPO_RETURN_SPOOLJOB and WS_DOWNLOAD
FORMAT_MESSAGE - Takes a message id and number, and puts it into a variable. Works better than WRITE_MESSAGE, since some messages use $ as a place holder, and WRITE_MESSAGE does not accommadate that, it only replaces the ampersands (&) in the message.
RS_SEND_MAIL_FOR_SPOOLLIST - Send message from ABAP/4 program to SAPoffice.
SO_SPOOL_READ - Fetch printer spool according to the spool number informed. See also RSPO_RETURN_ABAP_SPOOLJOB
SO_WIND_SPOOL_LIST - Browse printer spool numbers according to user informed.
DATA: BEGIN OF i_mara OCCURS 0,
matnr LIKE mara-matnr,
END OF i_mara.
DATA: v_dest LIKE tsp01-rqdest,
v_handle LIKE sy-tabix,
v_spool_id LIKE tsp01-rqident,
v_rc TYPE c,
v_errmessage(100) TYPE c,
v_text(70) TYPE c.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.