Ansicht
Dokumentation
EXIT_SAPLCLDL_002 - Ignore Selected Objects When Deleting in CLDL
General Material Data BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Functionality
This module is used in posting to prevent the valuation of certain objects (AUSP records) from being deleted. It is called in function module "CLDL_DELETE_CLASSIF_FROM_CLASS".
It is only called if a characteristic (I_FEATURE) is deleted and if the class type concerned is a variant class type (e.g. 300).
If you do not want to delete the data, the exception NO_DELETION must be selected.
If the exception NO_DELETION is not triggered, valuations (instances) may be inconsistent. It may then not be possible to reproduce existing configured objects (such as sales orders).
This only affects "old" configurations (<4.5A) in the old configuration storage (INOB/KSSK/AUSP). This customer enhancement is not relevant for configurations (such as sales orders) that were created in a Release >= 4.5A.
This function module corresponds to function module EXIT_SAPLCLDL_001 used in Release < 4.5A.
Example
You assigned characteristic M1 to class K1. Class K1 is assigned to material KMAT1. Sales orders exist for material KMAT1.
In future sales orders, you no longer want to use characteristic M1, and use Engineering Change Management to delete it and function module "EXIT_SAPLCUCP_003" (also contained in this SAP enhancement) from the class.
To ensure consistency of "old" sales orders, you need to use this function module to prevent the valuations (AUSP entries) for characteristic M1 from being deleted.
However, you only want to exclude valuations for the configuration. You ensure this by having a non-initial I_INOB-ROBJEK field
Coding example:
include zxcucpu01.
if not I_INOB-ROBJEK is initial.
* no deletion only for configured objects
raise NO_DELETION.
endif.
In the above example, all AUSP for configured objects (such as sales orders) are retained.
Notes
You must ensure that the "old" configured objects (such as sales orders) are not moved forward in time past the change date, as this would lead to inconsistencies.
Further information
Parameters
I_AENNRI_DATE
I_FEATURE
I_INOB
I_KSSK
I_TCLA
Exceptions
NO_DELETIONFunction Group
XCUCPPERFORM Short Reference CPI1466 during Backup
This documentation is copyright by SAP AG.
Length: 2475 Date: 20240523 Time: 072158 sap01-206 ( 43 ms )