Saturday, February 16, 2013

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


SAP BDC Real Time Interview Questions and Answers Part-4, here in this post we are going to provide a list of BDC (Batch Data Communication) Real Time Interview Questions and Answers Part-4. 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-4, here in this post we are going to provide a list of BDC (Batch Data Communication) Real Time Interview Questions and Answers Part-4. 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.



61.          What are the types of Batch Input?

Classical Batch Input

Call Transaction

Call Dialog



62.          How can we execute a function in a BDC session?

We can execute a function in a transaction by entering the function code or function key number in the command field of an SAP session. A function key number must be prefixed with the / (slash) character. A function code must be prefixed with the = character. 


Example:

BDCDATA-FNAM  =   'BDC_OKCODE'

BDCDATA-FVAL   =   '=UPDA'



63           How can we position the cursor on a particular field?

BDCDATA-FNAM  =  ‘BDC_CURSOR’

BDCDATA-FVAL   =  <FIELDNAME>



64.          Who are Dialog users and who are Background users?

Dialog users are normal interactive users in the SAP system.  Background users are user master records that are specially defined for providing authorizations for background processing jobs.



65.          What are the update modes in CALL TRANSACTION?

S : Synchronous

A : Asynchrnous

L : Local



66.          What does the message parameter indicates?

The message parameter indicates there all system messages issued during a CALL TRANSACTION are written into the internal table <itab>.  The internal table must have the structure of BDCMSGCOLL.



67.          What is Direct Input?

To enhance the batch input procedure, the system offers the direct input technique especially for transferring large amount of data. This technique doesn’t create sessions but stores the data directly.  The direct input programs must be executed in the back ground only.  To maintain and start these programs, use program RBMVSHOW or the transaction BMVO.



68.          What are the features of Recording Function ?

Recording transaction runs, creating batch input sessions from the recorded transaction runs. Generating a batch input program from the recorded data.



69.          How do you set up batch process?

Data analysis: Analyze the data that is to be transferred to the SAP System. 


Generate SAP structures: Generate SAP data structures for incorporation into your data export program.


Develop transfer program: You can write the program in ABAP/4 or as an external program. 

Create sequential file: Export the data that is to be transferred, to a sequential file.  


Create batch input program: ABAP/4 batch input program that will read the data to be transferred from the sequential file. 


Process batch input data: Process the data and add it to the SAP System.  You can do this either by: batch-input session method or Call transaction method.


Analyze results: Check that all data has been successfully processed.


Analyze Error session: Correct and re-process erroneous data.  



70.          What has to be done to the packed fields before submitting to a BDC session?

Declare these fields in the internal table as characters and the length of the field should be same as the field length of the field's data element. This internal table is used to hold the data fetched from the sequential file using WS-upload function module



71.          What are acronyms BDC, BI, BTC, BTCI, CTU, LSMW?


BDC


Batch Data Collection. It's the name of the SAP technology used to record and play transactions automatically. There are 3 ways to execute BDC: BI sessions, CTU, CDU.

BI


Batch Input. It has the same meaning as BDC. The BI session is one of the 3 ways to run the BDC technology. Note: remember that BI may also mean Business Intelligence which is not related to Batch Input at all


BTCI


Batch Input. It has the same meaning as BDC.


CDU


CALL DIALOG ... USING ... ABAP statement. CALL DIALOG is obsolete. It's one of the 3 ways to run the BDC technology.


CTU

CALL TRANSACTION ... USING ... ABAP statement. It's one of the 3 ways to run the BDC technology.


LSMW


Legacy System Migration Workbench. It allows using the BDC recorder and the BI sessions.



72.          What are the differences between CTU and BI session?

Note: Batch input sessions have other functions not listed here (like keep session, etc.) because we just discuss of the BDC technology here.

Call Transaction Using
Batch Input Session


The BDC data is run via ABAP statement CALL TRANSACTION ... USING ...

It is saved to database via ABAP function modules BDC_OPEN_GROUP, BDC_INSERT, BDC_CLOSE_GROUP, and is later run by SM35 transaction, or by programs RSBDCBTC or RSBDCSUB. Internally, it does not execute CTU but the kernel program BDC_START_GROUP


Only one transaction is called
Several transactions can be recorded in one session
The ABAP program must do the error handling itself (note: CALL TRANSACTION statement returns the messages in an internal table)


There is a built-in error and recovery mechanism in SM35 to view the log of errors and run the erroneous transactions again (note: the BDC data cannot be corrected)
By default, standard size is not used
By default, standard size is used (22 lines * 84 columns)

