PSPRBTCH 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 PSPRBTCH 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: WERKS = Plnt
Title: Printing lists in background (using print jobs)
Text Symbol: 001 = No. of printed networks:
INCLUDE LCOKOVAL.
No SAP DATABASE tables are accessed within this REPORT code!
STATUS_PRE_READ CALL FUNCTION 'STATUS_PRE_READ' TABLES JSTO_PRE_TAB = OBJECT_TAB.
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING COLLECT_AND_SEND = SPACE RESET = YX.
STATUS_CHANGE_FOR_ACTIVITY CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING CHECK_ONLY = YX OBJNR = ORDER_TAB-OBJNR VRGNG = DRUCKEN.
MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS A_MESSAGE = 01 E_MESSAGE = 02 W_MESSAGE = 03 I_MESSAGE = 04.
STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING OBJNR = ORDER_TAB-OBJNR STATUS = STK_DRU EXCEPTIONS OBJECT_NOT_FOUND = 01 STATUS_NOT_ACTIVE = 02.
CO_DR_PRINT_TABLES_CHECK CALL FUNCTION 'CO_DR_PRINT_TABLES_CHECK' EXPORTING AUART = ORDER_TAB-AUART DISPO = ORDER_TAB-DISPO TCODE = AFBP_TAB-TCODE UNAME = AFBP_TAB-BUSER WERKS = ORDER_TAB-WERKS EXCEPTIONS NOTHING_TO_PRINT = 01 NO_ENTRY_FOR_REPORT_T496R = 02 NO_ORDER_TYPE_ENTRY_T496B = 03 NO_TRANSACTION_ENTRY_T496T = 04 NO_USER_ENTRY_T496D = 05.
ENQUEUE_ESORDER CALL FUNCTION 'ENQUEUE_ESORDER' EXPORTING AUFNR = AFBP_TAB-AUFNR MANDT = SY-MANDT EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2.
DEQUEUE_ESORDER CALL FUNCTION 'DEQUEUE_ESORDER' EXPORTING AUFNR = AFBP_TAB-AUFNR.
STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING OBJNR = CAUFV_IMP-OBJNR STATUS = STK_DRU EXCEPTIONS OBJECT_NOT_FOUND = 01 STATUS_NOT_ACTIVE = 02.
CO_DR_GET_T496D_MIXED CALL FUNCTION 'CO_DR_GET_T496D_MIXED' EXPORTING PRINT_CO_IMP = PRT_TMP IMPORTING T496D_MIX_EXP = T496D_MIXED T496T_EXP = T496T_TMP.
CO_DR_GENERATE_PRINT_ORDERS CALL FUNCTION 'CO_DR_GENERATE_PRINT_ORDERS' EXPORTING PRINT_IMP = PRT_TMP T496D_IMP = T496D_MIXED TABLES PR_ORDER = PRINT_TAB.
CO_BT_DATA_RESET CALL FUNCTION 'CO_BT_DATA_RESET'.
CO_DB_ORDER_PRE_READ CALL FUNCTION 'CO_DB_ORDER_PRE_READ' EXPORTING TRTYP_IMP = 'V' TABLES ORD_PRE_IMP = ORD_PRE EXCEPTIONS NOT_FOUND = 01 RELEASE_NO_CHANGE = 02.
CO_IT_SET_FLG_ITAB_NEW CALL FUNCTION 'CO_IT_SET_FLG_ITAB_NEW'.
CO_DR_STATUS_UPDATE CALL FUNCTION 'CO_DR_STATUS_UPDATE' EXPORTING CAUFVD_IMP = CAUFVD PRINT_CO_IMP = PRT_TMP T496D_MIXED_IMP = T496D_MIXED.
CO_DR_EXEC_ORD_PRINT CALL FUNCTION 'CO_DR_EXEC_ORD_PRINT' EXPORTING FLG_CALLED = S TABLES LST_TAB = PRINT_TAB EXCEPTIONS ERROR_STAT_UPD = 01.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.