SAP CZ_CL_P_MTK_DELETE_BY_TSK Function Module for NOTRANSL: Löschen von Material-Planzuordnungen









CZ_CL_P_MTK_DELETE_BY_TSK is a standard cz cl p mtk delete by tsk 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: Löschen von Material-Planzuordnungen 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 cz cl p mtk delete by tsk FM, simply by entering the name CZ_CL_P_MTK_DELETE_BY_TSK into the relevant SAP transaction such as SE37 or SE38.

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



Function CZ_CL_P_MTK_DELETE_BY_TSK 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 'CZ_CL_P_MTK_DELETE_BY_TSK'"NOTRANSL: Löschen von Material-Planzuordnungen
EXPORTING
I_ECN_S = "Change Number
I_KEY_DATE_S = "Valid-From Date
* I_DATE_FROM_ECM = SY-DATUM "ABAP System Field: Current Date of Application Server
* I_DATE_TO_ECM = SY-DATUM "ABAP System Field: Current Date of Application Server
I_TSK_IDENT = "
* I_TSK_IDENT_ECM = "
* I_FLG_ECM_EVALUATE = ' ' "Generic Type
.




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_SAPLCZCL_001 EWB: Exit to the search field test in material/ routing assignment (MAPL)

IMPORTING Parameters details for CZ_CL_P_MTK_DELETE_BY_TSK

I_ECN_S - Change Number

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

I_KEY_DATE_S - Valid-From Date

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

I_DATE_FROM_ECM - ABAP System Field: Current Date of Application Server

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

I_DATE_TO_ECM - ABAP System Field: Current Date of Application Server

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

I_TSK_IDENT -

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

I_TSK_IDENT_ECM -

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

I_FLG_ECM_EVALUATE - Generic Type

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

Copy and paste ABAP code example for CZ_CL_P_MTK_DELETE_BY_TSK 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_i_ecn_s  TYPE SEQ_CLASS_DATA-AENNR, "   
lv_i_key_date_s  TYPE SEQ_CLASS_DATA-DATUV, "   
lv_i_date_from_ecm  TYPE SY-DATUM, "   SY-DATUM
lv_i_date_to_ecm  TYPE SY-DATUM, "   SY-DATUM
lv_i_tsk_ident  TYPE CPCL_TSK_TAB_TYPE, "   
lv_i_tsk_ident_ecm  TYPE CPCL_TSK_TAB_TYPE, "   
lv_i_flg_ecm_evaluate  TYPE C. "   SPACE

  CALL FUNCTION 'CZ_CL_P_MTK_DELETE_BY_TSK'  "NOTRANSL: Löschen von Material-Planzuordnungen
    EXPORTING
         I_ECN_S = lv_i_ecn_s
         I_KEY_DATE_S = lv_i_key_date_s
         I_DATE_FROM_ECM = lv_i_date_from_ecm
         I_DATE_TO_ECM = lv_i_date_to_ecm
         I_TSK_IDENT = lv_i_tsk_ident
         I_TSK_IDENT_ECM = lv_i_tsk_ident_ecm
         I_FLG_ECM_EVALUATE = lv_i_flg_ecm_evaluate
. " CZ_CL_P_MTK_DELETE_BY_TSK




ABAP code using 7.40 inline data declarations to call FM CZ_CL_P_MTK_DELETE_BY_TSK

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 AENNR FROM SEQ_CLASS_DATA INTO @DATA(ld_i_ecn_s).
 
"SELECT single DATUV FROM SEQ_CLASS_DATA INTO @DATA(ld_i_key_date_s).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_date_from_ecm).
DATA(ld_i_date_from_ecm) = SY-DATUM.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_date_to_ecm).
DATA(ld_i_date_to_ecm) = SY-DATUM.
 
 
 
DATA(ld_i_flg_ecm_evaluate) = ' '.
 


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!