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: 

BAPI for MM02

Former Member
0 Kudos
3,995

Hi,

I want to upload material no,plant, configurable material and i have to configure the varient.Here, i have to assign characteristic values through transaction 'MM02'.I need the BAPI for this.

6 REPLIES 6

Former Member
0 Kudos
851

Hi Vishal,

You can use FM MATERIAL_MAINTAIN_DARK to do the job.

Regards,

John.

0 Kudos
851

Hi John,

Tell me which parameters should i pass?

0 Kudos
851

Hi Vishal,

For setting the configuration values you should use the tables AE1CUCFG_UEB, AE1CUINS_UEB, AE1CUVAL_UEB and AE1CUCOM_UEB.

To have an idea of how to fill the parameters you could create a material manually and then send a MATMAS IDoc from it to a dummy partner. The segments filled in the IDoc pretty much resemble the values to be used for the FM.

Regards,

John.

Former Member
0 Kudos
851

use

BAPI_MATERIAL_SAVEDATA

Thanks and Regards

former_member214131
Active Contributor
0 Kudos
851

Hi,

To allocate a Classification & assign characteristic values to the class, you have to use BAPI: BAPI_OBJCL_CREATE.

Hope this helps. Murugesh

Former Member
0 Kudos
851

Hi,

To update the material through MM02 through "material_maintain_dark" func module, you have to pass the names of the fields which need to be updated and it's corresponding values into the AMFIELDRES structure which should be used in the func. module.

The usage of this is very critical. The field names and the values can be passed by using the field-symbols.

Reward points if helpful.

Thanks,

Archana