SAP RH_CUT_INFTY Function Module for Delimit an Infotype (Other than Time Constraint 0/1)
RH_CUT_INFTY is a standard rh cut infty SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Delimit an Infotype (Other than Time Constraint 0/1) processing and below is the pattern details for this FM, 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 rh cut infty FM, simply by entering the name RH_CUT_INFTY into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHAP
Program Name: SAPLRHAP
Main Program: SAPLRHAP
Appliation area: H
Release date: 02-Sep-1999
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_CUT_INFTY 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 'RH_CUT_INFTY'"Delimit an Infotype (Other than Time Constraint 0/1).
EXPORTING
* LOAD = 'X' "Switch: Load all Infotypes into Buffer
* KEEP_LUPD = "Retain Last Changed By/On
* WORKF_ACTV = 'X' "Workflow Switch Active
GDATE = "Delimitation date
HISTO = "Historical Record Flag
* DEL_SUCC = ' ' "Switch: delimit/delete successor of time constraint 2
VTASK = "Update (B=Buffer,D=Online,V=Update,S=Sync)
* ORDER_FLG = 'X' "Switch: Take Record Sequence Into Account
* COMMIT_FLG = 'X' "Switch with COMMIT
* AUTHY = 'X' "Authorization Check Switch
* PPPAR_IMP = "Import Structure PPPAR
TABLES
INNNN = "Table of Infotype Records
* ILFCODE = "Table of Logical Function Codes
EXCEPTIONS
ERROR_DURING_CUT = 1 NO_AUTHORIZATION = 2 GDATE_BEFORE_BEGDA = 3 CUT_OF_TIMCO_ONE = 4 CORR_EXIT = 5
IMPORTING Parameters details for RH_CUT_INFTY
LOAD - Switch: Load all Infotypes into Buffer
Data type: HRRHAP-LOADDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEEP_LUPD - Retain Last Changed By/On
Data type: HRRHAP-KEEP_LUPDOptional: Yes
Call by Reference: No ( called with pass by value option)
WORKF_ACTV - Workflow Switch Active
Data type: HRRHAP-WORKF_ACTVDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GDATE - Delimitation date
Data type: HRRHAP-GDATEOptional: No
Call by Reference: No ( called with pass by value option)
HISTO - Historical Record Flag
Data type: HRRHAP-HISTOOptional: No
Call by Reference: No ( called with pass by value option)
DEL_SUCC - Switch: delimit/delete successor of time constraint 2
Data type: HRRHAP-DEL_SUCCDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VTASK - Update (B=Buffer,D=Online,V=Update,S=Sync)
Data type: HRRHAP-VTASKOptional: No
Call by Reference: No ( called with pass by value option)
ORDER_FLG - Switch: Take Record Sequence Into Account
Data type: HRRHAP-ORDER_FLGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMIT_FLG - Switch with COMMIT
Data type: HRRHAP-COMMIT_FLGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUTHY - Authorization Check Switch
Data type: HRRHAP-AUTHYDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PPPAR_IMP - Import Structure PPPAR
Data type: PPPAROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_CUT_INFTY
INNNN - Table of Infotype Records
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ILFCODE - Table of Logical Function Codes
Data type: ILFCODOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_DURING_CUT - Error while delimiting
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORIZATION - No authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GDATE_BEFORE_BEGDA - Delimitation Date is Before Start Date
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CUT_OF_TIMCO_ONE - Time constraint 1 cannot be delimited.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CORR_EXIT - Error/Termination While Assigning Correction Number
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_CUT_INFTY 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_load | TYPE HRRHAP-LOAD, " 'X' | |||
| lt_innnn | TYPE STANDARD TABLE OF HRRHAP, " | |||
| lv_error_during_cut | TYPE HRRHAP, " | |||
| lv_keep_lupd | TYPE HRRHAP-KEEP_LUPD, " | |||
| lv_workf_actv | TYPE HRRHAP-WORKF_ACTV, " 'X' | |||
| lv_gdate | TYPE HRRHAP-GDATE, " | |||
| lt_ilfcode | TYPE STANDARD TABLE OF ILFCOD, " | |||
| lv_no_authorization | TYPE ILFCOD, " | |||
| lv_histo | TYPE HRRHAP-HISTO, " | |||
| lv_gdate_before_begda | TYPE HRRHAP, " | |||
| lv_del_succ | TYPE HRRHAP-DEL_SUCC, " SPACE | |||
| lv_cut_of_timco_one | TYPE HRRHAP, " | |||
| lv_vtask | TYPE HRRHAP-VTASK, " | |||
| lv_corr_exit | TYPE HRRHAP, " | |||
| lv_order_flg | TYPE HRRHAP-ORDER_FLG, " 'X' | |||
| lv_commit_flg | TYPE HRRHAP-COMMIT_FLG, " 'X' | |||
| lv_authy | TYPE HRRHAP-AUTHY, " 'X' | |||
| lv_pppar_imp | TYPE PPPAR. " |
|   CALL FUNCTION 'RH_CUT_INFTY' "Delimit an Infotype (Other than Time Constraint 0/1) |
| EXPORTING | ||
| LOAD | = lv_load | |
| KEEP_LUPD | = lv_keep_lupd | |
| WORKF_ACTV | = lv_workf_actv | |
| GDATE | = lv_gdate | |
| HISTO | = lv_histo | |
| DEL_SUCC | = lv_del_succ | |
| VTASK | = lv_vtask | |
| ORDER_FLG | = lv_order_flg | |
| COMMIT_FLG | = lv_commit_flg | |
| AUTHY | = lv_authy | |
| PPPAR_IMP | = lv_pppar_imp | |
| TABLES | ||
| INNNN | = lt_innnn | |
| ILFCODE | = lt_ilfcode | |
| EXCEPTIONS | ||
| ERROR_DURING_CUT = 1 | ||
| NO_AUTHORIZATION = 2 | ||
| GDATE_BEFORE_BEGDA = 3 | ||
| CUT_OF_TIMCO_ONE = 4 | ||
| CORR_EXIT = 5 | ||
| . " RH_CUT_INFTY | ||
ABAP code using 7.40 inline data declarations to call FM RH_CUT_INFTY
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 LOAD FROM HRRHAP INTO @DATA(ld_load). | ||||
| DATA(ld_load) | = 'X'. | |||
| "SELECT single KEEP_LUPD FROM HRRHAP INTO @DATA(ld_keep_lupd). | ||||
| "SELECT single WORKF_ACTV FROM HRRHAP INTO @DATA(ld_workf_actv). | ||||
| DATA(ld_workf_actv) | = 'X'. | |||
| "SELECT single GDATE FROM HRRHAP INTO @DATA(ld_gdate). | ||||
| "SELECT single HISTO FROM HRRHAP INTO @DATA(ld_histo). | ||||
| "SELECT single DEL_SUCC FROM HRRHAP INTO @DATA(ld_del_succ). | ||||
| DATA(ld_del_succ) | = ' '. | |||
| "SELECT single VTASK FROM HRRHAP INTO @DATA(ld_vtask). | ||||
| "SELECT single ORDER_FLG FROM HRRHAP INTO @DATA(ld_order_flg). | ||||
| DATA(ld_order_flg) | = 'X'. | |||
| "SELECT single COMMIT_FLG FROM HRRHAP INTO @DATA(ld_commit_flg). | ||||
| DATA(ld_commit_flg) | = 'X'. | |||
| "SELECT single AUTHY FROM HRRHAP INTO @DATA(ld_authy). | ||||
| DATA(ld_authy) | = 'X'. | |||
Search for further information about these or an SAP related objects