Application Development and Automation 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:Ā 
Read only

MM Classification Update

tanju_lise3
Participant
0 Likes
1,256

Hello All,

I want to update MM Classication Values.

Please check my jpg file.

You will see General -> Cahracteristic description (Z_MALZEMEGRUBU) and Values.

How can I fill Values field  ? (I defiend some values like GRI, SFERO etc.)

I mean, Is there any Bapi, you know it ?

I tried with BDC program, but not succesull .

Regards

Tanju

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,048

Hi Tanju,

BAPI's are available to update all types of characteristics of materials i.e.Numeric,Character and Currency type.

First read the existing characteristic via 'BAPI_OBJCL_GETDETAIL' and then change/assign using 'BAPI_OBJCL_CHANGE'. Finally BAPI_TRANSACTION_COMMIT be called.

See Rob's answer here for example - http://scn.sap.com/thread/1777601

Also check the behaviour in case you are again trying to assign the same characteristic to same material. I think BAPI : 'BAPI_OBJCL_CHANGE' throws error but not sure since i had worked on it approx 2 years ago.

BR,

Ankit.

4 REPLIES 4
Read only

Former Member
0 Likes
1,048

You can try the FM "CE_I_SET_CONFIGURATION". Moreover check the functon group CEI0, if you find something more appropoate for your requirement.

http://www.se80.co.uk/sapfms/c/ce_i/ce_i_set_configuration.htm

Cheers!

Abhinab

Read only

0 Likes
1,048

Hello Abhinab,

First of all, thank you for your answers.

But, are you sure is it interested with MM Classication ?

Because my problem is Classification problem.

Did you use it ?

I mean when I check the FM "CE_I_SET_CONFIGURATION, I did not find something about classification.

Regards

Tanju

Read only

0 Likes
1,048

Tanju,

As far as I know, classification is not limited to MM. It is generalized data spread across all modules. Having said that, I think you won't find any FM / BAPI specifically to update MM classification.

To run the FM CE_I_SET_CONFIGURATION, why not give a try like this -

Get the configuration of an existing material using VC_I_GET_CONFIGURATON. Populate the data of internal tables from VC_I_GET_CONFIGURATION to CE_I_SET_CONFIGURATION(Relevant data). Chnage something in the data and see what's the result.

You will need OBJNR to run both the FM. By looking at your screenshot, you can get your required OBJNR from MARC-OBJNR.

Cheers!

Abhinab

Read only

Former Member
0 Likes
1,049

Hi Tanju,

BAPI's are available to update all types of characteristics of materials i.e.Numeric,Character and Currency type.

First read the existing characteristic via 'BAPI_OBJCL_GETDETAIL' and then change/assign using 'BAPI_OBJCL_CHANGE'. Finally BAPI_TRANSACTION_COMMIT be called.

See Rob's answer here for example - http://scn.sap.com/thread/1777601

Also check the behaviour in case you are again trying to assign the same characteristic to same material. I think BAPI : 'BAPI_OBJCL_CHANGE' throws error but not sure since i had worked on it approx 2 years ago.

BR,

Ankit.