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

Former Member
0 Likes
710

hello

Can anybody help me in creating a BDC from MM01 by material type

9 REPLIES 9
Read only

Former Member
0 Likes
679

Hi

It is adviced to use BAPIs or LSMWs where applicable instead of BDCs.

Regards,

Raj

Read only

0 Likes
679

hai

ur right if its with only material type we can go with LSMW or BAPI.

But in my company the requirement is that we have do the recording and uploading by type wise and also view wise.

so how can i procced if this is the criteria

Read only

Former Member
0 Likes
679

Hello,

Instead of BDC, you can used BAPI: BAPI_MATERIAL_SAVEDATA or MATERIAL_MAINTAIN_DARK

it is prederred to make a mass update by LSMW:

Object 0020 Material master

Method 0000

Program name RMDATIND

Program type D Direct input

Hope this helps,

Best Regards, Murugesh AS

Read only

0 Likes
679

but this method is not possible if we want to upload the data view wise for a perticular material type

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
679

Hi Vamshi

Bacause You are handling with Master Data it's advisable to do that with either LSMW or BAPI's.

For BAPI you can choose BAPI: BAPI_MATERIAL_SAVEDATA or MATERIAL_MAINTAIN_DARK for your requirement.

If you go for LSMW then you have to create Objects,Sub Objects,Strucure and mapping the Structires to SAP.

If you want for a Perticular Material or View Wise then you have to opt for BDC for Proper Recording and then you have to handle the views correctly.

If you let me know what are the Material Types yo are using and what are the corresponding views coming into the picture.,I can help you.

Regards,

Kumar

Read only

0 Likes
679

f you seatch the SDN forum, you will find lot of threads regarding the same question and you will get your answer also.

see the below thread, it will have the sample code also for MM01 BDC

Read only

Former Member
0 Likes
679

Hi,

Use the BAPI BAPI_MATERIAL_SAVEDATA instead of bdc..

Check this link for a sample program

http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm

THanks,

Naren

Read only

Former Member
0 Likes
679

Hi Vamsi,

You can make use of Standard DI programme RMDATIND using LSMW,

You can upload the data with MATERIAL TYPE (MTART) and dataview with A_VPSTA field,

like

The VPSTA field should contain the views that are specific to material type and create / extend Following are the codes for VPSTA

A Work Scheduling

B Accounting

C Classification

D MRP

E Purchasing

F PRT

G Costing

K Basic

L Storage

P Forecasting

Q Quality Management

S Warehouse Management

V Sales

X Plant Stocks

Z Storage location stocks

According to the material type you need to pass A_VPSTA field value.

For example :

Semifinished:

MTART: HALB

VPSTA: ABDGKLQV

Regards,

Sivaram Gadde.

Read only

Former Member
0 Likes
679

Dear Vamshi,

Please refer to the following link:

http://www.sap-img.com/abap/upload-material-master-finish-goods.htm

Regards,

Abir

*******************************************

  • Please don't forget to award points *