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

LSMW Methods

dhirendra_pandit
Active Participant
0 Likes
856

What is the best method to upload the legacy data among

1. BDC Batch/direct Input and what is the diffrence between these two.

2.BAPI Syncronous method.

3.IDOC

And diffence between BAPI and IDOC method.

4.Recording Method

I know the last option is recording if there is no standard way defined such as idoc/Bapi/Batch.

Please Sujjest Most Efficient way.

Regards

Dhirendra

1 ACCEPTED SOLUTION
Read only

abdul_hakim
Active Contributor
0 Likes
717

Hi

Batch Input is the Standard Method to Upload / Migrate Data into SAP System. The Data is uploaded as if it is entered online.

Direct Input will update the DB Directly without processing the transaction screen which is the case with Batch Input Method.

BAPI and IDoc Both will create idoc to post the document. The difference is IDoc will call an internal posting program to post the data whereas BAPI will call the BAPI FM to post the data.

Recording as you said should be used in exceptional cases where you didnt find any standard methods.

Hope this clarified your doubt.

Cheers,

Hakim

5 REPLIES 5
Read only

Former Member
0 Likes
717

Hi,

The method to be opted while uploading data via LSMW is highly dependent on input file structure. Fields to be considered while uploading the data play a vital role for selecting the method for upload.

For a verdict on best possible method, standard program, BAPI, IDoc's stand on the same line. Either of the method which satisfy the requirement should be opted. Recording method should be kept as last resort. Because recording will not provide that control while uploading data which is provided by others. Also BAPI and standard program are also capable of data validation, so they provide much robust solution.

It is highly unlikely that a particular upload scenerio will be satisfied by all Standard program, BAPI and IDoc. Even if this happens go for standard program provided. IDoc's are not frequently used in LSMW.

Upload procedure using BAPI and IDoc's are same only when standard IDoc is used. Otherwise necesary settings for custom IDoc and its creation also comes into picture.

Hope this answers your query.

Regards,

Brajvir

Read only

abdul_hakim
Active Contributor
0 Likes
718

Hi

Batch Input is the Standard Method to Upload / Migrate Data into SAP System. The Data is uploaded as if it is entered online.

Direct Input will update the DB Directly without processing the transaction screen which is the case with Batch Input Method.

BAPI and IDoc Both will create idoc to post the document. The difference is IDoc will call an internal posting program to post the data whereas BAPI will call the BAPI FM to post the data.

Recording as you said should be used in exceptional cases where you didnt find any standard methods.

Hope this clarified your doubt.

Cheers,

Hakim

Read only

0 Likes
717

Hi Hakim,

Thanks for Rectifying my doubt

I have one more Q in between BAPI and IDOC witch one is better to use to transfer the data and why?

Regards

Dhirendra

Read only

0 Likes
717

Both are same and its create the IDOCs , some of bapi methods does not conatin all required fileds so that time we go for IDOC....

Read only

0 Likes
717

Hi

If you are using LSMW to upload data then there is no performance advantage of BAPI over IDoc or vice versa.

But if you are using data transfer workbench then there is difference.

I have clarified this more clearly in my wiki.Please check the below link.

https://wiki.sdn.sap.com/wiki/display/ABAP/TransferringFI-AssetMasterusingBAPIsinDataTransferWorkbench

Regards,

Hakim