Sei sulla pagina 1di 8

sapabapiq.

co m

http://www.sapabapiq.co m/2013/02/sap-bdc-real-time-interview-questio ns_4905.html?pfstyle=wp

SAP-BDC-Real-Time-Interview-Questions-Answers-Part-3
SAP BDC Real T ime Interview Questions and Answers Part-3, here in this post we are going to provide a list of BDC (Batch Data Communication) Real T ime 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 transf erring the data f rom Non SAP Systems to SAP Systems through using various methods. Ref er this post f or 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 af ter f illing the f ields 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, af ter that we will store this OK code in the BDC_OKCODE f ield 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 f or single sessions.

We can go through LSMW direct input method, in real time f or Master data uploading we are used it. It was v v f ast and perf ormance wise also good.

Use bapi run in background.

46. How does u know that updation is successful in BDC?

Using bdcmsgcol we can f ind out it is success or not. Af ter run the BDC PROGRAM (CREAT ING BAT CH SEESION). Using SM35 you can proceed batch session, if updation is successf ully done then status showing green tick. If any errors over there then its showing red tick.

47. T here is a file in application server. How can you upload it and separate it as per different fields?

open dataset p_f ile f or input in textmode encoding def ault. if sy-subrc = 0. do.

read dataset p_f ile into w_rec. if sy-subrc = 0. split w_rec at ',' into wa_f inal-f ld1 wa_f inal-f ld2 . . . append wa_f inal to i_f inal. 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 f ile f or 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?

T here are 2 types of BDC Method:

1) CALL T RANSACT ION.

2) SESSION.

1: CALL T RANSACT ION : In this method you Call a Transaction as 'MB01' and Process the Recorded BDC RUNT IME.

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 ST OP 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 MET HOD: -

Here for whatever BDC you have RECORDED a SESSION(LOG) is CREAT ED where the BDC is ST ORED and it gets Executed When you execute the LOG through T RANSACT ION SM35. To View the OUT PUT use T RANSACT ION SM39.

T his 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 MET HOD IS T HE BEST.

50. We give KEEP in BDC structure...what is its purpose?

It is Indicator to keep processed sessions. I.e. if this f lag is set, then session is kept af ter processing also. Otherwise, session will be deleted af ter 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?

T hat 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 specif ic screen f ield in which data need to be inserted.

55.

What is difference between batch input method and direct input

Direct input method 1) We cannot send the fields according to our requirement

Batch Input Method 1) we can send fields as per our requirement.

2) validations are done based on pre-defined function modules

2) validations are done based on applications.

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 ?

Af ter writing the program submit the session using the syntax submit rsbdcsub with mappe '' [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 f or small errors in data we correct them interactively otherwise modif y batch input program that has generated the session or many times even the data f ile.

58. How to use table control in bdc?

Table control is used f or 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 bef ore the line item perf orm statement set the counter value as 1. Count=count+1.then u have to use the concatenate statement f or the line items f or example concatenate'(lf a1-banks('count'))' into cval. Perf orm bdc using cval. During recording f or the line items we have to record f or the next page also f or the line item. goto standard tool bar u hv to press the next page button.

if count=5. perf orm bdc using p+ endif clear count.

->this f or next page

59. What do you do when the system crashes in the middle of a BDC batch session?

We will look into the error log f ile (SM35).

60. What are the differences between CALL T RANSACT ION and BAT CH INPUT SESSION?

T he most important aspects of the batch session interf ace are: Asynchronous processing Transf ers data f or 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 f or each session Sessions cannot be generated in parallel.

T he most important aspects of the CALL T RANSACT ION USING interf ace are: Synchronous processing Transf ers data f or a single transaction Synchronous and asynchronous database updating both possible

T he program specif ies which kind of updating is desired. Separate LUW f or the transaction

T he system perf orms a database commit immediately bef ore and af ter the CALL T RANSACT ION USING statement. No batch input processing log is generated.

Read Part One of BDC Interview Questions and Answers

Read Part Two of BDC Interview Questions and Answers

Read Part T hree of BDC Interview Questions and Answers

Read Part Four of BDC Interview Questions and Answers

Dear ABAPers if you know any Real T ime 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!"

Potrebbero piacerti anche