You are on page 1of 9

General

Q. What are ABAP Program Types?

Executable Program[Type 1]- This is REPORT program which can be


executed by the program name or using a transaction code or can be called
using SUBMIT and can have its own screens.
Module Pool [Type M] - Usually a PROGRAM statement can be started
using a transaction code, can be called using CALL TRANSACTION or LEAVE
TO TRANSACTION & have their own screens.
Function Group[]Type F- This is a FUNCTION-POOL statement, nonexecutable which acts as a container for function modules & can have its
own screens.
Class Definition[Type K ]- This is a CLASS-POOL statement, non-executable
and container for classes.
Interface Definition [Type J]- This is a CLASS-POOL statement, nonexecutable & container for interfaces.
Subroutine Pool [Type S ]-This is a PROGRAM statement, non-executable &
container for subroutines .
Type Groups [Type T ]- This is a TYPE-POOL statement which is nonexecutable and acts as a container for type definitions.
Include Program [Type I ]-Non-executable and container for source code
modules.

Q. What are important system fields Used in Reports?

SY-LSIND
SY-LISTI
SY-LILLI
SY-LISEL
SY-CPAGE

:Index of the list for current event for basic list = 0.


:Index of the list level from which the event was triggered
:Absolute number of the line from which the event was triggered
:Contents of the line from which the event was triggered
:Page number of the first displayed page of the list from which the

event was triggered


SY-UCOMM :Function code that triggered the event
SY-PFKEY :Status of the list currently being displayed.
Q. What are important systems fields used in programming?

SY-SUBRC
SY-INDEX
SY-TABIX
SY-TFILL
SY-LILLI
SY-LSIND
SY-DBCNT
SY-CPROG
SY-DATUM
SY-DYNNR
SY-STEPL
SY-LOOPC

: RETURN VALUE AFTER ABAP STATEMENTS


: LOOPS,CURRENT LOOP PASS
: INTERNAL TABLE,CURRENT LINE INDEX
: INTERNAL TABLE,CURRENT NO. OF LINES
: LIST PROCESSING,CURRENT LIST LINE
: LIST PROCESSING , DETAILS LIST INDEX
: DB OPERATIONS,NO. OF TABLE LINES PROCESSED
: ABAP PROGRAM,CALLER IN EXTERNAL PROCEDURES
: DISPLAYS CURRENT DATE
: ABAP PROGRAM,NO. OF CURRENT SCREEN
: LOOP INFORMATION IN TABLE CONTROL
: LOOP INFORMATION IN TABLE CONTROL

SY-DATLO
SY-DATUM
SY-TIMLO
SY-UZEIT
SY-TITLE

:Local date of user


: Current (application server) date
:Local time of user
: Current (application server) time
:Text that appears in the title bar of the screen.

Q. What is the difference between 'Check' and 'Continue' and 'Return'?


Q. What is the difference between 'Exit' and 'Stop'?
Q. What is the difference between Select Single * and select Up to 1 rows?
Q.What is the difference between Collect and Sum?
Q. What is an internal tables and its type?
Q. What is the difference between clear and refresh command?
Q. How to sort an internal table?
Q. How to find out the number of records in an internal table?
Q. What is a binary search? How it can be applied on an internal table?
Q. What is Import and export key words?
Q. What is ABAP memory and SAP memory?
Q. What is the use of SET and GET keyword?
Q. What is the use of RESERVE keyword?
Q. What is the query to fetch records form another client?
Q. What is the select query to by pass the buffer?
Q. How to delete duplicate records form the internal table.
Q. What are different work process are available ? Where we can see those?
Q. What are the different ways to show a message text/ Message type?
Q. What is the tcode to create a message class?
Q. What is the tcode to create a Transaction code for a report?
Q. What is a report variant?
Q. What is the tcodes are used to schedule a background job?
Q. How can check the log of the background job?
Q. How to debug a background job?
Q. What is the use of commit work and rollback work?
Q. What is LUW[Logical Unit of Work]?
Q. What is the difference between update & modify in sql query?
Q. What are DDL, DML & TCL commands?
Q. What is a client dependent and independent table? Which field is responsible
for this?
Q. What is Macro Definition?
Q. What is a subroutine?
Q. Can we call a subroutine in our program which is defined in another program ?
Q. What are type of function modules?
Q. How to handle exceptions in Function module?
Q. If a Function module is defined as RFC enabled why the parameters should be
pass by value not by reference?
Q. How to call a update function module in your program. When a update trigger
function module is executed?

Q. How to see or tcode to see if an update function module is failed?


