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: 

Material Group Doesn't Save

Former Member
0 Kudos

Hi Gurus,

I am using BAPI_MATERIAL_SAVEDATA to create a new material. In one of our client systems the Material Group (MVGR1/MATL_GRP_1) populates as expected after running the BAPI and setting it in SALESDATA. However, when we run the same program in another client, the field ends up being blank. Any ideas as to why this may be? Is a configuration change necessary?

Thanks!

5 REPLIES 5

Former Member
0 Kudos

did you manually create a material using MM01 in the client where the data is not being populated. If your not able to create using MM01 manually then probably you have to check with the functional person

0 Kudos

Yes, we are able to manually create a material using MM01. We are also able to change this field for any material created using the BAPI. The only fields that aren't showing up appear to be the ones related to the Material Groups.

Former Member
0 Kudos

Does the bapi give any error. How r the material groups and the materials set in the client? This is what i would look into if the data does not change in one client. Just a thought as i faced a similar problem and the data in one of our clients was not set properly.

0 Kudos

The BAPI does not give any error. The Material is created with all fields properly saved except fields MVGR1-5. If a client is not set properly, how can I "activate" these fields?

I just tested it again by creating a new material in client 1. This worked perfectly. I even did a change material on this same client and it worked as expected.

When I tried it on the second client, everything was fine except for those 5 fields. Any clues???

Thanks for the help.

Former Member
0 Kudos

Problem was with a field configuration and fixed by someone from the functional side.