Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete all the characteristics and class without any validation?

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

Hello Janaraja,

Please see OSS Note 379180 - Classification data disappeared

Regards

Ashutosh

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

Hi,

TRY Using FM

BAPI_OBJCL_DELETE

BAPI_OBJCL_DELETE_KEY

Please never do direct table delete.

Thanks

Gaurav