Since 7.0, the dates and numbers can be always interpreted correctly during execution, by indicating in which format they are stored in the BDC data when you open the BI session

It's possible to define SY-CPROG in PROG parameter of BDC_OPEN_GROUP function module


Update mode can be chosen
Update mode is always Synchronous




You may use RACOMMIT of CTU_PARAMS to not stop the BDC at the COMMIT WORK
Transaction execution always stops at COMMIT WORK




SY-BINPT can be set to space using NOBINPT of CTU_PARAMS
SY-BINPT value is always X


As SY-BINPT is reset to 'X' after COMMIT WORK, it can be set to 'X' again using NOBIEND of CTU_PARAMS
Doesn't apply as BI session always stop after COMMIT WORK
Option CATTMODE of CTU_PARAMS can be used

All display modes can be used, including P and S

All display modes can be used except P & S





Extended log, Expert mode, Cancel if log error occurs
Recording (SHDB)




73.          How do I record a Batch Input session for later playback and analysis?

Using transaction SHDB it is possible to record transactions as well as create skeleton programs that contain all the necessary code for creating batch input sessions.



74.          Why SHDB didn't record some screens?

There was probably a COMMIT WORK. By default, the recording stops after COMMIT WORK (for more information


 When you start the recording, you have a check box "not possible, but anyway it makes no sense to transport them: the recordings have no vocation to remain in the system, and are usually converted into programs or function modules, which are cross-client.



75.          How to copy a recording?

1.       Display the recording
2.       There is a button to export to a file on your presentation server
3.       Create a recording without transaction code and without starting the recorder, a button to import is then displayed

Note that recordings are client-dependent.



76.          How to transport a recording?

It's not possible, but anyway it makes no sense to transport them: the recordings have no vocation to remain in the system, and are usually converted into programs or function modules, which are cross-client.



 77.         How does recording work?

It works the same as CTU with Display Mode "A", but it's surrounded by kernel calls to SET_TRANS_VAR for activating and deactivating the recording: among other things, before CTU, there are call 'SET_TRANS_VAR' id 'RECORDING' field 'X' and CALL 'SET_TRANS_VAR' ID 'ACTIV' FIELD 'X', and after CTU, there is call 'SET_TRANS_VAR' id 'RECORDING' field ' '. 

The main function module for recording is BDC_RECORD_TRANSACTION, which returns the BDC data. The SHDB recorder records the BDC data into APQI and APQD tables.


LSMW recorder uses this same technology, but saves the BDC data into /SAPDMC/LSGBDC* tables.



78.          What values may contain BDC_CURSOR?

It may contain 3 kind of values:

·         A field name: MARA-MATNR (if several fields have the same name in the outer dynpro, the BDC_SUBSCR line is needed)

·         A field name followed by a row number between parentheses, indicating a field in a table control or step loop (see FAQ about table control scrolling below): MARA-MATNR(01)

·         Coordinates in a list (row/column): 07/04



79.          What is CTU_PARAMS?

This is a structure defined in the ABAP Dictionary (SE11) that must be used to declare the type of variable after the OPTIONS FROM keyword of CALL TRANSACTION ... USING ... ("CTU") statement. It contains many fields to influence the CTU behavior. 

For more information, refer to CALL TRANSACTION 'SM04' USING lt_bdcdata MODE 'N' 
UPDATE 'S'.
is the same as:

DATA ls_ctu_params TYPE ctu_params.
ls_ctu_params-dismode = 'N'.
ls_ctu_params-updmode = 'S'.
CALL TRANSACTION 'SM04' USING lt_bdcdata OPTIONS FROM ls_ctu_params.



80.          What are the commands available for controlling the flow of a BI session?

These commands are only available in foreground mode (A or E), and they are not available in CTU. 


They are also accessible via the menu under System -> Services -> Batch Input.

                   Function code
Meaning



Corresponding menu item in System menu -> Services -> Batch Input
/bbeg

Restart transaction
/bdel


Delete current transaction from batch input from session (log can still be seen but it can never be restarted)

Delete transaction
/n
Terminate current transaction, mark the transaction as incorrect, and pass to next transaction

Next transaction
/bda
Change the screen Processing from Error only mode to all display mode (Foreground processing)

               Process in Foreground
/bde
Change the display mode from All screens to Error only

                Display Errors Only
/bend
End current batch input session completely
Cancel






                        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.