SAP Reports / Programs

RPUOCB00 SAP ABAP Report - Subsequent Processes of Off-Cycle Activities







RPUOCB00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for If you have used the Off-Cycle Workbench to run payroll, to replace a payment or to reverse a payroll result, the system writes all the necessary result information in the Indicator Table for Off-Cycle Batch Processing (T52OCG)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RPUOCB00 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PC00_M07_XPM - Export/transf. to process model
PC00_M10_XPM - Export /transfer to process model
PUOCBA - Off-Cycle-Batch: Subsequent Activity


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 RPUOCB00. "Basic submit
SUBMIT RPUOCB00 AND RETURN. "Return to original report after report execution complete
SUBMIT RPUOCB00 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: ABKRS = D Payroll area
Selection Text: ADJ = Correction runs
Selection Text: BTCH_PAY = Subsequent program payroll run
Selection Text: BTCH_REP = Check replacement
Selection Text: BTCH_REV = Cancellation
Selection Text: MODELLID = D Process model
Selection Text: MOLGA = D Country grouping
Selection Text: NAM = Payroll results adjustments
Selection Text: PERNR = D Personnel number
Selection Text: REG = Regular payroll on-demand
Selection Text: SPC = Special runs
Selection Text: ZW_LAUFD = D Run date
Selection Text: ZW_LAUFI = D Identification
Title: Subsequent Processes of Off-Cycle Activities
Text Symbol: P05 = Period &1/&2, Payroll area &3, OC-batch Subs. programs
Text Symbol: P04 = Bonus date &1, PayId &2, OC-batch Subsequent programs
Text Symbol: P03 = Off-cycle batch, cancellation
Text Symbol: O03 = Reversal
Text Symbol: O02 = Check replcemnt
Text Symbol: O01 = Payroll
Text Symbol: 029 = Run date Identification feature Process
Text Symbol: 028 = Replacement
Text Symbol: 025 = Payroll results adjustment
Text Symbol: 024 = Correction
Text Symbol: 023 = Bonus run
Text Symbol: 022 = Pers.no.
Text Symbol: 021 = PArea Per Year PayTyp PayID PayDate Process
Text Symbol: 020 = Regular payroll runs
Text Symbol: 002 = Processing date
Text Symbol: 003 = Processing time
Text Symbol: 004 = User
Text Symbol: 006 = Payroll runs transferred to HR process model
Text Symbol: 007 = Payroll runs not processed
Text Symbol: 008 = No entries found for processing
Text Symbol: 009 = Run identifiers transferred to HR process model
Text Symbol: 010 = Unprocessed run IDs
Text Symbol: 011 = Reversed payroll runs transferred to HR process model
Text Symbol: 016 = Process &4 started: Bonus date &1, PayrollId &2





Text Symbol: 017 = Process &4 started: period &1/&2, payroll area &3
Text Symbol: 018 = Process &4 started: Correction run, date &1, payroll area &3
Text Symbol: 019 = Process &4 started: Pay results adjustment, date &1, PyArea &3
Text Symbol: P06 = Correction run &1, payroll area &3, OC-batch subsequent programs
Text Symbol: P07 = Payroll results adjustment &1, PArea &3, OC batch subs. programs
Text Symbol: P08 = Run date &1, Id.feature &2, OC-Batch Print check
Text Symbol: PF4 = Bonus date &1, PayId &2, Form printing
Text Symbol: PF5 = Periods &1/&2, PArea &3, Form Printing
Text Symbol: PF6 = Correction Run &1, PArea &3, Form Printing
Text Symbol: PF7 = Payresults adjustment &1, PArea &3, Form Printing
Text Symbol: PT1 = Regular payroll on-demand
Text Symbol: PT2 = Bonus accounting
Text Symbol: PT3 = Correction accounting
Text Symbol: PT4 = Payroll results adjustment
Text Symbol: S02 = Parameters for process model
Text Symbol: S03 = Further restrictions
Text Symbol: T01 = Batch processing type


INCLUDES used within this REPORT RPUOCB00

INCLUDE RPUOCPD0.
INCLUDE RPUOCPS0.


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:

