cancel
Showing results for 
Search instead for 
Did you mean: 

My bapi asks to much info.

Former Member
0 Kudos

Hy experts,

I'am using bapi_material_savedata and i learned so far it is not easy at all ! I just want some basic info like mtnr, description, storage location , length ,width , hight, stock and maybe some more but not a lot.

My problem : The bapi ask a lot of information like for example for plant data he wants to know pur_group ,mrp_type ,sm_key , mrp_ctrler , .... and that because i want just the stock field. Is there a way you don't have to fill all this data in because i don't need this at all.

Can you see in a structure witch data is required?

Greetings Jonas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The behavior of the BAPI depends on how MM01 is configured in your system (a lot of times required fields depend on the material type). Go to MM01 and see if you can only enter those fields and save. Most probably, you will get the same error message. My suggestion is to create a material with the minimum amount of data required. Use the BAPI-GET-MATERIAL-DATA for that material. Then, use the output as a template for the BAPI-CREATE-MATERIAL. I don't know the exact names of the BAPIs.