‎2011 Mar 08 10:25 AM
Hello all,
I am writing a function module for bdc but i am not able to do the creation of material.
Please help me out
my code is
<removed by moderator>
Moderator message: please post only relevant code parts, your post must be less than 5000 characters to preserve formatting
Edited by: Thomas Zloch on Mar 8, 2011 11:49 AM
‎2011 Mar 08 11:05 AM
Hi Ravi,
For the creation of Material already there is Standard BAPI, you can try with that.
Because of view dependencies etc. it is a real PITA to use BDC to create materials, BAPI_MATERIAL_SAVEDATA are much easier, and for mass loads can be used in conjunction with LSMW.
BAPI_MATERIAL_SAVEDATA for Material creation using BAPI
And after that Use BAPI_TRANSACTION_COMMIT'.
Already there is a lot of threads how to use the BAPI, you can search on SDN.
Hope it helps you.
Thanks
Arbind Prasad
‎2011 Mar 08 11:05 AM
Hi Ravi,
For the creation of Material already there is Standard BAPI, you can try with that.
Because of view dependencies etc. it is a real PITA to use BDC to create materials, BAPI_MATERIAL_SAVEDATA are much easier, and for mass loads can be used in conjunction with LSMW.
BAPI_MATERIAL_SAVEDATA for Material creation using BAPI
And after that Use BAPI_TRANSACTION_COMMIT'.
Already there is a lot of threads how to use the BAPI, you can search on SDN.
Hope it helps you.
Thanks
Arbind Prasad