‎2009 Aug 27 10:46 AM
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
‎2009 Aug 27 10:55 AM
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
‎2009 Aug 27 11:30 AM
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
‎2009 Aug 27 11:38 AM
Hello Vishnu,
Direct Input Method is faster than BAPI Method.
Regards,
Abdul Hakim
‎2009 Aug 27 11:38 AM
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
‎2009 Aug 27 12:33 PM
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
‎2009 Aug 27 1:03 PM
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.
‎2009 Aug 27 1:10 PM
Hi
I guess you didnt read my reply properly..I have written
Direct Input Method is faster than BAPI Method.
Regards,
Abdul Hakim
‎2009 Oct 15 1:25 PM