Ansicht
Dokumentation

EXIT_SAPLCUCP_004 - Deleted Assignment of Class to Object Despite Configured Objects

EXIT_SAPLCUCP_004 - Deleted Assignment of Class to Object Despite Configured Objects

PERFORM Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This module is used to delete the assignment of a class to a material. It is called in function module "CUCP_CHECK_DEL_OBJ_CLASS_CONF".

It is only called when a variant class is deleted if configured objects (such as sales orders) already exist. In addition, data must be deleted using Engineering Change Management (I_AENNR), the date of the change (I_DATUV) must be in the future, and the class type involved must be a variant class type (CUCP_VAR_CLASS_TYPE).

If you want to delete the assignment, the exception "DELETION_ALLOWED" must be triggered.

If the exception "DELETION_ALLOWED" is not triggered, the system refuses to delete the data.

This function module corresponds to function module EXIT_SAPLCLDL_002, used in Release < 4.5A.

Example

You assigned class K1 to material KMAT1. Sales orders exist for material KMAT1.

If future sales orders, you no longer want to use the characteristics of class K1, and use Engineering Change Management to delete the assignment of the class to the material. You must use transaction CL20 to do this. You cannot do it in the configuration profile (CU42).

Coding example:

include zxcucpu03.

raise DELETION_ALLOWED.

In this example, it is possible to delete the assignments, bearing in mind the provisos mentioned above.

Notes

The field "AEDIEZUORD" (Engineering Change Management classification) must be selected in the tables TCLA (class types) and TCLAO (several objects in a class type) for the variant class type. You must ensure that objects (such as sales orders) configured online are not moved forward in time past the change date, as this would lead to inconsistencies.

Further information





Parameters

CONFIGURED_OBJECTS_INOB
I_AENNR
I_CUCP_OBJECT_TABLE
I_DATUV
I_ROOT_OBJECT_KEY
I_VAR_CLASS_TYPE

Exceptions

DELETION_ALLOWED

Function Group

XCUCP

PERFORM Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 2148 Date: 20240603 Time: 223606     sap01-206 ( 50 ms )