BDC Interview Questions
BDC Interview Questions
BDC ( Batch Data Communication ) also known as batch input is a technique by which large
volumes of data can be transferred from Non Sap or Legacy systems to SAP systems.
[http://4.bp.blogspot.com/-
see9jt1s2e8/T-x49NpX-hI/AAAAAAAAHGs/AqXvA6v6JI8/s1600/Untitled+%2528Network+diagram%2529.png]
Example: A Legacy system that is to be replaced by SAP has say 1000 Customers , 2000
vendors and 3000 materials. All this data needs to be transferred to SAP . In such cases , We
can use BDC.
http://sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html?view=flipcard 1/10
6/24/2014 BDC Interview Questions
Errors are automatically handled during the Errors should be handled in the batch input
processing of the batch input session. program.
Important:
Question 2: How do you do BDC for a table control?
With other things as usual, there is a special trick that you have to use while doing BDC for
table control.
You need to use the BDC OKCODE '=P+'.
Its the BCD_OKCODE for Page down that can be used for scrolling down in table control.
Important:
Question3: Is there any method apart from BDC for data upload to SAP?
Apart from BDC and LSMW, you can use BAPIs to upload data into SAP.
BAPIs should be preferred over BDCs, because they process data faster than BDC.
A BAPI is faster since it updates Database "directly". Whereas BDC calls transaction and goes
through the whole screen sequence as any user would do.
BAPI BDC
BAPI is faster than BDC. BDC is relatively slower than BAPI.
BAPI directly updates database. BDC goes through all the screens as a
normal user would do and hence it is
slower.
No such processing options are available in Background and Foreground processing
BAPI. options are available for BDC.
BAPI would generally used for small data BDCs would be preferred for large volumes
uploads. of data upload since background processing
option is available.
For processing errors, the Return Errors can be processed in SM35 for session
Parameters for BAPI should be used.This method and in the batch input program for
parameter returns exception messages or Call Transaction method.
success messages to the calling program.
http://sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html?view=flipcard 2/10
6/24/2014 BDC Interview Questions
The sessions are created at one point of time and processed at other point of time and this
may create a problem: For example: a BDC program creates a session for updating 1500
customers in SAP. However , before this session is processed via SM35 , a user inserts 100
customers in the system manually. In this case , the session will have at least 100 errors when
the session is processed from SM35.
One way to avoid this is to use the program "RSBDCSUB" in the batch input program itself so
that the session is processed as soon as it is created.
RSBDCSUB schedules the session to be processed in background.
Sample Screenshot:
http://sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html?view=flipcard 3/10
6/24/2014 BDC Interview Questions
[http://4.bp.blogspot.com/-mXPaoNnamzs/T-
yZB2eWN7I/AAAAAAAAHG4/Bqzx2vacOmc/s1600/BDCDATA.PNG]
BDCDATA table structure
BDC_OKCODE: is used for storing commands during the recording. like '/00' is the command
for 'ENTER' Key.
BDC_CURSOR: contains the cursor position. it contians the field in which cursor will be.
Example code:
perform bdc_field using 'BDC_CURSOR'
'PROJ-PSPID'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
Question 8: What are the 3 methods that we use in sequence in a Batch input session
method ?
http://sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html?view=flipcard 4/10
6/24/2014 BDC Interview Questions
[http://3.bp.blogspot.com/-ciupAsDttL8/T-ygRIdSISI/AAAAAAAAHHE/tDioM1uXprs/s1600/BDC1.PNG]
Identify the Tcode and do the recording in SHDB to populate the BDCDATA.
[http://2.bp.blogspot.com/-_q1SuOwWhiM/T-
yyvp9GNrI/AAAAAAAAHHk/BMkHj2FtWME/s1600/SHDB.PNG]
Once the recording is done , one can Transfer it to the Batch input program.
[http://3.bp.blogspot.com/-GkiGntG89SE/T-
yxwlPQIRI/AAAAAAAAHHc/9O9nSxkyd9I/s1600/BDC.jpg]
In the batch Input program , The transactional data is read from the file to an internal table.
Then one can loop over the transactional data in the internal table and start uploading the
data in SAP either by CALL TRANSACTION method or by creating sessions through the batch
input program.
http://sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html?view=flipcard 5/10
6/24/2014 BDC Interview Questions
[http://1.bp.blogspot.com/-Fb5wS9UOeN4/T-yj8Ji9x4I/AAAAAAAAHHQ/kHjPx8-mupU/s1600/BDC2.PNG]
Question 11: What are the different modes of processing batch input sessions?
Foreground
Background
Question 12: What is the difference between Synchronous and Asynchronous Update ?
In Synchronous update , the database is updated before the next transaction is taken for
processing in a batch input.
In Asynchronous update , the system doesn't wait for updating the database before the next
transaction is taken for processing in a batch input.
Question 14: How do you read files from the Application server ?
You can use the commands:
OPEN DATASET ---> opens the file(dataset) either in read /write mode.
READ DATASET ---> Read the file
CLOSE DATASET ---> Close the dataset once the date has been read .
http://sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html?view=flipcard 6/10
6/24/2014 BDC Interview Questions
Question 15: How do you read files from the presentation server ?
You can use the Function Modules :
GUI_UPLOAD --> To read data from file into an internal table
GUI_DOWNLOAD --> To write data from internal table to a file on presentation server
If you found the post helpful , consider hitting the Google plus button------>
22 View comments
http://sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html?view=flipcard 8/10
6/24/2014 BDC Interview Questions
Ques 3.
No such processing options are available in BAPI.
BAPIs are usually called in some program. So, the programs can be run in foreground or background.
And ideally, BAPI can be run in both modes. So, doesn't it mean, BAPI can be used for large volume
of data in background mode. And BAPI should be the first choice.
Regards,
Raju
http://help-sap.blogspot.in/
Reply
http://sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html?view=flipcard 9/10
6/24/2014 BDC Interview Questions
Publish Preview
http://sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html?view=flipcard 10/10