BDC- (batch data communication).

• • • it is one of the data transfer method. Data transfer are divided as outbound and inbound . OUTBOUND------- transfer the data from source system to target system. SAP ------TO-------- SAP NON SAP. INBOUND ------------- transfer the data from external system into sap. SAP -----TO----------NON SAP . • • • SAP

BDC is an inbound data transfer technique. When SAP is implemented we need Data to migrate from non-SAP system i.e Legacy system to SAP system. One way of doing this is BDC (Batch Data Communication). The SAP system offers three methods for transferring data in to SAP system . From non sap system ---------------1) CALL TRANSACTION . 2) SESSION METHOD . 3) DIRECT INPUT . Both call transaction method and session method are called as BATCH INPUT METHOD . Where as , direct i/p are standard Programs to post the data into SAP.

ADVANTAGE OF BATCH INPUT METHOD -- 1 ) can process large data volumes in batch. 2) no manual interaction is required when data is transferred.

CALL TRANSACTION ----------------------

For Developing BDC using CALL TRANSACTION method we need to do the recording of the corresponding transaction & flat file in which data is stored. Flat file can be Text file or Excel File. In CALL TRANSACTION we also have to create the Error Log file. • • RECORDING---------Q1) What is recording?

As the word record implies, it mean recording the key stroke of the user input of a SAP transaction screen. • Q2) Why it is used?

Recording 1. And Press Start Recording. this is used to record our transaction Press New Recording. • Q3) What is its need? It help to save time for the users who need to mass change the system data. Give Transaction. Give Recording name.It is normally used for mass update or uploading of data to the system. • Q4) How it is related with bdc? It is related to bdc because bdc programming allows recording of user inputs. tax rate change announce by the country government.g. . Give transaction SHDB ( Transaction Recorder ). For e.

finally Save. You will get the following screen. Give the selection screen inputs as below. .2.

3. The following screen comes when you save. Next Press F3 to come back. this shows table name and filed name Which stores the data given in respected selection screen of transaction. .

____________________________________________________________________ _ • In BDC we use structure BDCDATA for Batch Input. we need to create Log for the Error Message. using this recording. which has following components.Now create the abap program . PROGRAM . .BDC module pool DYNPRODYNBEGINFNAMFVALBDC Screen number BDC screen start Field name BDC field value A BDCDATA structure can contain the batch input data for only a single run of a transaction In CALL TRANSACTION method. for this we use structure BDCMSGCOLL.

MSGV2. • SESSION METHOD --------------- . c) You can use the FM <b>FORMAT_MESSAGE</b> to combine all these fields together to get the complete message. MSGV3. = lv_msg = wa_messages-msgid = sy-langu = wa_messages-msgnr = wa_messages-msgv1 = wa_messages-msgv2 = wa_messages-msgv3 = wa_messages-msgv4 call function 'FORMAT_MESSAGE' Using the components of structure BDCMSGCOLL you can combine them to get the complete message. b) The structure BDCMSGCOLL also consists of msgid and msgnr -the message id and number.• STRUCTURE BDCMSGCOLL has following component------------------------ a) MSGV1. d) e. MSGV4 are the field which contain parts of the message.g----exporting id lang no v1 v2 v3 v4 importing msg exceptions not_found others e) =1 = 2..

for creating SESSION OBJECT. 4) close batch input session with BDC_CLOSE_GROUP .e fill the itab – it_bdcdata 3) use BDC_INSERT to transfer the transaction and the IT_BDCDATA to the session . NOTE the program must open a session in the queqe before transferring dataTo it . Flat file can be Text file or Excel File. enter the value for all screens and fields that must be processed in the transaction (i. For Developing BDC using Session Method we need Recording & flat file in which data is stored. 5) process the session online through SM35 NOTE we need to repeat the step 2 . .all of these operations Performed by making FM calls from the abap program . BDC_CLOSE_GROUP. 1. A session method is a collection of transaction data for one or more transaction . 3. when we want to process Multiple transaction through the same session . and must close it again afterwards. BDC_OPEN_GROUP. it prepares the data and stores it in a batch input session . BDC_INSERT. In Session Method following function Modules are used.In session method . 2. to insert data of the internal table. for each transaction . to close SESSION OBJECT MEMORY from the    • STEPS TO WORK WITH SESSION METHOD -------------------------- 1) generate the batch input session using FM – BDC_OPEN_GROUP 2) Then proceed as follows for each transaction that the session contains : In BDC data structure . BDC_OPEN_GROUP BDC_INSERT BDC_CLOSE_GROUP program.

6.only Synchrouns updation only.Immediate Data updatation . 2.We should use three FM's.• DIFFRENCE BETWEEN CALL TRANSACTION AND SESSION METHOD • Session Method: 1. 5. 5. 6.Transfer the Large amount of data. <b>CALL TRANSACTION <T-code> USING <BDCDATA> MODE <A/N/E> UPDATE<A/S> INTO MESSAGES <BDCMSGCOLL></b> DIRECT INPUT NETHOD ------------------------ . 3.Both Synchrouns and Asynchrouns updation . 3.We should write syntax. 2.Data is not update into table unless Session is Processed (SM35).We should handle Error Explicitly Using Strucutre <b>BDCMSGCOLL</b>.Transfer the small amount of data.Automatically Error log file is create. <b> BDC_OPEN_GROUP (ii)BDC_INSERT (iii)BDC_CLOSE_GROUP</b> Call Transaction: 1.

• Direct Input method is used for bulk transfer of data into SAP system. However. the direct input technique provides a restart mechanism. In case of errors. inserts data directly. the system calls a number of function modules that execute any necessary checks. use program RBMVSHOW or transaction BMV0. No screens involved. this technique does not create sessions. Transaction BMVO or Program RBMVSHOW has been usedn areas. 2. but stores. since batch input is slower. • in session method or Call Transaction method while uploading the data u do the validation by fallowing the screen sequence and field sequence where as in Direct Input validations can be done set of code so this make the process very fast so its advantageous to upload large amout of data. to able to activate the restart mechanism. Only for error free datas and also master data updation. updates. • Direct Input method -------------------1. To maintain and start these programs. • SAP has created direct input programs because SAP wanted to enhance the batch input procedure. direct input programs must be executed in the background only. especially for transferring large amount of data. It will directly updates the database table. In contrast to batch input. 3. .It results in faster execution since no screens are processed and the SAP database will be updated directly using the standard function modules. SAP offers the direct input technique. To enter the data into the corresponding database tables directly.

3. No manual intervention is required during data transfer. 2. .• ADVANTAGE / DISADVANTAGE OF DIRECT I/P METHOD ----------------Advantages: 1. Disadvantages: 1. Error Records cannot be modified during runtime. Data migration is very fast using this method. We can perform data migration for large number of records.

Sign up to vote on this title
UsefulNot useful