2008 Dec 03 4:55 PM
Hi everybody
im trying to create a new material using BAPI through C#.
im using BAPI_MATERIAL_GETINTNUMBER then BAPI_MATERIAL_SAVEDATA to create the new material and everything working but when i try to create a new purchase order for the new material i got a message saying the material is not activated or does not exist. i can find the new material in the MARA table.
Any advise will be helpfull.
regards
khalil
2008 Dec 03 5:26 PM
Hi,
Have u used the BAPI_TRANSACTION_COMMIT after calling the BAPI.
Thanks,
2008 Dec 03 6:07 PM
2008 Dec 03 5:36 PM
2008 Dec 03 6:10 PM
Hi
i'm using BAPIs, so i need to do everything with BAPI only.
Thanks
2008 Dec 03 6:13 PM
basiclaly your material is not released for purchasing yet. so you need to change your BAPI or use another one to do that. Work with the MM functionsal person to see what info is missing from the material you are creating, and then see how you can populate that in the BAPI
2008 Dec 03 7:39 PM
you can use the same bapi-BAPI_MATERIAL_SAVEDATA , as 2nd time, meaning, initially, create the matnr and then again change its status by using the same bapi.
thanq
2008 Dec 03 7:42 PM
Hi and thank you for the replay
that sounds good but what is the variable that i have to set to enable the materail in the GOODS_MATERIAL_SAVEDATA call
Please advise
regards
khalil