SAP ISM_MATERIAL_DARK_ALOG Function Module for Application Log for Media Issue Creation









ISM_MATERIAL_DARK_ALOG is a standard ism material dark alog SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Application Log for Media Issue Creation 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 ism material dark alog FM, simply by entering the name ISM_MATERIAL_DARK_ALOG into the relevant SAP transaction such as SE37 or SE38.

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



Function ISM_MATERIAL_DARK_ALOG 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 'ISM_MATERIAL_DARK_ALOG'"Application Log for Media Issue Creation
EXPORTING
MEDPROD_STRU = "
* ID_ERRMSG_TAB = "
* CACL_ERRMSG_TAB = "
* BUPA_ERRMSG_TAB = "
* MDMA_ERRMSG_TAB = "
* LT_STILL_EXIST = "IS-M. MARA Segments
* XADD_SEGMENTS = "Checkbox Field
* JPTMARA_ERRMSG_TAB = "Table Type for MERRDAT
* XCOPY_SEGMENTS = "Checkbox Field
* MSGNO_SHORT = "
* NUMBER_ERRORS_TRANSACTION = "Number of incorrect data records
* XTEST = "Test Run
* MSGV1_SHORT = "
* MSGV2_SHORT = "
* MSGV3_SHORT = "
* MSGV4_SHORT = "
* MSGID_SHORT = "

IMPORTING
XERROR_FOUND = "

TABLES
ERRMSG_TAB = "DI: Structure for Returning Error Messages
.



IMPORTING Parameters details for ISM_MATERIAL_DARK_ALOG

MEDPROD_STRU -

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

ID_ERRMSG_TAB -

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

CACL_ERRMSG_TAB -

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

BUPA_ERRMSG_TAB -

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

MDMA_ERRMSG_TAB -

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

LT_STILL_EXIST - IS-M. MARA Segments

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

XADD_SEGMENTS - Checkbox Field

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

JPTMARA_ERRMSG_TAB - Table Type for MERRDAT

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

XCOPY_SEGMENTS - Checkbox Field

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

MSGNO_SHORT -

Data type: SYST-MSGNO
Optional: Yes
Call by Reference: Yes

NUMBER_ERRORS_TRANSACTION - Number of incorrect data records

Data type: TBIST-NUMERROR
Optional: Yes
Call by Reference: Yes

XTEST - Test Run

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

MSGV1_SHORT -

Data type: SYST-MSGV1
Optional: Yes
Call by Reference: Yes

MSGV2_SHORT -

Data type: SYST-MSGV2
Optional: Yes
Call by Reference: Yes

MSGV3_SHORT -

Data type: SYST-MSGV3
Optional: Yes
Call by Reference: Yes

MSGV4_SHORT -

Data type: SYST-MSGV4
Optional: Yes
Call by Reference: Yes

MSGID_SHORT -

Data type: SYST-MSGID
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ISM_MATERIAL_DARK_ALOG

XERROR_FOUND -

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

TABLES Parameters details for ISM_MATERIAL_DARK_ALOG

ERRMSG_TAB - DI: Structure for Returning Error Messages

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

Copy and paste ABAP code example for ISM_MATERIAL_DARK_ALOG 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:
lt_errmsg_tab  TYPE STANDARD TABLE OF MERRDAT, "   
lv_medprod_stru  TYPE MARA, "   
lv_xerror_found  TYPE XFELD, "   
lv_id_errmsg_tab  TYPE JP_MERRDAT_TAB, "   
lv_cacl_errmsg_tab  TYPE JP_MERRDAT_TAB, "   
lv_bupa_errmsg_tab  TYPE JP_MERRDAT_TAB, "   
lv_mdma_errmsg_tab  TYPE JP_MERRDAT_TAB, "   
lv_lt_still_exist  TYPE JP_MARASEGMENTS_TAB, "   
lv_xadd_segments  TYPE XFELD, "   
lv_jptmara_errmsg_tab  TYPE JP_MERRDAT_TAB, "   
lv_xcopy_segments  TYPE XFELD, "   
lv_msgno_short  TYPE SYST-MSGNO, "   
lv_number_errors_transaction  TYPE TBIST-NUMERROR, "   
lv_xtest  TYPE XFELD, "   
lv_msgv1_short  TYPE SYST-MSGV1, "   
lv_msgv2_short  TYPE SYST-MSGV2, "   
lv_msgv3_short  TYPE SYST-MSGV3, "   
lv_msgv4_short  TYPE SYST-MSGV4, "   
lv_msgid_short  TYPE SYST-MSGID. "   

  CALL FUNCTION 'ISM_MATERIAL_DARK_ALOG'  "Application Log for Media Issue Creation
    EXPORTING
         MEDPROD_STRU = lv_medprod_stru
         ID_ERRMSG_TAB = lv_id_errmsg_tab
         CACL_ERRMSG_TAB = lv_cacl_errmsg_tab
         BUPA_ERRMSG_TAB = lv_bupa_errmsg_tab
         MDMA_ERRMSG_TAB = lv_mdma_errmsg_tab
         LT_STILL_EXIST = lv_lt_still_exist
         XADD_SEGMENTS = lv_xadd_segments
         JPTMARA_ERRMSG_TAB = lv_jptmara_errmsg_tab
         XCOPY_SEGMENTS = lv_xcopy_segments
         MSGNO_SHORT = lv_msgno_short
         NUMBER_ERRORS_TRANSACTION = lv_number_errors_transaction
         XTEST = lv_xtest
         MSGV1_SHORT = lv_msgv1_short
         MSGV2_SHORT = lv_msgv2_short
         MSGV3_SHORT = lv_msgv3_short
         MSGV4_SHORT = lv_msgv4_short
         MSGID_SHORT = lv_msgid_short
    IMPORTING
         XERROR_FOUND = lv_xerror_found
    TABLES
         ERRMSG_TAB = lt_errmsg_tab
. " ISM_MATERIAL_DARK_ALOG




ABAP code using 7.40 inline data declarations to call FM ISM_MATERIAL_DARK_ALOG

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 MSGNO FROM SYST INTO @DATA(ld_msgno_short).
 
"SELECT single NUMERROR FROM TBIST INTO @DATA(ld_number_errors_transaction).
 
 
"SELECT single MSGV1 FROM SYST INTO @DATA(ld_msgv1_short).
 
"SELECT single MSGV2 FROM SYST INTO @DATA(ld_msgv2_short).
 
"SELECT single MSGV3 FROM SYST INTO @DATA(ld_msgv3_short).
 
"SELECT single MSGV4 FROM SYST INTO @DATA(ld_msgv4_short).
 
"SELECT single MSGID FROM SYST INTO @DATA(ld_msgid_short).
 


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!