Saturday, February 16, 2013

SAP-BDC-Real-Time-Interview-Questions-Answers-Part-3


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.


           
            Read Part One of BDC Interview Questions and Answers





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.

Categories

ABAP (1) ABAP Interview Questions (112) ABAP Open SQL Statements (1) ABAP Syntax Rules (6) ABAP WORKBENCH (2) ABAP-Interview-Questions (52) ALE IDOC (6) ALE IDOC Interview Questions (6) ale-idoc (6) ALE-IDOC-Interview-Questions (19) ALV Interview Questions (5) ALV-Interview-Questions (22) BADI (2) BAPI (1) BAPI Interview Questions (1) BAPI-Interview-Questions (14) BDC (6) BDC Interview Questions (6) BDC-Interview-Questions (9) big data (2) big data interview questions (1) Classical Reports Interview Question (3) Classical-Reports-Interview-Questions (22) Conditional Statements (1) Cross Applications (3) Cross-Applications (14) Data Dictionary (22) Data Type Questins (1) Data types (1) Data-Dictionary (48) Data-Type-Questins (6) Dialog programming (5) Dialog Programming Interview Questions (4) Dialog-Programming (30) DOMAIN Interview Questions (1) Domain-Interview-Questions (8) Function Module (2) hadoop (2) hadoop interview questions (2) hdfs (1) IDoc Tutorials (6) Interactive Report Interview Questions (4) Interactive-Reports-Interview-Questions (22) Internal Tables (1) interview questions (1) Lock Object Interview Questions (1) Lock-Objects-Interview-Questions (10) Logical Database (1) Modularization Interview Questions (4) Modularization-Interview-Questions (25) Module Pool Programming (5) Module-Pool-Programming (39) modules in sap (1) Object Oriented ABAP (19) Object Oriented ABAP Interview Questions (15) object-oriented-abap (2) Object-Oriented-ABAP-Interview-Questions (34) OOABAP (9) Reports (14) Reports Interview Questions (9) Reports-Interview-Questions (19) RFC (1) RFC Interview Questions (1) RFC-Interview-Questions (14) RICEF (1) RICEF Objects (1) SAP (4) SAP ABAP (4) SAP ABAP Interview Questions (42) SAP ABAP Introduction (46) SAP ABAP Message Types (2) SAP BADI Interview Questions (2) SAP Basics (71) SAP Books (2) SAP Certification (1) SAP CONSULTANTS (5) SAP CRM (1) SAP ENHANCEMENTS (3) SAP EXITS (2) SAP EXITS ( SAP ENHANCEMENTS ) Interview Questions (1) SAP Free Books (1) SAP HR (2) SAP Lock Object (1) sap modules (2) SAP Open SQL Statements (1) SAP R/3 Architecture (4) SAP Search help (1) SAP Smartforms (1) SAP Smartforms Interview Questions (2) SAP Tables (5) SAP Tcodes (10) SAP Views (1) SAP Webdynpro ABAP (12) SAP Work Processors (2) SAP Workflow (3) SAP-BADI-Interview-Questions (11) SAP-Enhancements (39) SAP-Exits (39) SAP-Exits-Enhancements-Interview Questions (3) SAP-HANA (1) SAP-HANA-Interview-Questions (1) SAP-Smartforms-Interview-Questions (2) SAP-Workflow (3) Scripts (3) Scripts Interview Questions (2) Scripts-Interview-Questions (32) Search Help Interview Questions (1) Search-Help-Interview-Questions (9) Smartforms (1) Table Maintenance Generator (1) Table-Maintenance-Generator (4) Tables in SAP (2) Tables Interview Questions (3) Tables-Interview-Questions (3) Type Group Interview Questions (1) Type-Group-Interview-Questions (7) Variable Declaration (1) Views Interview Questions (1) Views-Interview-Questions (5) Webdynpro (12) what is big data (1)

Protected Blog

 
This blog is not affiliated to SAP AG |SAP is trademark of SAP AG |The information collected from various sources use information with your own risk.