SAP K_MASTERDATA_DELETE_CHECKS Function Module for









K_MASTERDATA_DELETE_CHECKS is a standard k masterdata delete checks 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 k masterdata delete checks FM, simply by entering the name K_MASTERDATA_DELETE_CHECKS into the relevant SAP transaction such as SE37 or SE38.

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



Function K_MASTERDATA_DELETE_CHECKS 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 'K_MASTERDATA_DELETE_CHECKS'"
EXPORTING
KOKRS = "
* NEW_VALUE = "
* DATAB = SY-DATUM "
* DATBI = SY-DATUM "
* PRZNR_ONLY_COKL = ' ' "
* KSTAR_KATYP_43 = ' ' "
* KZ_TEST = 'X' "
* FOR_DEL = "
OBJECT_CLASS = "
* KOSTL = "
* KSTAR = "
* LSTAR = "
* PRZNR = "
* OBJNR = "
* FDNAM = "
* OLD_VALUE = "

IMPORTING
SUM_FLAG = "
TABNAME = "
E_MESSAGE = "

EXCEPTIONS
WRONG_INPUT_PARAMETERS = 1 OBJECT_LOCKED = 2
.



IMPORTING Parameters details for K_MASTERDATA_DELETE_CHECKS

KOKRS -

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

NEW_VALUE -

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

DATAB -

Data type: DATAB
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATBI -

Data type: DATBI
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

PRZNR_ONLY_COKL -

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

KSTAR_KATYP_43 -

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

KZ_TEST -

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

FOR_DEL -

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

OBJECT_CLASS -

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

KOSTL -

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

KSTAR -

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

LSTAR -

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

PRZNR -

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

OBJNR -

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

FDNAM -

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

OLD_VALUE -

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

EXPORTING Parameters details for K_MASTERDATA_DELETE_CHECKS

SUM_FLAG -

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

TABNAME -

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

E_MESSAGE -

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

EXCEPTIONS details

WRONG_INPUT_PARAMETERS -

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

OBJECT_LOCKED -

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

Copy and paste ABAP code example for K_MASTERDATA_DELETE_CHECKS 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_kokrs  TYPE KOKRS, "   
lv_sum_flag  TYPE C, "   
lv_wrong_input_parameters  TYPE C, "   
lv_new_value  TYPE CHAR40, "   
lv_datab  TYPE DATAB, "   SY-DATUM
lv_datbi  TYPE DATBI, "   SY-DATUM
lv_prznr_only_cokl  TYPE C, "   SPACE
lv_kstar_katyp_43  TYPE C, "   SPACE
lv_kz_test  TYPE C, "   'X'
lv_for_del  TYPE BOOLEAN, "   
lv_tabname  TYPE TABNAME, "   
lv_object_class  TYPE FIELDNAME, "   
lv_object_locked  TYPE FIELDNAME, "   
lv_kostl  TYPE KOSTL, "   
lv_e_message  TYPE CVIMESSAGE, "   
lv_kstar  TYPE KSTAR, "   
lv_lstar  TYPE LSTAR, "   
lv_prznr  TYPE CO_PRZNR, "   
lv_objnr  TYPE J_OBJNR, "   
lv_fdnam  TYPE FIELDNAME, "   
lv_old_value  TYPE CHAR40. "   

  CALL FUNCTION 'K_MASTERDATA_DELETE_CHECKS'  "
    EXPORTING
         KOKRS = lv_kokrs
         NEW_VALUE = lv_new_value
         DATAB = lv_datab
         DATBI = lv_datbi
         PRZNR_ONLY_COKL = lv_prznr_only_cokl
         KSTAR_KATYP_43 = lv_kstar_katyp_43
         KZ_TEST = lv_kz_test
         FOR_DEL = lv_for_del
         OBJECT_CLASS = lv_object_class
         KOSTL = lv_kostl
         KSTAR = lv_kstar
         LSTAR = lv_lstar
         PRZNR = lv_prznr
         OBJNR = lv_objnr
         FDNAM = lv_fdnam
         OLD_VALUE = lv_old_value
    IMPORTING
         SUM_FLAG = lv_sum_flag
         TABNAME = lv_tabname
         E_MESSAGE = lv_e_message
    EXCEPTIONS
        WRONG_INPUT_PARAMETERS = 1
        OBJECT_LOCKED = 2
. " K_MASTERDATA_DELETE_CHECKS




ABAP code using 7.40 inline data declarations to call FM K_MASTERDATA_DELETE_CHECKS

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.

 
 
 
 
DATA(ld_datab) = SY-DATUM.
 
DATA(ld_datbi) = SY-DATUM.
 
DATA(ld_prznr_only_cokl) = ' '.
 
DATA(ld_kstar_katyp_43) = ' '.
 
DATA(ld_kz_test) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
 


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!