SAP ISU_INTERNAL_UNIT_COLLECT Function Module for Internal Preparation of Unit
ISU_INTERNAL_UNIT_COLLECT is a standard isu internal unit collect SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Internal Preparation of Unit 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 isu internal unit collect FM, simply by entering the name ISU_INTERNAL_UNIT_COLLECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: ELIN
Program Name: SAPLELIN
Main Program: SAPLELIN
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_INTERNAL_UNIT_COLLECT 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 'ISU_INTERNAL_UNIT_COLLECT'"Internal Preparation of Unit.
EXPORTING
* X_ABLEINH = "Meter Reading Unit
* X_ADATSOLL = "Scheduled Meter Reading Date
* X_TE418 = "
* X_CALL_FROM_EL31 = "
TABLES
* XT_RANGE_ANLAGE = "
* YT_EVER_EL31 = "
* YT_EANL_EL31 = "
EXCEPTIONS
INTERNAL_ERROR = 1
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_SAPLELIN_001 IS-U: Customer-Specific Determination of Meter Reading Type
EXIT_SAPLELIN_002 IS-U: Customer-Specific Suppression of Interval Check
IMPORTING Parameters details for ISU_INTERNAL_UNIT_COLLECT
X_ABLEINH - Meter Reading Unit
Data type: TE418-TERMSCHLOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ADATSOLL - Scheduled Meter Reading Date
Data type: TE418-ADATSOLLOptional: Yes
Call by Reference: No ( called with pass by value option)
X_TE418 -
Data type: TE418Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CALL_FROM_EL31 -
Data type: REGEN-KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISU_INTERNAL_UNIT_COLLECT
XT_RANGE_ANLAGE -
Data type: RANGES_ANLAGEOptional: Yes
Call by Reference: Yes
YT_EVER_EL31 -
Data type: EVER_EL31Optional: Yes
Call by Reference: Yes
YT_EANL_EL31 -
Data type: EANL_EL31Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
INTERNAL_ERROR - Internal Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISU_INTERNAL_UNIT_COLLECT 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_x_ableinh | TYPE TE418-TERMSCHL, " | |||
| lv_internal_error | TYPE TE418, " | |||
| lt_xt_range_anlage | TYPE STANDARD TABLE OF RANGES_ANLAGE, " | |||
| lv_x_adatsoll | TYPE TE418-ADATSOLL, " | |||
| lt_yt_ever_el31 | TYPE STANDARD TABLE OF EVER_EL31, " | |||
| lv_x_te418 | TYPE TE418, " | |||
| lt_yt_eanl_el31 | TYPE STANDARD TABLE OF EANL_EL31, " | |||
| lv_x_call_from_el31 | TYPE REGEN-KENNZX. " |
|   CALL FUNCTION 'ISU_INTERNAL_UNIT_COLLECT' "Internal Preparation of Unit |
| EXPORTING | ||
| X_ABLEINH | = lv_x_ableinh | |
| X_ADATSOLL | = lv_x_adatsoll | |
| X_TE418 | = lv_x_te418 | |
| X_CALL_FROM_EL31 | = lv_x_call_from_el31 | |
| TABLES | ||
| XT_RANGE_ANLAGE | = lt_xt_range_anlage | |
| YT_EVER_EL31 | = lt_yt_ever_el31 | |
| YT_EANL_EL31 | = lt_yt_eanl_el31 | |
| EXCEPTIONS | ||
| INTERNAL_ERROR = 1 | ||
| . " ISU_INTERNAL_UNIT_COLLECT | ||
ABAP code using 7.40 inline data declarations to call FM ISU_INTERNAL_UNIT_COLLECT
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 TERMSCHL FROM TE418 INTO @DATA(ld_x_ableinh). | ||||
| "SELECT single ADATSOLL FROM TE418 INTO @DATA(ld_x_adatsoll). | ||||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_call_from_el31). | ||||
Search for further information about these or an SAP related objects