SAP ISU_MAM_READ_DISCON_DATA Function Module for
ISU_MAM_READ_DISCON_DATA is a standard isu mam read discon data 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 mam read discon data FM, simply by entering the name ISU_MAM_READ_DISCON_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: EEWM_MAM_DATA
Program Name: SAPLEEWM_MAM_DATA
Main Program: SAPLEEWM_MAM_DATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_MAM_READ_DISCON_DATA 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_MAM_READ_DISCON_DATA'".
EXPORTING
* FLAG_ORDER = "
* ORDERID = "
* NOTIF_NO = "
* LANGU = "
* X_DATE = SY-DATUM "
X_DISCNO = "
X_DISCACT = "
IMPORTING
Y_DISC = "
Y_PAY = "
Y_RECO = "
ACCOUNT = "
DISCDOC = "
TABLES
* CONNOBJ = "
* MRLIMITS = "
* DEVLOC = "
* MRNOTE = "
* DEVICE = "
* MREAD = "
* PREM = "
* INST = "
* OPENITEM = "
* DISCACT = "
EXCEPTIONS
NOT_QUALIFIED = 1 NOT_FOUND = 2 SYSTEM_ERROR = 3
IMPORTING Parameters details for ISU_MAM_READ_DISCON_DATA
FLAG_ORDER -
Data type: KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
ORDERID -
Data type: AUFNROptional: Yes
Call by Reference: No ( called with pass by value option)
NOTIF_NO -
Data type: QMNUMOptional: Yes
Call by Reference: No ( called with pass by value option)
LANGU -
Data type: SY-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
X_DATE -
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DISCNO -
Data type: EDISCACT-DISCNOOptional: No
Call by Reference: No ( called with pass by value option)
X_DISCACT -
Data type: EDISCACT-DISCACTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISU_MAM_READ_DISCON_DATA
Y_DISC -
Data type: KENNZXOptional: No
Call by Reference: No ( called with pass by value option)
Y_PAY -
Data type: KENNZXOptional: No
Call by Reference: No ( called with pass by value option)
Y_RECO -
Data type: KENNZXOptional: No
Call by Reference: No ( called with pass by value option)
ACCOUNT -
Data type: EWM_MU_I01_CACCOptional: No
Call by Reference: No ( called with pass by value option)
DISCDOC -
Data type: EWM_MU_I01_DDOCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISU_MAM_READ_DISCON_DATA
CONNOBJ -
Data type: EWM_MU_I01_COBJOptional: Yes
Call by Reference: No ( called with pass by value option)
MRLIMITS -
Data type: EWM_MU_I01_MRLIMITSOptional: Yes
Call by Reference: Yes
DEVLOC -
Data type: EWM_MU_I01_DLOCOptional: Yes
Call by Reference: No ( called with pass by value option)
MRNOTE -
Data type: EWM_MU_I01_MRNOTEOptional: Yes
Call by Reference: No ( called with pass by value option)
DEVICE -
Data type: EWM_MU_I01_DEVOptional: Yes
Call by Reference: No ( called with pass by value option)
MREAD -
Data type: EWM_MU_I01_MREADOptional: Yes
Call by Reference: No ( called with pass by value option)
PREM -
Data type: EWM_MU_I01_PREMOptional: Yes
Call by Reference: No ( called with pass by value option)
INST -
Data type: EWM_MU_I01_INSTOptional: Yes
Call by Reference: No ( called with pass by value option)
OPENITEM -
Data type: EWM_MU_I01_AOIOptional: Yes
Call by Reference: Yes
DISCACT -
Data type: EWM_MU_I01_DACTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISU_MAM_READ_DISCON_DATA 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_y_disc | TYPE KENNZX, " | |||
| lt_connobj | TYPE STANDARD TABLE OF EWM_MU_I01_COBJ, " | |||
| lv_flag_order | TYPE KENNZX, " | |||
| lv_not_qualified | TYPE KENNZX, " | |||
| lt_mrlimits | TYPE STANDARD TABLE OF EWM_MU_I01_MRLIMITS, " | |||
| lv_y_pay | TYPE KENNZX, " | |||
| lt_devloc | TYPE STANDARD TABLE OF EWM_MU_I01_DLOC, " | |||
| lv_orderid | TYPE AUFNR, " | |||
| lv_not_found | TYPE AUFNR, " | |||
| lt_mrnote | TYPE STANDARD TABLE OF EWM_MU_I01_MRNOTE, " | |||
| lv_y_reco | TYPE KENNZX, " | |||
| lv_notif_no | TYPE QMNUM, " | |||
| lv_system_error | TYPE QMNUM, " | |||
| lv_langu | TYPE SY-LANGU, " | |||
| lt_device | TYPE STANDARD TABLE OF EWM_MU_I01_DEV, " | |||
| lv_account | TYPE EWM_MU_I01_CACC, " | |||
| lt_mread | TYPE STANDARD TABLE OF EWM_MU_I01_MREAD, " | |||
| lv_x_date | TYPE SY-DATUM, " SY-DATUM | |||
| lv_discdoc | TYPE EWM_MU_I01_DDOC, " | |||
| lt_prem | TYPE STANDARD TABLE OF EWM_MU_I01_PREM, " | |||
| lv_x_discno | TYPE EDISCACT-DISCNO, " | |||
| lt_inst | TYPE STANDARD TABLE OF EWM_MU_I01_INST, " | |||
| lv_x_discact | TYPE EDISCACT-DISCACT, " | |||
| lt_openitem | TYPE STANDARD TABLE OF EWM_MU_I01_AOI, " | |||
| lt_discact | TYPE STANDARD TABLE OF EWM_MU_I01_DACT. " |
|   CALL FUNCTION 'ISU_MAM_READ_DISCON_DATA' " |
| EXPORTING | ||
| FLAG_ORDER | = lv_flag_order | |
| ORDERID | = lv_orderid | |
| NOTIF_NO | = lv_notif_no | |
| LANGU | = lv_langu | |
| X_DATE | = lv_x_date | |
| X_DISCNO | = lv_x_discno | |
| X_DISCACT | = lv_x_discact | |
| IMPORTING | ||
| Y_DISC | = lv_y_disc | |
| Y_PAY | = lv_y_pay | |
| Y_RECO | = lv_y_reco | |
| ACCOUNT | = lv_account | |
| DISCDOC | = lv_discdoc | |
| TABLES | ||
| CONNOBJ | = lt_connobj | |
| MRLIMITS | = lt_mrlimits | |
| DEVLOC | = lt_devloc | |
| MRNOTE | = lt_mrnote | |
| DEVICE | = lt_device | |
| MREAD | = lt_mread | |
| PREM | = lt_prem | |
| INST | = lt_inst | |
| OPENITEM | = lt_openitem | |
| DISCACT | = lt_discact | |
| EXCEPTIONS | ||
| NOT_QUALIFIED = 1 | ||
| NOT_FOUND = 2 | ||
| SYSTEM_ERROR = 3 | ||
| . " ISU_MAM_READ_DISCON_DATA | ||
ABAP code using 7.40 inline data declarations to call FM ISU_MAM_READ_DISCON_DATA
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 LANGU FROM SY INTO @DATA(ld_langu). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_x_date). | ||||
| DATA(ld_x_date) | = SY-DATUM. | |||
| "SELECT single DISCNO FROM EDISCACT INTO @DATA(ld_x_discno). | ||||
| "SELECT single DISCACT FROM EDISCACT INTO @DATA(ld_x_discact). | ||||
Search for further information about these or an SAP related objects