SAP ISU_IDISC_CREATE Function Module for









ISU_IDISC_CREATE is a standard isu idisc create 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 idisc create FM, simply by entering the name ISU_IDISC_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: EA00
Program Name: SAPLEA00
Main Program: SAPLEA00
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISU_IDISC_CREATE 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_IDISC_CREATE'"
EXPORTING
X_SS = "
X_ABRZEIT = "
* X_CUST_DATE = "
X_OPERAND = "
X_NUMBER = "
X_DISCOUNT = "
X_AB = "
X_BIS = "
* X_SAISON = ' ' "
* X_WAERS = ' ' "
* X_STICHTAG = ' ' "

CHANGING
XY_IDISC = "

EXCEPTIONS
GENERAL_FAULT = 1 WRONG_WAERS = 2 DISCOUNT_NOT_COMPLETE = 3
.




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_SAPLEA00_001 IS-U: Enhancement for External Proration Dates
EXIT_SAPLEA00_002 Overriding Weighting Key for Measured Quantities
EXIT_SAPLEA00_007
EXIT_SAPLEA00_009 ISU: Enhancement for Day/Month-Related Determination of Time Portion

IMPORTING Parameters details for ISU_IDISC_CREATE

X_SS -

Data type: ISU2A_SS
Optional: No
Call by Reference: Yes

X_ABRZEIT -

Data type: ISU2A_ABRZEIT
Optional: No
Call by Reference: Yes

X_CUST_DATE -

Data type: D
Optional: Yes
Call by Reference: Yes

X_OPERAND -

Data type: TE221-OPERAND
Optional: No
Call by Reference: No ( called with pass by value option)

X_NUMBER -

Data type: ISU2A_DISC-NUMBER
Optional: No
Call by Reference: No ( called with pass by value option)

X_DISCOUNT -

Data type: EDSC-RABZUS
Optional: No
Call by Reference: No ( called with pass by value option)

X_AB -

Data type: EDSCH-AB
Optional: No
Call by Reference: No ( called with pass by value option)

X_BIS -

Data type: EDSCH-BIS
Optional: No
Call by Reference: No ( called with pass by value option)

X_SAISON -

Data type: TE221-OPERAND
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_WAERS -

Data type: EDSCH-TWAERS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_STICHTAG -

Data type: RE20A-STICHTAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for ISU_IDISC_CREATE

XY_IDISC -

Data type: ISU2A_BILLING_DATA-IDISC
Optional: No
Call by Reference: Yes

EXCEPTIONS details

GENERAL_FAULT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

WRONG_WAERS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DISCOUNT_NOT_COMPLETE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISU_IDISC_CREATE 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_ss  TYPE ISU2A_SS, "   
lv_xy_idisc  TYPE ISU2A_BILLING_DATA-IDISC, "   
lv_general_fault  TYPE ISU2A_BILLING_DATA, "   
lv_x_abrzeit  TYPE ISU2A_ABRZEIT, "   
lv_x_cust_date  TYPE D, "   
lv_x_operand  TYPE TE221-OPERAND, "   
lv_wrong_waers  TYPE TE221, "   
lv_x_number  TYPE ISU2A_DISC-NUMBER, "   
lv_discount_not_complete  TYPE ISU2A_DISC, "   
lv_x_discount  TYPE EDSC-RABZUS, "   
lv_x_ab  TYPE EDSCH-AB, "   
lv_x_bis  TYPE EDSCH-BIS, "   
lv_x_saison  TYPE TE221-OPERAND, "   SPACE
lv_x_waers  TYPE EDSCH-TWAERS, "   SPACE
lv_x_stichtag  TYPE RE20A-STICHTAG. "   SPACE

  CALL FUNCTION 'ISU_IDISC_CREATE'  "
    EXPORTING
         X_SS = lv_x_ss
         X_ABRZEIT = lv_x_abrzeit
         X_CUST_DATE = lv_x_cust_date
         X_OPERAND = lv_x_operand
         X_NUMBER = lv_x_number
         X_DISCOUNT = lv_x_discount
         X_AB = lv_x_ab
         X_BIS = lv_x_bis
         X_SAISON = lv_x_saison
         X_WAERS = lv_x_waers
         X_STICHTAG = lv_x_stichtag
    CHANGING
         XY_IDISC = lv_xy_idisc
    EXCEPTIONS
        GENERAL_FAULT = 1
        WRONG_WAERS = 2
        DISCOUNT_NOT_COMPLETE = 3
. " ISU_IDISC_CREATE




ABAP code using 7.40 inline data declarations to call FM ISU_IDISC_CREATE

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 IDISC FROM ISU2A_BILLING_DATA INTO @DATA(ld_xy_idisc).
 
 
 
 
"SELECT single OPERAND FROM TE221 INTO @DATA(ld_x_operand).
 
 
"SELECT single NUMBER FROM ISU2A_DISC INTO @DATA(ld_x_number).
 
 
"SELECT single RABZUS FROM EDSC INTO @DATA(ld_x_discount).
 
"SELECT single AB FROM EDSCH INTO @DATA(ld_x_ab).
 
"SELECT single BIS FROM EDSCH INTO @DATA(ld_x_bis).
 
"SELECT single OPERAND FROM TE221 INTO @DATA(ld_x_saison).
DATA(ld_x_saison) = ' '.
 
"SELECT single TWAERS FROM EDSCH INTO @DATA(ld_x_waers).
DATA(ld_x_waers) = ' '.
 
"SELECT single STICHTAG FROM RE20A INTO @DATA(ld_x_stichtag).
DATA(ld_x_stichtag) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!