07-11-2013 12:15 PM
Dear Experts,
I want to delete all the class and characteristics of class type 001 for table MARA without checking any validation or assignments. want to do mass delete even the class or characteristics assigned to any number of materials in system. Please tell me how can I obtain this?
-Thanks in advance.
-Janaraja
07-11-2013 1:29 PM
07-11-2013 1:38 PM
Dear Mr.Ashutosh Tripathi,
At present I don't have username and password with me. Giving solution with file or text is highly appreciated.
-Thanks.
-JANARAJA
07-15-2013 4:22 PM
Hello JANARAJA,
Can you try this report to delete characteristics.
RMCLMDEL - Delete Characteristic from Class with Assignments
I hope this help.
Thanks and regards
Ashutosh
07-11-2013 1:45 PM
I donot think u can get fm to delete class ,but u can delete characterstics by using
CALL FUNCTION 'CLCM_CLASS_FEATURE_ADD_DELETE' "Assign Characteristics to Class / Delete Characteristics from Class
EXPORTING
classname = " klah-class Class name / class number
classtype = " klah-klart Class type
* change_number = " ksml-aennr Change number
IMPORTING
error = " sy-binpt Error (message logged)
TABLES
tfeatures = " clmerk Characteristics
* tcabn_o = " cla_ch_chg Characteristics: overwritten data
* tcawn_o = " cla_ch_val Values: overwritten
* tcawnt_o = " cla_ch_vds Value descriptions: overwritten
EXCEPTIONS
CLASS_INVALID_CHANGE = 1 " Change class without commit work first
NO_RETAIL_CLASS = 2 " No Processing of SAP Retail Classes
. " CLCM_CLASS_FEATURE_ADD_DELETE
07-11-2013 2:52 PM
Hi
Yes İ havent seen any examples to delete a class.
Definetely dont try to delete direct from tables
Maybe the one kryptonite recommended might help
İ post if i find smth.
07-15-2013 8:06 PM
Hi,
TRY Using FM
BAPI_OBJCL_DELETE
BAPI_OBJCL_DELETE_KEY
Please never do direct table delete.
Thanks
Gaurav