SAP KL_UTILSII_DATA_FOR_RESERVE Function Module for All Relevant Data for Reservations
KL_UTILSII_DATA_FOR_RESERVE is a standard kl utilsii data for reserve SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for All Relevant Data for Reservations 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 kl utilsii data for reserve FM, simply by entering the name KL_UTILSII_DATA_FOR_RESERVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: KLUTILSII
Program Name: SAPLKLUTILSII
Main Program: SAPLKLUTILSII
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function KL_UTILSII_DATA_FOR_RESERVE 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 'KL_UTILSII_DATA_FOR_RESERVE'"All Relevant Data for Reservations.
EXPORTING
* I_IT_EV = "Table of Determination Procedures
I_ARR = "Default Risk Rule
* I_COMPACT = "Active Components
IMPORTING
E_RESERVE_DATA = "
EXCEPTIONS
NO_EV_FOUND = 1 NO_VAR_FOUND = 2 NO_VARREGID_FOUND = 3 NO_VALID_DATA = 4
IMPORTING Parameters details for KL_UTILSII_DATA_FOR_RESERVE
I_IT_EV - Table of Determination Procedures
Data type: KL2_EV_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ARR - Default Risk Rule
Data type: KLARRC-ARROptional: No
Call by Reference: No ( called with pass by value option)
I_COMPACT - Active Components
Data type: KLCOMPACTOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for KL_UTILSII_DATA_FOR_RESERVE
E_RESERVE_DATA -
Data type: KLM0_RESERVE_DATA_TYPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_EV_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VAR_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VARREGID_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for KL_UTILSII_DATA_FOR_RESERVE 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_i_it_ev | TYPE KL2_EV_TAB, " | |||
| lv_no_ev_found | TYPE KL2_EV_TAB, " | |||
| lv_e_reserve_data | TYPE KLM0_RESERVE_DATA_TYP, " | |||
| lv_i_arr | TYPE KLARRC-ARR, " | |||
| lv_no_var_found | TYPE KLARRC, " | |||
| lv_i_compact | TYPE KLCOMPACT, " | |||
| lv_no_varregid_found | TYPE KLCOMPACT, " | |||
| lv_no_valid_data | TYPE KLCOMPACT. " |
|   CALL FUNCTION 'KL_UTILSII_DATA_FOR_RESERVE' "All Relevant Data for Reservations |
| EXPORTING | ||
| I_IT_EV | = lv_i_it_ev | |
| I_ARR | = lv_i_arr | |
| I_COMPACT | = lv_i_compact | |
| IMPORTING | ||
| E_RESERVE_DATA | = lv_e_reserve_data | |
| EXCEPTIONS | ||
| NO_EV_FOUND = 1 | ||
| NO_VAR_FOUND = 2 | ||
| NO_VARREGID_FOUND = 3 | ||
| NO_VALID_DATA = 4 | ||
| . " KL_UTILSII_DATA_FOR_RESERVE | ||
ABAP code using 7.40 inline data declarations to call FM KL_UTILSII_DATA_FOR_RESERVE
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 ARR FROM KLARRC INTO @DATA(ld_i_arr). | ||||
Search for further information about these or an SAP related objects