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

BAPI for MM02

Former Member
0 Likes
5,923

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
Read only

Former Member
0 Likes
2,779

Hi Vishal,

You can use FM MATERIAL_MAINTAIN_DARK to do the job.

Regards,

John.

Read only

0 Likes
2,779

Hi John,

Tell me which parameters should i pass?

Read only

0 Likes
2,779

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.

Read only

Former Member
0 Likes
2,779

use

BAPI_MATERIAL_SAVEDATA

Thanks and Regards

Read only

Former Member
0 Likes
2,779

Hi,

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

Hope this helps. Murugesh

Read only

Former Member
0 Likes
2,779

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