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: 

Article Master Update - LSMW /BDC / BAPI ?

Former Member
0 Kudos
1,002

Hi,

My requirement is to update article master ( MM42 T-Code). We can do this in following ways:

1. By writing a program using BAPI " BAPI_MATERIAL_MAINTAINDATA_RT".

2. By using BDC approach.

3. By using LSMW. In lSMW we further have four options:

     3.1) Direct Input

     3.2) Batch Input Recording

     3.3) BAPI

     3.4) IDOC

In the current business scenario, approx. 30,000 lines per day are required to be uploaded.

In terms of performance, which method should i use? There are lots of discussions avalable but still i didn't get the exact idea.

Please advice.

Regards,

Pankaj

1 ACCEPTED SOLUTION

former_member201275
Active Contributor
0 Kudos
780

If it is something that you are going to be doing daily then I would not recommend LSMW. LSMW, in my opinion, is best used for one off data loads, for example data migration projects.

I would use the BAPI route because you can then map your data structures to these in the BAPI and of course the BAPI is standard so it would be cheaper in the long run to maintain this.

BDC I would recommend only if the BAPI doesn’t fit your purpose, but of course when you have upgrades and stuff then the SAP screens may change and obviously then your BDC program would also have to be maintained.

In my opinion, try and see if the BAPI will work for your data requirement.

6 REPLIES 6

former_member201275
Active Contributor
0 Kudos
781

If it is something that you are going to be doing daily then I would not recommend LSMW. LSMW, in my opinion, is best used for one off data loads, for example data migration projects.

I would use the BAPI route because you can then map your data structures to these in the BAPI and of course the BAPI is standard so it would be cheaper in the long run to maintain this.

BDC I would recommend only if the BAPI doesn’t fit your purpose, but of course when you have upgrades and stuff then the SAP screens may change and obviously then your BDC program would also have to be maintained.

In my opinion, try and see if the BAPI will work for your data requirement.

0 Kudos
780

Hi Glen,

Thanks for your prompt reply.

Even i think the same. I have confusion between below methods:

a.) By developing program using BAPI.

b.) LSMW Direct Input and LSMW - Idoc.

which one is better?

Please give your suggestion.

Appreciate your help.

Regards,

Pankaj

0 Kudos
780

Hi,

It is better to write your own program with BAPI.

0 Kudos
780

Hi Glen,

I used BAPI approach for this requirement. The results are like a miracle..

FM :     MATERIAL_UPDATE_LOGISTIC_DATA

The work which we were not able to do in full day using LSMW approach, now we complete that in few minutes usin FM..

Regards,

Pankaj

Former Member
0 Kudos
780

Hello,

You can develop your own program and you can call your BAP into that, I think that can be the possible solution with out much risk.

Regards,

Mallikarjuna

SHIVAM_RANSHUR
Discoverer
0 Kudos
647

Hey , im having same scenario. if you have any BAPI can you share please