SAP Reports / Programs | Production Planning and Control | Production Orders(PP-SFC) SAP PP

PPPRBTCP SAP ABAP Report - Batch Printing Shop Floor Papers with Parallel Processing







PPPRBTCP 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 PPPRBTCP 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 PPPRBTCP. "Basic submit
SUBMIT PPPRBTCP AND RETURN. "Return to original report after report execution complete
SUBMIT PPPRBTCP 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: TASKNUMB = Number of processes
Selection Text: WERKS = Plant
Title: Batch Printing Shop Floor Papers with Parallel Processing
Text Symbol: 001 = Number of printed orders:


INCLUDES used within this REPORT PPPRBTCP

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

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.

CO_DR_BATCH_PRINT_IN_NEW_TASK CALL FUNCTION 'CO_DR_BATCH_PRINT_IN_NEW_TASK' STARTING NEW TASK taskname DESTINATION IN GROUP DEFAULT PERFORMING return_msg ON END OF TASK EXPORTING flg_imported = flg_imported TABLES afbp_table = afbp_tabl order_table = order_tab protocol = lt_prot EXCEPTIONS resource_failure = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY





CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid is_layout = gt_layout it_fieldcat = gt_fieldcat i_save = gc_save it_events = gt_events i_suppress_empty_data = gc_x 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 = g_repid i_structure_name = is_sname 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_top_of_list.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_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 PPPRBTCP or its description.