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

BAPI LSMW

Former Member
0 Likes
755

Why is BAPI method of LSMW considered the most reliable & fast of all methods . I would think the IDOC is most reliable because of the tracing features and Direct Input would be the fastest method

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
667

Hi,

BAPI's use standard function modules, perform direct update and explicit commit work once done.

With IDoc, it slower compared with BAPI (performance) but you have capabilty to analyze and reprocess the IDoc (if any error occured) without rerunning LSMW.

Regards,

Ferry Lianto

5 REPLIES 5
Read only

Former Member
0 Likes
667

BAPI is faster than IDOC because you are not creating the intermediate document, then reading it back to process. If your data is 'dirty' and likely to produce errors, then IDOPC is better since you can correct them.

Direct Input is an earlier version of BAPI and only works for a small number of objects.

Read only

ferry_lianto
Active Contributor
0 Likes
668

Hi,

BAPI's use standard function modules, perform direct update and explicit commit work once done.

With IDoc, it slower compared with BAPI (performance) but you have capabilty to analyze and reprocess the IDoc (if any error occured) without rerunning LSMW.

Regards,

Ferry Lianto

Read only

amit_khare
Active Contributor
0 Likes
667

BAPI is faster than any other method as they are integrated properly with the SAP tables and designed specially to fill them.

In LSMW we create BDC to execute.

Refer the links -

/message/3407272#3407272 [original link is broken]

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
667

If you use a BAPI method using LSMW, it would still create IDOCs for processing. hence it is as reliable as an IDOC if not better.

When it comes to speed, I think Direct Input is stil the fastest. Can you tell us where did you get that information?

REgards,

Ravi

Read only

Former Member
0 Likes
667

I agree with Ravi, BAPI method creates an IDOC too