Q. what is the tcode to see sap locks ?
Q. How multiple function modules can share the same global variable?
Q. How to change the package of an object from $TMP to other?
Q. What is the difference between type and like?
Q. What is Logical Data base and how we can use it in our program?
Q. What are the events in logical database?
Q. What is the difference between Inner join and for all entries?
Q. What is internal session and external session?
Q. What is the use of open data set and close data set?
Q. What is the use of collect and sum?
Q. What is the difference between free and refresh of internal table?
-----------------------------------------------------------------------------------------------------------------------------------------------Dictionary

What are different type of Database tables we can create?

What is a Data Class?

What is a Size Category?

What is a table pool?

What are pooled tables?

What is a table cluster?

Why quantity amounts (data type QUAN) must be assigned to a reference

table and a reference field?


What is the significance of Technical settings ?
What is the significance of Delivery Class?
What is the function of a Domain?
What is the function of a data element?
What is the difference between a Substructure and an Append Structure?
How we can assign the same include structure multiple times in a table?
What are two methods of modifying SAP standard tables?
Can we include customizing include or an append structure with Pooled or

Cluster tables?
What is a Match Code?
What are conversion routines? Why required? Can the user create own Z

conversion routines?
Can you define a field without a data element?
What is the difference between a structure and a table?
What is a view?
How many types of Views are there?
What is Buffering and types of buffering?
How buffering improves the performance?
What table maintenance generator?
Why a function group is provided during creation of TMG?

What is the difference between one step and two step process in TMG

creation?
What is table events & how many events are available?
What is primary index & secondary index?
Why secondary index is needed?
Who creates primary & secondary Index?
What is type group? How we can use this in ABAP Program?
Can standard domain fixed values enhanced by user?
What is check table and value table?
On which views we can write SQL queries?
What is search help? Why required?
What is the difference between elementary and collective search help?
What is Append search help?
What is Search Help Exit?
How can and how many ways we can assign a search help to a field in the

program?
Can we write select queries on pooled & cluster table?
What is the difference between pooled & cluster table?
What is Locking? What are lock object Function Modules?
What are the types of locking available?
What is text table and how it is linked to a table?
What is cardinality?
What is Primary Key?
What is composite primary key?
How many fields can be selected in a table to be a part of primary key?
Which data type fields can take part in primary key o f a table?
What is foreign key relationship?
How a search help is assigned to a table field?

SAP SCN WIKI Link for DDIC Questions with answers


----------------------------------------------------------------------------------------------------------------------------------------Reports and ALV

What are the events in classical reporting?

What are the events in interactive reporting?

What is difference between on Change of and at new field ?

What is the difference between at selection-screen and at selection-screen

on field?
How to dynamically change the selection field, making some field visible

and invisible?
What is the event responsible for displaying F4 help in report?
How to move from basic list to secondary list?
How many secondary list are possible?
What is hide technique?

What is get cursor technique to handle interactive report?


What is the difference between list and grid alv?
How to display top-of-page in alv?
How to display a logo in alv top of page?
How to make the particular field editable in alv grid?
How to handle double click event in alv grid?
How to display blocked alv ? What are the different function modules used?
which FM is responsible to display hierarchical sequential alv?
How do we call another report program from within a report?
How to call a transaction within a report?
How to set different title bar for each secondary report?
What is at user-command?
If you set a new PF-status, in an interactive program, then the double click
event will not work? What to be done to make double click event work with
your user specific pf status?
What are control break statements?
When top-of-page and end-of-page events trigger in report?
What is the use of load-of-program event?

-----------------------------------------------------------------------------------------------------------------------------------------Module Pool
What is the module pool program type?
What are the type of screen available?
What is the range of screen number we can use to create our screen?
What is the tcode for screen painter?
What if screen flow logic?
What are the events in module pool program?
What is difference between a screen and sub screen?
What is the use of sub screen area?
What is chain and end chain in module pool?
What is the difference between set screen and call screen?
Can we create select option in module pool program?
How to use table control in the flow logic of a screen?
How to use sub screen call in the flow logic of the screen?
What is on-chain input?
What is the use of on-chain request?
Do sub screen contains use commands, if yes where it is handled in the sub
screen PAI or in the PAI of the main screen?
What control structure is used for table control?
What control structure is used for the tab strip?
What is the difference between horizontal scrolling and vertical scrolling in
table control?

-------------------------------------------------------------------------------------------------------------------------------------------BDC - Batch Data Communication

Why BDC is used?

What is call transaction method and session method?

How to handle messages in call transaction method?

Which structure is used to handle messages in call transaction?

Can a single program use both call transaction and session method?

Which BDC method will be preferable in case of mass record upload and

why?
How to use table control in BDC?
What are the different Function modules are used in session method?
In transaction the recording is performed for the BDC?
What is the tcode used to process session method?
What is synchronous and asynchronous update in BDC?
What are standard function modules are used in session method?
What is the use of FORMAT_MESSAGE function module?

