SAP HR_CH_OLREP Function Module for
HR_CH_OLREP is a standard hr ch olrep 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 ch olrep FM, simply by entering the name HR_CH_OLREP into the relevant SAP transaction such as SE37 or SE38.
Function Group: RPCH
Program Name: SAPLRPCH
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_CH_OLREP 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_CH_OLREP'".
EXPORTING
* MOLGA = '02' "
* CALCN = ' ' "
* KASSE = "
* APPLI = 'PK' "
* PERNR = "
PPLAN = "
* VALTY = "
REFDA = "
CB_PROGRAM = "
CB_FORM = "
* NCOLS = 2 "
IMPORTING
SEL_VALTY = "
SEL_VALUE = "
TABLES
* P_I5CBP = "
IMPORTING Parameters details for HR_CH_OLREP
MOLGA -
Data type: T5CBY-MOLGADefault: '02'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALCN -
Data type: P02_CALCNDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
KASSE -
Data type: T5CP0-KASSEOptional: Yes
Call by Reference: No ( called with pass by value option)
APPLI -
Data type: T5CBY-APPLIDefault: 'PK'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PERNR -
Data type: P0001-PERNROptional: Yes
Call by Reference: No ( called with pass by value option)
PPLAN -
Data type: T5CA4-PPLANOptional: No
Call by Reference: No ( called with pass by value option)
VALTY -
Data type: T5CA2-VALTYOptional: Yes
Call by Reference: No ( called with pass by value option)
REFDA -
Data type: DOptional: No
Call by Reference: No ( called with pass by value option)
CB_PROGRAM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CB_FORM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NCOLS -
Data type: IDefault: 2
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_CH_OLREP
SEL_VALTY -
Data type: T5CA2-VALTYOptional: No
Call by Reference: No ( called with pass by value option)
SEL_VALUE -
Data type: T5CAD-VALUEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_CH_OLREP
P_I5CBP -
Data type: T5CBPOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_CH_OLREP 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: | ||||
| lv_molga | TYPE T5CBY-MOLGA, " '02' | |||
| lt_p_i5cbp | TYPE STANDARD TABLE OF T5CBP, " | |||
| lv_sel_valty | TYPE T5CA2-VALTY, " | |||
| lv_calcn | TYPE P02_CALCN, " ' ' | |||
| lv_kasse | TYPE T5CP0-KASSE, " | |||
| lv_appli | TYPE T5CBY-APPLI, " 'PK' | |||
| lv_sel_value | TYPE T5CAD-VALUE, " | |||
| lv_pernr | TYPE P0001-PERNR, " | |||
| lv_pplan | TYPE T5CA4-PPLAN, " | |||
| lv_valty | TYPE T5CA2-VALTY, " | |||
| lv_refda | TYPE D, " | |||
| lv_cb_program | TYPE D, " | |||
| lv_cb_form | TYPE D, " | |||
| lv_ncols | TYPE I. " 2 |
|   CALL FUNCTION 'HR_CH_OLREP' " |
| EXPORTING | ||
| MOLGA | = lv_molga | |
| CALCN | = lv_calcn | |
| KASSE | = lv_kasse | |
| APPLI | = lv_appli | |
| PERNR | = lv_pernr | |
| PPLAN | = lv_pplan | |
| VALTY | = lv_valty | |
| REFDA | = lv_refda | |
| CB_PROGRAM | = lv_cb_program | |
| CB_FORM | = lv_cb_form | |
| NCOLS | = lv_ncols | |
| IMPORTING | ||
| SEL_VALTY | = lv_sel_valty | |
| SEL_VALUE | = lv_sel_value | |
| TABLES | ||
| P_I5CBP | = lt_p_i5cbp | |
| . " HR_CH_OLREP | ||
ABAP code using 7.40 inline data declarations to call FM HR_CH_OLREP
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 MOLGA FROM T5CBY INTO @DATA(ld_molga). | ||||
| DATA(ld_molga) | = '02'. | |||
| "SELECT single VALTY FROM T5CA2 INTO @DATA(ld_sel_valty). | ||||
| DATA(ld_calcn) | = ' '. | |||
| "SELECT single KASSE FROM T5CP0 INTO @DATA(ld_kasse). | ||||
| "SELECT single APPLI FROM T5CBY INTO @DATA(ld_appli). | ||||
| DATA(ld_appli) | = 'PK'. | |||
| "SELECT single VALUE FROM T5CAD INTO @DATA(ld_sel_value). | ||||
| "SELECT single PERNR FROM P0001 INTO @DATA(ld_pernr). | ||||
| "SELECT single PPLAN FROM T5CA4 INTO @DATA(ld_pplan). | ||||
| "SELECT single VALTY FROM T5CA2 INTO @DATA(ld_valty). | ||||
| DATA(ld_ncols) | = 2. | |||
Search for further information about these or an SAP related objects