Application Development and Automation 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: 
Read only

bdc in function modules

Former Member
0 Likes
401

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
373

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

1 REPLY 1
Read only

Former Member
0 Likes
374

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