SAP J_1I4_GET_ECESS Function Module for Calculation of educational CESS
J_1I4_GET_ECESS is a standard j 1i4 get ecess SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Calculation of educational CESS 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 j 1i4 get ecess FM, simply by entering the name J_1I4_GET_ECESS into the relevant SAP transaction such as SE37 or SE38.
Function Group: J1I4
Program Name: SAPLJ1I4
Main Program: SAPLJ1I4
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_1I4_GET_ECESS 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 'J_1I4_GET_ECESS'"Calculation of educational CESS.
EXPORTING
* Y_KOMK = "Communication Header for Pricing
* E_AED_INVENTORY = "Inventorized AED
* E_SED_INVENTORY = "Inventorized SED
* E_NCCD_INVENTORY = "NCCD Inventory component
* E_ECS_INVENTORY = "ECS Inventory component
* E_ECS_RATE = "ECS rate in %
* ADDLDATA1 = "Net Payment Amount
* ADDLDATA2 = "Net Payment Amount
* ADDLDATA3 = "Net Payment Amount
* ADDLDATA4 = "Net Payment Amount
* ADDLVAL1 = "Inventorized AED
* Y_KOMP = "Pricing Communication Item
* ADDLVAL2 = "Inventorized AED
* ADDLVAL3 = "Inventorized AED
* ADDLVAL4 = "Inventorized AED
* E_BED_AMOUNT = "Net Payment Amount
* E_AED_AMOUNT = "Net Payment Amount
* E_SED_AMOUNT = "Net Payment Amount
* CESS = "Net Payment Amount
* E_NCCD_AMOUNT = "Net Payment Amount
* E_ECS = "Net Payment Amount
* E_BED_INVENTORY = "Inventorized BED
IMPORTING
X_ECS = "Net Payment Amount
X_ECS_INVENTORY = "ECS Inventory component
X_ECS_RATE = "ECS rate in %
IMPORTING Parameters details for J_1I4_GET_ECESS
Y_KOMK - Communication Header for Pricing
Data type: KOMKOptional: Yes
Call by Reference: No ( called with pass by value option)
E_AED_INVENTORY - Inventorized AED
Data type: J_1IEXCDTL-AEDINVOptional: Yes
Call by Reference: No ( called with pass by value option)
E_SED_INVENTORY - Inventorized SED
Data type: J_1IEXCDTL-SEDINVOptional: Yes
Call by Reference: No ( called with pass by value option)
E_NCCD_INVENTORY - NCCD Inventory component
Data type: J_1IEXCDTL-NCCDINVOptional: Yes
Call by Reference: No ( called with pass by value option)
E_ECS_INVENTORY - ECS Inventory component
Data type: J_1IEXCDTL-ECSINVOptional: Yes
Call by Reference: No ( called with pass by value option)
E_ECS_RATE - ECS rate in %
Data type: J_1IEXCDTL-ECSRATEOptional: Yes
Call by Reference: No ( called with pass by value option)
ADDLDATA1 - Net Payment Amount
Data type: TAXCOM-NEBTROptional: Yes
Call by Reference: No ( called with pass by value option)
ADDLDATA2 - Net Payment Amount
Data type: TAXCOM-NEBTROptional: Yes
Call by Reference: No ( called with pass by value option)
ADDLDATA3 - Net Payment Amount
Data type: TAXCOM-NEBTROptional: Yes
Call by Reference: No ( called with pass by value option)
ADDLDATA4 - Net Payment Amount
Data type: TAXCOM-NEBTROptional: Yes
Call by Reference: No ( called with pass by value option)
ADDLVAL1 - Inventorized AED
Data type: J_1IEXCDTL-AEDINVOptional: Yes
Call by Reference: No ( called with pass by value option)
Y_KOMP - Pricing Communication Item
Data type: KOMPOptional: Yes
Call by Reference: No ( called with pass by value option)
ADDLVAL2 - Inventorized AED
Data type: J_1IEXCDTL-AEDINVOptional: Yes
Call by Reference: No ( called with pass by value option)
ADDLVAL3 - Inventorized AED
Data type: J_1IEXCDTL-AEDINVOptional: Yes
Call by Reference: No ( called with pass by value option)
ADDLVAL4 - Inventorized AED
Data type: J_1IEXCDTL-AEDINVOptional: Yes
Call by Reference: No ( called with pass by value option)
E_BED_AMOUNT - Net Payment Amount
Data type: TAXCOM-NEBTROptional: Yes
Call by Reference: No ( called with pass by value option)
E_AED_AMOUNT - Net Payment Amount
Data type: TAXCOM-NEBTROptional: Yes
Call by Reference: No ( called with pass by value option)
E_SED_AMOUNT - Net Payment Amount
Data type: TAXCOM-NEBTROptional: Yes
Call by Reference: No ( called with pass by value option)
CESS - Net Payment Amount
Data type: TAXCOM-NEBTROptional: Yes
Call by Reference: No ( called with pass by value option)
E_NCCD_AMOUNT - Net Payment Amount
Data type: TAXCOM-NEBTROptional: Yes
Call by Reference: No ( called with pass by value option)
E_ECS - Net Payment Amount
Data type: TAXCOM-NEBTROptional: Yes
Call by Reference: No ( called with pass by value option)
E_BED_INVENTORY - Inventorized BED
Data type: J_1IEXCDTL-BEDINVOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_1I4_GET_ECESS
X_ECS - Net Payment Amount
Data type: TAXCOM-NEBTROptional: No
Call by Reference: No ( called with pass by value option)
X_ECS_INVENTORY - ECS Inventory component
Data type: J_1IEXCDTL-ECSINVOptional: No
Call by Reference: No ( called with pass by value option)
X_ECS_RATE - ECS rate in %
Data type: J_1IEXCDTL-ECSRATEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_1I4_GET_ECESS 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_ecs | TYPE TAXCOM-NEBTR, " | |||
| lv_y_komk | TYPE KOMK, " | |||
| lv_e_aed_inventory | TYPE J_1IEXCDTL-AEDINV, " | |||
| lv_e_sed_inventory | TYPE J_1IEXCDTL-SEDINV, " | |||
| lv_e_nccd_inventory | TYPE J_1IEXCDTL-NCCDINV, " | |||
| lv_e_ecs_inventory | TYPE J_1IEXCDTL-ECSINV, " | |||
| lv_e_ecs_rate | TYPE J_1IEXCDTL-ECSRATE, " | |||
| lv_addldata1 | TYPE TAXCOM-NEBTR, " | |||
| lv_addldata2 | TYPE TAXCOM-NEBTR, " | |||
| lv_addldata3 | TYPE TAXCOM-NEBTR, " | |||
| lv_addldata4 | TYPE TAXCOM-NEBTR, " | |||
| lv_addlval1 | TYPE J_1IEXCDTL-AEDINV, " | |||
| lv_y_komp | TYPE KOMP, " | |||
| lv_x_ecs_inventory | TYPE J_1IEXCDTL-ECSINV, " | |||
| lv_addlval2 | TYPE J_1IEXCDTL-AEDINV, " | |||
| lv_addlval3 | TYPE J_1IEXCDTL-AEDINV, " | |||
| lv_addlval4 | TYPE J_1IEXCDTL-AEDINV, " | |||
| lv_x_ecs_rate | TYPE J_1IEXCDTL-ECSRATE, " | |||
| lv_e_bed_amount | TYPE TAXCOM-NEBTR, " | |||
| lv_e_aed_amount | TYPE TAXCOM-NEBTR, " | |||
| lv_e_sed_amount | TYPE TAXCOM-NEBTR, " | |||
| lv_cess | TYPE TAXCOM-NEBTR, " | |||
| lv_e_nccd_amount | TYPE TAXCOM-NEBTR, " | |||
| lv_e_ecs | TYPE TAXCOM-NEBTR, " | |||
| lv_e_bed_inventory | TYPE J_1IEXCDTL-BEDINV. " |
|   CALL FUNCTION 'J_1I4_GET_ECESS' "Calculation of educational CESS |
| EXPORTING | ||
| Y_KOMK | = lv_y_komk | |
| E_AED_INVENTORY | = lv_e_aed_inventory | |
| E_SED_INVENTORY | = lv_e_sed_inventory | |
| E_NCCD_INVENTORY | = lv_e_nccd_inventory | |
| E_ECS_INVENTORY | = lv_e_ecs_inventory | |
| E_ECS_RATE | = lv_e_ecs_rate | |
| ADDLDATA1 | = lv_addldata1 | |
| ADDLDATA2 | = lv_addldata2 | |
| ADDLDATA3 | = lv_addldata3 | |
| ADDLDATA4 | = lv_addldata4 | |
| ADDLVAL1 | = lv_addlval1 | |
| Y_KOMP | = lv_y_komp | |
| ADDLVAL2 | = lv_addlval2 | |
| ADDLVAL3 | = lv_addlval3 | |
| ADDLVAL4 | = lv_addlval4 | |
| E_BED_AMOUNT | = lv_e_bed_amount | |
| E_AED_AMOUNT | = lv_e_aed_amount | |
| E_SED_AMOUNT | = lv_e_sed_amount | |
| CESS | = lv_cess | |
| E_NCCD_AMOUNT | = lv_e_nccd_amount | |
| E_ECS | = lv_e_ecs | |
| E_BED_INVENTORY | = lv_e_bed_inventory | |
| IMPORTING | ||
| X_ECS | = lv_x_ecs | |
| X_ECS_INVENTORY | = lv_x_ecs_inventory | |
| X_ECS_RATE | = lv_x_ecs_rate | |
| . " J_1I4_GET_ECESS | ||
ABAP code using 7.40 inline data declarations to call FM J_1I4_GET_ECESS
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 NEBTR FROM TAXCOM INTO @DATA(ld_x_ecs). | ||||
| "SELECT single AEDINV FROM J_1IEXCDTL INTO @DATA(ld_e_aed_inventory). | ||||
| "SELECT single SEDINV FROM J_1IEXCDTL INTO @DATA(ld_e_sed_inventory). | ||||
| "SELECT single NCCDINV FROM J_1IEXCDTL INTO @DATA(ld_e_nccd_inventory). | ||||
| "SELECT single ECSINV FROM J_1IEXCDTL INTO @DATA(ld_e_ecs_inventory). | ||||
| "SELECT single ECSRATE FROM J_1IEXCDTL INTO @DATA(ld_e_ecs_rate). | ||||
| "SELECT single NEBTR FROM TAXCOM INTO @DATA(ld_addldata1). | ||||
| "SELECT single NEBTR FROM TAXCOM INTO @DATA(ld_addldata2). | ||||
| "SELECT single NEBTR FROM TAXCOM INTO @DATA(ld_addldata3). | ||||
| "SELECT single NEBTR FROM TAXCOM INTO @DATA(ld_addldata4). | ||||
| "SELECT single AEDINV FROM J_1IEXCDTL INTO @DATA(ld_addlval1). | ||||
| "SELECT single ECSINV FROM J_1IEXCDTL INTO @DATA(ld_x_ecs_inventory). | ||||
| "SELECT single AEDINV FROM J_1IEXCDTL INTO @DATA(ld_addlval2). | ||||
| "SELECT single AEDINV FROM J_1IEXCDTL INTO @DATA(ld_addlval3). | ||||
| "SELECT single AEDINV FROM J_1IEXCDTL INTO @DATA(ld_addlval4). | ||||
| "SELECT single ECSRATE FROM J_1IEXCDTL INTO @DATA(ld_x_ecs_rate). | ||||
| "SELECT single NEBTR FROM TAXCOM INTO @DATA(ld_e_bed_amount). | ||||
| "SELECT single NEBTR FROM TAXCOM INTO @DATA(ld_e_aed_amount). | ||||
| "SELECT single NEBTR FROM TAXCOM INTO @DATA(ld_e_sed_amount). | ||||
| "SELECT single NEBTR FROM TAXCOM INTO @DATA(ld_cess). | ||||
| "SELECT single NEBTR FROM TAXCOM INTO @DATA(ld_e_nccd_amount). | ||||
| "SELECT single NEBTR FROM TAXCOM INTO @DATA(ld_e_ecs). | ||||
| "SELECT single BEDINV FROM J_1IEXCDTL INTO @DATA(ld_e_bed_inventory). | ||||
Search for further information about these or an SAP related objects