SAP HR_OC_REPLACE_ACTIONS_U Function Module for









HR_OC_REPLACE_ACTIONS_U is a standard hr oc replace actions u SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for hr oc replace actions u FM, simply by entering the name HR_OC_REPLACE_ACTIONS_U into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPAY99_OC
Program Name: SAPLHRPAY99_OC
Main Program: SAPLHRPAY99_OC
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_OC_REPLACE_ACTIONS_U pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'HR_OC_REPLACE_ACTIONS_U'"
EXPORTING
SWITCH_ONLINE_PRINT = "
CHECK_DATE = "
SW_MANUAL_CHECK = "
MAN_CHECKNUMBER = "
P_SEQNR = "

TABLES
EMPLOYEES = "
P_MULTIPLE_CHECKS = "
P_PAYROLL_RESULTS = "

EXCEPTIONS
ERROR_UPDATING_PAY_RESULT = 1 PROCESSING_CANCEL = 10 ERROR_READING_DTC_VARIANT = 2 ERROR_RPCDTCU0 = 3 ERROR_INSERT_T52OCL = 4 ERROR_READING_RFF_VARIANT = 5 ERROR_NO_ENTRY_IN_PAYR = 6 ERROR_OPEN_REGUV_NOT_POSSIBLE = 7 INSERT_T52OCP4_FAILED = 8 NO_CHECK_BUCKET_FOUND = 9
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLHRPAY99_OC_001 HR Off-Cycle: Customer Enhancement for Bonus Date

IMPORTING Parameters details for HR_OC_REPLACE_ACTIONS_U

SWITCH_ONLINE_PRINT -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

CHECK_DATE -

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

SW_MANUAL_CHECK -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

MAN_CHECKNUMBER -

Data type: PAYR_FI-CHECT
Optional: No
Call by Reference: Yes

P_SEQNR -

Data type: PC261-SEQNR
Optional: No
Call by Reference: Yes

TABLES Parameters details for HR_OC_REPLACE_ACTIONS_U

EMPLOYEES -

Data type: HROCT_EE_TABLE
Optional: No
Call by Reference: No ( called with pass by value option)

P_MULTIPLE_CHECKS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

P_PAYROLL_RESULTS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR_UPDATING_PAY_RESULT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PROCESSING_CANCEL -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_READING_DTC_VARIANT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_RPCDTCU0 -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_INSERT_T52OCL -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_READING_RFF_VARIANT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_NO_ENTRY_IN_PAYR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_OPEN_REGUV_NOT_POSSIBLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INSERT_T52OCP4_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_CHECK_BUCKET_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HR_OC_REPLACE_ACTIONS_U Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_employees  TYPE STANDARD TABLE OF HROCT_EE_TABLE, "   
lv_switch_online_print  TYPE C, "   
lv_error_updating_pay_result  TYPE C, "   
lv_processing_cancel  TYPE C, "   
lv_check_date  TYPE SY-DATUM, "   
lt_p_multiple_checks  TYPE STANDARD TABLE OF SY, "   
lv_error_reading_dtc_variant  TYPE SY, "   
lv_error_rpcdtcu0  TYPE SY, "   
lv_sw_manual_check  TYPE C, "   
lt_p_payroll_results  TYPE STANDARD TABLE OF C, "   
lv_man_checknumber  TYPE PAYR_FI-CHECT, "   
lv_error_insert_t52ocl  TYPE PAYR_FI, "   
lv_p_seqnr  TYPE PC261-SEQNR, "   
lv_error_reading_rff_variant  TYPE PC261, "   
lv_error_no_entry_in_payr  TYPE PC261, "   
lv_error_open_reguv_not_possible  TYPE PC261, "   
lv_insert_t52ocp4_failed  TYPE PC261, "   
lv_no_check_bucket_found  TYPE PC261. "   

  CALL FUNCTION 'HR_OC_REPLACE_ACTIONS_U'  "
    EXPORTING
         SWITCH_ONLINE_PRINT = lv_switch_online_print
         CHECK_DATE = lv_check_date
         SW_MANUAL_CHECK = lv_sw_manual_check
         MAN_CHECKNUMBER = lv_man_checknumber
         P_SEQNR = lv_p_seqnr
    TABLES
         EMPLOYEES = lt_employees
         P_MULTIPLE_CHECKS = lt_p_multiple_checks
         P_PAYROLL_RESULTS = lt_p_payroll_results
    EXCEPTIONS
        ERROR_UPDATING_PAY_RESULT = 1
        PROCESSING_CANCEL = 10
        ERROR_READING_DTC_VARIANT = 2
        ERROR_RPCDTCU0 = 3
        ERROR_INSERT_T52OCL = 4
        ERROR_READING_RFF_VARIANT = 5
        ERROR_NO_ENTRY_IN_PAYR = 6
        ERROR_OPEN_REGUV_NOT_POSSIBLE = 7
        INSERT_T52OCP4_FAILED = 8
        NO_CHECK_BUCKET_FOUND = 9
. " HR_OC_REPLACE_ACTIONS_U




ABAP code using 7.40 inline data declarations to call FM HR_OC_REPLACE_ACTIONS_U

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_check_date).
 
 
 
 
 
 
"SELECT single CHECT FROM PAYR_FI INTO @DATA(ld_man_checknumber).
 
 
"SELECT single SEQNR FROM PC261 INTO @DATA(ld_p_seqnr).
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!