SAP Reports / Programs

PPPRBTCH SAP ABAP Report - Printing Lists in Background







PPPRBTCH 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 PPPRBTCH 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 PPPRBTCH. "Basic submit
SUBMIT PPPRBTCH AND RETURN. "Return to original report after report execution complete
SUBMIT PPPRBTCH 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: WERKS = Plant
Title: Printing Lists in Background
Text Symbol: 001 = Number of printed orders:


INCLUDES used within this REPORT PPPRBTCH

INCLUDE LCOKOVAL.


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:

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 = activity.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS a_message = 01 e_message = 02 w_message = 03 i_message = 04.

CO_DR_PRINT_TABLES_CHECK CALL FUNCTION 'CO_DR_PRINT_TABLES_CHECK' EXPORTING auart = ls_order-auart dispo = ls_order-dispo tcode = afbp_tab-tcode uname = afbp_tab-buser werks = ls_order-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.

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 = caufv_imp-objnr vrgng = drucken.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS a_message = 01 e_message = 02 w_message = 03 i_message = 04.

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_IT_SET_FLG_ITAB_NEW CALL FUNCTION 'CO_IT_SET_FLG_ITAB_NEW'.

STATUS_BUFFER_REFRESH CALL FUNCTION 'STATUS_BUFFER_REFRESH'.

CTMS_CONFIGURATION_INITIALIZER CALL FUNCTION 'CTMS_CONFIGURATION_INITIALIZER'.

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 flg_reset = yx caufvd_imp = caufvd print_co_imp = prt_tmp t496d_mixed_imp = t496d_mixed EXCEPTIONS error_status_update = 01.

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.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid it_fieldcat = gt_fieldcat i_save = gc_save it_events = gt_events is_layout = gs_layout i_suppress_empty_data = gc_true TABLES t_outtab = gt_output_prot EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = gc_struct CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' IMPORTING et_events = xt_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_list.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_end_of_list.



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