SAP ABAP BDC Interview Questions
SAP ABAP BDC Interview Questions
[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.
sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html 1/7
8/8/13 BDC Interview Questions
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.
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 Background and Foreground
available in BAPI. processing options are available
for BDC.
BAPI would generally used for BDCs would be preferred for
small data uploads. large volumes of data upload
since background processing
option is available.
sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html 2/7
8/8/13 BDC Interview Questions
SAP Webdynpro ABAP I… Question 4: How do you process errors in Call Transaction
method ?
BDC Interview Questions
Let's have a look at the syntax for CALL TRANSACTION method.
Sample code:
SAP ALE IDocs intervie…
DATA: BEGIN OF G_T_MESSTAB OCCURS 0.
INCLUDE STRUCTURE BDCMSGCOLL.
SAP Webdynpro ABAP I… DATA: END OF G_T_MESSTAB.
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.
Send feedback
Question 6: What is the structure of the BDC table?
Sample Screenshot:
sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html 3/7
8/8/13 BDC Interview Questions
[http://4.bp.blogspot.com/-mXPaoNnamzs/T-
yZB2eWN7I/AAAAAAAAHG4/Bqzx2vacOmc/s1600/BDCDATA.PNG]
BDCDATA table structure
Example code:
perform bdc_field using 'BDC_CURSOR'
'PROJ-PSPID'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
[http://3.bp.blogspot.com/-ciupAsDttL8/T-
ygRIdSISI/AAAAAAAAHHE/tDioM1uXprs/s1600/BDC1.PNG]
[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.
sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html 5/7
8/8/13 BDC Interview Questions
[http://1.bp.blogspot.com/-Fb5wS9UOeN4/T-yj8Ji9x4I/AAAAAAAAHHQ/kHjPx8-
mupU/s1600/BDC2.PNG]
Foreground
Background
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 .
Question 15: How do you read files from the presentation server ?
sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html 6/7
8/8/13 BDC Interview Questions
If you found the post helpful , consider hitting the Google plus button------>
sap-interview-questions-and-answers.blogspot.in/2012/06/bdc-interview-questions.html 7/7