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- material master

Former Member
0 Likes
821

Hi all,

I have a set of data where few materials belong to some views and others belong to other views and sevaral sets like this.

how can i handle them.

is BDC the best solution? or any other ways?

tx,

kiran

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
740

It is better to use BAPIs instead of BDC.

Try using the bapi BAPI_MATERIAL_SAVEDATA.

Refer this thread for sample usage of the bapi:

Regards,

Ravi

6 REPLIES 6
Read only

Former Member
0 Likes
741

It is better to use BAPIs instead of BDC.

Try using the bapi BAPI_MATERIAL_SAVEDATA.

Refer this thread for sample usage of the bapi:

Regards,

Ravi

Read only

Former Member
0 Likes
740

tx for ur info ravi.

but the issue is i have lots of miscelaneous materials.

each material combination of views is different from the other matnr. so if i select all the views, i have to populate all unnecessary fields also for such materials.

any other clues.

ravi, rewarded points under helpful answer.

tx,

kiran

Read only

0 Likes
740

Hi Kiran,

In that case you have to Use the FM:

SELECTION_VIEWS_FIND to get the list of views that are active for the particular material.

YOu have to pass the mara-pstat field to the fm.

Based on the index of the view name, you have to code accordingly to chose the view.

Regards,

Ravi

Read only

Former Member
0 Likes
740

Hi,

Better to use the BAPI BAPI_MATERIAL_SAVEDATA, you need to pass the mandatory fields here, anyways if you use the BDC also you need to pass the mandatory fields, Handiling BDC for MM02 is quite difficult, so better go for BAPI.

if you still wants the BDC for MM02, just with this link ..

http://sap.niraj.tripod.com/id12.html

Regards

Sudheer

Read only

Former Member
0 Likes
740

hi sudeer,

tx. we r asked not 2 go with unnecessary flds population.

thats what is bothering me now.

any more clues plzz?

kiran

Read only

Former Member
0 Likes
740

hi all,

is there any other ways i can have a solution?

i just now read a code snippet 2 update material using methods in SDN. is there any ways 4 me also in such angle?

snippet title:

Changing Configuration Values of a Configurable Material in a SO, PO or a Service Order through an ABAP Program

tx

kiran