‎2008 Jul 10 7:41 AM
hi all,
when will u go for the BDC and when we go for BAPI.dont say depending upon the requirement.I want the scenario.
thanx to all in advance.
‎2008 Jul 10 9:26 AM
Hi Pavan,
BDC works on the screen sequence, if you have changed the screen sequence then your BDC will become invalid and you need to make the necessary changes to the BDC code. But if you are using a BAPI then you need not make any changes to that as it is not going to follow the screen sequence and it is going to update the database tables directly.
When you done some sort of customizations in the transactions like adding some custom fields and custom screens in that case some of the BAPI's will not work as all the standard BAPI's doesn't support to handle the custom screens and custom fields, inthat case you don't have any option apart from using the BDC program.
Usually in good practice we check for the standard BAPI first, if it is available and it is meeting our requirement then we use that, otherwise go ahead with the BDC option only.
Thanks,
Mahesh.
‎2008 Jul 10 9:26 AM
Hi Pavan,
BDC works on the screen sequence, if you have changed the screen sequence then your BDC will become invalid and you need to make the necessary changes to the BDC code. But if you are using a BAPI then you need not make any changes to that as it is not going to follow the screen sequence and it is going to update the database tables directly.
When you done some sort of customizations in the transactions like adding some custom fields and custom screens in that case some of the BAPI's will not work as all the standard BAPI's doesn't support to handle the custom screens and custom fields, inthat case you don't have any option apart from using the BDC program.
Usually in good practice we check for the standard BAPI first, if it is available and it is meeting our requirement then we use that, otherwise go ahead with the BDC option only.
Thanks,
Mahesh.
‎2008 Jul 10 10:28 AM
hi mahesh,
thanx for ur reply.U told that we go for BDC when we do the customization in the transactions means we want any other fields in the standard transaction? then in BDC also we cant record that field information na? then how BDC will work for the transactions that are customized?
‎2008 Jul 10 10:58 AM
Hi,
You need to do the recording using the SHDB transaction for that transaction and then write the BDC code according for that transaction.
Thanks,
Mahesh.
‎2008 Jul 10 11:00 AM
Pavan,
entirely different.only similirity is only motive of both that is with both of them we can upload data.
BAPI
BAPI stands for Business API(Application Program Interface).
A BAPI is remotely enabled function module
ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
You can make your function module remotely enabled in attributes of Function module but
A BAPI are standard SAP function modules provided by SAP for remote access.
Also they are part of Businees Objest Repository(BOR).
BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects.
You create business objects and those are then registered in your BOR (Business Object Repository)
which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA.
In this case u only specify the business object and its method from external system
in BAPI there is no direct system call. while RFC are direct system call.
Some BAPIs provide basic functions and can be used for most SAP business object types.
These BAPIs should be implemented the same for all business object types.
Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.
Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
Check these Links out
http://searchsap.techtarget.com/ateQuestionNResponse/0,289625,sid21_cid558752_tax293481,00.html
http://www.sap-img.com/abap/interview-question-on-bapi-rfc-abap-objects-tables.htm
http://www.sap-img.com/fu033.htm
http://www.sap-img.com/abap/ale-bapi.htm
Refer following SDN threads:
BDC:
Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.
Features :
BDC is an automatic procedure.
This method is used to transfer large amount of data that is available in electronic medium.
BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).
BDC uses normal transaction codes to transfer data.
Types of BDC :
CLASSICAL BATCH INPUT (Session Method)
CALL TRANSACTION
BATCH INPUT METHOD:
This method is also called as CLASSICAL METHOD.
Features:
Asynchronous processing.
Synchronous Processing in database update.
Transfer data for more than one transaction.
Batch input processing log will be generated.
During processing, no transaction is started until the previous transaction has been written to the database.
CALL TRANSACTION METHOD :
This is another method to transfer data from the legacy system.
Features:
Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.
Updating the database can be either synchronous or asynchronous. The program specifies the update type.
Transfer data for a single transaction.
Transfers data for a sequence of dialog screens.
No batch input processing log is generated.
For BDC:
http://myweb.dal.ca/hchinni/sap/bdc_home.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&;
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sapdevelopment.co.uk/bdc/bdchome.htm
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
http://www.sap-img.com/abap/learning-bdc-
http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
Amit.
‎2008 Jul 10 11:04 AM
Hi Pavan,
Difference between BAPI and BDC:BAPI is a higher end usage for tranfering the data from SAP to non-SAP and vice-versa.
for ex: if we are using VB application,where in that we want to connect to SAP and retireve the data,
and then change and update the data in SAP for that purpose we can use that.
Apart from that, we can also use it for Uploading/Downloading the data from SAP to Non-SAP like BDC,
provided we have an existing BAPI for that.BAPI function modules will also do all the checks required for data integrity like
Transactions for BDC.There is one more advantage using BAPI instead of BDC.
When we go for upgradation, there might be pozzibility to change the screen elements for transactions depending on the requirement.
In that case,our BDC pgm may or may not work (depending on the screen changes they have made).
Unless and until we prepare new BDC we cant use the old BDC pgm.
But in BAPI, SAP promises that they are going to keep the old BAPI and for new functionality they will provide an upgraded BAPI.
Until we write a new BAPI pgm, we can use the exisitng BAPI.
Go through this Links
https://forums.sdn.sap.com/click.jspa?searchID=13382175&messageID=4260535
If Found Help Full Do Reward.
Regards.
Eshwar.