SAP BDC Real Time Interview Questions and Answers Part-3, here in this post we are going to provide a list of BDC (Batch Data Communication) Real Time Interview Questions and Answers Part-3. BDC is the process of transferring the data from Non SAP Systems to SAP Systems through using various methods. Refer this post for more details and BDC Interview Questions. Click on Read More.
SAP ABAP BDC Interview Questions
SAP BDC Interview Questions and Answers Part-3, here in this post we are going to provide a list of BDC (Batch Data Communication) Real Time Interview Questions and Answers Part-3. BDC is the process of transferring the data from Non SAP Systems to SAP Systems through using various methods. Refer this post for more details and BDC Interview Questions.
41. I am uploading 1000 records using
session method.
I have an error in 950th record. What will happen and how many
records will upload?
Scenario 2: I am uploading 1000 records using Call
Transaction method.
I have an error in 950th record. What will happen and how many
records will upload?
Scenario
1:
Up to
949 records will upload
Scenario
2:
Except
950th record, all records will be uploaded.
42. What is the use of OK_CODE in BDC?
BDC_OKC0DE
will store all the ok codes in the BDC program, when you pass the Fields to a screen
after filling the fields we need to click any button to move other screens, so
here the Button will be have a OK_CODE internally to know this we do the
recording of the Program, after that we will store this OK code in the
BDC_OKCODE field to trigger the next operation.
43. How to generate and processing the
session in the same program?
Write
BDC Program then call "RSBDCSUB" using "Submit" Command.
44. How to run bdc program in background?
By
using RSBDCSUB we can do this
45. If I want to insert 10 laks MM records
and for inserting one record it takes 1 min by using call transaction or
session method. So here is there any alternative ?
Break
the records into 100/1000 sessions and process your session it will take same
time as it takes for single sessions.
We
can go through LSMW direct input method, in real time for Master data uploading
we are used it. It was v v fast and performance wise also good.
Use
bapi run in background.
46. How does u know that updation is
successful in BDC?
Using
bdcmsgcol we can find out it is success or not. After run the BDC PROGRAM
(CREATING BATCH SEESION).
Using SM35 you can proceed batch session, if updation
is successfully done then status showing green tick. If any errors over there
then its showing red tick.
47. There is a file in application server.
How can you upload it and separate it as per different fields?
open
dataset p_file for input in textmode encoding default.
if
sy-subrc = 0.
do.
read
dataset p_file into w_rec.
if
sy-subrc = 0.
split
w_rec at ',' into wa_final-fld1
wa_final-fld2
.
.
.
append
wa_final to i_final.
enddo.
48. You have 5lakh records to transfer to
sap from flat file. Which method of bdc you wiil choose and why?
If u
want to process the large amount of data that we have to use the session method
because of, while u are Processing the records any errors are processed these
errors Create the error log file for each error record.
In the same way this
method not possible in call transaction Method .
49. Difference between various BDC method.
Which is the best one?
There
are 2 types of BDC Method:
1)
CALL TRANSACTION.
2) SESSION.
1:
CALL TRANSACTION :
In this method you Call a Transaction as
'MB01' and Process the Recorded BDC RUNTIME.
You
can RUN this BDC in following Modes:
MODE
A:
FOREGROUND MODE (You will be able to View SCREEN Calling
and filling of data in respective fields of that very SCREEN).
MODE
E:
ERROR MODE (Everything in Background. If any ERROR Occurs
your BDC will STOP on that very SCREEN where ERROR Occurred)
MODE N:
BACKGROUND (Processing of BDC is done in Background.
If
any ERROR occurs the BDC will not get Executed
further & you are thrown out of BDC.)
2:
SESSION METHOD: -
Here for whatever BDC you have RECORDED a SESSION(LOG) is CREATED where the BDC is
STORED and it gets Executed
When
you execute the LOG through TRANSACTION
SM35.
To View the OUTPUT use TRANSACTION SM39.
This
is basically done when you are dealing with large
amount
of data in your Internal Table. We use 3 Function
Modules
.
BDC_OPEN_GROUP
: To open the group.
BDC_INSERT : To Insert Transaction.
BDC_CLOSE_GROUP:
Closes the Transaction.
SESSION
METHOD IS THE BEST.
50. We give KEEP in BDC structure...what
is its purpose?
It is
Indicator to keep processed sessions. I.e. if this flag is set, then session is
kept after processing also. Otherwise, session will be deleted after
processing.
51. After running a BDC program in
background, next day morning when you see the results, few records are not
updated(error records). What will you do then?
Correct
data and execute
52. You are given functional specs for a
BDC program and you need to decide whether to write a method call transaction
or a session. How u will decide?
That
is decided to depending on the client requirement.
If it
is a large data then u will use to session method,
If it
is small data the u will used to call
transaction.
53. How to run bdc program in background?
1. By
using RSBDCSUB we can do this.
2. In
session method goto SM36 to schedule a background job.
54. Utility of bdc cursor?
In
BDC program BDC_CURSOR is used to move cursor location to a specific screen
field in which data need to be inserted.
55. What is difference between batch input
method and direct input
Direct
input method Batch Input Method
1) We
cannot send the fields 1) we can send
fields as per our
according to our requirement requirement.
2)
validations are done based 2)
validations are done based
on pre-defined function on applications.
modules
56. How does u write a program in session
method so that it creates the session and run the session itself without going
to sm35 ?
After
writing the program submit the session using the syntax submit rsbdcsub with
mappe '<session name>' [via selection screen] [and return].
57. After running a BDC program in
background, next day morning when you see the results, few records are not
updated(error records). What will you do then?
We
look into the list of incorrect session and process it again to correct
incorrect session we analyze the session to determine which screen and value
produced the error for small errors in data we correct them interactively otherwise modify batch input program that has
generated the session or many times even
the data file.
58. How to use table control in bdc?
Table
control is used for entering multiple line items in BDC.
For
table control in bdc declare two variables as integer. set the variable value
as 0.
In the program before the line item
perform statement set the counter value as 1.
Count=count+1.then u have to use
the concatenate statement for the line items for example concatenate'(lfa1-banks('count'))'
into cval. Perform bdc using cval.
During recording for the line items we have to
record for the next page also for the line item. goto standard tool bar u hv to press the next page button.
if count=5.
perform
bdc using p+ ->this for next page
endif
clear
count.
59. What do you do when the system
crashes in the middle of a BDC batch session?
We
will look into the error log file (SM35).
60. What
are the differences between CALL TRANSACTION and BATCH INPUT SESSION?
- The most important aspects of the batch session interface
are:
- Asynchronous processing
- Transfers data for multiple transactions
- Synchronous database update during processing, no transaction is started until the previous transaction has
been written to the database.
- A batch input processing log is generated for each
session
- Sessions cannot be generated in parallel.
The most important aspects of the CALL TRANSACTION USING interface are:
- Synchronous processing
- Transfers data for a single transaction
- Synchronous and asynchronous database updating both
possible
The program specifies which kind of updating is desired.
- Separate LUW for the transaction
The system performs a database commit immediately before and after the CALL
TRANSACTION USING statement. No batch input processing log is generated.
Dear ABAPers if you know any Real Time Interview Questions Please provide the questions in below comment box it'll helpful for the fellow novice ABAPers.
"You found the information helpful and want to say thanks? Your donation is enough to inspire us to do more. Thanks a bunch!"
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.