SAP CO_DT_LST_REC_DEL_CHK Function Module for Check whether deletion of an object is allowed (from lists)









CO_DT_LST_REC_DEL_CHK is a standard co dt lst rec del chk SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check whether deletion of an object is allowed (from lists) 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 co dt lst rec del chk FM, simply by entering the name CO_DT_LST_REC_DEL_CHK into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_DT_LST_REC_DEL_CHK 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 'CO_DT_LST_REC_DEL_CHK'"Check whether deletion of an object is allowed (from lists)
EXPORTING
* FLG_OPR_SOP = 'X' "Indicator: same handling of operations and sub-operations
OBJECT = "
* RCOLS_IMP = "CIM order: Structure of sort key of dialog table

IMPORTING
FLG_PROV = "Allocations to the object exist

EXCEPTIONS
CMP_ALREADY_DEL = 1 SEQ_ALREADY_DEL = 10 SOP_ALREADY_DEL = 11 STAT_ERROR = 12 SUBNET_EXISTS = 13 CMP_IS_BYPRODUCT = 14 CMP_IS_PRODNET = 15 CMP_IS_FOLLOW = 16 CMP_IS_RSCOMP = 17 ERROR_NO_MESSAGE = 18 POS_ALREADY_REL = 19 DEL_OF_LAST_OPR = 2 POS_ALREADY_CONFIRMED = 20 OPR_DEL_NOT_ALLOWED = 21 POS_SPLIT = 22 POS_NOT_DELETE = 23 SRV_WO_PACKNO = 24 PO_EXISTS_CHK = 25 MAT_ALREADY_WTHDRWN = 26 OPR_ACTUAL_COSTS = 27 FHM_ALREADY_DEL = 3 FLG_OPR_BZNKN = 4 FLG_OPR_IN_SEQ_DEL = 5 PNCMP_TO_DEALLOCATE = 6 FLG_STA_DEL = 7 NO_MARKED = 8 POS_ALREADY_DEL = 9
.



IMPORTING Parameters details for CO_DT_LST_REC_DEL_CHK

FLG_OPR_SOP - Indicator: same handling of operations and sub-operations

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

OBJECT -

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

RCOLS_IMP - CIM order: Structure of sort key of dialog table

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

EXPORTING Parameters details for CO_DT_LST_REC_DEL_CHK

FLG_PROV - Allocations to the object exist

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

EXCEPTIONS details

CMP_ALREADY_DEL - Component already deleted

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

SEQ_ALREADY_DEL - Sequence already deleted

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

SOP_ALREADY_DEL - Suboperation already deleted

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

STAT_ERROR - Operation check resulted in error

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

SUBNET_EXISTS -

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

CMP_IS_BYPRODUCT -

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

CMP_IS_PRODNET -

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

CMP_IS_FOLLOW -

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

CMP_IS_RSCOMP -

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

ERROR_NO_MESSAGE -

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

POS_ALREADY_REL -

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

DEL_OF_LAST_OPR - Last operation should be deleted

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

POS_ALREADY_CONFIRMED -

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

OPR_DEL_NOT_ALLOWED -

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

POS_SPLIT -

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

POS_NOT_DELETE -

Data type:
Optional: No
Call by Reference: Yes

SRV_WO_PACKNO -

Data type:
Optional: No
Call by Reference: Yes

PO_EXISTS_CHK -

Data type:
Optional: No
Call by Reference: Yes

MAT_ALREADY_WTHDRWN -

Data type:
Optional: No
Call by Reference: Yes

OPR_ACTUAL_COSTS -

Data type:
Optional: No
Call by Reference: Yes

FHM_ALREADY_DEL - PRT already deleted

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

FLG_OPR_BZNKN - Operation is reference point

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

FLG_OPR_IN_SEQ_DEL - Still operations in sequence

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

PNCMP_TO_DEALLOCATE -

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

FLG_STA_DEL - Master sequence cannot be deleted

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

NO_MARKED - No record selected

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

POS_ALREADY_DEL - Operation already deleted

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

