SAP ISU_CONSUMPTION_DETERMINE Function Module for
ISU_CONSUMPTION_DETERMINE is a standard isu consumption determine 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 isu consumption determine FM, simply by entering the name ISU_CONSUMPTION_DETERMINE into the relevant SAP transaction such as SE37 or SE38.
Function Group: EA50
Program Name: SAPLEA50
Main Program: SAPLEA50
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_CONSUMPTION_DETERMINE 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_CONSUMPTION_DETERMINE'".
EXPORTING
* X_GERAET = "Device Number
* X_N_ZWSTNDAB = "
* X_ADATVOR = "
* X_ATIMVOR = "
* X_I_ZWSTVOR = "
* X_V_ZWSTVOR = "
* X_N_ZWSTVOR = "
* X_WABLT = "
* X_WTHG = "Billing-Relevant Data
* X_NO_INSTSTRU_READ = ' ' "
* X_NORUND = "
* X_EQUNR = "Equipment Number
* X_GUSE = 'MR' "
* X_READ_GASFAKTOR = ' ' "
* X_ROUND_EXEC = ' ' "
* X_IF = "
* X_CONSID_FACTOR = 'X' "
* X_THGDATUM_TO = "
* X_THGDATUM_FROM = "
* X_ZWNUMMER = "Register Number
* X_LOGIKZW = "
X_ADAT = "Meter Reading Date Relevant to Billing
* X_ATIM = "
* X_ADAT_TO = "
* X_I_ZWSTNDAB = "Meter reading to be billed
* X_V_ZWSTNDAB = "
IMPORTING
Y_I_ABRMENGE = "Billing quantity
Y_V_ABRMENGE = "Places before decimal point in billing quantity
Y_N_ABRMENGE = "Billing Quantity: Places after Decimal Point
Y_SVAL_USED = "
YT_ITHG = "
CHANGING
* XY_INST_FOR_BILLING = "Installation Structure of an Installation from Billing View
* YT_EABLQDCONV = "
EXCEPTIONS
GENERAL_FAULT = 1 ZWSTANDAB_MISSING = 2 ZWSTAND_MISSING = 3 PARAMETER_MISSING = 4 NO_INST_STRUCTURE = 5 NO_RATETYP = 6 NO_GAS_PROC = 7
IMPORTING Parameters details for ISU_CONSUMPTION_DETERMINE
X_GERAET - Device Number
Data type: V_EGER-GERAETOptional: Yes
Call by Reference: No ( called with pass by value option)
X_N_ZWSTNDAB -
Data type: EABL-N_ZWSTNDABOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ADATVOR -
Data type: ADATOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ATIMVOR -
Data type: EABL-ATIMOptional: Yes
Call by Reference: No ( called with pass by value option)
X_I_ZWSTVOR -
Data type: ERCHZ-I_ZWSTVOROptional: Yes
Call by Reference: No ( called with pass by value option)
X_V_ZWSTVOR -
Data type: DBERCHZ-V_ZWSTVOROptional: Yes
Call by Reference: No ( called with pass by value option)
X_N_ZWSTVOR -
Data type: DBERCHZ-N_ZWSTVOROptional: Yes
Call by Reference: No ( called with pass by value option)
X_WABLT -
Data type: ISU2A_ABLTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_WTHG - Billing-Relevant Data
Data type: ISUFG_THGOptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_INSTSTRU_READ -
Data type: REGEN-KENNZXDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_NORUND -
Data type: REGEN-KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_EQUNR - Equipment Number
Data type: ETDZ-EQUNROptional: Yes
Call by Reference: No ( called with pass by value option)
X_GUSE -
Data type: TE221-SELCONTROLDefault: 'MR'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_READ_GASFAKTOR -
Data type: REGEN-KENNZXDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ROUND_EXEC -
Data type: REGEN-KENNZXDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_IF -
Data type: ISU17_INTERFACE_STRUCTURESOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CONSID_FACTOR -
Data type: REGEN-KENNZXDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_THGDATUM_TO -
Data type: THGDATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
X_THGDATUM_FROM -
Data type: THGDATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ZWNUMMER - Register Number
Data type: ETDZ-ZWNUMMEROptional: Yes
Call by Reference: No ( called with pass by value option)
X_LOGIKZW -
Data type: LOGIKZWOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ADAT - Meter Reading Date Relevant to Billing
Data type: EABL-ADATOptional: No
Call by Reference: No ( called with pass by value option)
X_ATIM -
Data type: EABL-ATIMOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ADAT_TO -
Data type: ADATOptional: Yes
Call by Reference: No ( called with pass by value option)
X_I_ZWSTNDAB - Meter reading to be billed
Data type: ERCHZ-I_ZWSTNDABOptional: Yes
Call by Reference: No ( called with pass by value option)
X_V_ZWSTNDAB -
Data type: EABL-V_ZWSTNDABOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISU_CONSUMPTION_DETERMINE
Y_I_ABRMENGE - Billing quantity
Data type: ERCHZ-I_ABRMENGEOptional: No
Call by Reference: No ( called with pass by value option)
Y_V_ABRMENGE - Places before decimal point in billing quantity
Data type: DBERCHZ-V_ABRMENGEOptional: No
Call by Reference: No ( called with pass by value option)
Y_N_ABRMENGE - Billing Quantity: Places after Decimal Point
Data type: DBERCHZ-N_ABRMENGEOptional: No
Call by Reference: No ( called with pass by value option)
Y_SVAL_USED -
Data type: KENNZXOptional: No
Call by Reference: No ( called with pass by value option)
YT_ITHG -
Data type: ISUFG_ITHGOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for ISU_CONSUMPTION_DETERMINE
XY_INST_FOR_BILLING - Installation Structure of an Installation from Billing View
Data type: ISU2A_INST_STRUCOptional: Yes
Call by Reference: Yes
YT_EABLQDCONV -
Data type: EABLQDCONV_TABOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
GENERAL_FAULT - Other Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ZWSTANDAB_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ZWSTAND_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_MISSING - Parameter missing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_INST_STRUCTURE -
Data type:Optional: No
Call by Reference: Yes
NO_RATETYP -
Data type:Optional: No
Call by Reference: Yes
NO_GAS_PROC -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISU_CONSUMPTION_DETERMINE 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_geraet | TYPE V_EGER-GERAET, " | |||
| lv_y_i_abrmenge | TYPE ERCHZ-I_ABRMENGE, " | |||
| lv_general_fault | TYPE ERCHZ, " | |||
| lv_xy_inst_for_billing | TYPE ISU2A_INST_STRUC, " | |||
| lv_x_n_zwstndab | TYPE EABL-N_ZWSTNDAB, " | |||
| lv_x_adatvor | TYPE ADAT, " | |||
| lv_x_atimvor | TYPE EABL-ATIM, " | |||
| lv_x_i_zwstvor | TYPE ERCHZ-I_ZWSTVOR, " | |||
| lv_x_v_zwstvor | TYPE DBERCHZ-V_ZWSTVOR, " | |||
| lv_x_n_zwstvor | TYPE DBERCHZ-N_ZWSTVOR, " | |||
| lv_x_wablt | TYPE ISU2A_ABLT, " | |||
| lv_x_wthg | TYPE ISUFG_THG, " | |||
| lv_x_no_inststru_read | TYPE REGEN-KENNZX, " ' ' | |||
| lv_x_norund | TYPE REGEN-KENNZX, " | |||
| lv_x_equnr | TYPE ETDZ-EQUNR, " | |||
| lv_y_v_abrmenge | TYPE DBERCHZ-V_ABRMENGE, " | |||
| lv_yt_eablqdconv | TYPE EABLQDCONV_TAB, " | |||
| lv_zwstandab_missing | TYPE EABLQDCONV_TAB, " | |||
| lv_x_guse | TYPE TE221-SELCONTROL, " 'MR' | |||
| lv_x_read_gasfaktor | TYPE REGEN-KENNZX, " SPACE | |||
| lv_x_round_exec | TYPE REGEN-KENNZX, " SPACE | |||
| lv_x_if | TYPE ISU17_INTERFACE_STRUCTURES, " | |||
| lv_x_consid_factor | TYPE REGEN-KENNZX, " 'X' | |||
| lv_x_thgdatum_to | TYPE THGDATUM, " | |||
| lv_x_thgdatum_from | TYPE THGDATUM, " | |||
| lv_x_zwnummer | TYPE ETDZ-ZWNUMMER, " | |||
| lv_y_n_abrmenge | TYPE DBERCHZ-N_ABRMENGE, " | |||
| lv_zwstand_missing | TYPE DBERCHZ, " | |||
| lv_x_logikzw | TYPE LOGIKZW, " | |||
| lv_y_sval_used | TYPE KENNZX, " | |||
| lv_parameter_missing | TYPE KENNZX, " | |||
| lv_x_adat | TYPE EABL-ADAT, " | |||
| lv_yt_ithg | TYPE ISUFG_ITHG, " | |||
| lv_no_inst_structure | TYPE ISUFG_ITHG, " | |||
| lv_x_atim | TYPE EABL-ATIM, " | |||
| lv_no_ratetyp | TYPE EABL, " | |||
| lv_x_adat_to | TYPE ADAT, " | |||
| lv_no_gas_proc | TYPE ADAT, " | |||
| lv_x_i_zwstndab | TYPE ERCHZ-I_ZWSTNDAB, " | |||
| lv_x_v_zwstndab | TYPE EABL-V_ZWSTNDAB. " |
|   CALL FUNCTION 'ISU_CONSUMPTION_DETERMINE' " |
| EXPORTING | ||
| X_GERAET | = lv_x_geraet | |
| X_N_ZWSTNDAB | = lv_x_n_zwstndab | |
| X_ADATVOR | = lv_x_adatvor | |
| X_ATIMVOR | = lv_x_atimvor | |
| X_I_ZWSTVOR | = lv_x_i_zwstvor | |
| X_V_ZWSTVOR | = lv_x_v_zwstvor | |
| X_N_ZWSTVOR | = lv_x_n_zwstvor | |
| X_WABLT | = lv_x_wablt | |
| X_WTHG | = lv_x_wthg | |
| X_NO_INSTSTRU_READ | = lv_x_no_inststru_read | |
| X_NORUND | = lv_x_norund | |
| X_EQUNR | = lv_x_equnr | |
| X_GUSE | = lv_x_guse | |
| X_READ_GASFAKTOR | = lv_x_read_gasfaktor | |
| X_ROUND_EXEC | = lv_x_round_exec | |
| X_IF | = lv_x_if | |
| X_CONSID_FACTOR | = lv_x_consid_factor | |
| X_THGDATUM_TO | = lv_x_thgdatum_to | |
| X_THGDATUM_FROM | = lv_x_thgdatum_from | |
| X_ZWNUMMER | = lv_x_zwnummer | |
| X_LOGIKZW | = lv_x_logikzw | |
| X_ADAT | = lv_x_adat | |
| X_ATIM | = lv_x_atim | |
| X_ADAT_TO | = lv_x_adat_to | |
| X_I_ZWSTNDAB | = lv_x_i_zwstndab | |
| X_V_ZWSTNDAB | = lv_x_v_zwstndab | |
| IMPORTING | ||
| Y_I_ABRMENGE | = lv_y_i_abrmenge | |
| Y_V_ABRMENGE | = lv_y_v_abrmenge | |
| Y_N_ABRMENGE | = lv_y_n_abrmenge | |
| Y_SVAL_USED | = lv_y_sval_used | |
| YT_ITHG | = lv_yt_ithg | |
| CHANGING | ||
| XY_INST_FOR_BILLING | = lv_xy_inst_for_billing | |
| YT_EABLQDCONV | = lv_yt_eablqdconv | |
| EXCEPTIONS | ||
| GENERAL_FAULT = 1 | ||
| ZWSTANDAB_MISSING = 2 | ||
| ZWSTAND_MISSING = 3 | ||
| PARAMETER_MISSING = 4 | ||
| NO_INST_STRUCTURE = 5 | ||
| NO_RATETYP = 6 | ||
| NO_GAS_PROC = 7 | ||
| . " ISU_CONSUMPTION_DETERMINE | ||
ABAP code using 7.40 inline data declarations to call FM ISU_CONSUMPTION_DETERMINE
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 GERAET FROM V_EGER INTO @DATA(ld_x_geraet). | ||||
| "SELECT single I_ABRMENGE FROM ERCHZ INTO @DATA(ld_y_i_abrmenge). | ||||
| "SELECT single N_ZWSTNDAB FROM EABL INTO @DATA(ld_x_n_zwstndab). | ||||
| "SELECT single ATIM FROM EABL INTO @DATA(ld_x_atimvor). | ||||
| "SELECT single I_ZWSTVOR FROM ERCHZ INTO @DATA(ld_x_i_zwstvor). | ||||
| "SELECT single V_ZWSTVOR FROM DBERCHZ INTO @DATA(ld_x_v_zwstvor). | ||||
| "SELECT single N_ZWSTVOR FROM DBERCHZ INTO @DATA(ld_x_n_zwstvor). | ||||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_no_inststru_read). | ||||
| DATA(ld_x_no_inststru_read) | = ' '. | |||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_norund). | ||||
| "SELECT single EQUNR FROM ETDZ INTO @DATA(ld_x_equnr). | ||||
| "SELECT single V_ABRMENGE FROM DBERCHZ INTO @DATA(ld_y_v_abrmenge). | ||||
| "SELECT single SELCONTROL FROM TE221 INTO @DATA(ld_x_guse). | ||||
| DATA(ld_x_guse) | = 'MR'. | |||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_read_gasfaktor). | ||||
| DATA(ld_x_read_gasfaktor) | = ' '. | |||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_round_exec). | ||||
| DATA(ld_x_round_exec) | = ' '. | |||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_consid_factor). | ||||
| DATA(ld_x_consid_factor) | = 'X'. | |||
| "SELECT single ZWNUMMER FROM ETDZ INTO @DATA(ld_x_zwnummer). | ||||
| "SELECT single N_ABRMENGE FROM DBERCHZ INTO @DATA(ld_y_n_abrmenge). | ||||
| "SELECT single ADAT FROM EABL INTO @DATA(ld_x_adat). | ||||
| "SELECT single ATIM FROM EABL INTO @DATA(ld_x_atim). | ||||
| "SELECT single I_ZWSTNDAB FROM ERCHZ INTO @DATA(ld_x_i_zwstndab). | ||||
| "SELECT single V_ZWSTNDAB FROM EABL INTO @DATA(ld_x_v_zwstndab). | ||||
Search for further information about these or an SAP related objects