SAP EXIT_SAPLCUCP_004 Function Module for Deleted Assignment of Class to Object Despite Configured Objects









EXIT_SAPLCUCP_004 is a standard exit saplcucp 004 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Deleted Assignment of Class to Object Despite Configured Objects 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 exit saplcucp 004 FM, simply by entering the name EXIT_SAPLCUCP_004 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLCUCP_004 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 'EXIT_SAPLCUCP_004'"Deleted Assignment of Class to Object Despite Configured Objects
EXPORTING
I_VAR_CLASS_TYPE = "Class type
I_ROOT_OBJECT_KEY = "Key of Object to be Classified
I_CUCP_OBJECT_TABLE = "Name of Database Table for Object
I_AENNR = "Change number
I_DATUV = "Valid-From Date

TABLES
CONFIGURED_OBJECTS_INOB = "Link between Internal Number and Object

EXCEPTIONS
DELETION_ALLOWED = 1
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
CUCP_CHECK_CLASS_CHAR_CONFIG NOTRANSL: Verwendung Merkmal in konfigurierten Objekten bzgl. Klasse
CUCP_CHECK_DEL_CLASS_CHAR_CONF NOTRANSL: Verwendungsprüfung Merkmal in konfigurierten Objekten
CUCP_CHECK_DEL_OBJ_CLASS_CONF NOTRANSL: Verwendungsprüfung Klasse in konfigurierten Objekten
CUCP_CHECK_DEL_PROFCNT_CONF NOTRANSL: Verwendungsprüfung einzelnes Konfigurationsprofil in konfig. Obj
CUCP_CHECK_MULTILEVEL_CFG NOTRANSL: Prüfung auf mehrstufige Konfigurationen
CUCP_CHECK_MULTILEVEL_CFG_IB NOTRANSL: Prüfung auf mehrstufige Konfiguration IBASE
CUCP_CHECK_SINGLELEVEL_CFG_IB NOTRANSL: Prüfung auf einstufige Konfiguration IBASE
CUCP_CHECK_VALUE_IN_CBASE NOTRANSL: Verwendung eines Merkmalwertes in der CBASE (IBSYMBOL)
CUCP_CONFIGURATIONS_EXIST NOTRANSL: Verwendung eines konfigurierbaren Objektes in Konfigurationen
CUCP_CONFIGURATIONS_PROFILE NOTRANSL: Verwendung Profil eines konfigurierbaren Objektes in Konfigurati
CUCP_CONFIGURATIONS_PROFILE_IB NOTRANSL: Verwendung Profil eines konfigurierbaren Objektes in Konfigurati
CUCP_CONF_PROF_COUNT_INOB_IB NOTRANSL: Verwendung eines einzelnen Konfig.-Profils in Konfigurationen (

IMPORTING Parameters details for EXIT_SAPLCUCP_004

I_VAR_CLASS_TYPE - Class type

Data type: KLAH-KLART
Optional: No
Call by Reference: Yes

I_ROOT_OBJECT_KEY - Key of Object to be Classified

Data type: INOB-OBJEK
Optional: No
Call by Reference: Yes

I_CUCP_OBJECT_TABLE - Name of Database Table for Object

Data type: INOB-OBTAB
Optional: No
Call by Reference: Yes

I_AENNR - Change number

Data type: RMCLF-AENNR1
Optional: No
Call by Reference: Yes

I_DATUV - Valid-From Date

Data type: RMCLF-DATUV1
Optional: No
Call by Reference: Yes

TABLES Parameters details for EXIT_SAPLCUCP_004

CONFIGURED_OBJECTS_INOB - Link between Internal Number and Object

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

EXCEPTIONS details

DELETION_ALLOWED - Deletion of classification is permitted

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EXIT_SAPLCUCP_004 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_deletion_allowed  TYPE STRING, "   
lv_i_var_class_type  TYPE KLAH-KLART, "   
lt_configured_objects_inob  TYPE STANDARD TABLE OF INOB, "   
lv_i_root_object_key  TYPE INOB-OBJEK, "   
lv_i_cucp_object_table  TYPE INOB-OBTAB, "   
lv_i_aennr  TYPE RMCLF-AENNR1, "   
lv_i_datuv  TYPE RMCLF-DATUV1. "   

  CALL FUNCTION 'EXIT_SAPLCUCP_004'  "Deleted Assignment of Class to Object Despite Configured Objects
    EXPORTING
         I_VAR_CLASS_TYPE = lv_i_var_class_type
         I_ROOT_OBJECT_KEY = lv_i_root_object_key
         I_CUCP_OBJECT_TABLE = lv_i_cucp_object_table
         I_AENNR = lv_i_aennr
         I_DATUV = lv_i_datuv
    TABLES
         CONFIGURED_OBJECTS_INOB = lt_configured_objects_inob
    EXCEPTIONS
        DELETION_ALLOWED = 1
. " EXIT_SAPLCUCP_004




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLCUCP_004

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 KLART FROM KLAH INTO @DATA(ld_i_var_class_type).
 
 
"SELECT single OBJEK FROM INOB INTO @DATA(ld_i_root_object_key).
 
"SELECT single OBTAB FROM INOB INTO @DATA(ld_i_cucp_object_table).
 
"SELECT single AENNR1 FROM RMCLF INTO @DATA(ld_i_aennr).
 
"SELECT single DATUV1 FROM RMCLF INTO @DATA(ld_i_datuv).
 


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!