Copy and paste ABAP code example for CO_DT_LST_REC_DEL_CHK 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_flg_prov  TYPE XFELD, "   
lv_flg_opr_sop  TYPE TCO01-FLG_OPRSOP, "   'X'
lv_cmp_already_del  TYPE TCO01, "   
lv_seq_already_del  TYPE TCO01, "   
lv_sop_already_del  TYPE TCO01, "   
lv_stat_error  TYPE TCO01, "   
lv_subnet_exists  TYPE TCO01, "   
lv_cmp_is_byproduct  TYPE TCO01, "   
lv_cmp_is_prodnet  TYPE TCO01, "   
lv_cmp_is_follow  TYPE TCO01, "   
lv_cmp_is_rscomp  TYPE TCO01, "   
lv_error_no_message  TYPE TCO01, "   
lv_pos_already_rel  TYPE TCO01, "   
lv_object  TYPE RC27X-OBJECT, "   
lv_del_of_last_opr  TYPE RC27X, "   
lv_pos_already_confirmed  TYPE RC27X, "   
lv_opr_del_not_allowed  TYPE RC27X, "   
lv_pos_split  TYPE RC27X, "   
lv_pos_not_delete  TYPE RC27X, "   
lv_srv_wo_packno  TYPE RC27X, "   
lv_po_exists_chk  TYPE RC27X, "   
lv_mat_already_wthdrwn  TYPE RC27X, "   
lv_opr_actual_costs  TYPE RC27X, "   
lv_rcols_imp  TYPE RCOLS, "   
lv_fhm_already_del  TYPE RCOLS, "   
lv_flg_opr_bznkn  TYPE RCOLS, "   
lv_flg_opr_in_seq_del  TYPE RCOLS, "   
lv_pncmp_to_deallocate  TYPE RCOLS, "   
lv_flg_sta_del  TYPE RCOLS, "   
lv_no_marked  TYPE RCOLS, "   
lv_pos_already_del  TYPE RCOLS. "   

  CALL FUNCTION 'CO_DT_LST_REC_DEL_CHK'  "Check whether deletion of an object is allowed (from lists)
    EXPORTING
         FLG_OPR_SOP = lv_flg_opr_sop
         OBJECT = lv_object
         RCOLS_IMP = lv_rcols_imp
    IMPORTING
         FLG_PROV = lv_flg_prov
    EXCEPTIONS
        CMP_ALREADY_DEL = 1
        SEQ_ALREADY_DEL = 10
        SOP_ALREADY_DEL = 11
        STAT_ERROR = 12
        SUBNET_EXISTS = 13
        CMP_IS_BYPRODUCT = 14
        CMP_IS_PRODNET = 15
        CMP_IS_FOLLOW = 16
        CMP_IS_RSCOMP = 17
        ERROR_NO_MESSAGE = 18
        POS_ALREADY_REL = 19
        DEL_OF_LAST_OPR = 2
        POS_ALREADY_CONFIRMED = 20
        OPR_DEL_NOT_ALLOWED = 21
        POS_SPLIT = 22
        POS_NOT_DELETE = 23
        SRV_WO_PACKNO = 24
        PO_EXISTS_CHK = 25
        MAT_ALREADY_WTHDRWN = 26
        OPR_ACTUAL_COSTS = 27
        FHM_ALREADY_DEL = 3
        FLG_OPR_BZNKN = 4
        FLG_OPR_IN_SEQ_DEL = 5
        PNCMP_TO_DEALLOCATE = 6
        FLG_STA_DEL = 7
        NO_MARKED = 8
        POS_ALREADY_DEL = 9
. " CO_DT_LST_REC_DEL_CHK




ABAP code using 7.40 inline data declarations to call FM CO_DT_LST_REC_DEL_CHK

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 FLG_OPRSOP FROM TCO01 INTO @DATA(ld_flg_opr_sop).
DATA(ld_flg_opr_sop) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single OBJECT FROM RC27X INTO @DATA(ld_object).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!