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 or Direct Input method

Former Member
0 Likes
1,509

Hi Experts,

For large data transfers, taking performance in to consideration, which method 'DIrect Input' or 'BAPI' is preferable ?

For Eg, for Volume upload of sales orders, I have the option to use BAPI , BAPI_SALESORDER_CREATEFROMDAT2 or direct input programs RVINVBT0 and RVINVB10 .

If I check the code in detail, for the BAPI and the direct input programs, both of them finally call standard function modules 'SD_SALES_HEADER_MAINTAIN', 'SD_SALES_ITEM_MAINTAIN' and u2018SD_SALES_DOCUMENT_SAVEu2019 to fiaally create the sales order.

BAPI is called with import parameter 'i_call_bapi' set to 'X', where as direct input have this parameter blank. This is the only difference I found.

Can anyone please clarify which method is more performance-oriented and how .

Thanks in advance,

Vishnu Pirya

8 REPLIES 8
Read only

Former Member
0 Likes
1,237

for performance point of you can go for below BAPI or IDOC method. both method are create the inbound idocs...

BAPI MEthod.

Business Object BUS2032 Sales Order

Method CREATEFROMDAT2 Sales order: Create Sales

Message Type SALESORDER_CREATEFROMDAT2 Sales order: Create Sales

Basic Type SALESORDER_CREATEFROMDAT2 Sales order: Create Sales

IDOC Method:

Message Type SALESORDER_CREATEFROMDAT2 Sales order: Create Sales

Basic Type SALESORDER_CREATEFROMDAT2 Sales order: Create Sales

Read only

0 Likes
1,237

Hi Kesava,

Thanks for the reply. Looks like my question is not clear to y ou. I did not ask for BAPI name or Business object name.

My question is which one is faster ? BAPI or direct input ? And how ?

Thanks & Regards,

Vishnu Pirya

Read only

abdul_hakim
Active Contributor
0 Likes
1,237

Hello Vishnu,

Direct Input Method is faster than BAPI Method.

Regards,

Abdul Hakim

Read only

abdul_hakim
Active Contributor
0 Likes
1,237

Hello Vishnu,

Direct Input Method is faster than BAPI Method.

Please check http://software.feedfury.com/content/22514613-sap-abap-bdc-and-lsmw-comparision.html

Regards,

Abdul Hakim

Edited by: Abdul Hakim on Aug 27, 2009 6:43 AM

Read only

0 Likes
1,237

Hi Abdul,

Thanks for the reply.

It is known that Direct input is always better than BDC.

My question is BAPI or Direct input method , which one is faster ?

Thanks & Regards,

Vishnu Priya

Read only

1,237

direct input is faster than BAPI, because its directly update the database, problem is most of error records you wont find in direct input method ( diffecult to capture the error records) in bapi you can find the error records.

if your using LSMW method BAPI is better.

Read only

0 Likes
1,237

Hi

I guess you didnt read my reply properly..I have written

Direct Input Method is faster than BAPI Method.

Regards,

Abdul Hakim

Read only

Former Member
0 Likes
1,237

.