---------------------------------------------------------------------------------------------------------------------------------------Exits

& Enhancements
Why exits are needed?
What is the difference between user exit and customer exit?
How to find a user exit in a standard program?
How to implement a user exit?
Do we need an access key to implement user exit in a standard program?
User exit is a subroutine or an include program?
How many ways a customer exit can be implement( different forms of

customer exit)?
Do we need an access key to implement a customer exit?
How to find a customer exit? Is there any tcode to search customer exit?
Where to create a project for the customer exit implementation?
How customer exit FMs are called in standard program ? Do they like as

CALL CUSTOERT-FUNCTION 'XXX'?


What is screen exit?
What is menu exit?
What is field exit?
What is the difference between exit and BAdI?
What is a classic BAdI?
How are different ways to find a classic BAdI ?
Is BAdI is an object oriented approach?
Why an interface is associated with a BAdI definition?
What is the difference between single use and multiple use BAdI?

What is a filter dependent BAdI?


How classic BAdI are are instantiated and called in teh program?
What is the use of standard class method

CL_EXITHANDLER=>GET_INSTANCE method?
What are the Tcodes are used for the classic BAdI definition and

implementation?
What is Simple Enhancement Spot?
What is Composite Enhancement Spot?
What is Simple Enhancement Implementation?
What is Composite Enhancement Implementation?
What is a kernel BAdI?
What is single use kernel BAdI?
What is multiple Use Kernel BAdI?
What is Internal use Kernel BAdI? If a BAdI is marked as Internal use, Do a

customer can implement it?


What are the tcodes are used for the kernel BAdI?
What is a fall back class in kernel BAdI?
What is a default implementation in kernel BAdI?
What is the difference between GET BADI and CALL BADI statement?
What is implicit enhancement?
What is Explicit Enhancement?
What is Enhancement Point?
What is Enhancement Section?
What are the tocdes are used to search a kernel BAdI in a package?
What is pre exit , post exit and overwrite exit of a method?
What is a switch framework?
What are the tcodes are used for switch framework?

---------------------------------------------------------------------------------------------------------------------------------------OOABAP

What is Object oriented concept?

What is a class?

What is an object/Instance?

What are properties of Object orientation?

What is data abstraction?

What is encapsulation?

What is polymorphism?

What is inheritance?

How object oriented class-object approach is different from function group

and function module approach? Which is more powerful?


What are the parts of a class?
What is a local class?
What is a global class?

What is abstract class?


What is friend class?
What is inherited class?
What is a final class?
What is exception class?
What is unit class?
What is persistent class?
What is a single ton class?
What do you mean by class <class-name> create public?
What do you mean by class <class-name>create protected?
What do you mean by class <class-name> create private?
What do you mean by class access specifiers?
What is the sequence of class access specifiers?
What do you mean by constructor?
What is a instance constructor and static constructor?
When instance constructor is called?
When static constructor is called?
If we create 5 objects of a class, then how many times the instance

constructor is called and how many times static constructor is called?


If a class contains instance and class constructor, which is called first?
Which parameters (importing/exporting/changing ...) are allowed in

constructor?
In which section of the class, constructor should be declared?
Can we declare constructor in protected section or private section of a

class?
In which case we can declare constructor in protected section or private

section?
What are different types of methods we can create in a class?
What are different types of data in a class definition?
Can we declare types in a class definition?
Can a instance class access static attributes?
Can a static method access instance attributes?
By using which operator an object calls instance method?
By using which operator an object/class calls static method?
What is an interface?
Does interface contains method implementation?
How and how many interfaces we can implement in a class?
Can be the a class method name and an implemented interface method

name are same? If same then how those can be called?


In which section, interface is implemented in a class?
Is it possible to call an instance protected or private method outside of the

class? In yes or no, then how to call and where?


Can we access private members of a class outside of its scope?
How friend class can be used to access private members of another class?

What is the use of ME keyword?


If a class contains an attribute as <attr> and a method contains a local

parameter with the same name <attr>, then how we can differentiate
between them?
What do you mean by Inheritance?
What is single inheritance?
What is multiple inheritance? Does OO ABAP supports multiple inheritance?
What is multilevel inheritance?
What is hierarchical inheritance?
What is method redefinition?
What is the use of SUPER keyword?
How constructors are executed/sequence of execution in inheritance

mechanism?
Can we create an instance of abstract class?
What is a final method?
If a class is declared is final, what is its impact on the inheritance?
What is casting?
What is narrow casting and widening casting?
What is a factory class?
What is method overloading and method overwriting?
Does OO ABAP supports method overloading?
What is Events and instance event and static event?
How Events are raised?
How Events can be handled in a class?
What are the type of parameters allowed in an events?
How to register an event handler method?

You might also like