SAP MVKE_V_SPECIAL_CHECK Function Module for NOTRANSL: Zusammenfassung Einzelprüfungen Vertriebsdaten für MVKE









MVKE_V_SPECIAL_CHECK is a standard mvke v special check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Zusammenfassung Einzelprüfungen Vertriebsdaten für MVKE 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 mvke v special check FM, simply by entering the name MVKE_V_SPECIAL_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function MVKE_V_SPECIAL_CHECK 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 'MVKE_V_SPECIAL_CHECK'"NOTRANSL: Zusammenfassung Einzelprüfungen Vertriebsdaten für MVKE
EXPORTING
WMVKE = "Sales Data for Material
* FLG_PRUEFDUNKEL = ' ' "Propose Field Content from the Reference
* P_MESSAGE = 'N' "For message type conversion
FLG_RETAIL = "Checkbox
WMARA = "General Material Data
WRMMG1 = "Mat. Master Maintenance: Initial Parameters - Orig. Material
WRMMG1_REF_MATNR = "Reference Material
* WRMMZU = "Material Master Maintenance: Additional Fields
LMVKE = "Sales Data for Material
NEUFLAG = "ABAP System Field: Highlighted Input in Dynpro Field
AKTYP = "Activity category in SAP transaction
* FLG_UEBERNAHME = ' ' "Propose Field Content from the Reference

IMPORTING
WMVKE = "Sales Data for Material
WRMMZU = "Material Master Maintenance: Additional Fields

TABLES
MEINH = "Structure of Table MEINH (Created for Update Program)
* Z_MEINH = "Structure of Table MEINH (Created for Update Program)
DMEINH = "Structure of Table MEINH (Created for Update Program)

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for MVKE_V_SPECIAL_CHECK

WMVKE - Sales Data for Material

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

FLG_PRUEFDUNKEL - Propose Field Content from the Reference

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

P_MESSAGE - For message type conversion

Data type: RMMG08_012-MSGTYP
Default: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_RETAIL - Checkbox

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

WMARA - General Material Data

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

WRMMG1 - Mat. Master Maintenance: Initial Parameters - Orig. Material

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

WRMMG1_REF_MATNR - Reference Material

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

WRMMZU - Material Master Maintenance: Additional Fields

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

LMVKE - Sales Data for Material

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

NEUFLAG - ABAP System Field: Highlighted Input in Dynpro Field

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

AKTYP - Activity category in SAP transaction

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

FLG_UEBERNAHME - Propose Field Content from the Reference

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

EXPORTING Parameters details for MVKE_V_SPECIAL_CHECK

WMVKE - Sales Data for Material

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

WRMMZU - Material Master Maintenance: Additional Fields

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

TABLES Parameters details for MVKE_V_SPECIAL_CHECK

MEINH - Structure of Table MEINH (Created for Update Program)

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

Z_MEINH - Structure of Table MEINH (Created for Update Program)

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

DMEINH - Structure of Table MEINH (Created for Update Program)

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

EXCEPTIONS details

ERROR -

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

Copy and paste ABAP code example for MVKE_V_SPECIAL_CHECK 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_error  TYPE STRING, "   
lt_meinh  TYPE STANDARD TABLE OF SMEINH, "   
lv_wmvke  TYPE MVKE, "   
lv_wmvke  TYPE MVKE, "   
lv_flg_pruefdunkel  TYPE T130F-KZREF, "   SPACE
lv_p_message  TYPE RMMG08_012-MSGTYP, "   'N'
lv_flg_retail  TYPE RMMG2-FLG_RETAIL, "   
lv_wmara  TYPE MARA, "   
lv_wrmmzu  TYPE RMMZU, "   
lt_z_meinh  TYPE STANDARD TABLE OF SMEINH, "   
lt_dmeinh  TYPE STANDARD TABLE OF SMEINH, "   
lv_wrmmg1  TYPE RMMG1, "   
lv_wrmmg1_ref_matnr  TYPE RMMG1_REF-MATNR, "   
lv_wrmmzu  TYPE RMMZU, "   
lv_lmvke  TYPE MVKE, "   
lv_neuflag  TYPE SY-DATAR, "   
lv_aktyp  TYPE T130M-AKTYP, "   
lv_flg_uebernahme  TYPE T130F-KZREF. "   SPACE

  CALL FUNCTION 'MVKE_V_SPECIAL_CHECK'  "NOTRANSL: Zusammenfassung Einzelprüfungen Vertriebsdaten für MVKE
    EXPORTING
         WMVKE = lv_wmvke
         FLG_PRUEFDUNKEL = lv_flg_pruefdunkel
         P_MESSAGE = lv_p_message
         FLG_RETAIL = lv_flg_retail
         WMARA = lv_wmara
         WRMMG1 = lv_wrmmg1
         WRMMG1_REF_MATNR = lv_wrmmg1_ref_matnr
         WRMMZU = lv_wrmmzu
         LMVKE = lv_lmvke
         NEUFLAG = lv_neuflag
         AKTYP = lv_aktyp
         FLG_UEBERNAHME = lv_flg_uebernahme
    IMPORTING
         WMVKE = lv_wmvke
         WRMMZU = lv_wrmmzu
    TABLES
         MEINH = lt_meinh
         Z_MEINH = lt_z_meinh
         DMEINH = lt_dmeinh
    EXCEPTIONS
        ERROR = 1
. " MVKE_V_SPECIAL_CHECK




ABAP code using 7.40 inline data declarations to call FM MVKE_V_SPECIAL_CHECK

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 KZREF FROM T130F INTO @DATA(ld_flg_pruefdunkel).
DATA(ld_flg_pruefdunkel) = ' '.
 
"SELECT single MSGTYP FROM RMMG08_012 INTO @DATA(ld_p_message).
DATA(ld_p_message) = 'N'.
 
"SELECT single FLG_RETAIL FROM RMMG2 INTO @DATA(ld_flg_retail).
 
 
 
 
 
 
"SELECT single MATNR FROM RMMG1_REF INTO @DATA(ld_wrmmg1_ref_matnr).
 
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_neuflag).
 
"SELECT single AKTYP FROM T130M INTO @DATA(ld_aktyp).
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_flg_uebernahme).
DATA(ld_flg_uebernahme) = ' '.
 


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!