Dears,
I am a student and got the assignment to add products in stock.
I succeeded in doing so by using BAPI_MATERIAL_SAVEDATA.
I am able to update MARD, MARA en MARC. For each material i create i have my own unique ID in MARA,
i can also assign it to a specific storage location in MARD.
I also want to create a link between my created material and a vendor. I believe that the easiest way to do this is to
add a manufacturer ID (MFRNR) to my material master ID (MATNR) in MARA.
The thing is that i can't insert a value in this field. I also am not getting any errors when i deliver the following workarea to my function:
DATA wa_mara TYPE BAPI_MARA.
wa_mara-BASE_UOM = 'KG'.
wa_mara-MATL_GROUP = 'RAW'.
wa_mara-MFR_NO = '00010100'. ==> ID of a vendor (LIFNR) => identifies my manufacturer
DATA wa_marax TYPE BAPI_MARAX.
wa_marax-BASE_UOM = 'X'.
wa_marax-MATL_GROUP = 'X'.
wa_marax-MFR_NO = 'X'.
In my header i define that basic_view, purchase_view and storage_view should be updated.
The thing why this is so interesting is that if i add for example another field to my wa_mara workarea (and register a 'X' boolean on marax),
i do get the field updated in my MARA. It is just this only field MFR_NO that i really need, that is not being updated.
Is there something i should know about this field? Do i need to create a record in another table to make this work? (there are already vendors registered in the system LFA1)
Thank you for your response,
Kristof Cappellen