SAP CLFM_CLEAR_CLASSIFICATION Function Module for
CLFM_CLEAR_CLASSIFICATION is a standard clfm clear classification SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 clfm clear classification FM, simply by entering the name CLFM_CLEAR_CLASSIFICATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: CLFM
Program Name: SAPLCLFM
Main Program: SAPLCLFM
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CLFM_CLEAR_CLASSIFICATION 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 'CLFM_CLEAR_CLASSIFICATION'".
EXPORTING
* CLASSTYPE = ' ' "Class type
OBJECT = "Object
* PUFFER_ONLY = ' ' "Indicator: X delete from buffer only
* TABLE = "Table of classifiable object
* CHANGE_SERVICE_NUMBER = "Change Number
* DATE_OF_CHANGE = "Date of change number
* OBJ_HAS_CHANGE_SERVICE = "
IMPORTING
UPDATEFLAG = "Indicator: change made
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 TABLE_NOT_FOUND = 3 DATE_NOT_ALLOWED = 4 NOT_DELETED = 5
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCLFM_001 Influences Class and Value Assignment
EXIT_SAPLCLFM_002 Customer Exit for Changing Classification Data Before Saving
EXIT_SAPLCLFM_003 Customer Exit After Check on Assigned Characteristic Values
IMPORTING Parameters details for CLFM_CLEAR_CLASSIFICATION
CLASSTYPE - Class type
Data type: RMCLF-KLARTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJECT - Object
Data type: RMCLF-OBJEKOptional: No
Call by Reference: No ( called with pass by value option)
PUFFER_ONLY - Indicator: X delete from buffer only
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE - Table of classifiable object
Data type: TCLT-OBTABOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_SERVICE_NUMBER - Change Number
Data type: RMCLF-AENNR1Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE_OF_CHANGE - Date of change number
Data type: RMCLF-DATUV1Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJ_HAS_CHANGE_SERVICE -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CLFM_CLEAR_CLASSIFICATION
UPDATEFLAG - Indicator: change made
Data type: RMCLK-UPDATOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FOREIGN_LOCK - Record locked by other user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_FAILURE - General lock error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NOT_FOUND - Table not defined
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATE_NOT_ALLOWED - Date in record = date of change number
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_DELETED - Classification data not deleted
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CLFM_CLEAR_CLASSIFICATION 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_classtype | TYPE RMCLF-KLART, " SPACE | |||
| lv_updateflag | TYPE RMCLK-UPDAT, " | |||
| lv_foreign_lock | TYPE RMCLK, " | |||
| lv_object | TYPE RMCLF-OBJEK, " | |||
| lv_system_failure | TYPE RMCLF, " | |||
| lv_puffer_only | TYPE RMCLF, " SPACE | |||
| lv_table_not_found | TYPE RMCLF, " | |||
| lv_table | TYPE TCLT-OBTAB, " | |||
| lv_date_not_allowed | TYPE TCLT, " | |||
| lv_not_deleted | TYPE TCLT, " | |||
| lv_change_service_number | TYPE RMCLF-AENNR1, " | |||
| lv_date_of_change | TYPE RMCLF-DATUV1, " | |||
| lv_obj_has_change_service | TYPE RMCLF. " |
|   CALL FUNCTION 'CLFM_CLEAR_CLASSIFICATION' " |
| EXPORTING | ||
| CLASSTYPE | = lv_classtype | |
| OBJECT | = lv_object | |
| PUFFER_ONLY | = lv_puffer_only | |
| TABLE | = lv_table | |
| CHANGE_SERVICE_NUMBER | = lv_change_service_number | |
| DATE_OF_CHANGE | = lv_date_of_change | |
| OBJ_HAS_CHANGE_SERVICE | = lv_obj_has_change_service | |
| IMPORTING | ||
| UPDATEFLAG | = lv_updateflag | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| TABLE_NOT_FOUND = 3 | ||
| DATE_NOT_ALLOWED = 4 | ||
| NOT_DELETED = 5 | ||
| . " CLFM_CLEAR_CLASSIFICATION | ||
ABAP code using 7.40 inline data declarations to call FM CLFM_CLEAR_CLASSIFICATION
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 RMCLF INTO @DATA(ld_classtype). | ||||
| DATA(ld_classtype) | = ' '. | |||
| "SELECT single UPDAT FROM RMCLK INTO @DATA(ld_updateflag). | ||||
| "SELECT single OBJEK FROM RMCLF INTO @DATA(ld_object). | ||||
| DATA(ld_puffer_only) | = ' '. | |||
| "SELECT single OBTAB FROM TCLT INTO @DATA(ld_table). | ||||
| "SELECT single AENNR1 FROM RMCLF INTO @DATA(ld_change_service_number). | ||||
| "SELECT single DATUV1 FROM RMCLF INTO @DATA(ld_date_of_change). | ||||
Search for further information about these or an SAP related objects