SAP KBAS_CO_GROUP_DELETE_CHECK Function Module for NOTRANSL: Löschen eines Sets und seiner nicht woanders verwendeten Subsets









KBAS_CO_GROUP_DELETE_CHECK is a standard kbas co group delete 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: Löschen eines Sets und seiner nicht woanders verwendeten Subsets 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 kbas co group delete check FM, simply by entering the name KBAS_CO_GROUP_DELETE_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function KBAS_CO_GROUP_DELETE_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 'KBAS_CO_GROUP_DELETE_CHECK'"NOTRANSL: Löschen eines Sets und seiner nicht woanders verwendeten Subsets
EXPORTING
* CLASS = "Set class
IF_IGNORE_USAGE_IN_SETS = "General Indicator
* NO_AUTHORITY_CHECK = "'X' --> no Authorization Check
SET = "Name of set
* SUBCLASSMASK = '*' "Set class
* SUBSETMASK = '*' "Generic Type
* BLOCKING_CHECK = "Generic Type
* DONT_DELETE_CLASS_0 = "Generic Type
* DONT_DELETE_STD_HIER = "Generic Type
* TAB = "Table for set

TABLES
* USED_SUBSETS = "Listing of Sets

EXCEPTIONS
NOT_FOUND = 1 NO_AUTHORITY = 2 SET_IS_USED = 3 SET_IS_BLOCKED = 4
.



IMPORTING Parameters details for KBAS_CO_GROUP_DELETE_CHECK

CLASS - Set class

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

IF_IGNORE_USAGE_IN_SETS - General Indicator

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

NO_AUTHORITY_CHECK - 'X' --> no Authorization Check

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

SET - Name of set

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

SUBCLASSMASK - Set class

Data type: RGSBS-CLASS
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUBSETMASK - Generic Type

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

BLOCKING_CHECK - Generic Type

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

DONT_DELETE_CLASS_0 - Generic Type

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

DONT_DELETE_STD_HIER - Generic Type

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

TAB - Table for set

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

TABLES Parameters details for KBAS_CO_GROUP_DELETE_CHECK

USED_SUBSETS - Listing of Sets

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

EXCEPTIONS details

NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

NO_AUTHORITY - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

SET_IS_USED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

SET_IS_BLOCKED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for KBAS_CO_GROUP_DELETE_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_class  TYPE RGSBS-CLASS, "   
lv_not_found  TYPE RGSBS, "   
lt_used_subsets  TYPE STANDARD TABLE OF SETLIST, "   
lv_if_ignore_usage_in_sets  TYPE FLAG, "   
lv_no_authority  TYPE FLAG, "   
lv_no_authority_check  TYPE C, "   
lv_set  TYPE C, "   
lv_set_is_used  TYPE C, "   
lv_subclassmask  TYPE RGSBS-CLASS, "   '*'
lv_set_is_blocked  TYPE RGSBS, "   
lv_subsetmask  TYPE C, "   '*'
lv_blocking_check  TYPE C, "   
lv_dont_delete_class_0  TYPE C, "   
lv_dont_delete_std_hier  TYPE C, "   
lv_tab  TYPE RGSBS-TABLE. "   

  CALL FUNCTION 'KBAS_CO_GROUP_DELETE_CHECK'  "NOTRANSL: Löschen eines Sets und seiner nicht woanders verwendeten Subsets
    EXPORTING
         CLASS = lv_class
         IF_IGNORE_USAGE_IN_SETS = lv_if_ignore_usage_in_sets
         NO_AUTHORITY_CHECK = lv_no_authority_check
         SET = lv_set
         SUBCLASSMASK = lv_subclassmask
         SUBSETMASK = lv_subsetmask
         BLOCKING_CHECK = lv_blocking_check
         DONT_DELETE_CLASS_0 = lv_dont_delete_class_0
         DONT_DELETE_STD_HIER = lv_dont_delete_std_hier
         TAB = lv_tab
    TABLES
         USED_SUBSETS = lt_used_subsets
    EXCEPTIONS
        NOT_FOUND = 1
        NO_AUTHORITY = 2
        SET_IS_USED = 3
        SET_IS_BLOCKED = 4
. " KBAS_CO_GROUP_DELETE_CHECK




ABAP code using 7.40 inline data declarations to call FM KBAS_CO_GROUP_DELETE_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 CLASS FROM RGSBS INTO @DATA(ld_class).
 
 
 
 
 
 
 
 
"SELECT single CLASS FROM RGSBS INTO @DATA(ld_subclassmask).
DATA(ld_subclassmask) = '*'.
 
 
DATA(ld_subsetmask) = '*'.
 
 
 
 
"SELECT single TABLE FROM RGSBS INTO @DATA(ld_tab).
 


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!