HRPY_PROCESS_GET_VALUES CALL FUNCTION 'HRPY_PROCESS_GET_VALUES' EXPORTING imp_type = 'M' imp_aktiv = 'X' imp_mtype = 'OC' IMPORTING exp_model = modellid.

F4_ZAHLLAUF CALL FUNCTION 'F4_ZAHLLAUF' EXPORTING f1typ = 'D' f1nme = 'ZW_LAUFD' f2nme = 'ZW_LAUFI' IMPORTING laufd = zw_laufd laufi = zw_laufi TABLES laufk = f4_laufk.

F4_ZAHLLAUF CALL FUNCTION 'F4_ZAHLLAUF' EXPORTING f1typ = 'I' f1nme = 'ZW_LAUFI' f2nme = 'ZW_LAUFD' IMPORTING laufd = zw_laufd laufi = zw_laufi TABLES laufk = f4_laufk.

HRPY_PUST_CREATE_PROCESS CALL FUNCTION 'HRPY_PUST_CREATE_PROCESS' EXPORTING process_text = processtxt modellid = modellid creator_name = sy-uname IMPORTING processid = processid EXCEPTIONS creation_aborted = 1 creation_error = 2 process_text_missing = 3 unknown_model = 4 number_circle_does_not_exist = 5 model_must_be_active = 6 OTHERS = 7.

HRPY_PUST_SET_CONT_IN_SEL_PROG CALL FUNCTION 'HRPY_PUST_SET_CONT_IN_SEL_PROG' EXPORTING processid = processid TABLES container = container EXCEPTIONS no_process = 1 OTHERS = 2.

HRPY_PUST_FILL_ST CALL FUNCTION 'HRPY_PUST_FILL_ST' EXPORTING p_processid = processid p_modellid = modellid TABLES p_index = p_process-pernrs.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = progress_text.

HRCA_PAYMENT_DATA_CLOSE CALL FUNCTION 'HRCA_PAYMENT_DATA_CLOSE' EXPORTING i_laufd = p_process-laufd i_laufi = p_process-laufi EXCEPTIONS not_found = 1 invalid_status = 2 OTHERS = 3.

HRPY_PUST_CREATE_PROCESS CALL FUNCTION 'HRPY_PUST_CREATE_PROCESS' EXPORTING process_text = processtxt modellid = modellid creator_name = sy-uname IMPORTING processid = processid EXCEPTIONS creation_aborted = 1 creation_error = 2 process_text_missing = 3 unknown_model = 4 number_circle_does_not_exist = 5 model_must_be_active = 6 OTHERS = 7.






HRPY_PUST_SET_CONT_IN_SEL_PROG CALL FUNCTION 'HRPY_PUST_SET_CONT_IN_SEL_PROG' EXPORTING processid = processid TABLES container = container EXCEPTIONS no_process = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = progress_text.

HRPY_PUST_GET_PROCESS_STATUS CALL FUNCTION 'HRPY_PUST_GET_PROCESS_STATUS' EXPORTING p_processid = p_prev_proc IMPORTING p_status = proc_stat.

REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = gv_repid I_STRUCTURE_NAME = gc_rpuocb00_alv1 is_layout = is_layout it_fieldcat = it_fieldcat i_save = gc_save is_variant = gs_variant it_events = it_events TABLES t_outtab = gt_outtab_alv1 EXCEPTIONS program_error = 1 others = 2.

REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = gv_repid I_STRUCTURE_NAME = gc_rpuocb00_alv2 is_layout = is_layout it_fieldcat = it_fieldcat i_save = gc_save is_variant = gs_variant it_events = it_events TABLES t_outtab = gt_outtab_alv2 EXCEPTIONS program_error = 1 others = 2.

REUSE_ALV_EVENTS_GET call function 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 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_page.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = GV_REPID I_INTERNAL_TABNAME = GC_OUTTAB1 I_STRUCTURE_NAME = gc_rpuocb00_alv1 CHANGING CT_FIELDCAT = XT_FIELDCAT[] EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = GV_REPID I_INTERNAL_TABNAME = GC_OUTTAB2 I_STRUCTURE_NAME = gc_rpuocb00_alv2 CHANGING CT_FIELDCAT = XT_FIELDCAT[] EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.



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