Download as pdf or txt
Download as pdf or txt
You are on page 1of 118

1. What is Structure?

Structure is a combination of different fields, Which is having same Data type or Different Data
type fields . This structure is also called as Work area. Structure is a skeletal view of a table. It contains
the definition of columns and dont have any contents.
Whenever you create a structure it will be allocate some physical memory. Every structure or work
area can be holds only one record in run time of your program
We have two type of structures available in SAP, there are :
1. Append structures,
2. Include structures.

2. What are the differences between Append and Include structures?


APPEND structure is one where for a table we use append structure and within this we implement
the required fields along with its properties.....These are custom defined fields
INCLUDE structure is one which is been appended to a table, but already the include structure has
fields with its properties....These are SAP defined fields.
3. What is an Internal table?
Internal table is a combination of different fields which is used to holds multiple records at runtime.
If we want to hold multiple records we need to have an internal table, internal table is a dynamic
sequential memory buffer, allocate some memory during the run time.
4. What are the types of internal tables?
Generally in SAP we have 3 types of Internal tables available, there are :
a. Standard internal tables,
b. Sorted Internal tables and
c. Hashed internal tables.

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

5. What is the difference between standard, sorted and hashed table?


Standard Internal table:
a. Standard internal tables having linear key, we can access them either the Index or Key.
b. The standard internal table key is always Non-Unique key.
c. To fill the standard internal table records we can use only APPEND statement.
d. We can use READ, MODIFY, and DELETE lines statements for Standard Internal tables by
referring to the Index.
e. Supports Linear and Binary search for Standard Internal tables.
Sorted Internal tables:
a. Sorted internal tables are always saved correctly sorted by KEY. They also having Linear Key.
b. The key of Sorted internal tables can be either UNIQUE-KEY or NON-UNIQUE KEY and must
specify any one.
c. To fill sorted internal table lines to Use INSERT statement.
d. Supports BINARY Search only for READ statement.
Hashed Internal tables:
a. Hashed tables have No internal Linear Index.
b. We can access Hashed tables by specifying key only.
c. The KEY of Hashed internal tables must be UNIQUE KEY.
d. Supports Linear search only.

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

6. Which methods use to pass the records from work area to internal table body?
We have using three methods to pass the records from work area to internal table body. The
methods are:
a. APPEND

Ex: APPEND st_tab TO it_tab.

b. INSERT

Ex: INSERT st_tab INTO it_tab index 2.

c. COLLECT Ex: COLLECT st_tab INTO it_tab.

(NOT USE IN SORTED TABLES).

7. What is the difference between Append, Collect and Insert?


APPEND : This command inserts a new record at the end of the table.
INSERT : This command inserts a new record at the given index,
COLLECT : This is used for summation purpose. it will add the numeric values of the new record to the
existing record without changing the non numeric values..

8. What are the types of internal table keys?


Generally we have two types of internal table keys: There are:
1. Implicit keys (all character fields)
By default, all the records that you append to your internal table have a key. This key is the
combination of all non-numeric fields. This is the implicit key

2. Explicit keys (user defined keys UNIQUE / NON-UNIQUE)


You can also define your own key for an internal table called as User-defined keys. You
would add WITH KEY FIELD1 FIELD2 etc. to your DATA statement.
More specifically, you can make your user-defined key:
a. UNIQUE: additional records with the same key would not be permitted
b. NON-UNIQUE: additional records with the same key would be permitted.

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

9. How to declare an internal table size?


We can use the command INITIAL SIZE 0 for declaration of internal table size. Internal table size
means to assign the initial lines to storage memory.

INITIAL SIZE <n> parameter: With <n>, you specify an initial number of lines for the internal
table..
Ex:
DATA: TT_TAB TYPE SORTED TABLE OF TY_TAB WITH UNIQUE KEY NO INITIAL

SIZE 0.
If you know the maximum size of an internal table and that size is less than 8K, you can increase
the systems performance by specifying the maximum size in the INITIAL SIZE <n> parameter.
10. What is the difference between READ TABLE and DESCRIBE TABLE in internal tables?
READ TABLE is used to READ (search) single record at a time from the internal table.
EX: READ TABLE it_vbak WITH KEY vbeln = '12345'.
READ TABLE it_vbak INTO wa_vbak INDEX sy-tabix.
READ TABLE it_vbak INTO wa_vbak WITH KEY vbeln = '12345'.
So the above statements will read the record from the internal table it_vbak and places them in
work area wa_vbak.
DESCRIBE TABLE is used to find the properties of the internal table like how many records the
internal table have.
EX: DESCRIBE TABLE IT_TAB LINES GV_LINES.

WRITE:/ 'TOTAL RECORDS', GV_LINES.


after executing this GV_LINES will contain a value equal to number of records in IT_TAB

11. What are the various methods of READ TABLE command?


READ TABLE command is used s to search for a record of an internal table. Its READ TABLE
command works on basing two methods, there are :

a. Linear search (one by one record search) and


b. Binary search.
12. What is the difference between Linear search and Binary search?
Linear search is nothing but processing sequentially one by one line searching.
Ex: There are 9 numbers , we have to find 7
4

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

123456789
Linear search : we proceed 1 by 1 : it takes 7 iterations
Binary search: (total records divide by 2 parts) we take middle value( 5) compare with 7 now we
are left with 6 7 8 9
we compare (8) and (7) with 7 ... Thus process completed in 2 iterations

13. What are the prerequisites of Binary search?


Binary search is one of the fastest way to find the record exists in the internal table.
TO use BINARY SEARCH, you have to SORT the internal table in ASCENDING/DESCENDING ORDER. Then
only you will get the exact results.
Ex: SORT IT_TAB BY KUNNR LAND1 NAME1.
READ TABLE IT_TAB WITH KEY KUNNR = 10001
LAND1 = IN
NAME1 = 'JHON' BINARY SEARCH.
14. Various operations of Internal table as well as Database tables?
1.
2.
3.
4.
5.
6.

APPEND
INSERT
COLLECT
READ
DESCRIBE
MODIFY
7. UPDATE
8. DELETE

: APPEND st_tab TO it_tab.


: INSERT st_tab INTO it_tab.
: COLLECT st_tab FROM it_tab.
: READ TABLE it_tab FROM st_tab WITH KEY name = RAM.
: DESCRIBE TABLE it_tab LINES GV_LINES.
: MODIFY TABLE zemp FROM st_tab TRANSPORTING AGE = 20.
: UPDATE zemp SET Emp_name = P_NAME
Emp_age = P_AGE
WHER Emp_id = P_ID.
: DELETE FROM zemp WHERE emp_name = p_emp_name.

15. Which methods to use initialize a structure and internal tables?


We have three methods for using Delete internal tables, there are:
1. CLEAR :
The CLEAR <internal table> statement initialize all single fields in the header line of an
internal table according to type.

2. REFRESH: The REFRESH <internal table> statement deletes all table lines. The table storage
space is not released. The header line remains unchanged.

3. FREE: The FREE <internal table> statement releases the storage space required for a table.
The header line remains unchanged.
5

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

16. What are the Aggregate Functions in SELECT Query?


The aggregate functions MIN, MAX, AVG, SUM, and COUNT are a valuable tool for accumulating
values across the entire table or a subset of the table rows based on the conditions in the WHERE
clause.
a. Notice there is no ENDSELECT because the aggregate SELECT statement does not return
multiple records.
17. Have you done performance tuning? What are the things you are going to do in performance
tuning?

Yes. ST05 is one of the transaction for check Performance of your program its called as SQL trace
T. code SE30 is another way to check Run time Analysis.
SLIN transaction for Extended program check. (Program > Check > Extended Program check)
To check Computer Aided Test Tool (CATT) by transaction SCAT.

18. What is Parallel cursors technique?

The most common performance problem that occurs in ABAP programs is because of huge number
of records in the internal tables.
if a program has huge nested internal tables the program has bad performance.
The WHERE condition that is used in inner loops expend a significant amount of processing time.
The idea is to avoid where conditions in the inner loops by maintaining the loop indexes (From)
manually.

19. What is the logic behind parallel cursors technique?


The WHERE condition that is used in inner loops expend a significant amount of processing time.
The idea is to avoid where conditions in the inner loops by maintaining the loop indexes (From)
manually.

20. What are the types of debuggers we have in SAP?


6

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

In SAP we have two types of debuggers available:


1. Classical Debugger (up to 4.7 v)
2. New Debugger

(from ECC 5.0 to 6.0 v)

21. What are the differences between classical and new debugger?
The classic ABAP Debugger runs in the same roll area as the analyzed application. It is therefore
displayed in the same window as the application.
The new ABAP Debugger is executed in its own main mode (external mode), while the application
to be analyzed (debug ) uses a second main mode (two-process architecture). The new Debugger is
therefore displayed in its own window of the SAP GUI.
22. What are the types of breakpoints in SAP?

We have two types of Break-points are available in SAP, there are:


1. Static Break-points (outdated)
2. Dynamic Break-points

23. What is the difference between For all entries and Joins?
Inner Join: Retrieves data from Data base tables based on the 'WITH KEY' fields which you have
mentioned in your 'SELECT' query. It also depends on the 'WHERE' condition. In total the 'Inner Join' is
filtering the data at DATABASE LEVEL.
For all entries: Here at first you are going to fetch data from Db1 into itab1 for specified condition.
then again you will use one more select query to fetch the values from DB2 for the corresponding
entries in internal table itab1.
24. What is the difference between Inner join and Left outer join?

An inner join of A and B gives the result of A intersect B, i.e. the inner part of a venn diagram

intersection.
An outer join of A and B gives the results of A union B, i.e. the outer parts of a venn diagram

union.
7

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Examples
Suppose you have two Tables, with a single column each, and data as follows:
A
B
1
3
2
4
3
5
4
6
Note that (1,2) are unique to A, (3,4) are common, and (5,6) are unique to B.
Inner join
An inner join using either of the equivalent queries gives the intersection of the two tables, i.e. the
two rows they have in common.
select * from a INNER JOIN b on a.a = b.b;
select a.*,b.* from a,b where a.a = b.b;
a | b
--+-3 | 3
4 | 4
Left outer join
A left outer join will give all rows in A, plus any common rows in B.
select * from a LEFT OUTER JOIN b on a.a = b.b;
select a.*,b.* from a,b where a.a = b.b(+);
a | b
--+----1 | null
2 | null
3 |
3
4 |
4

25. Can I write joins for pooled and clustered table?


Clustered and pooled tables are different to transparent tables as they are stored internally by the
R/3 system. They cannot be converted to OpenSQL and processed directly as the R/3 system imposes
restrictions.
8

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Joins that include clustered or pooled tables are decomposed and processed using ABAP nested join
logic.

26. What are the pre requisites for FOR ALL ENTRIES?
(Or) How to improve the performance of For all entries?
Prerequisite: which table is used in FOR ALL ENTRIES, that is must having records or NOT INITIAL
and has some common fields with the table you want to fetch data into.
27. What is the difference between Developer access key and Object access key?

1) Developer Key - To Create/Change any Custom Object you will required Developer access key .
System asks Developer key only once, when ever login Developer in first time for system
recognize as Developer.
2) Object Access key - This key will be available in service.sap.com . if you change or
modifying the standard SAP Logic system will be asks Object access key.
28. What are the types of data we have in SAP & give some examples?
The following graphic shows the different data types that are used in ABAP. Data types form a part of
the ABAP Type Hierarchy.

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Data types can be divided into elementary, reference, and complex types.
29. What are the differences between Transparent , Pooled and Clustered tables?
I. Transparent tables :
Transparent tables allows secondary indexes. (SE11->Display Table->Indexes)
Transparent tables Can be buffered. (SE11->Display Table->technical settings) Regularly or heavily
updated tables should not be buffered.
Ex: VBAK, VBAP, KNA1, MARA tables
II. Pooled Tables (match codes, look up tables)
Pooled tables Should be accessed via primary key or
Pooled tables Should be buffered (SE11->Display Table->technical settings)
Pooled tables does not have secondary indexes
Select * is Ok because all columns retrieved anyway
Ex: M_MTVMA, M_MTVMB, M_MTVMC, M_MTVMD etc.
III. Cluster Tables :
Cluster Tables Should be accessed via primary key - very fast retrieval otherwise very slow.
10

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

. Cluster tables Cannot be buffered


Cluster Tables does not have secondary indexes
Select * is Ok because all columns retrieved anyway. Performing an operation on multiple rows is
more efficient than single row operations.
. Statistical SQL functions or Aggregative Statements (SUM, AVG, MIN, MAX, etc) not supported
Ex: BSEC, BSED, BSEG etc.
30. What is the difference between Data class and Delivery class?
DATA CLASS: The data class defines the physical area of the database (for ORACLE the TABLESPACE)
in which your table is logically stored. If you choose a data class correctly, your table will automatically
be assigned to the correct area when it is created on the database.
The most important data classes are (other than the system data):
APPL0 - Master data
APPL1 - Transaction data
APPL2 - Organizational and customizing data.
There are two more data classes available, USR and USR1. These are reserved for user
developments.
DELIVERY CLASS: You can use the delivery class to control the transport of table data for an
installation, upgrade, or client copy and transports between customer systems. The delivery class is also
used in the extended table maintenance.

There are the following development classes:


A- Application table (master and transaction data).
C- Customer table, data is only maintained by the customer.
L- Table for storing temporary data.
G- Customer table, SAP can insert new data records but cannot overwrite or delete existing ones.
E- System table with its own namespace for customer entries.
S- System table, data changes have the status of program changes.
W- System table (for example table of the development environment)
31. What is the purpose of Technical settings?
You can use the technical settings of a table to define how the table is handled when it is created in
the database. You can specify whether the table is buffered and whether changes to data records of the
table are logged.
The most important parameters are:
Data class:
11

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

The data class defines the physical area of the database (table space) in which the table must be
created.
Size category:
The size category defines the size of the extents created for the table.
When the table is created in the database, the system determines the required information about the
memory area to be selected and the extent size from the technical settings.
Buffering permission:
The buffering permission defines whether the table can be buffered.
Buffering type:
If the table can be buffered, you must define a buffering type (full, generic, single-record).
The buffering type defines how many table records are loaded into the buffer when a table entry is
accessed.
Logging:
This parameter defines whether the system logs changes to the table entries. If logging is switched
on, the system records each change to a table record in a log table.
32. What is the purpose of Table maintenance generator?
The purpose of the table maintenance generator is maintain the records or entries from the
database table.
Table Maintenance Generator is a tool used to customize the tables created by end users and can
be changed as required, such as making an entry to that table, deleting an entry etc.
In other words, table maintenance generator is a user interface tool which is used to change the
entry of the table or delete an entry from the table or create an entry for the table.

33. Steps to create Table Maintenance generator?


Go to SE11 -> enter your table name -> click to change button -> go to Utilities -> select table
maintenance generator.
Provide Function group
Provide Authorization group
Provide Maintenance screen -> single step or two step
Provide maintenance screen no.
Then Create and Save.
If you want to check the TMG by the transaction SM30 or SM31.

12

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

34. What are the Mandatory Parameters pass in the TMG?


We have Must pass the Parameters in TMG are:
1. Function Group
2. Authorization group
3. Maintenance type and
4. Maintenance Screen no.

35. What is the difference between Single step maintenance and Two step maintenance?
Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one
screen where you can add, delete or edit records.
Two step: Two screens namely the overview screen and Single screen are created. The user can see
the key fields in the first screen and can further go on to edit further details.
36. How will you create a Transaction code for TMG?

Go to transaction SE93 for create Transaction code,.


Enter Transaction code Name . (ex: ZTEST_T_01) and click CREATE button.
Enter transaction text or description.
Pass SM30 for Transaction parameter and select skip initial screen check box.
Check GUI support for widows check box.
Pass the default value tab fields:
VIEWNAME

as your Table name and

UPDATE

as X.

13

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

37. I have an database table in having two fields as CREATE DATE and CREATE PERSON, for those
fields are having Gray out (Not Possible input) on selection screen..whenever create an entry then
click save the database table records automatically updated with CURRENT DATE and USER NAME?
how it possible?

Yes, it is Possible. By using Events.


Go to Utilities -> Table maintenance generator
Within TMG screen we are going to select Environment -> Modifications -> Events .

And change to Edit modeand Select an event ex: 05 (at the time of creating a new entry)
Then Enter a form name (SUB ROUTINE) ex: DEFAULT_ENTRY.
Click Editor column button ( 3rd column)and write the Logic with in the FORM - ENDFORM.

Ex: FORM default_entry.


ZTAB-C_DATE = SY-DATUM.
ZTAB-C_USER = SY-USER.
ENDFORM.

38. What is meant by buffering and how many types?


Whenever an Open SQL statement is used to read a record from the database table, If the table's
attributes indicate that the data should be buffered, the record is saved in RAM on the application
server in data buffers.
Later, if that record is read again, it is read from the buffer instead of the database.

We have 3 Types of Buffering options :


14

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

1. Single record buffered


2. Generic area buffered
3. Fully buffered.

39. Difference between Single , Generic and Fully Buffering?

Single Buffered -

fetch the one by one records from the table

Generic Buffered - basing on the WHERE condition of record


Fully Buffered

Fetch the ALL records from the table.

40. Which data tables will go for Buffer?


We can using Buffer for Master data tables, because master data tables are Rarely updated and
Regularly used.
Buffer Does not recommended for regularly updated data tables like..Transaction data tables,
because of regularly updated records, buffer (RAM) lose of updated records.
41. How do you SKIP buffering?
By using BY PASS BUFFERING statement in SELECT query. It will be go for fetch the records from
directly database tables and SKIP the BUFFER.
42. In Which SELECT Query the Buffering will be Ignored or Avoid?

By using BY PASS BUFFERING Statement .


15

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Or
If you have use any Aggregative Functions, they are not going to be considered Buffer.
Ex: MAX, MIN, AVG, SUM and COUNT.

43. Can I create database views?


Yes.
44. What are the differences between Maintenance view and Database view?
Database view:
Can be used instead of Inner Joins in ABAP program
Cannot update multiple tables at a time.
Maintenance view:
Cannot be used in ABAP Open SQL statements . Only thru Table maintenance (SM30) we can
update the Data.
Can be update multiple tables at a time.
45. Have you created lock objects and what is the purpose of lock objects?
Yes.
Lock objects are use in SAP to avoid the in consistency at the time of data is being insert/change
into database.
SAP Provide three type of Lock objects. :
- Read Lock(Shared Locked)
- Write Lock(Exclusive lock)
- Enhanced write lock (Exclusive lock without cumulating)

Technically:
Whenever we create a lock object System is going to create two function modules automatically, Lock
object name always starts with EZ.
1. ENQUEUE_<Lock object name>. to insert the object in a queue.
2. DEQUEUE_<Lock object name>. To remove the object is being queued through above FM.
16
SAP ABAP Interview Questions
E-mail: rameshkumaar.abap@gmail.com

46. What are the various types of lock modes?


S (Shared) for Read Lock
E (Exclusive) for Write Lock
X (eXclusive non-cumulative) for Enhance Write Lock
O (Optimistic)

47. What are the differences between Domain and Data element?
Domains:
Domain is the central object for describing the technical characteristics of an attribute of an
business objects. It describes the value range of the field.
Data Element:
Data element is used to describe the semantic definition of the table fields like Description the
field, Attributes, Data types and Field label.
48. Have you created search help exit and what is the purpose?
Yes.
Search help exits are used to restrict the standard search help returned values according to users
requirement.
Example: Scenario: When User1 require only Material type as Finished goods and User2 require only
Material type as Raw material, for this scenario we can use search help exit.
49. What all the search help available in SAP?
We have 2 types of search helps available in SAP:
There are :
1. Elementary search help,
2. Collective Search Help

50. What are the different types of function modules in SAP?


In SAP we have three type of Function Modules available, There are :
17

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

1. Normal Function Modules


2. Remote Enabled Function modules (RFC) and
3. Update Function Modules.

51. What are the differences between Update function module and Normal function module?

52. What are the differences between Normal function module and RFC function module?

1) Normal function module only called within the server...but RFC can be called across the server.
2) We can access data from RFC function module from non sap also...but not possible for normal
function modules.

3) We always use pass by value mode in RFC's but in Normal function module we can use pass by
value or pass by reference.

4) Fast accessing using normal function modules...slow accessing using RFC's.


53. What are the differences between synchronous and asynchronous update with examples?
In Synchronous process data is updated Record by record, while Asynchronous process whole data
of certain transaction is updated in one times means performance degrades..
54. What is meant by LUW & how many types?
- A LUW ( logical unit of work ) is the span of time during which any database updates must be
performed . Either they are all performed ( committed ) , or they are all thrown away ( rolled back ).
We have 2 types of Logical Unit of Work (LUW) in SAP.
There are:
1. Database LUW
2. SAP LUW

55. What are the differences between Database LUW & SAP LUW?
18

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

DB LUW :
When it is called it locks the rows , Update the rows & commit the rows issued by auto Commit.
SAP LUW :
Collection of Business reports is called SAPLUW and Issuing the Commit like UPDATE,INSERT,MODIFY
statements are valid Commit work is given by Developer Side.

56. What is the purpose of Commit Work and Rollback Work?


The statement COMMIT WORK completes the current LUW and opens a new one. Storing all change
requests for the current LUW in the Process.
The statement ROLLBACK WORK closes the current LUW and opens a new one. In doing so, all
change requests of the current LUW are canceled.
57. What is the bundling technique?
Bundling is an ABAP programming technique which collects database changes and performs these
together at the end of a transaction.
58. What are the differences between external sub routines and Includes?
Include is a type of program.
Subroutine is a part of program
External subroutine is perform statement is one program and form routine is in another
program.
include is not executable program.
both are using reusability..
includes are mainly using for data declaration and subroutines are using for passing values to
form routine.
you can change the value by using subroutine but you can not change the value in include
program.
59. What are the differences between Macros and Subroutines?
19

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Macros can only be used in the program the are defined in and only after the definition.
Macros can take max 9 parameters.
Macros are expanded at compilation / generation.

Subroutines (FORM) can be called from both the program there defined in and other programs .
Subroutines can take any amount of parameters.
Subroutines are 'expanded' at runtime.

60. What are the differences between Data type and reference variable?
You create the data type of a data reference variable using:
TYPES: t_dref TYPE REF TO DATA.
You can create a data reference variable either by referring to the above data type or using:
DATA : dref TYPE REF TO DATA.
Reference variables are handled in ABAP like other data objects with an elementary data type. This
means that a reference variable can be defined as a component of a complex data object such as a
structure or internal table as well as a single field.
61. What is the difference between Key and Index?

key is nothing but primary key. it is unique .


Index is nothing but row number of a table .

based on index we can retrieve the data fastly.


if you mentioned the key field in read statement it will fetch the exact record.

Unique is nothing but it wont allow duplicate entries inside the table.
Non-unique allows duplicate entries.

62. In what way Index is going to improve performance, Is it recommended?


Yes.
Index is nothing but row number of a table and it is used to search the data fastly.
20

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

63. Can I use modify statement inside the loop?

Use modify table inside loop is not good, to avoid it use field symbol for modify table.

64. Without using modify statement how can we modify the table?

ALTER TABLE : IT_TAB form ST_TAB. Or use <FS> Field Symbols.

65. How do I know the number of records in a table?


DESCRIBE TABLE it_tab LINES GV_LINES
or
SY-DBCNT
66. What are the differences between SY-TABIX and SY-INDEX?
SY-TABIX Is a internal table records counter and SY-INDEX is a Loop counter.

67. After Read statement what will be the SY-SUBRC value?


If the Table row is Found means, SY-SUBRC = 0.
it returns the value 2. If the system cannot find an entry, SY-SUBRC is set to 4.

68. What is watch point?


Watch points allow you the option of monitoring the content of individual variables.
The Debugger stops as soon as the value of the monitored variable changes.
In addition, conditions can be specified. The Debugger also checks whether such a condition is fulfilled.
In the Watch points area, you will see a list of all the watch points set so far. For each watch point you
will see not only the current value but the value before the last changed.

69. What are the differences between watch points and breakpoints?
21

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

A breakpoint is a signal at a particular point in the program that tells the ABAP runtime processor to
interrupt processing and start the Debugger. The Debugger is activated when the program reaches this
point. Max 30 breakpoints we can use.
There is a special kind of breakpoint called a watchpoint. When you use watchpoints, the Debugger
is not activated until the contents of a particular field change ie...Watchpoints allow you the option of
monitoring the content of individual variables.The Debugger stops as soon as the value of the monitored
variable changes.You can use max of 5 watchpoints.
Break Point means when you want to stop the control to the desired statement. then you go for
the break point .
Example: IF you have 10 lines of code and if you put a break point at line number 80. then if the control
comes to the line number 80. then the debugger will stop automatically othewise it will flow further.
Watch point: when you want to see if any variable value is chagned to some other value and in that
case you should go for the watch point..
Example: if you variable "FLAG" is value '0' initaily.. now if you want to see the when this flag gets
changed to value '1'. Then in that case you should go for the watch point...
70. What is system debugging?
System Debugging
If you set this option, the Debugger is also activated for system programs (programs with status S in
their program attributes). When you save breakpoints, the System Debugging setting is also saved.
Normal Debugging
Normal debugging is the one we do it by the normal dynamic break points or by /H or by using static
break points.
71. What are the debugger controls?

We have four types of Execution Control Buttons in every debugger tool. There are:

Single Step: (F5) Executes the report line by line. This is useful if the user wants to see the
program execute one line at a time.
Execute: (F6) Processes all of the steps associated with one line of code. For example, one
line of code may be a call to a subroutine. Execute will process that line without showing all
of the activities inside the subroutine.
Return: (F7) Returns the user to where the calling program resumes control after a called
routine.
Continue: (F8) Processes all statements until a breakpoint or the end of the program is
reached. If no breakpoints exist, the system will execute the report in its entirety without
stopping.
72. What are the control level processing events or AT EVENTS?
22
SAP ABAP Interview Questions
E-mail: rameshkumaar.abap@gmail.com

Control level processing events are also called as AT EVENTS. These events are using within the
Loop statement of an internal table. These control level processing events are categorized by four
types, there are:
a. AT FIRST
b. AT NEW
c. AT END OF
d. AT LAST

73. What are the types of Reports we have in SAP?

In SAP, we have 3 types of Reports categorized, there are:


1. Classical reports,
2. Interactive reports and
3. ALV reports.

74. What are the Events we have in classical Reports?


23

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Classical reports events:


1. INITIALIZATION,
2. AT SELECTION-SCREEN,
a. AT SELECTION-SCREEN ON field.
b. AT SELECTION-SCREEN ON BLOCK,
c. AT SELECTION-SCREEN ON RADIO-BUTTON,
d. AT SELECTION-SCREEN ON VALUE REQUEST FOR P_TEST,
e. AT SELECTION-SCREEN ON HELP REQUEST FOR P_TEST,
3. START-OF-SELECTION,
4. END-OF-SELECTION,
5. TOP-OF-PAGE,
6. END-OF-PAGE.

75. What are the events we have in Interactive reports?

Events of Interactive reports:


1. AT LINE-SELECTION,
2. AT USER COMMAND,
3. TOP-OF-PAGE DURING LINE SELECTION,
4.

AT PFn.

76. Types of ALV reports in SAP?

Three types of ALV reports we have in SAP, there are:


1. Simple ALV report - normal ALV list
24

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

2. Blocked ALV report - this is used to display multiple lists continuously


2. ALV Hierarchical Sequential Report - display in hierarchical

77. What are the Function Modules we have in ALV Reports?


REUSE_ALV_LIST_DISPLAY
REUSE_ALV_GRID_DISPLAY

: Output a simple list (single line or several lines).


: Output of a simple list (single-line).

REUSE_ALV_COMMENTARY_WRITE
: List body comment block output.
REUSE_ALV_EVENTS_GET
: Returns table of possible events for a list type.
REUSE_ALV_EVENT_NAMES_GET
: Returns table of constant names of possible events for a list
type.
REUSE_ALV_FIELDCATALOG_MERGE : Create field catalog from dictionary structure or internal
table.
REUSE_ALV_HIERSEQ_LIST_DISPLAY
: Hierarchical sequential list output.
REUSE_ALV_POPUP_TO_SELECT
: List in dialog box to choose one or more entries (or display
only).
REUSE_ALV_VARIANT_EXISTENCE
: Checks whether a display variant exists.
REUSE_ALV_LIST_LAYOUT_INFO_GET : Read current ALV list information.
REUSE_ALV_LIST_LAYOUT_INFO_SET : Set current ALV list information.
REUSE_ALV_VARIANT_ALL_MAINTAIN : Maintain all display variants for one object.
REUSE_ALV_VARIANT_DEFAULT_GET : Read default layout (description only, w/o field catalog).
REUSE_ALV_VARIANT_F4
: Display variant selection dialog box.
REUSE_ALV_VARIANT_MAINTAIN
: Definition of a layout outside the list context.
REUSE_ALV_VARIANT_SAVE
: Save ALV Variant.
REUSE_ALV_VARIANT_SELECT
: Select a layout variant.
REUSE_ALV_GRID_LAYOUT_INFO_GET : Read current ALV grid information.
REUSE_ALV_GRID_LAYOUT_INFO_SET : Set current ALV list information.

25

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

78. What are the differences between Parameters and Select-options?


Another difference is that parameter acts as a variable whereas select option acts as an internal
table with a predefined structure.
Parameters takes single value and we use EQ ( = ) in where condition for that field.
When you declare select-options a selection tables like Internal table with 4 fields like SIGN, OPTION,
LOW and HIGH gets created to store the multiple values that are entered in the select -options. and we
use IN in where condition for that s select-options field
79. What are the differences between Ranges and Select-options?
Select-options are the normal select options that you define on Selection screen.
While Ranges are similar to Select options in the way it creates a internal table of the same form as that
of Select-options. The internal table that is created has the fields
HIGH
LOW
SIGN
OPTION.
But the difference between Select-options and ranges are that we don't need to define the ranges
in Selection screen. It is created by explicitly coding in the Program.
80. What is the difference between AT NEW and ON CHANGE OF?

AT NEW can only be used inside loop. On change of can used outside the loop.

81. What are the prerequisites of AT NEW event?


Before using control break statement (AT NEW ) you need to sort the internal table field on which
you are using Control breaks.
82. How do you debug a background job?
Go to the transaction SM37 and select the background job (with job status Active) that you want to
debug.
Now select Capture: active job from menu Job
This will open the selected active job (program) in the debugger.

26

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

OR
Also you can do the same from transaction SM50.
Select the work process where this job is running and then choose the menu path
Program/ModeProgramDebugging.

83. What are the steps to create a background job?


Go to transaction SM36 for Define Background Job
Step-1 > Give the ABAP program name for Job name field.
Step-2 > click on Step Radio-buttonclick on ABAP program buttonand give your program name and
variant name. (if you have any parameters or select-options of your program)
Step -3 > Then click start condition button --> click you starting condition mode buttons ex: Date / Time.
Step-4 > Give the start date & time.
Step-5 > if you give any periodic value click on the Periodic Job checkbox
click on the Period Values pushbutton & select hourly or 'Monthly'
and Save.
If you want to check the Background job status go to transaction SM37. Give your job name and
Execute. Or t code JDBG.
84. What is the purpose of variants?
Sometimes you may have a requirement to schedule a back ground jobs, based on the current
month in the selection screen. Variants are client dependent and the variant values are stored in a
cluster table names as VARI.
85. Variants are client dependant or independent?
Variants are client dependent and the variant values are stored in a cluster table names as VARI.
86. In my program Im writing logic, certain logic should be executed in background job & certain logic
should be executed in foreground. How do we differentiate that logic?

We can use Function modules


JOB_OPEN
JOB_SUBMT
JOB_CLOSE

for execute certain logic in background.


27

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

87. What is SAP memory?


The SAP Memory is a memory area to which all sessions of a SAP logon have common access. In
ABAP programs, the SET PARAMETER and GET PARAMETER commands can be used to access the socalled SPA/GPA parameters stored in the SAP Memory
SET and GET PARAMETERS are used for SEND data to SAP memory and RETRIVE the data from SAP
memory.
Ex for SET PARAMETER syntax:
SET PARAMTER ID aun FIELD S_VBELN-LOW.
Ex for GET PARAMETER Syntax:
GET PARAMETER ID aun FIELD S_VBELN-LOW.
88. What is ABAP memory?
The memory area of each main session has an area called ABAP Memory, which the programs in the
internal session can access with EXPORT TO MEMORY and IMPORT FROM MEMORY
EXPORT and IMPORT parameters are used for EXPORTING data into ABAP memory and
IMPORTING data from ABAP memory.
Ex for EXPORTING PARMETER syntax:
EXPORT P1 TO MEMORY ID test. [test memory name].
Ex for IMPORTING PARAMETERS syntax:
IMPORT P1 FROM MEMORY ID test FREE MEMEORY ID test.

89. Where we can create Function Module?


Go to Transaction SE37 for Create user defined Function modules whenever you create Function
modules are must saved into a Function group and its always in active state. Function Groups are
created by SE37 as well as SE80.
90. Within a function group how many Function Modules can be created?
28

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

You can add 99 function modules to a function group.

91. Within function modules can I use statements like Call screen, Call Transaction etc?
No .

92. What are the differences between Perform and Perform on commit?
The statement of PERFORM subroutine is triggered by condition or directly in your program.
The statement of PERFORM ON COMMIT is registers the subroutine directly specified using subr in
the same program. The subroutine is not executed immediately, but a flag is set for execution when one
of the statements COMMIT WORK or ROLLBACK WORK.
93. How to upload Excel file data into an internal table?
Using a function module ALSM_EXCEL_TO_INTERNAL_TABLE for upload EXCEL file data into an
Internal table.
If we want to Download Internal table data into Excel file we can use Function module is
GUI_DOWNLOAD.

SAP SCRIPTS
94. Why scripts are client dependent?
29

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Scripts are developed in SAP will be maintained in a table STXH, which has MANDT field. So, we
can say scripts are client dependent.
95. How do you copy a Form from one client to another client?
We can Copy the Form (SAP Script) using Transaction code SE71
Utilities -> Copy from Client (or Using standard program RSTXFCPY)
Enter the
Source Form name,
Source Client and
Target Form name.
And we have another approach to copy a FORM from one client to another client by using
Transaction code SCC1.
But to Copy the form from one server to another we can use the standard program is RSTXSCRP.
90. What is the Transaction for create Standard Text?
We are going to create Standard Text for SAP scripts by using Transaction code is SO10.
96. What are the components of SAP scripts?
Whenever we create a SAP script, we are going to create three components, there are:
1. Form by using SE71 transaction,
2. Standard text by using SO10 transaction and
3. A Driver program by using SE38 transaction.

97. What are the sub-objects of SAP script Form?


We have 7 types of Sub objects in every SAP script Form, there are:
1. Header
2. Pages
3. Windows
4. Page windows
5. Paragraph formats
30

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

6. Character formats
7. Documentation.

98. How am going to assign Standard Text to a Request or Task?


We are going to use a standard program RSTXTRAN for assign Standard text to Request or Task.
99. Scripts are Language dependent or Independent?
SAP scripts are Language dependent, because of a script form is available in multiple languages.
100.

How do you find request number for a form in SAP scripts?

Go to transaction SE03 and click search for objects under request, then Enter FORM and your Form
name and execute it. Then we can find given Form request number.
101.

How to Debug a SAP script form?

We can approach two ways for debug a Form:


1. In SE71 Enter your Form name and

go to Utilities-->activate debugger .. then Execute the print


program .. it will be go to debugging mode..
2.We have an another approach to debug a Form by using Standard Program RSTXDBUGand Execute
this Program for activate Debuggerthen Run the print program, it will go for debugging mode.
102.

How you are going to upload a Logo in SAP scripts?

We are going to use a standard program RSTXLDMC for upload .TIFF format files into SAP scripts.
If you can use standard program write this command for include .TIFF file logo into your page window :
/: INCLUDE 'ZHEX-MACRO-C_LOGO' OBJECT TEXT ID ST LANGUAGE 'E'.
If you want to upload .BMP (BITMAP) format logo files into SAP we are going to use the transaction
code SE78 (Logo repository).
If you can use Logo Repository , write this command for call BITMAP logo into your page window
/: BITMAP 'C_LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 150.
103.

How can I know the form is available in multiple languages?

31

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Generally we are going to know the Form available languages by using SE71 transaction and Given
your Form name and click Display Go to Utilities menu and select Versions , here we know the Form
activate Languages.

104.

What are the types of windows available in SAP scripts?

We have 4 types of Windows available in SAP scripts, there are :


1. Main Window, :
Each form must have one window of type MAIN. Such a window is called the main window of the
form. The text in the main window can extend over several pages. If the text fills one page, output
continues in the window of the next and subsequent pages, Dont lose any data.
Every page we have use max 99 MAIN window. (00-98). It controls the page break.
2. Variable Window,:
Variable window having fixed size and its display some fixed size of data only. Its not support for
Page break.
3. Constant Window :
Constant window always display at the runtime values only.
4. Graphic Window:
We are going to use Graphic window for upload a Logo into SAP script form.

105.

What is the purpose of ADDRESS ENDADDRESS?

We are going to use command ADDRESS ENDADDRESS to populate the Address for country specific
format .
106.

What is the purpose of PROTECT ENDPROTECT ?

The purpose of command PROTECT ENDPROTECT is used to prevent the Page-Break. I have two
pages , If I want to display the data in one page.. dont want to split the data into two pages..in this
scenario I will going to use PROTECT - ENDPROTECT.
32

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

107.

I have two pages , I would like to print two pages data into one page only? What I am do?

We are going to use command PROTECT ENDPROTECT for prevent Page-Breaks.


108.
Without modifying driver program I have add some fields in a Form and how to populate values
into that fields ?
We are going to add some fields by using DEFINE command..for populate the values we are going to
write the logic within the PERFORM ENDPERFORM.

109.

I want to provide a page break forcibly? What I am do?

We can use control command NEW-PAGE for provide Page-Break Manually and the next content will
be go for print in Next page.
110.

I want to Draw a Box on Form? What is the syntax?

If we want to Draw a Box on Form, we are going to use the syntax is:
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

111.

What is the purpose of Text elements in SAP scripts?

In simple words, Text Elements are the only way to transfer the data from report program to FORM
using WRITE _FORM Function Module.
112.

What is the purpose of Control commands in SAP scripts?

In SAP scripts the Control commands are helps to Format the final output of your Form. These
Control commands are passed to the SAP script composer to process a Form. Ex: NEW-PAGE, NEWWINDOW, ADDRESS- ENDADDRESS etc.
113.

In SAP scripts how can I provide space between Word to Word?

We are going to use TABS option in paragraph formats.


114.

How do you handle Barcode in SAP scripts?

If we want create a custom Barcode will go to transaction SE73. If we want to use this Barcode on
your form..we are going to create an character format type click Barcode check box and use custom
created Barcode name here.
115.
In SAP scripts I want one page in Landscape format and another one is Portrait format? How can
I achieve?
33

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

To implement this requirement I have used the print control commands


"SPORT" -- To print in portrait format
"SLAND" -- To print in landscape format.

Syntax for page1


/: PRINT-CONTROL SPORT

Syntax for page2


/: PRINT-CONTROL SLAND

116.
In SAP scripts the Box height is automatically adjusted based on the number of records on a
Internal table? How is it possible?
In this scenario first we can describe internal table records and collect into a Variable.
Syntax : DESCRIBE TABLE IT_TAB LINES INTO GV_LINES.
And we can use this variable for Box height value then automatically adjust the table height basing on
internal table records.
Syntax: /: BOX XPOS 2 CM YPOS 2 CM WIDTH 20 CH HEIGHT &GV_LINES& LN .
117.

Is it Possible to Debug a particular window only or not?

Yes, its possible by using transaction SE71 and go to Utilities -> Activate debugger
Then go to your driver program (SE38) and execute it, we can debug by pages or windows by using /H.
118.
I have a requirement how to print Header data under the item data and as well as item data
under the Header data? Is it possible, how can do this?
Yes, we can achieve this. Within the driver program we can write the logic as First Loop the Header
data table and within the Loop we can write another Loop of Item data table basing on header field
value and collect the data into a final table now we can use this final table for WRITE_FORM function
module.
119.

What are the types of Function modules we have in SAP scripts?


34

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

OPEN_FORM

Opens the form output.

START_FORM

Starts a new form.

WRITE_FORM

Calls a form element.

WRITE_FORM_LINES

Writes text lines into a form.

END_FORM

Ends the current form.

CLOSE_FORM

Ends the form output.

120.

What is the difference between OPEN_FORM & START_FORM?

OPEN_FORM : it opens the form for printing ( called only once) and should be closed with end_form.
START_FORM : is used when u have multiple pages (forms) to be printed in one output.( can be
called many times)

121.

How can I convert script to a PDF form?

If we want to convert sap script to a PDF form, we are going to write the logic within your driver
program we have use COLSE_FORM function module.
Within this COLSE_FORM function module we have TABLES parameter and collect the data into an
Internal table (OTF data).
Then we can Convert OTF to PDF using SX_OBJECT_CONVERT_OTF_PDF function module.
If we want to download a PDF file by using GUI_DOWNLOAD function module.
If you want to Send the object using SO_DOCUMENT_SEND_API1 function module.
122.

Basing on the form name how to I find Driver program?

35

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Go to SE71 enter your form name click Displaythen Go to Form -> check - > Texts . you can
appears a print program name.
We have an another approach to find driver program of your form. Go to table TTXFP contents,
enter your form name and Execute it.
123.

What are the Standard SAP script forms in SAP?

a. RVORDER01

- Sales order confirmation

b. RVINVOICE01

- Invoice

c. MEDRUCK

- Purchase order.

36

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

SMARTFORMS

124.

What is the difference between SAP scripts and Smart forms?

1. Scripts are client dependent one while Smart form are client independent.
2. In scripts must have to write a print program while in Smart forms it is not necessary.
3. In scripts we cant print background logo, while in Smart forms we can print background logo.
4. In scripts we have 99 main windows per page , while in Smart forms we have only 1 main window.
(we have also create without main window)
5. scripts does not have any database connectivity, while Smart forms have direct database
connectivity.
6. In scripts does not support color font, while Smart forms support color print .
7. Scripts are not net enable, while smart forms are net-enabled.
8. in scripts we can use Standard text , in smart forms we can use standard test as we as Text
modules.
9. Scripts support Labels and smart form does not support Labels.

125.

How can I transport a Smart form from one language to another language?

We are going to use transaction SE63, go to Translation -> ABAP objects -> Other Long text
Here expand Forms and Styles, then Double click on SSF for smart forms.
Enter your Smart form name and enter your Source and target language.
126.

What is the difference between Standard text and Text modules?


a. Standard text are client dependent , while Text modules are client independent.
b. Standard text are Language dependent , while Text modules are language independent.
c. Standard text are not transportable, while text modules are transportable.
d. Standard text are stored in STXH, STXL tables, while text modules are stored in SSFSCREEN
table.

127.

How can I find request number for a SMARTFORM?

Go to transaction SE03 and click search for objects under request, then Enter SSFO and your
SMARTFORM name and execute it. Then we can find given Form request number.
128.

What are the various types of windows available in SMARTFORMS?


37

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

We have 4 types of windows available In SMARTFORMS, there are:


1. Main window,
2. Secondary window,
3. Copy window,
4. Final window.

129.

What is the purpose of Copy window?

The copy window helps to differentiate some particular printouts. Id like to print three copies of a
particular document and the first copy should mention as Customer copy, second one as Bank copy and
the third one as College copy in this scenario we will go for use Copy window.

130.

What is the purpose of Address Node in SMARTFORMS?

You use the address node to insert an address into the form. This guarantees that the address is
formatted according to the postal regulations of the sender country.
Or
We are going to use ADDRESS NODE in SMARTFORMS to populate the Address for country specific
format .
131.

In SMARTFORMS I have a requirement Page 1 directly go to Page3? How can I do?

In SMARTFORMS every page attributes we have an NEXT PAGE option..within a page1 attributes we
pass the Next page as Page3.
132.

What is the difference between Table and Template in SMARTFORMS?

The template is used to hold static data because the number of rows and columns are fixed.
The tables is used to hold dynamic data and increase the number of rows and columns basing on the
run time data.
133.

I have a Template , it is putting in Loop, whats happens here?

If we can put a template within a Loopthe last one record may be displaying by data is over
writes because of template having Fixed rows and columns and it holds static data only.
134.

What is the difference between Table and Loop in SMARTFORMS?

The basic difference between Table and Loop is : within a table I cant call another table and within
a Loop I can call another Loop.
135.

What is the purpose of Line type in SAMATFORMS?


38

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

If You want to define line types for your template or table to specify the number and size of the cells
of a line in SMARFORM.

136.

What is the purpose of Alternative Node in SAMRFORMS?

Alternative Node is like TRUE or FALSE.


If you want to print something when the condition is TRUE then you can write it under TRUE node.
or if you want to print something when the condition is FALSE then you can write it under FALSE
node.
137.

In SAMRTFORMS how can I achieve PROTECT ENDPROTECT?

The command PROTECT-NDPROTECT does not supports in SMARTFORMS. We can achieve the
prevent Page-break in SMARTFORMS by using The Folder option.
138.

What is the purpose of Folder Node in SMARTFORMS?

With the help of FOLDER NODE for achieve the PROTECT-ENDPROTECT printing the records in same
page without any Page-break.

139.

How can I debug a SMARTFORM?

Execute (F8) your SMARTFORM - >Display FM -> FM attribute -> Double click on Program name ->
Double click on user defined include program ->Put the break-point where we can debug.

140.

What is the Purpose of SMARTFORM trace?

If you want to debug SMARTFORM in non-modifiable client, then you can try to using Transaction
SFTRACE. We can analyze our Smart Forms using trace to watch how its works and any termination
caused by errors.
141.

What is the Transaction code for SAMRTFORM trace?

We are going to use transaction SFTRACE for trace a SMARTFORM working levels.
Switch on the TRACE and run the SMARTFORM and Switch off Trace and analyze.
142.

How do we handle SAMRTFORM from a Driver program?

First we call the system generated SMARTFORM function module into your Driver program.
39

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Then we can change and collect a Function module name into a variable by using
SSF_FUNCTION_MODULE_NAME function module.
Then we can use variable name instead of system generated function module.
Then pass the required importing parameters and execute your form directly from your driver
program.

143.

How to capture Long text in my form?

If we want to capture long text into your form, we are going to use READ_TEXT function module.
Here we can pass ID, LANGUAGE, NAME and OBJECT parameters and collect the captured data into
a table.
144.

Have you created any Form?

Yes, I have created a couple of forms like INVOICE FORMS, SALES ORDER FORMS, DELIVERY FORMS
CREDIT FORMS etc.
145.

Have you done changes to a standard form?

Yes , I have done to changes some standard forms are Purchase order (MEDRUCK), Sales order
confirmation (RVORDER01), Invoice (RVINVOICE01) and Delivery note etc.
146.

What kind of Invoice form you work?

I have worked on various Invoice forms like Performa Invoice, Standard Invoice, Consignment
Invoice and Third party Invoice.
147.

SAP provides some standard forms, why are u created custom forms?

As per client requirement , Id like to add some more Fields , Descriptions and Company Terms
and conditions as well as company Logo etc. SAP standard forms does not support for client
requirement because of I have created some custom Forms.

148.

How do you find Driver program for a SMARTFORM?

If we know the SMARTFORM name we can directly go to TNAPR table contents and enter your
SAMRTFORM name in the SFORM filed and execute itwe can find the Driver program for given
SMARTFORM.

149.

If I provide Document number, how can I find the Form name and Driver program?

In this situation first we know the output type of the Given document number.. with the help of
NAST table contents Enter your Document Number with in the Object key (OBJKY) filed and execute it
and we can see an output type (Message type ) for the given Document number.
40

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

If you want to see the program associated to the particular output type, then go to
transaction NACE --> Select the Application area (V1 - Sales) --> Click on Output type --> Select your
output type and click on Processing routine --> Here you may find the Program and Forms used in the
output type.

150.

What are the steps to configure output types? Have you configure any output type?

Yes.. I have done by using transaction NACE


Or
No
151.

Have you converted SAP scripts to SMARTFORMS?

Yes I have converted some standard script forms into SMARTFORMS as well as I have created some
custom SMARTFORMS for client requirement.
Steps : Go to SMARTFORMS transaction enter your Zform name Utilities Migration
Import SAP script forms Give your SAP script name and Language ok .
152.

I know driver program and FORM name, How can I find output type?

Go to TNAPR table contents by using transaction SE11 and Enter your Print program name or
SMARTFORM name and Execute ithere we find the Output type (Message type) for Given print
program or SMARTFORMS.

41

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

DIALOG PROGRAMMING ( Module Pool Programming)

153.

Can I run dialog program in Background?

Module pool programs does not executed in Background mode, Because Module pool programs
must have a Transaction code for execute in foreground also, does not execute without transaction
code..these transaction codes cannot provide in background mode...this is the one reason.
another one is Module pool programs having 'n' number of screens as we as buttons...every screen
must having manual interaction (click the push buttons or enter field values etc).. manual interaction
not possible in Background mode....so we can't run the module pools in Background mode...
154.

How can I debug a pop-up window?

In this scenario I am going to create a new .TXT file in my presentation system with maintain
following Fields:
[FUNCTION]
COMMAND = /H
TITLE = DEBUGGER
TYPE = SYSTEMCOMMAND
Whenever we want to debug a Pop-up window, drag this .txt file on to pop-up window then click ok
it will be going to debug mode automatically.
155.

What is the purpose of CHAIN ENDCHAIN?

If you want to Validate a group of fields on a Screen, in this situation we put those fields in
between Chain and Endchain statement. In Screen Programming scenario we will use Chain Endchain
statement.
156.

In DP or MP programming how you going to validate your screen fields?

In Dialog programming or Module pool programming we can achieve the Screen Fields validations
by using CHAIN ENDCHAIN statement. We will put the screen fields in between CHAIN ENDCHAIN
statement.
157.

What is the purpose of OK_CODE?


42

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

OK_CODE is a variable which is used to collect the screen attributes related Function codes.
Whenever click on Push buttons or some Action, the Action related function code will be captured into
OK_CODE variable. OK_CODE is type of system variable SY-UCOMM. Every button related action will be
written basing on this OK_CODE value (Function code).

158.

What is the purpose of MODULE AT EXIT-COMMAND?

Automatic field checks can be avoided by AT EXIT-COMMAND, Which works exactly the same way as
cancel works on application tools bar.
***Process After Input.
Module exit AT EXIT-COMMAND.
***In module pool program.
Module exit.
Case OK_CODE.
When 'Exit'.
leave to screen 0.
159.

What are the events in DP or Module pool programming?

In Module Pool programming we have Four types of events available, there are:
1. Process Before Output (PBO)
2. Process After Input (PAI)
3. Process on Help Request (POH)
4. Process on Value Request (POV)
160.

What are the default events in MP programming?

We have two default events available in Module pool programming , there are:
a. Process Before Output (PBO) and
b. Process After Input (PAI)

a. Process Before Output(PBO):


Processing before the screen is displayed (PBO).
Examples
Initializing screen fields, inserting default values, positioning the cursor, showing and hiding fields and
changing field attributes dynamically.
43

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

b. Process After Input(PAI):


Processing after user input.
Examples
Checking values where there is no automatic check, processing the cursor position, processing correct
entries or triggering an error dialog.

161.

Can I call POV and POH events before calling PAI event?

PROCESS ON HELP-REQUEST and PROCESS ON VALUE-REQUEST are triggered when the user requests
field help F1( documentation help ) or Process values help F4 ( which gives a prompt with a list of
values )
Both POV and POH events are sub-events of PAI event, so not possible to use without PAI event
162.

I have created custom field in the screen, for that field how can I provide value help or F4 help?

If we provide F4 help (Value Help) for a field in module pool program, the logic will be going to
write under the Process On Value- request (POV) event.
Ex: I have a Field ROLL_NO on screen.
Provide F4 help for this field, the Logic written in POV event.
PROCESS ON VALUE REQUEST.
FIELD roll_no MODULE f4_ help.
Within this module endmodule we can use F4_help function module.

163.

What is the difference between CALL SCREEN and LEAVE SCREEN?

CALL SCREEN : Calling a single screen is a special case of embedding a screen sequence. If you want to
prevent the called screen from covering the current screen completely, you can use the CALL SCREEN
statement with the STARTING AT and ENDING AT
CALL SCREEN 1000. (or)
CALL SCREEN 1000 STARTING AT 10 10 ENDING AT 20 20.
LEAVE SCREEN : statement ends the current screen and calls the subsequent screen.
LEAVE SCREEN.
LEAVE TO SCREEN 2000.

164.

What is the difference between CALL SCREEN and SET SCREEN?

44

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Where we have write the CALL SCREEN statement , leaving the remaining code in current screen and
will be process the called screen immediately. After finish the called screen process and come back to
first screen and triggering remaining code.
if we can use SET SCREEN processes the remaining statements of the current screen and then goes to
the called screen.

165.

What is the difference between LEAVE SCREEN and SET SCREEN?

if we can use SET SCREEN processes the remaining statements of the current screen and then goes
to the called screen.
SET SCREEN 200. (in 100 screen)
If we can use LEAVE SCREEN statement, Leaves the current screen and processes the next screen.
LEAVE SCREEN. (for leaves the current screen PAI and triggers sequence screen)
LEAVE TO SCREEN 200. (Leaves 100 screen PAI and triggers 200 screen)

166.

What is the difference between CALL SCREEN and LEAVE SCREEN and SET SCREEN?

CALL SCREEN : Calling a single screen is a special case of embedding a screen sequence.
CALL SCREEN 1000. (or)
CALL SCREEN 1000 STARTING AT 10 10 ENDING AT 20 20.
LEAVE SCREEN : statement ends the current screen and calls the subsequent screen.
LEAVE SCREEN.
LEAVE TO SCREEN 2000.
SET SCREEN : statement processes the remaining statements of the current screen and then goes to the
called screen.
SET SCREEN 200. (in 100 screen)
167.

What is the purpose of SET SCREEN?

With SET SCREEN the current screen simply specifies the next screen in the chain , control branches
to this next screen as soon as the current screen has been processed .Return from next screen to
current screen is not automatic .It does not interrupt processing of the current screen. If we want to
branch to the next screen without finishing the current one ,use LEAVE SCREEN.
168.

What is the difference between Normal screen and Sub-screen?


45

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

1. Normal Screen having OK_CODE , while Sub screens does not have OK_CODE.
2. Normal Screen having GUI status , while Sub screens does not have GUI status.
3. From Normal Screen calls another Screen, while from Sub screens does not call another Screen
or Sub screen.
4. Normal Screens having MODULE EXIT-COMMAND , while Sub screens does not have MODULE
EXIT-COMMAND.

The main difference between Normal screen and Sub screens:


Normal screen are Directly called by using CALL SCREEN statement and Sub-screens does not call
Directly. If we want to call sub-screens into a screen must declare a SUB-SCREEN AREA.
169.

Can I create Select-options on the screen in Dialog Programming?

Yes..its possible.
If you want to create Select-options Directly not possible in Module pool program.
a. Here first we need to Create a SUB SCREEN and Define SELECT-OPTIONS with in Top
include of your Module pool program.
b. Then we need to have a Screen and Define a SUB SCREEN AREA for calling User defined SUB
SCREEN.
c. Then we need to call this SUB SCREEN with in the SUB SCREEN area by define a logic at PAI
and PBO events of a SCREEN.
CALL SUB SCREEN <sub screen area name> INCLUDING SY-REPID sub screen no.

170.

How do you handle Radio-Buttons in DP?

When you add radio buttons to a screen, the Screen Painter automatically creates a onecharacter screen field for the button. You should declare a corresponding one-character variable for the
radio buttons in your ABAP module top-include.
Ex:
DATA: RADIO1, RADIO2, RADIO3.

We are going to define Radio-buttons with the help of Screen painter layout (SE51)..and
whenever you defined Radio-buttons must assign to a Radio Button group.
Select all Radio-buttons and Go to Edit->Grouping->Radio button Group->Define.
And Assign the Function code for All Radio-buttons as same. We are going to write the Logic of
your Radio-buttons in PAI event of your screen by using Function codes.

46

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

171.

How can I handle Check boxes in DP?

When you add Check boxes to a screen, the Screen Painter automatically creates a one-character
screen field for the Check box. You should declare a corresponding one-character variable for the Check
boxes in your ABAP module top-include.
Ex:
DATA: CB1 TYPE C,
CB2 TYPE C,
CB3 TYPE C.

We are going to define Check boxes with the help of Screen painter layout (SE51).. We are going
to write the Logic of your Check boxes in PAI event of your screen Basing on Check box Function code.

172.

How do I handle TAB-STRIPS in DP? What are the steps to create a TAB_STRIPS in DP?

A TAB STRIP control is a screen object consisting of two or more pages. The TAB STRIP control is the
set of all the tab pages. When you create a TAB STRIP control, you must:

A. Define the Tab area on a screen and the Tab titles.


B. Assign a Subscreen area to each tab title.
C. Program the screen flow logic.
D. Program the ABAP processing logic.
E. You must then decide whether you want to page through the tabstrip control at the SAPgui or
on the application server. In the first case, each tab page has its own subscreen. In the second,
there is a single subscreen area that is shared by all tab pages.
Syntax: CONTROLS mytab TYPE TABSTRIP.

173.

What is the syntax for calling SUB-SCREEN in DP?

The syntax for calling Sub screens in Module pool program we are going to use :
In PBO of main screen
47

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

CALL SUB SCREEN <sub screen area name> INCLUDING SY-REPID sub screen no.
CALL SUB SCREEN sub1 INCLUDING SY-REPID 0100.
In PBO of main screen
CALL SUB SCREEN <sub screen area name>.
CALL SUB SCREEN: sub1.

174.

What are the controls we have available in DP?

We have three types of controls available in Module pool programming , there are :
1. Table Control,
2. TAB STRIP Control and
3. Custom control.

175.

What are the steps to create a Table control in DP?

1. Define a Table control on a screen area and must define the Table fields.
2. Whenever you define a table control on your screen you must going to Declare table control
name and declare a structure and internal table along with using table control fields with in the
top include.
3. Write the table control logic at Screen PBO and PAI events of your screen.
4. And Loop the internal table with control <mytab> Table control name at PBO event of your
screen.
176.

What is the syntax for create a Table control?

The syntax for create a table control is:


CONTROLS: <table control name> TYPE TABLEVIEW USING SCREEN <screen no>.
CONTROLS: MYTAB TYPE TABLEVIEW USING SCREEN '2000'.

177.

In my screen I have some fields and two push buttons, if I click on one button the fields are grayout (disable) and click on another button that fields are enable? How can I achieve?
In this scenario I am going to write the logic at PBO event of Screen. Here I was handle the screen
attributes basing on the Single character FLAG variable, its define in top-include.
At PBO event we are going to Loop the SCREEN and assign the SCREEN-INPUT values basing on the
FLAG value X.
AT PAI event of your Screen, whenever you click a GRAYOUT button , the FLAG value assign as X.
At PBO event we are going to write the logic basing on this FLAG = X.
48

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

If click OPEN button , the FLAG value assign as (SPACE), we are going to write the OPEN button
logic at PBO event basing on FLAG value is INITIAL.
(Or)

In this scenario we are going to write the logic at PBO event of your screen basing on the FLAG variable
value.
The logic is:
IF FLAG IS INITIAL.
LOOP AT SCREEN.
IF SCREEN-NAME = 'NAME'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

screen field name


input disable

ELSE.
LOOP AT SCREEN.
IF SCREEN-NAME = 'NAME'.
SCREEN-INPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.

input enable

ENDMODULE.

178.

Have you created any Custom screens? What is the business requirement?

Yes, I have created some custom screens for using Develop a Module pool programming as per
client requirement. the business requirement is whenever enter a customer details the sales order
data will be display in another screen by using table control.

49

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

BDC (Batch Data Conversion)


179.

What is the difference between Conversion and Interface?

1. Data Conversion is a one-time activity, while interface is used to communicate data between
two systems continuously .
2. In Conversions possible to upload data from Legacy system to SAP only , while Interface possible
to upload the data from Legacy system to SAP as well as SAP to Legacy system.
3. Conversion is Mainly used for upload Master data, while Interface is mainly used for upload
transaction data.
Interface: it is a program that performs communication with External system from SAP.
There are two types of interfaces:
1. Inbound Interface: External system sends the data to SAP
2. Outbound Interface: SAP sends the data to External system.
180.

What are the types of BDCs we have in SAP?

Batch Data Conversion or Communication (BDC), which is used to collect the data from Legacy
system (Non-SAP) to SAP system.
In SAP we have two types of BDCs available, there are:
1. Direct Input method and
2. Batch Input method.
In Batch input method we have two methods:
a. Session method and
b. Call transaction method.

181.

What is the Difference between Synchronous and Asynchronous methods in BDC?

The main difference between Synchronous and Asynchronous methods is :


in Synchronous methods processing is waiting for Acknowledgement of record Updation, while
Asynchronous method processing does not waiting for Acknowledgement of record Updation.

50

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Synchronous Update : This means say if u have 10 records to update and the processing is going on
in a loop the Synchronous update will wait till each update is actually done in the data base and then it
will move on the next record's updation.
Asynchronous : In This mode, the updates are lined one after the other and the system doesn't wait
for the updates to actually happen. These updates are then triggered by an internally scheduled job
which then actually updates the data in the database.

182.

Difference between Session method and Call Transaction methods in BDC?

1. In Session method the processing of records in Asynchronous, while In Call transaction method
the processing of records in Synchronous.
2. In Session method the Updation of the records in Asynchronous, while Call transaction method
the updation of records in both Asynchronous and Synchronous.
3. In Session method ERROR log will be generated by System, while Call transaction method
ERROR log will be handled by Users.
4. Whenever we have Huge volume of Data, prefer to go for Session method, not recommended
for Call transaction method.
5. Whenever we have multiple transactions Session method does not supported, we will prefer to
go for Call transaction method.

183.

In which scenario we will go for Session method and go for Call transaction method in BDC?
Whenever We have huge volume of data , we prefer to go for Session method and not
recommended Call transaction method,
Whenever we need to Data transfer for Multiple transactions, we prefer to go for Call
transaction method, Session method for supports only Individual transactions.

184.

What is the syntax for Call Transaction method in BDC?

The syntax for Call transaction method is:


CALL TRANSACTION '<Transaction code>'
USING IT_BDC
BDC Internal table
MODE 'A'
UPDATE 'L'
MESSAGES INTO IT_MESS. "Handling Error message and collect into a table
MODE:
"A- display all screens, E - error screens only and N - No screens
UPDATE: "L - local update, S - synchronous and A - Asynchronous update

185.

What is the purpose of BDCDATA structure?


51

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

The purpose of BDCDATA structure is with the help of Handling the Screen recordings in BDC
programming. We must define a BDC internal table type of BDCDATA structure.
The structure of BDCDATA consist five fields:
1. PROGRAM
BDC Program name
2. DYNPRO
BDC Screen Number
3. DYNBEGIN
BDC Screen start
4. FNAM
Field name
5. FVAL
Field value.

186.

How do you handle the ERROR log in CALL TRANSACTION method?

Within the BDC Call transaction method we are going to collect the ERROR messages into an
IT_MESS Internal table type of BDCMSGCOLL structure.
Read the IT_MESS internal table with Error MSGID and MSGNR. If you not find this record, collect
the remaining Messages into a structure.
Club the all messages into a structure, we are going to use Function module is FORMAT_MESSAGE.
187.

How can I handle Table control in BDC?

We can handle table control using line index ,


Line index indicates which line of Table control is to be use for BDC transaction,
Ex - perform bdc_field using 'RC29K-AUSKZ(01)'
indicates 1st line of table control is going to be used for transaction which is Line index of Table Control .
and write a Loop within a Loop for capture BDC records.
188.

What are the drawbacks having in BDC?

1. BDC does not support enjoy Transactions (ME21N).


2. If you have change current screens and Updated versions , its not supports current BDC
programs, must re-develop New DC programs.
3. If you have any variations of screen resolutions between system to system, its not supports.
If you avoid this always maintain Default screen size for screen handling.
189.

Which BDC method does not support by LSMW?

LSMW does not support call transaction method.


Reason for this is in Call Transaction method you can design the error log file with BDCMSGCOLL it
does not exist by default....
190.

What are the Difference between BDC and BAPI?


52

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Batch Data Conversion or Communication (BDC), which is used to collect the data from Legacy
system (Non-SAP) to SAP system.
A BAPI is a method of a SAP Business Object. BAPI enables SAP and third party applications to
interact and integrate with each other at the Business Object / Process level.

1. We preferred to BDCs for Updating Master data like Customer master data, Vendor master
data and A/C Document data etc.
2. We preferred to BAPIs for Updating Transactional data like Sales order (VA01), Purchase order
(ME21) etc.
BDC will process a Transaction to Update the Data using Session or Call transaction Method.
BAPI will not process screens to update the data. It will update the Tables directly.
So it is always fast. And to Call a BAPI we must fill the Mandatory fields.

191.

What are the Difference between BDC and LSMW?

Batch Data Conversion or Communication (BDC), which is used to collect the data from
Legacy system (Non-SAP) to SAP system.
The Legacy System Migration Workbench is an R/3-based tool, which is used to transferring
data from non-SAP systems ("Legacy Systems") to R/3 once or periodically.

In BDCs The data can be converted into the SAP system via Direct input, Session input and

192.

Call transaction methods.


In LSMW The data can be imported (Migrated) into the SAP R/3 system via batch input,
direct input, BAPIs or IDocs.
LSMW is basically for standard SAP application while BDC basically for customized application
LSMW mapping is done by SAP while in BDC we have to do it explicitly .
Coding can be done flexibly in BDC when compared to LSMW.

Have you done any BDC program ? what is the business requirement?

Yes, I have done BDC call transaction program for Updating Vendor master data (XK01) at the
time of Implementation.

193.

How to pass the screen capture size as DEFAULT in BDC Call transaction method?

In this scenario we are going to pass the value for CTU_PARAMS- DEFSIZE = X.
194.

Can I run Call transaction program in Back ground?

Yes, we can run the Call transaction program in Background by using the MODE as N. (No screens
display).
53

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

LSMW (Legacy System migration Workbench)

195.

Can I put a Break-point in LSMW ? if I put a break-point in which Step it will be triggered?

in the Step 5 ( Maintain Field Mapping and Conversion Rules) after field mapping , go to change
mode and double click that filed, its opened text editor there you can put BREAK POINT.
After that you can read the data and display the read data, when you press the CONVERT DATA
(step11) the break point will triggered.

196.

Can I write some code in LSMW? In which step can I write the logic and In which step it will be
triggered?
If You want to write some logic in LSMW, We are going to write in 5th Step (Maintain Field Mapping
and Conversion Rules) and it will be triggered in 11th step (Convert Data) of LSMW.

197.

Can I write the WRITE statement in LSMW? In which step WRITE statement will be Triggered
and which step it will be Display?
If You want to write some logic in LSMW, We are going to write in 5th Step (Maintain Field Mapping
and Conversion Rules) and it will be triggered in 11th step (Convert Data) and it will be Display in
12th step (Display Converted Data) of your LSMW.

198.

What are the Steps we have in LSMW?

Whenever you create a LSMW,


In 1st step if you provide object type as Standard batch/ Direct input, we need to processing 13
steps.
if you provide object type as Standard batch/ Direct input, we need to processing 14 steps.
if you provide object type as BAPI or IDOC, we need to processing 16 steps.
1.
2.
3.
4.

Maintain Object Attributes


Maintain Source Structures
Maintain Source Fields
Maintain Structure Relations
54

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

5.

Maintain Field Mapping and Conversion Rules


6. Maintain Fixed Values, Translations, User-Defined Routines
7. Specify Files
8. Assign Files
9. Read Data
10. Display Read Data
11. Convert Data
12. Display Converted Data
13. Create Batch Input Session
14. Run Batch Input Session
199.

What are the Events we have in LSMW?

We have six events available in LSMW, there are:


BEGIN_OF_PROCESSING
BEGIN_OF_TRANSACTION
BEGIN_OF_RECORD

Before the beginning of data processing


Before the beginning of transaction data processing
Before applying the conversion rules for a source structure

END_OF_RECORD
END_OF_TRANSACTION
END_OF_PROCESSING

After applying the conversion rules for a source structure


After finishing transaction processing
After finishing data processing

200.
When I processing 100 records , in which I have 10 records which I dont want to process. I want
to SKIP/ REMOVE those records and collect them separately in a file? How can I achieve?

In this scenario if we want to SKIP the processing of records we are use SKIP_RECORD.
In case they are errors that you can/ want to capture before proceeding to the session. you
can capture it in the END_OF_RECORD event area for each record and move it to an
internal table which can then be downloaded in the END_OF_PROCESSING event.
201.

Can I handle table control in LSMW batch input record method?

No, we cannot handle by using Batch input record method.


We are going to handle table control in LSMW by using BAPIs or ALE/IDOC method.
202.
How can I make changes to an existing LSMW?
(or)
I have created LSMW , client want to update two more fields for existing 10 records in LSMW, how
can I update the existing LSMW?
If you want to add some fields in Existing LSMW project, we are going to execute the 1st step and
click Goto button from menu and select Recording overview.
55

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

And place the cursor on existing Recording name and click process recording button .
Here place the cursor on program name or screen name, where you want to add some fields and
Goto EDIT->Add screen field (Extended) -> enter your filed name,
Description and Default
value->save.

203.

How can I transport LSMW from one system to another system?

If you want to transport LSMW project From Development to Production system,


You have to approach to ways, there are:
1. Change Request :
Run your LSMW project -> Extras -> Generate change request.
2. Download the Project into a file:
Run your LSMW project -> Extras -> Export project.

204.

Have you created LSMW for which Application? What is the Business requirement?

Yes , I have Created some LSMW projects directly in Production system for Migration some flat file
data into SAP system as per my business requirement is Update the Vendor master Records and
Customer master records.

56

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

RFC (Remote Function Call)

205.

What is the difference between BAPIs and RFC? In which scenario we will go for BAPIs and
which scenario we will go for RFCs?

BAPI stands for Business Application Programming Interface. It is a library of functions that are
released to the public as an interface into an existing SAP system from an external system. A BAPI are
standard SAP function modules provided by SAP for remote access. Also they are part of Business
Object Repository(BOR).
RFC stands for Remote Function Call. Which is used to Communicate with SAP to SAP systems and it
does not communicate with SAP to Non-SAP systems. If we want to communicate data between SAP to
Non-SAP system, the non-SAP system must should be R/3 compatible.
BAPIs are always developed by defining scenarios which are used to map and implement systemwide business processes.
You can use the RFC interface for communication between SAP systems and between SAP systems
and external systems. SAP offers several interfaces that are based on RFC, such as Application Link
Enabling (ALE), Business Application Programming Interfaces (BAPIs), and RFC function modules.
206.

What are the difference between Normal Function modules and RFC Function Modules?

1) Normal function module only called within the server...but RFC can be called across the server.
2) We can access data from RFC function module from non sap also...but not possible for normal
function modules.
3) We always use pass by value mode in RFC's but in Normal function module we can use pass by
value or pass by reference.

4) Fast accessing using normal function modules...slow accessing using RFC's.


207.

In RFC Function Modules some Commands does not allowed or not use? What are they?

57

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

In RFC Function module does not support SUBMIT, CALL SCREEN, CALL TRANSACTION and
COMMIT WORK statement.

208.

What is the purpose of Destination BACK in RFC Function modules?

You can use the destination BACK if the current program was already called by RFC. Then, BACK
refers back to the calling program:
CALL FUNCTION func DESTINATION 'BACK' ...
If the program is not called from a "remote" source, the exception COMMUNICATION_FAILURE is
triggered.

209.

What is the purpose of Destination none?

The destination NONE refers to the calling system. Function modules called with
CALL FUNCTION func DESTINATION 'NONE' ...
are executed in the system of the calling program, but in their own program context.

210.

Have you created any custom RFC Function Module? What is the business Requirement?

Yes , I have Created RFC function module for Communicating BI system and CRM system for
updating the data into ECC system using RFC Function module.

211.

I have ECC system and CRM system, in which system I have created RFC function modules and
where should I call FMs?
In this scenario we are going to create RFC Function module in ECC systemand from CRM system
we call this RFC Function module..

212.

I have two SAP systems A & B, I want to get the data from System A into System B, in which
system I am going to create RFC Function module, in which system I am going to call RFC function
module?
In this scenario we are going to create a RFC function module in Source system like System A.
Use this RFC Function module in Target system Like System B for Collect the data from System A .
Pre-requisite: If you want to call the RFC function module in System B, we need to create an RFC
destination in System B.

213.

What are the types of RFC Function Modules we have in SAP?

Generally in SAP we have 4 types of RFC Function Modules available, There are:
1. Synchronous RFC,
58
SAP ABAP Interview Questions
E-mail: rameshkumaar.abap@gmail.com

2. Asynchronous RFC,
3. Transaction RFC and
4. Que RFC Function Module.
214.

What is the Transactional RFC (t-RFC)?

Data can be transferred between two SAP systems reliably and safely using a transactional RFC
(tRFC).
The called function module is executed exactly once in the RFC server system. The remote system need
not be available at the time when the RFC client program is executing a tRFC.

BAPI (Business Application Programming Interface)


215.

What is the difference between Normal RFC Function module and BAPI RFC Function module?

BAPI are RFC enabled function modules. The difference between RFC and BAPI are business objects.
You create business objects and those are then registered in your BOR (Business Object Repository)
which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or
JAVA.
BAPI there is no direct system call, while RFC are direct system call.

216.

Have you created any Custom BAPIs? what is the Business Requirement?

Yes, I have created some custom BAPIs for whenever I create a Purchase order and automatically
update the purchase order in other systems.
217.

What are the steps to create Custom BAPIs?

1. Whenever we create a custom BAPI, First we need to create an RFC Function module by using
Transaction SE37 and must define the type of Function Module as Remote enable (RFC).
2. RFC Function modules are available in R/3 Repository and BAPIs are available in Business object
repository (BOR).
3. If you want to create any custom BAPIs , we need to create a Business object by using
transaction SWO1, Create a Business object and provide Object type, Name, Description and
Program name of your BAPI.
4. If you want to add any RFC function module for your custom BAPIs, the RFC Function module is
must converted into API method. (Application Programming Interface) by Utilities -> API
methods -> Add method.
5. Next step is Implement the methods and Release the Business object as well as methods. Now
you can ready to use BAPI. You can see your BAPI in Business object repository by using
transaction BAPI.

218.

Have you used BAPIs for Interfacing SAP system to Non-SAP system (.net, Java etc)?
59

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

219.

Have you worked any BAPI FMs? have you upload data into database using BAPIs?
Yes, I have worked on various BAPI Function Modules like BAPI_MATERIAL_SAVEDATA for
upload the Material master data and also add some custom fields as per client requirement by
using BAPI extension structure (BAPI_TE_MARA and BAPI_TE_MARAX) and update it.
And Worked on BAPI_PO_CREATE For create Purchase order
And worked on BAPI_SALESORDER_CREATE - For create Sales orders as per client requirement.

220.

Have you done BAPI Extension, what are the Steps ? for which Function Module you have used?

Yes, I have done BAPI Extension for add some Custom fields in Standard MARA table as per client
requirement. I have used BAPI_TE_MARA and BAPI_TE_MARAX standard structure for Appending
some custom fields into standard MARA table. In this scenario I have used
BAPI_METERIAL_SAVEDATA Function module for updating the Extension fields with the help of
EXTENSIONIN and EXTENSIONINX tables.
I have also worked BAPI Extension for VABK and EKKO tables by using BAPE_VBAK, BAPE_VBAKX as
well as BAPI_TE_MEPOHEADER, BAPI_TE_MEPOHEADERX standard structures.
221.

What is the Purpose of BAPI_TRANSACTION_COMMIT?

Whenever we use BAPI Function modules for updating the Data into database we must write a
COMMIT WORK statement.
SAP does not recommends directly use COMMIT WORK statement,.
Instead of COMMIT WORK, SAP recommended to use BAPI_TRANSACTION_COMMIT Function
module.
If you can use COMMIT WORK statement is works Internal system only , whenever use
BAPI_TRANSACTION_COMMIT its works and interfacing from external system.
222.

How we are going to handle errors in BAPIs?

In BAPI function modules we are going to define a RETURN parameter for Handling errors in BAPIs.
The RETURN parameter may be based on the following reference structures: BAPIRET2
You must use this reference structure when developing new BAPIS.
BAPIRET1, BAPIRETURN.
(or)
Using a function Module BAPI_MESSAGE_GETDETAIL for Handle the Error Messages in BAPI..
60

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

ENHANCEMENTS
223.

What are the Enhancement techniques we have in SAP?

We have various Enhancement techniques available in SAP, there are:


1. USER EXITS (first enhancement technique in SAP)
2. FORM ROUTINES
3. CUSTOMER EXITS:
a. Function Exits,
b. Screen Exits,
c. Menu Exits and
d. Includes.
4. BADI's (Business Add-ins)
5. BTE's (Business Transaction Events)
6. ENHANCEMENT FRAMEWORK:
a.Function Enhancement
b. Class Enhancement
c. Source code Enhance : 1. Implicit enhancement option, 2. Explicit enhancement option
d.Kernal BADI'S
7. FI Validation & Conversion.
What is the difference between Enhancements and Modifications?

224.

The meaning of Enhancements is ADD-ON new feature to the existing software.


In Enhancements, SAP provides some options for where we can directly go for Add the required
Logic,
While Modifications are not provided by SAP, in modifications we are directly going to the program
and Make some changes of your logic.
61

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Enhancement options are provided by SAP, it will be supports to future up gradation of SAP
software.
While Modifications are Not provided by SAP, so its not supports to future up gradation of SAP
software.
In enhancements we have easily identify the Impact of changes, while Modifications cannot identify
impact of change, only identify proper change.

225.

What are the difference between User Exits and Customer Exits?

1. User exits is very old concept and First Enhancement technique provided by SAP, while
Customer exit is Pure enhancement technique also provided by SAP.
2. User exits are nothing but a Subroutines, we are going to write the logic in Form Endform,
while Customer Exits having Function module Interface we have to implement it.
3. User exits are not upgraded where as customer exits are will upgrade.
4. User exits are created in SAP namespace, while Customer Exits are created in Customer
namespace.
5. User exits require Access key to make changes, while Customer exits does not require Access
key.
226.

Difference between Customer Exit and BADIs?

1. Customer exits are Old and Pure enhancement technique and BADI is an Interface.
2. Customer exits are available only in SAP level and Customer Level, while BADIs are available in
Customer level , Company code level and Partner level.
3. One Customer exit are use to implement in only one project, while BADIs Supports multiple
implementations
227.

Different between BADIs and BTEs?

1. The concept of the BADI is similar to Business Transaction Events (Open FI). BTEs was
developed specific to Financial Accounting module. But were as BADIs was developed in
generalised to all modules.
2. BTEs can only be used to make the program enhancements. You cannot enhance user
interface with Open FI, but you can with Business Add-ins.
3. Open FI assumes that enhancement can only take place on three levels i.e. SAP- partners
customers, but in case of BAdis you can create and implement enhancements in as many
software layers as you like.
62

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

4. Function modules are used for program enhancements in Open FI. With BAdis, ABAP
Objects is used to enhance programs.

228.

Different between Implicit Enhancement Point (IEP) and Explicit Enhancement Point (EEP)?

Implicit Enhancement points are available in source code at After Function Before EndFunction,
After Form Before EndForm,
After Method Before EndMethod and
Before End-of-Structure.
Implicit Enhancement points refers to a Double coated lines.
In Explicit enhancement we have two different types of enhancements - Enhancement point and
Enhancement section.

229.

What is an Enhancement Option?

Within the standard Function module or Class We can add some source code with the help of
Enhancement option. In SAP provides we have two types of enhancement options. There are:
1. Implicit Enhancement option and,
2. Explicit Enhancement option.

230.

What is an Enhancement-spot? Where I can use this?

Within the standard logic SAP provided some Enhancement-Spots for we can add some code.
Enhancement spot is nothing but a Explicit enhancement option and also known as External BADIs.
An Explicit enhancement-point is available under An Enhancement-Spot or Multiple EnhancementSpots. each Enhancement Point are linked with an Enhancement-Spot.
231.

Difference between Enhancement Point and Enhancement Session?

Enhancement Point and Enhancement Sessions both are known as Explicit enhancement options.
The main difference between Enhancement Point and Enhancement Session is enhancement point
having multiple implementations, while Enhancement session having only one active
implementation.
Enhancement points implemented logic executed with the standard logic, while Enhancement
session implemented logic is overwrite the standard logic and executes only implemented logic.
Enhancement Point and Enhancement session both are linked with an Enhancement-Spot.
(Or)

63

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Enhancement point - SAP has some standard functionality defined for a report , but it may be required
that you'll need to add your own code. In this case the code that you'll add will be executed along with
the standard code.
Enhancement section - SAP has its standard functionality defines but it may not suit your requirement,
in that case you may need to add your code and you'll need that code to be executed only. By this
method the existing code is automatically commented and a copy of the same code is available to edit.
After executing the report only your code will be executed and the standard code will be bypassed.
232.

What are the various Enhancement techniques we have in Enhancement Framework ?

SAP provides Four types of enhancement techniques we have in Enhancement Framework, there
are :
1. Function module enhancement.
2. Class Enhancement,
3. Source code enhancement and
4. Kernal BADIs.
233.
What are the steps to Implement Implicit Enhancement Point (IEP) and Explicit Enhancement
Point (EEP)?
Implicit Enhancement Point (IEP) and Explicit Enhancement Point (EEP) both are the parts of Source
code enhancement techniques.
Steps to Implement Implicit Enhancement Point (IEP):
1. Find your Function module and Goto Function module -> Enhance source code option.
2. Click Edit -> Enhancement operations -> Show implicit enhancement Option.
3. Right click the Double coated lines and Select enhancement Implementation -> create.
4. Create Enhancement Implementation Name and Composite Enhancement Implementation
234.

Pre requisites for create and use Implicit Enhancement Point?

235.

Difference between Classical BADIs and New BADIs?

CLASSICAL BADI:
A factory method is used to call a classic BADI object. In addition, a reference variable of the
type of BADI interface of the type of BADI interface of the type of BADI interface.
The filter values are stored in a structure and passed when the BADI methods are called.
A classic BADI can be called only once, and the call positions are registered centrally.
NEW BADI:
The GET BADI statement is used to create a new BADI object. In addition, a reference variable
of the type of BADI class is used to refer to the BADI object.
The comparison values for the filters are used to search for implementations that are passed
when the BADI object is created with the GET BADI statement.
Multiple calls are possible, and the call positions are not registered centrally.
64

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

236.

In any of the Enhancement technique we are not supported to use some commands?

COMMIT WORK and ROLLBACK statement is not supported to use any Enhancement technique
because of ends with Logical Unit of Work (LUW).
237.

What is the T code for BTEs?

We are going to use the transaction FIBF for create BTEs.


238.

What are the various types of BTEs in SAP?

In SAP we have two types of BTEs (Business Transaction Events) available, there are:
1. Publish / Subscribe BTEs and
2. Processes BTEs.

239.

What are the steps to implement in BTE?

We are going to using transaction FIBF for create BTEs. in SAP we have two types of BTEs available,
there are: 1. Publish / Subscribe BTEs and 2. Processes BTEs.
Steps to create BTEs:
1. Go to transaction FIBF and go to Utilities -> Chose any one Info system (P/S) or Info system
(Processes).
2. Execute it we can see the all P/S related or Processes related BTEs.
3. Chose your related BTEs and Click Sample Function module.
4. Copy the Sample Function module into your custom function module (Z function module).
5. In this Custom Function module we have write your own implementation.
6. Chose your process event number and click Goto -> Modules-> Process (SAP).
7. Click New entry and enter your process event number and Enter Country code as IN and add
your Custom Function module and Save it.

240.

How do you find User exits? What are the various techniques?

We are going to Find the User exits by using SPRO transaction code and Click Display SAP IMG
Reference. (Sales and Distribution -> System Modifications -> User Exits -> user exits in Sales.)
One more approach to Find User exit for Given transaction Ex: VA01 -> System -> Status ->double
click on Program name ->chose your related include -> find related User exit.
(Or) By using some custom defined User exit finding programs helps to find User exits for Given
transactions.
241.

What are the various techniques to find Customer exits?


65

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

If you want to find any transaction related Customer exit, first we need to know the Package.
Step -1 : Find the Package Name of Given transaction:
Ex: Go to transaction VA01 and click System -> Status -> Double click on Program name -> go to
Attributes -> Here we know the package (VA).
(OR)
Go to SE93 transaction -> Enter your transaction code ex: VA01 and click Display, and we know the
Package. (VA).
Step-2 : Find the customer exits:
Go to transaction CMOD and Click Utilities -> SAP Enhancements -> Enter Package name (VA) -> F8 ,
here we find the Customer exits for related transaction.
(Or)
Go to transaction SMOD and click Utilities -> Find -> Enter package name (VA) -> F8.
(Or)
We have an another approach to find User exits by using transaction SE84 and Expand
Enhancements -> Customer exits -> Double click on Enhancements -> Enter package name (VA) ->
Execute it.
242.
What is BADI? Explain me in one word?
BADI is an Interface.
243.

What are the various techniques to find BADIs?

We have various approaches to find BADIs (Business Add-Ins). If you want to find the BADIs for any
transaction, First we need to know the Package.
Step -1 : Find the Package Name of Given transaction:
We are going to find the BADIs for the Given transaction, first we need to know the Package name.
Ex: Ex: Go to transaction VA01 and click System -> Status -> Double click on Program name -> go to
Attributes -> Here we know the package (VA).
Step-2 : Find the BADIs basing on Package name:
Find BADIs by using transaction SE84 and Expand Enhancements -> Business Add-Ins -> Double click
on Definitions -> Enter package name (VA) -> Execute it.
We have another approach to find BADI by using transaction SE18 -> Goto Environment ->
Application hierarchy -> SAP
(Or) Using a Class name CL_EXITHANDLER ( Method is GET_INSTANCE and put the Break-point at
get_class_name_by_interfaces ) for find BADIs in real time.
(Or) using Some Custom developed programs helps to find the BADIs , in this program we have to
using some views like V_EXT_ACT ( View for BADI Definitions) and V_EXT_IMP (View for BADI
Implementations).
66

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

(Or) Using SQL trace (ST05) Select the Table Buffer trace check box -> Activate trace -> run the
transaction -> Come back and De-activate trace -> Display trace -> given the objects as V_EXT_ACT
and V_EXT_IMP -> F8.

244.

What is the purpose of Filter dependent BADI?

Within a BADI definition we have Multiple Active Implementations but we need to triggered only
some active implementations basing on the conditions or Values, in this scenario with the help of Filter
Dependent option in the BADI Definition part (here always check multiple use check box). Whenever we
using Filter-Dependent option must define an Importing parameter FLT_VAL within the method
definition.
245.

What is the purpose of Fall back class in BADIs?

Fallback call an option which is available only in Enhancement spot not available in Classical BADIs.
If a BADI definition does not having any BADI Implementations the program will be go for dump, in
this situation we are going to create a Fallback class and Use it for avoid this Dump.
246.
In BADI having multiple implement check box? If I uncheck it what is going to happen?
One BADI definition having multiple Implementations, if Multiple use check box is unchecked we
have multiple Implementations and triggered only one Active implementation.
247.

What is the purpose of CALL BADI and GET BADI?

The Statement GET BADI is using for Create a object in your program and CALL BADI statement is
used for Calling the methods into your program.
248.

What are steps to create a custom BADI?

BADI is an Interface. In SAP we have two types of BADIs available there are:
1. Classical BADIs and
2. New BADI (Enhancement Spot).
Every BADIs having Two parts, there are:
a. BADI Definition part ,
b. BADI Implementation.
Whenever we want to create a BADI Definition by using the transaction SE18, and BADI
Implementation by using the transaction SE19.
Step-1:
If you want to create a classical BADI definition Goto transaction SE18 -> Utilities -> Create classical
BADI. Whenever we create a BADI Definition, system will be Generate an Interface automatically
(ZIF_EX_).
Step-2:
Double click on the Interface and Define the Methods and Provide Import and Export parameters for
this Method. In this Interface we are going to define Multiple methods. And save it.
67

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Step-3:
Goto transaction SE19 for BAPI Implementations. Here enter Classical BADI name and click Create
Implementation button. Enter your Implementation name. whenever we create BADI implementation
system will be generate a CLASS name automatically (ZCL_IM_).
Each BADI definition is going to create Multiple implementations.
Step-4:
Double click on the Interface name and Double click on Method name, with in the Method Endmethod
we can Implement the logic.

249.

Have you created any custom BADI? What is the Business requirement?

(or)
Have you worked on any BADIs? What is your Business requirement?
Yes, I have created a Custom BADI. My Business requirement is I have a Customer exit, its Supports
for only one Implementation. In my requirement we have multiple implementations for a Customer
exit. In this scenario I am going to Create a Custom BADI. in BADI Definition I have define a method
basing on the Customer exit function module and within the BADI Implementation part I have
implemented multiple methods as per business requirement.

250.

Whenever create a BADI implementation, Which one is created automatically?

Whenever we create a BADI Implementation System automatically create Global CLASS. Class
helps to implement the methods of a BADI. The CLASS name always starts with ZCL_IM_.

251.

I have 10 active implementations, which order is going to triggered? Can I Set these
implementations orderly?
Yes. In this scenario we have to use FILTER-DEPENDENT option IN BADI Definition part. Which is
used to help the triggering the BADI Implementations by orderly or Depending on Filtering value.
Whenever we have using Filter-Dependent Option , must define an Importing parameter FLV_VAL
within the every method definition.

252.
I have a requirement for implicit enhancement point? How can I add some code in middle line or
certain number of line? How can I achieve?
In this scenario we are going to Copy the code into Implicit enhancement point and add some code
at certain line and put the command EXIT at End of the code.
68

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

253.
Have you done Enhancement? What is your Business requirement?
(Or)
Have you worked on any User exit? What is your Business requirement?
Yes, I have worked on a Sales related User exit the Name is: USEREXIT_SAVE_DOCUMENT_PREPARE
and the Include name is MV45AFZZ.
My Business requirement is Avoid the Sales order creation (VA01), when the Net amount value is
below certain amount and as per client required conditions.

254.

Have you worked on any Customer exit? What is your Business requirement?

Yes, I have worked on Various Customer exits Like Function Exits, Menu Exits and Screen exits as per
my client requirement.
I have worked on a Function exit and My Business requirement is avoid the Customer creation (XD01)
when Company code level Payment terms value (KNB1-ZTERM) not matches with Sales area level
Payment terms value (KNVV-ZTERM).
In this scenario I have worked on a SAPMF02D Customer exit and the Component of
EXIT_SAPMF02D_001 Function exit.
Also I have done a Menu exit and my business requirement is add some Menu options within the
standard MENUBAR as well as add some Custom transaction in to standard AREAMENU (S000).
255.

Have you worked on any Screen exit? What is your Business requirement?

Yes, I have worked on various Screen exits as per client requirement.


In my business requirement I have add some Custom fields on to the standard Purchase order
Header Screen (ME21) by using Screen exit enhancement technique. As pr client requirement I have add
two more fields like VENDOR TAX CODE and VENDOR CUST CODE on Standard screen by using Custom
Sub screen and add the same custom field into table by using Includes and Using the Function exits for
Import and Exporting the data between Screen to program as well as Program to Screen.

256.

Have you worked on any BTEs? What is your Business requirement?

(or)
Have you worked on any Implicit Enhancement point (IEP)? What is your Business requirement?
69

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Yes, I have worked on Implicit Enhancement point of Source code enhancement technique. My
business requirement is Restrict users (sales persons) to view or change Sales order data - Using
Enhancement framework: IEP ( include MV45AFZB).

257.

Have you worked on any Explicit Enhancement point (EEP)? What is your Business requirement?

OOABAP( Object Oriented ABAP)


258.

What is Class?
A Class is an Instance of an Object or Real world entity. Every class consist of two parts:
1. Class Definition and
2. Class Implementation.
Within a Class we have various components like Attribute, Methods and Events.

259.

What is the difference between Class and an Interface?

The Main difference between a CLASS and an INTERFACE is: Class has both definition and an
implementation, whereas Interface only has a definition. Interfaces are actually implemented via a Class.
260.

What is an Object?
Objects are instances of classes. If we want to call a method of a Class, we need to have an Object.

261.

What are the various Classes we have in Object Oriented ABAP?

In object oriented ABAP we have four types of classes available, there are:
1. Normal Class (Usual ABAP class)
2. Exception class,
3. Persistence class and
4. Test class (ABAP Unit).
262.

What is the purpose of FINAL?


70

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

If A Class cannot be Inherited by a Sub-Class we can use the Command FINAL.


Ex:
CLASS LCL1 DEFINITION FINAL.
ENDCLASS.
263.

What is Encapsulation?

Through encapsulation we restrict the visibility of attributes and methods in the object. There are three
levels of visibility in OO ABAP.

Public
Protected
Private

(Or) Encapsulation means one attribute and method can be modified in different classes. Hence data
and method can have different form and logic and that can be hidden to separate class.
264.

What is Inheritance?

The Inheritance with the help of assign the Parent class properties to the Child class. Or a Class
Properties are inherited to a Sub-Class. If we want to derived to a Sub-class from a Parent Class, the
Parent class should not be FINAL class.
In object oriented ABAP only support SINGLE Level inheritance, does not support Multiple Level
Inheritance.
Whenever we Inherited a Sub-class, the Sub-class Getting all properties of a parent class except
Private attributes.
Syntax: CLASS lcl2 DEFINTION INHERITING FROM lcl1.
ENDCLASS.
265.

What is Polymorphism?

The purpose of Polymorphism is for RE-USABILITY. We can achieve the polymorphism with the help
of INTERFACES. Interfaces we have some methods and Does not have any Implementations. One
Implementations is called Multiple Classes, each class we can write own method Implementation,
this is helps to Method reusability with the help of Interfaces its called as Polymorphism.
Its going to supports multiple inheritance.

266.

What are the oops features (Concepts) supported by object oriented ABAP?

We have Six OOPS concepts supported by object oriented ABAP, there are:
1. Encapsulation,
2. Inheritance,
3. Abstract,
4. Polymorphism,
71

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

5. Events and
6. Persistence.
267.

What are the areas of VISIBILITY?

All components of a class must belong to a Visibility section. In Object oriented ABAP we have
three types of Areas of Visibility options:
a. PUBLIC SECTION,
b. PRIVATE SECTION and,
c. PROTECTED SECTION.

268.

Difference between PUBLIC SECTION , PROTECTED SECTION and PRIVATE SECTION ?

Public Section
All of the components declared in the public section are accessible to all users of the class, and to the
methods of the class and any classes that inherit from it. The public components of the class form the
interface between the class and its users.
Protected Section
All of the components declared in the protected section are accessible to all methods of the class and of
classes that inherit from it.
Private Section
Components that you declare in the private section are only visible in the methods of the same class.

269.

Difference between INSTANCE method and STATIC method?

If we want to declare an instance method by using the METHODS statement, while declare a Static
method by using the CLASS-METHODS statement.
Instance components exist separately in each instance (object) of the class and are referred using
instance component selector using '->'
Static components only exist once per class and are valid for all instances of the class. They are
declared with the CLASS- keywords
Static components can be used without even creating an instance of the class and are referred to
using static component selector => .

72

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

If you want to call instance methods we must create an Object, while in static methods we can call
the methods without create an Object.

270.

What is a CONSTRUCTOR method?

CONSTRUCTOR method is nothing but a default method, the purpose of the CONSTRUCTOR
is initialize the Global or Class attributes.

Whenever we create object the CONSTRUCTOR method is triggered automatically.


Constructor method is having only Importing parameters does not have any Exporting and
Changing or Returning parameters.
CONSTRUCTOR method is one of the special method for using avoid the repetitions of the
same code in the methods.
We have two types of Constructors available, there are :
a. Instance Constructor and,
b. Static Constructor.

271.

Difference between INSTANCE CONSTRUCTOR and STATIC CONSTRUCTOR?

a. Instance Constructor method is having only Importing parameters does not have any
b.
c.
d.
e.

272.

Exporting and Changing or Returning parameters.


While Static Constructor method does not having any Parameters or Exceptions.
Instance Constructor is Called multiple times and triggers multiple times, while Static
Constructor is triggered only once in a program.
If we have using both Instance and Static methods, First will be triggers Static method then
go to Instance method.
Instance methods can be RE-DEFINED, while Static methods cannot be RE-DEFINE.

What is meant by method overloading? Is it possible in OOABAP?


Within a Inherited method we cannot Change or Modify Interfaces Like Importing or
Exporting parameters is known as method Overloading.
Generally In Object oriented ABAP does not Supports Method Overloading, Only supports
Method RE-DEFINITION.
Syntax: METHOD get_data REDEFINITION.

273.

What is the purpose of method RE-DEFINITION?

If we want to change or Re-Write the Parent class methods within Child class, we are
going to use method RE_DEFINITION.

Whenever we use method RE-DEFINE, we can write the new method implementation
as well as we can call Parent class method by using SUPER.
Instance methods can be RE-DEFINED, while Static methods cannot be RE-DEFINE..
73

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

274.

What is the purpose of ME?

We are going to CALL or Access within the Class components ( Attributes or Methods),we can
achieve with the help of ME .
Ex: To access an attribute (attr) of your class: ME->attr.
To call a method (meth) of your class:
CALL METHOD ME->meth.
275.

What is difference between Interface and Abstract class?


1. Interface having only method definitions and Does not have any method implementation,
while Abstract class having method definition and Implementation.
2. Interface does not have any Visibility section, while Abstract class having Visibility
sections.
3. Interfaces having Instance and static methods, while Abstract class methods are always
instance.
4. Interface methods Visibility are always Public, while Abstract class methods are Public as
well as Protected.
5. Interfaces are called any classes, but Abstract classes can be called only Sub classes of a
Parent class.

6. Within a class we can call Interfaces as well as one interface we can call another interface.
276.

Can I create an Instants or Objects in Abstract class?


In abstract class we cannot create an Instance or an Objects, because of ABSTRACT class is
an IN COMPLETE class.

277.

What is ABSTRACT method?


Static method cannot be a ABSTRACT method. If you want define an ABSTRACT methods the
class must be change an ABSTRACT class. Whenever we define an ABSTRACT methods, the
existing method implementation will be deleted or Not possible to Implement within this class.

278.

What is ABSTRACT class?

Abstract class is an in completed class.


Abstract class we have some methods without any Implementations.
The help of ABSTRACT we can achieve RE-USABILITY.
ABSTACT class should not be a FINAL class.
279.

How can I achieve multiple inheritance in OOABAP?


With the Help of Interfaces, we can achieve Multiple Level Inheritance in Object oriented ABAP.

280.

What is the purpose of SUPER?


74

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

If we want to call a method from Parent class we are going to use the command SUPER.
Note: ME or SUPER we can use for Only Instance methods.
281.
In a class I have some Private attributes, how can I access Private attributes of one class in
another class?
In this scenario we can use FRIEND class, if we want to access Private attributes of one class and
Make the another class as Friend class.

282.

What is Narrow casting and Widening casting?

If we want to access Child class methods from an Parent class Object which is possible to with the
help of Narrow casting.
Syntax for Narrow casting : OBJ1 = OBJ2.
CALL METBOD OBJ1->( ADDING ).
ADDING method is belongs OBJ2
Widening cast is quit opposite of narrow casting , with the help of access the parent class attribute
or methods from Child class object.
Syntax for Narrow casting : OBJ2 ?= OBJ1.
CALL METBOD OBJ2->( GET_DATA ).
GET_DATA method is belongs OBJ1
283.

How can I import Local class to Global class?

If we want to Import a Local class into a Global class, we are going to transaction SE24
And click Object type -> Import -> Local Class in program.
Enter your Local class program name -> Enter and Provide Global class name with ZCL_ and Import.
284.

What is the purpose of Functional methods?

The purpose of Functional method is used to Expecting some value or Returning some value from
a Function. The Functional methods only having IMPORTING and RETURNING parameters, does not
have any EXPORTING and CHANGING parameters.
Within a Functional Methods the RETURNING parameters nothing but a RECEIVING parameters.
75

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

285.

What is the purpose of ALIAS name?

An alias name belongs to the components of the class and the interface. It shares the namespace
with the other components and is inherited by subclasses. In classes, an alias name can be declared
in every visibility section.

286.

What is the purpose of SINGLETON class or Singleton pattern?

A singleton class is a class that cannot be instantiated more than once (in a single program that
is). Of course you can do the same in other programs without facing any problems. You can do this
by setting the flag final and create the class as private. Now the class can only be instantiated in one
of its own methods.

287.

What are the steps to create Singleton class?

7. Go to SE24 for create a class properly and give the class properties : Instantiation as
Private and Description (ZTEST_SINGLETON).

8. Come to create attribute tab and Create a static Public attribute (Get_ref_obj) basing on
the TYPE Ref to Class name (ZTEST_SINGLETON).

9. Define a static public methods ex: GET_INSTANCE , in this method we have create a
returning parameter. (Ex: REF_OBJ type ref to ZTEST_SINGLETON).

288.

What are the steps to create Exception class?

1. If we want to create an Exception class go to transaction SE24 class builder.


2. Enter your exception class name, the Exception class name always start with ZCX_ and
create it.
3. This Exception class always going to derived from a Super class and enter the description.
4. Chose the class type as Exception and check with message class check box, this exception
class always linked with a Message class and Save it.
5. And go to properties and Linked to your message class.
289.

Have you created any Exception class?


Yes, I have created an Exception class for Handling Exceptions with using Message Texts.

290.

Have you created any Custom class? What is the Business requirement?
Yes , I have create some Custom classes for using OOALV Reports.

291.

How you going to create Transaction code for a method?


76

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Go to transaction SE93 and Enter your transaction code and Description, and chose the start
object as Method of class (OO transaction) radio-button and Click continue.
Next provide Class name, Method name, Update mode and check GUI support for windows and
Save it.
292.

What is the persistence class?

a. In the Persistence class going to generate permanent objects. Using this persistence objects
we can update the data into database.

b. Whenever we create a persistence class the class is always going to be Protected, the
persistence class name starts with ZCL_ or YCL_.

c. Persistence class can be created only Globally (SE24), we cannot possible to create In
Locally.

d. Whenever we create a Persistence class the system is going to create Two classes
automatically. There are: 1. Base Agent class, and 2. Agent class or Actor class.
e. This Base Agent class name should be always starts with ZCB_ and Agent class name should
be always starts with ZCA_.
f. The Base Agent class should be always ABSTRACT class and going to friend class with
persistence class.
g. From this Agent class derived from a Base Agent class as Sub-class.
293.

Have you created any persistence class?

Yes , I have created a custom Persistence class for Update the data into a database table.
I have used following methods:
GET_DATA we have to use for Get the data from database.
CREATE_PERSISTENT we have to use for update the records into database.
DELETE_PERSISTENT we have to use DELETE the records into database.
294.

Steps to create a persistence class?

Step-1: Go to transaction SE24 and Enter the class name and create it, class name always starts with
ZCL_.
Step-2: Enter the Description and chose the class type as Persistent class , whenever we chose
persistent Instantiation become as protected class and SAVE it.
Step-3: click on Attributes tab and click Go to -> Persistence Representation and Provide your
database table name click Enter.
Step-4: Assign the table fields into Class. Attributes will be created automatically and SAVE it.
Whenever we create a Persistence class the system is going to create Two classes one is BASE AGENT
CLASS (ZCB_) another one is ACTOR or AGENT CLASS (ZCA_).
295.

What is the difference between Normal class and Exception class?


a. Every Exception class linked with a message class, while Normal class does not linked with
message class.
77

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

b. In Exception class we have TEXT tab for Exception ID Linked with Message Text, while
Normal class does not have TEXT tab.
c. Within the Normal class we can use Exception class, while within the Exception class we
Cant use Normal class.

296.

SD -FLOW
What SD Flow? Explain me along with Tables and transaction codes?

The processing of Sales Document flow is:


Inquiry---- ----> Quotation--------> Sales order---- ----> Delivery---- ----> Invoice.

1. Inquiry :
For Inquiry we are going to use transaction VA11 for Create Inquiry,
VA12 for Change Inquiry,
VA13 for Display Inquiry
and the Inquiry related data is going to be stored in VBAK and VBAP tables.

2. Quotation:
For Quotation we are going to use transaction VA21 for create Quotation,
VA22 for Change Quotation,
VA23 for Display Quotation
and the Quotation related data is going to be stored in VBAK and VBAP tables.

3. Sales order:
For Sales order we are going to use transaction VA01 for create Sales order,
VA02 for Change Sales order,
VA03 for Display Sales order
and the Sales order related data is going to be stored in VBAK , VBAP, VBUP, VBEP and VBPA tables.

4. Delivery:
For Delivery we are going to use transaction VL01 for create Delivery,
VL02 for Change Delivery,
VL03 for Display Delivery
78

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

and the Delivery related data is going to be stored in LIKP and LIPS tables.

5. Invoice:
For Invoice we are going to use transaction VF01 for create Invoice,
VF02 for Change Invoice,
VF03 for Display Invoice
and the Invoice related data is going to be stored in VBRK and VBRP tables.

297.

I have a sales order, for that sales order I want to know that sales order created or Not /
invoice created or Not? In which table I am going to check for Delivery or Invoice status?
We are going to table VBFA (Sales Document Flow) for check Delivery or Invoice status of a
Sale Document.

298.

What is the table for Sales Document Flow in SAP?

The Sales Document flow data is going to be stored in VBFA table.


Or
The table of Sales Document Flow is VBFA.
299. What are the tables for Material Document ?
MKPF is for Material Document header table and
MSEG is for Material Document item table
300.

What are tables for A/c Document?

BKPF is for A/c Document header table and


BSEG is for A/c Document item table.

301.

What type of table is BSEG table?

BSEG is for A/c Document item table it is a CLUSTER TABLE.


Its going to be stored in
BSAD - Accounting: Secondary Index for Customers (Cleared Items).
BSID - Accounting: Secondary Index for Customers (Open Items).
BSAK - Accounting: Secondary Index for Vendors (Cleared Items).
BSIK - Accounting: Secondary Index for Vendors (Open Items).
BSAS - Accounting: Secondary Index for G/L Accounts (Cleared Items)
BSIS - Accounting: Secondary Index for G/L Accounts. (Open Items).
****Above all tables Information can be maintain in BSEG cluster table.
302.

What is the transaction code for create Customer in SAP?


We are going to maintain a Customer by using transaction XD01 for Create Customer,
79

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

and XD02 for Change Customer,


and XD03 for Display Customer.
Whenever we create a Customer, the Customer Information is going to be stored in :
KNA1 - General Data in Customer Master table ,
KNVV - Customer Master Sales Data table and
KNB1 - Customer Master (Company Code) tables.
303.

Where we can create Materials in SAP?

We are going to maintain Materials by using transaction MM01 for Create Material,
and MM02 for Change Material,
and MM03 for Display Material.
Whenever we create a Material, the Material Information is going to be stored in :
MARA - General Material Data table ,
MARC - Plant Data for Material table and
MARD - Storage Location Data for Material tables.
MVKE - Storage Location Data for Material tables.

304.

What is the transaction code for crate Vendor in SAP?


We are going to maintain Vendors by using transaction XK01 for Create Vendor,
and XK02 for Change Vendor,
and XK03 for Display Vendor.

Whenever we create a Vendor, the Vendor Information is going to be stored in :


LFA1 - Vendor Master (General Section) table ,
LFM1 - Vendor master record purchasing organization data and
LFB1 - Vendor Master (Company Code) tables.

305.

In a Business Hierarchy structure which one is going to create first?

In Business Hierarchy structure, First we are going to create a COMPANY CODE by using
transaction SPRO.
The Company code information is going to be stored in a table T001 and Field name is BUKRS.
306.

Which table is going to store Plant Information?

The Plant Information is going to be stored in a table is T001W and Field name is WERKS.
307.

What is the table for Storage Location?

The Storage Location Information is going to be stored in a table is T001L and Field name is LGORT.
308.

Which table is going to store Sales organization information?


80

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

The Sales organization Information is going to be stored in a table is TVKO and Field name is VKORG.
309.

Which table is going to store Sales area information?

The Sales area Information is going to be stored in a table is TVTA.


310.

What is transaction code for create Shipment?


We are going to maintain Shipment by using transaction VT01 for Create Shipment,
and VT02 for Change Shipment,
and VT03 for Display Shipment.

Whenever we create a Shipment, the Shipment Information is going to be stored in :


VTTK - Shipment Header table ,
VTTP - Shipment Item .

311.

Where we can create Inbound Delivery in SAP?


We are going to maintain Inbound Delivery by using transaction VL31 for Create Inbound Delivery,
and VL32 for Change Inbound Delivery,
and VL33 for Display Inbound Delivery.

Whenever we create a Shipment, the Shipment Information is going to be stored in :


LIKP - SD Document: Delivery Header Data. (LIKP-VBELN).
312.

What is a Transfer order?

Whenever we Pick-up some Goods from Warehouse, Here warehouse management will be
Generate a Transfer order and Its not generate any Invoice or Bill.
Whenever Generate a transfer order, the transfer order information is going to be stored in :
LTAK - WM transfer order header table and ,
LTAP - Transfer order item tables.

313.

What are the different ways to create Outbound Delivery for your Sales order?

We are going to create an Outbound Delivery for a Given Sales order by using transaction VA02
Change Sales order.
(Or) also we can use transactions VL01 or VL10G for create Outbound Delivery of given Sales order.

314.

What is the transaction code for Billing Due List or Invoice Due List?

We are going to use transaction VF04 for Maintain Billing Due List.

315.

What is the transaction code for create A/c Document in SAP?


81

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

We are going to maintain A/c Document by using transaction FB01 for Create A/c Document,
and FB02 for Change A/c Document,
and FB03 for Display A/c Document.
Whenever we create a A/c Document, the A/c Document Information is going to be stored in :
BKPF - A/c Document header table and
BSEG - A/c Document item table.

316.

MM-FLOW
What is the MM Flow? Explain me along with Tables and transaction codes?

The processing of Material Management Flow is:


Purchase Requisition ---- ----> Request for Quotation--------> Price comparison ---- ----> Purchase
order ---- ----> Goods Receipt --------> Inbound Invoice Verification.

1. Purchase Requisition:
For Purchase Requisition we are going to use transaction ME51 for Create Purchase Requisition,
ME52 for Change Purchase Requisition,
ME53 for Display Purchase Requisition
and the Purchase Requisition related data is going to be stored in EBAN tables.

2. Request for Quotation:


For Request For Quotation we are going to use transaction ME41 for create Request For Quotation,
ME42 for Change Request For Quotation,
ME43 for Display Request For Quotation
and the Request For Quotation related data is going to be stored in EKKO, EKPO and EKET tables.

3. Price comparison:
For Price comparison we are going to use transaction ME49 for Price comparison,

4. Purchase order:
For Purchase order we are going to use transaction ME21 for create Purchase order,
ME22 for Change Purchase order,
82

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

ME23 for Display Purchase order


and the Purchase order related data is going to be stored in EKKO, EKPO, EKET, EKES and EKBE
tables.

5. Goods Receipt:
For Goods Receipt we are going to use transaction MIGO for create Goods Receipt,
6. Inbound Invoice Verification:
For Inbound Invoice Verification we are going to use transaction MIRO for create Goods Receipt,
and the Inbound Invoice Verification related data is going to be stored in RBKP table.

317.

What is the table for Purchase order (PO) Confirmation?

Purchase order Confirmation Information is going to be stored in EKES table.


318.

What is Production Order?

319.

What is the transaction code for crate Production order?

For maintain Production order, we are going to use transaction CO01 for create Production order,
CO02 for Change Production order,
CO03 for Display Production order.
320.

What is the table for store Production order information?

The Production order related Information is going to be stored in AFKO, AUFK and AFPO tables.

321.

What is BOM (Bill of Materials)? (sales side)

A bill of material (BOM) describes the different components that together create a product. A BOM
for a bicycle, for example, consists of all the parts that make up the bicycle: the frame, the saddle,
wheels, and so on.
BOM means bill of materials: suppose if you purchase a computer it contains CPU and monitor
and mouse and some devices all they contain individual prices but altogether shown in computer in
order to configure this BOM is helpful in SAP.
322.

What is the purpose of BOM?

The purpose of this activity is to create bills of material (BOMs) for the configurable material which
is known as super BOM.
Super BOM comprise all the variant as well as non-variant parts required for producing configurable
material.
323.

Where we can create BOM in SAP?


83

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

We are going to create BOM (Bill of Material) by using transaction CS01.


324.

What are the tables for store BOM information?

Whenever we create BOM, the BOM information is going to be stored in :


STKO BOM Header table,
STOP BOM Item table .

325.

What is BOL ( Bill of Lading) (material side)?

A Bill of Lading is a document issued by a consignor (or shipper, such as an order fulfillment center)
and signed by a carrier at the time of pick up, acknowledging that specified products have been received
on board as cargo for delivery to a named consignee, or destination. It serves as a contract between the
shipper and/ or owners of the goods and the carrier for a number of purposes:

ALE IDOCs (Application Link Enabling)


326.

What is the transaction code for crate Partner profile?

We are going to create Partner profile by using transaction WE20.


327.

What is the transaction code for crate Ports?

We are going to create Ports by using transaction WE21.


328.

What is a Port? Types of Ports we have in SAP?

Port is a temporary memory which is going to holds temporary memory purpose and transfer the
data to an External system.
We have 6 types of Ports available in SAP, there are:
1. Transactional RFC port,
2. File port,
3. CPI-C port,
4. ABAP- PI port,
5. XML File port and,
6. XML HTTP port.
329.

When we are going to use File Port?

We are going to use File ports for Communicate Data between Non-SAP system to SAP system.
330.

What is the transaction code for create Distribution Modules?


84

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

We are going to create Distribution modules by using transaction BD64.


331.

What is the transaction code for create Partner profiles?

We are going to create Partner profile by using transaction BD64 & BD82.
332.

In which scenario I dont require to create a Distribution Modules?

Whenever we using Function Module MASTER_IDOC_DISTRIBUTE Directly, we dont required to


create Distribution Modules .

333.

If I use a Function module MASTER_IDOC_DISTRIBUTE , can I going to crate Distribution


Modules?
No need to create Distribution modules.

334.

What is the purpose of the MASTER_IDOC_DISTRIBUTE?

Which is used to collect database from IDOC.


335.

Have you created any custom IDOC? What are the steps to create custom IDOC?

1. WE31: Creation of segments (ZFBS1_HDR, ZFBS1_DET).


2. WE30: Creation of IDOC type (ZFBS1_IDOC_TY).
3. WE81: Create message type (ZMGFGS1).
4. WE82: Assign message type (ZMGFGS1) to IDOC type (ZFBS1_IDOC_TY).
5. SE80: Creation of function group (ZFG_IDOC).
6. SE37: Creation of 'Z' function module (ZFM_ACCRUAL_POST).
7. WE57: Assign IDOC (ZFBS1_IDOC_TY) to function module (ZFM_ACCRUAL_POST).
8. BD51: Create an entry for function module (ZFM_ACCRUAL_POST).
9. WE42: Create inbound process code (ZFBS1POST).
10. BD54: Create logical system (CIDCLNT200).
11. SM59: Create RFC destination.
12. WE20: Create partner profile.
13. WE19: Test tool for IDOC.
85

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

336.

Have you create any outbound IDOC? What are the steps to create custom outbound IDOC?

337.

What is a Message type?

A message represents a specific type of document that is transmitted between two partners
Ex: Orders, orders responses, invoices etc
An IDOC type can be associated with many message types
Also a message type can be associated with different IDOC types. Transaction WE81.
338.

What is an IDOC type? What is a Basic type?

IDOC is a container, which is used to carrying the Data from one system to another system.
IDOC type is a Template.

339.

What is a segment?

Segment is nothing but a Structure and Combination of different fields. We are going to create
segment name by using transaction WE31. Segment name always starts with Z or Y. the maximum
length of segment name is 8 Characters.

340.

What is the different between Segment type and segment Definition?

Segment type is Version Independent, while Segment Definition is Version Dependent.


Every segment consist of a segment Definition, while every segment definition consist of multiple
Definition versions.
341.

Have you done IDOC extension? What are the steps to create IDOC Extension?

1)
Go to transaction WE31
Here will create the segments for extend our idocs.
Example: 'ZDUMMY'
-> Write a short description and field name.
-> Data element = CHAR1 (will create a new field in the idoc with 1 character extension)
-> Save (developer permissions needed)
2)
Go to transaction WE30.
86

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

-> At development object select 'extension'


-> Write a name for object name (8 char extension). For MATMAS IDOC extension i create ZMATEX01.
Click on 'create' button.
-> Now we will select the IDOC link. Select 'create new', and link to a basic type (MATMAS05 in our
example). Don't forget to write a description (will be usefull in the future for identificate
correspondances).
-> Select IDOC substructure where wich will be extended. Click on header and 'create segment' (you can
paste from clipboard with 'insert' button).
-> Select ZDUMMY segment created before.
-> Save and fill package and transport order for this modification.
-> Release segment from toolbar (Utilities)
<b>/nWE82</b>
Add Message Type (MATMAS), Basic Type (MATMAS05), Extension (ZMATEX01) and Release.

342.

Where we can create Conversion Groups? Steps to create Conversion Groups?

BD62 create conversion rules,


BD55 Assign Conversion rules,
BD79 Conversion Adjustments.

343.

Difference between Chang pointers and Change Documents (change tasks)?

344.

What are the steps to create change pointers?


What are the tables for store Change pointer data?

345.

Change pointers data is going to store or collecting into BDCP (Change pointer) and BDCPS (Change
pointer: Status) tables.
346.

What is transaction code for create Filters?

BD64.

347.

How your going to test an Inbound IDOC?

For IDOC Testing:


WE19 Test tool
WE12 IDoc test: Inb. Proc of Outb. File
WE16 IDoc test: Inbound File
WE17 IDoc test: Inbound status report

87

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

If you want to Reprocess IDOCS


BD87 Process inbound IDocs
BD88 Process outbound IDocs
Or
You can test the IDOC using IDOC test tool.
just follow the steps above.
1. Go to transaction WE19.
2. Enter the IDOC number you want to test.
3. Go to menu IDOC->test inbound IDOC->standard inbound
4. one popup screen come get the "FUCTION NAME" to test the IDOC.
5. Click on "INBOUND FUNCTION MODULE" button.
6. Enter function module name.
7. Click on CALL IN DEBUGGING MODE check box and choose foreground mode.
and choose yes choice to run it.

348.

Transaction code for Re-processing the failed IDOC?

We are going to use transaction BD87 for Re-processing the failed IDOCs.

349.

If IDOC is successfully released? What status message will getting?

When IDOC is Successfully released, we will getting IDOC status message no 51.
We can seen all status messages by using transaction WE47.

350.

Which scenario we will getting IDOC status message no 56?

When IDOC with errors added, we will getting IDOC status message no 56.

351.

Which scenario we will getting IDOC status message no 60?

When Error during syntax check of IDOC (inbound), we will getting IDOC message no 60.

352.

Which scenario we will getting IDOC status message as 63?

When Error passing IDOC to application, we will getting IDOC message no 63.

353.

Which scenario we will getting IDOC status message as 69?

When IDOC was edited, we will getting IDOC message no 69.


354.

What is an IDOC?
88

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

IDOC is nothing but a combination of Segments.


355.

What are the 3 types of Records consist of IDOC?

We have three types of Records available in IDOCs, there are:


a. Control Record - Storing in EDIDC table ,
b. Data Record
- Storing in EDID4 table,
c. Status Record
-Storing in EDIDS table.
356.

How do I debug an outbound IDOC?

Go to WE41 to get process code for your message type . Then double click it and it will show the
function module attached to it .
Put break point in it and then debug....

357.

What are the steps for processing an outbound IDOC for transactional data?
1.Application document is created.
2. IDOC is generated
3.Idoc is transferred from SAP to Operating system layer
4.Idoc is converted into EDI standards
5.Edi document is transmitted to the business partner
6.The Edi Subsystem report status to SAP.

358.

What is the purpose of message control in ALE-IDOCs?

Message type: A message type represents the application message exchanged between R/3
systems and R/3 and an external system. A message type characterizes the data sent across systems
and relates to the structure of the data called an IDOC type (see below). For example, MATMAS is a
message type for Material Master, and INVOIC is a message type for an Invoice (Billing Document).
ALE supports over 200 message types in R/3 and about 200 application areas.

359.

Have you worked on IDOC civilization?

No.

360.

Have you done any ALE configuration? What are the steps for create ALE configuration?

1. Creating users for ALE Transfer


2. Creating Logical system and assign the client
3. Creating the RFC
89

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

4. Configuring Distribution Model


5. Configuring and checking the port
6. Configuring and checking the partner profile
7. Creating the message type
361.

What is a Logical system?

Logical system is used to identify an individual client in a system, for ALE communication between SAP
systems .
When data is distributed between different systems, each system within a network has to be clearly
identifiable. The logical system deals with this issue.
A logical system is an application system in which the applications work together on a common data
basis. In SAP terms, the logical system is a client.
Since the logical system name is used to identify a system uniquely within the network, two systems
cannot have the same name if they are connected to each other as BW systems or as source systems,
362.

Steps for processing an outbound IDOC?


1. Application document is created.
2. IDOC is generated
3.Idoc is transferred from SAP to Operating system layer
4.Idoc is converted into EDI standards
5.Edi document is transmitted to the business partner
6.The Edi Subsystem report status to SAP

363.

Steps for processing an Inbound IDOC?

1.EDI transmission received


2.EDI document is converted into an IDOC
3.IDOC is transferred to the SAP layer
4.The application document is created
5.The application document can be viewed.

364.
365.

For which IDOC will you worked on?


I have huge volume of data, which one I prefer File operation or IDOC? For why?

90

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

General Questions
1. Various types of requests we have in SAP?
We have 4 types of Requests available in SAP, there are:
1. Customizing request,
2. Workbench request,
3. Transport of copies and
4. Relocations.
2. What is Workbench request?
All ABAP related or Program related changes are going to saved into Workbench request.
3. What is Customizing request?
All Functional related changes are going to saved into Workbench request.

4. What is the Difference between Workbench and Customizing request?


The Transport Organizer maintains Change Requests. These requests record the changes made to the
repository and customizing objects. Based on that objects changed they are
1)Workbench Request and 2) Customizing Request.

91

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Workbench Requests are those that involve changes to cross-client Customizing and Repository Objects.
The objects are independent of the client. Hence the requests are used for transferring and transporting
changed Repository objects and changed system settings from cross-client tables.
Customizing Requests involve changes recorded to client-specific Customizing objects .These client
specific requests are used for copying and transporting changed system settings from client-specific
tables.
5. What is the Difference between Transport of copies and Relocations request?
1. Transports of copies
You can use this request type to transport objects to a specified SAP System.
The objects are transported with the version they have in the current SAP System. The original
location of the objects remains unchanged. There is no delivery to another SAP System.

2. Relocations without package change


You can use this request type if you want to develop objects in another SAP System on a
temporary basis. For example, you may want to make special developments in a separate SAP
System so as not to interfere with the development process.
A relocation without package change basically offers the same functions as a transport of copies.
This request type allows you to move the original location of objects to the target system.
3. Relocations with package change
You can use this request type when you want to change the development system of individual
objects on a permanent basis.
6. How do you find a request number of my program or any object?
We are going to use transaction SE03 for Find Request number of an Object.
7. How to move a Program From one Package ( or $TMP) to another package?
There is a standard program available in SAP, that is RSWBO052 .
8. How to Transport a request number from Development to Quality?
Using transport organizer (SE09 or SE10) for Release a Request from Development to Quality
systems.
92

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

(Or)
We are going to use transaction STMS (Transport Management System) for release request directly.
9. Types of statuss of Request number ?
In SAP we have two types of statuss of Request number:
2. Released status

There are : 1. Modifiable status , and

10. What is task number?


In every object number having multiple task numbers, if you want to transport it first release task
numbers then release object number from development to quality systems.
11. What is version management?
Every program generates a version. In this program in every changes to be generates a new
version. To display every version of change program code and compare old version program from new
version program change. Its version management helps to save temporary version of code.

12. How to assign Tasks from one object to another object?


Go to SE09 -> Check your request type and click Display -> Place the Cursor on your task -> Go to
Utility -> Reorganize -> Reassign task and enter your target Request number -> Ok.
13. How do I know assign the Field-Symbol field value?
We are using the command: IF <FS> IS ASSIGN or NOT ASSIGN.
ENDIF.
14. How do I know Field value? Assign or Not?
We are using the command: IF GV_NAME IS INITIAL or NOT INITIAL.
ENDIF.
15. How do I know Subroutine Form available or Not?
We are using the command: IF GET_DATA IS FOUND or NOT FOUND.
ENDIF.
16. When you create an object, how do I know object is created (assign)or Not?
93

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

We are using the command: IF OBJ1 IS BOUND or NOT BOUND.


ENDIF.
17. In Function Module or Sub-routine, how do I know Value passed or Not?
We are using the command: IF Field IS SUPPLIED or NOT SUPPLIED.
ENDIF.
18. What is the purpose of EXIT command?
EXIT command is used to Block or STOP the processing block.
Ex: we are using EXIT command within Loop Endloop, within Sub-routine, within Function module
and within a Program.

19. When I use EXIT command within the SATRT-OF-SELECTION event in my processing block, what
happen?
Come out from the program.
20. How do I handle SY-SUBRC in Function module?
We are going to handle Function module SY-SUBRC value through EXCEPTIONS.
21. In Sub-Routines or In Function modules, why TABLES statement not recommended?
TABLES parameter is outdated, because of TABLES parameters are always Pass by Reference.
In OO-ABAP is not supported TABLES parameter because of TABLE having with header line.
22. Different between Call transaction and Leave transaction?
in case of call transaction,
both calling and called screen will be active. if u come back to the calling screen back, it will be
available.
in case of leave to transaction,
calling screen will be quited and called screen will be active. If u want to come back to the main
screen, you cant.
CALL TRANSACTION statement.
Ex: CALL TRANSACTION <transaction code>.
23. Different between SUBMIT and SUBMIT AND RETURN?
94

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

In ABAP, you can link programs together by using SUBMIT statement .

a.

A report program can call another report program or an online program.

b.

An online program can call another online program or a report program.

For example:
Whenever we use SUBMIT command for only call or Link a report program to another program.
Whenever we use SUBMIT AND RETURN command, execute the called program and come back to
Source program.
Difference: The SUBMIT statement accesses an executable program. The executable program is
executed as described under Calling Executable Reports. if we use return statement it will come back to
the executable program once again.

The syntax is :
SUBMIT <program> AND RETURN [options].
Ex: SUBMIT ZTEST_PROG_2

(for call external program)

AND RETURN

(execute and return)

WITH P2 = P1

(assign parameter value)

Or WITH S_VBELN_2 IN S_VBELN_1 (assign select-options value)


VIA SELECTION-SCREEN.

(display called program selection screen).

24. What is transaction for create transaction code?


SE93 Transaction for Create transaction code.
25. What is transaction for SQL trace?
ST05 Transaction for Create transaction code.
26. What is the purpose of File Transaction?
95

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

File transaction is used to create a Logical File Path.


27. How to upload an Excel File data into an Internal table?
We are going to use ALSM_EXCEL_TO_INTERNAL_TABLE Function module for upload the Excel file
data into an Internal table.
28. How to Download an Internal table data into an Excel File?
We are going to use GUI_DOWNLOAD Function module for Download an Internal table data into an
Excel File.
29. What is the syntax for use Application server file data into an Internal table?
We are going to use OPEN DATA SET, READ DATA SET and CLOSE DATA SET statements for brows
the Application server File data into an Internal table. The Syntax is:
OPEN DATA SET P_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
TRANSFER ST_TAB TO P_FILE.
CLOSE DATA SET P_FILE.
(OR)
OPEN DATA SET P_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT
READ DATA SET P_FILE.
CLOSE DATA SET P_FILE.

we can use transaction code of Module pool program.


30. What are the Memory types in SAP?

In SAP we have two type of memories available , there are :


1. SAP Memory
2. ABAP Memory
The EXPORT/IMPORT statements use ABAP memory; the SET/GET statements use SAP memory
31. How to use SET and GET PARAMETER statement?
96

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

SET and GET PARAMETERS are used for SEND data to SAP memory and RETRIVE the data from
SAP memory.
Ex for SET PARAMETER syntax:
SET PARAMTER ID aun FIELD S_VBELN-LOW.
Ex for GET PARAMETER Syntax:
GET PARAMETER ID aun FIELD S_VBELN-LOW.
32. How to use IMPORT and EXPORT statements?
EXPORT and IMPORT parameters are used for EXPORTING data into ABAP memory and
IMPORTING data from ABAP memory.
Ex for EXPORTING PARMETER syntax:
EXPORT P1 TO MEMORY ID test. [test memory name].
Ex for IMPORTING PARAMETERS syntax:
IMPORT P1 FROM MEMORY ID test FREE MEMEORY ID test.
33. How to Analyze and Test methods of ABAP code?
When coding of a program is complete, it is useful to analyze its performance, and test it.
The Program Extended Syntax Check, Runtime Analysis and SQL Trace are SAP provided analysis
tools, that review the performance of the code in greater depth. It is not likely every piece of code will
require the use of all of these tools.
Testing of code in a IBM project environment requires execution of a Unit Test Plan. SAP has
provided the CATT (Computer Aided Test Tool) for testing purposes.
34. How you perform Extended syntax check?
The Program Extended Syntax check is the simplest and least CPU-intensive analysis tool.
It can be found from ABAP Editor by following the menu path:
a.

Program-> Check->Extended prog.

b.

Check from the Repository Browser by following the menu path: Development
Object-> Check ->Extended program check

c.

OR run transaction SLIN.

97

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

35. How you perform Runtime analysis?


The Runtime Analysis Tool lets you analyze the performance of any transaction or program
created in the ABAP Workbench in more detail.
The inefficient coding that is detected can result from:
a. Overuse/unnecessary calling of subroutines or function modules
b. CPU-intensive programming functions
c. User programmed functions that could be replaced by existing ABAP statements
inefficient/unnecessary database accesses

Use transaction SE30 for ABAP runtime analysis and transaction ST05 for performance
analysis.

36. How you perform SQL trace?

You can use the SQL Trace tool to examine the database interfaces of reports and transactions in
two different ways:

98

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

The trace can be turned on to monitor all activity one particular user has with the
data base.

It can be used to explain one request

This will bring you to transaction ST05.

37. What is the CATT? How to perform it?


The Computer Aided Test Tool (CATT) is fully integrated into the ABAP/4 Development
Workbench. It allows you to assemble and automate business processes in test procedures.
These CATT is performed by the Transaction SCAT.

USER MESSAGES
38. What is the USER MESSAGE?
User messages are an excellent method of communicating with the user in an interactive program.
This applies to selection screens as well as full-fledged interactive reports and online (module pool)
programs (covered in later sections).
Normally, messages are displayed on the message line at the bottom of the screen. The only
exceptions are abend messages which terminate the program and information messages which are
displayed in a dialog box.
39. What is the system table for stored User Messages?
User messages are stored in the system table T100. They are classified by language, a 20 character
message class (used to group messages by application area), and a three-character message number.
40. What is the Message class? How to create it?
Message class is a container of the Multiple messages with message numbers. These Message class
was creates by transaction SE91.
Each Message class having Max. 1000 messages. The message numbers Range between 000-999.

41. How many types of Messages available in SAP?


99

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

In SAP we have Six types of Messages are categorized , there are:


1.
2.
3.
4.
5.
6.

A
I
E
S
W
X

- ABEND (outdated)
- INFORMATION
- ERROR
- STATUS
- WARNING
- RUNTIME ERROR

Generally in real time we have using only I, E, S, W messages.

ERP-SAP OVERVIEW
100

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

1. What is MRP?
Materials Requirement Planning (MRP-I) began as a technique for developing enterprise-wide
business solutions by providing automated tools for forecasting demands and planning according to the
forecast .

2. What is ERP?
ERP is not just a softwarebut a complete business solution integrated across the entire value chain
which creates an information infrastructure for efficient planning and effective execution.
ERP is directly proportional to Quality of output,
Quality of output is directly proportional to the shape of the Organization,
Shape of the Organization is directly proportional to the Earning of the company.
3. Different types of ERPs?
SAP, BAAN, JD Edwards, Oracle Financials, Siebel, PeopleSoft.
Among all the ERPs most of the companies are Implemented or Trying to implement SAP because
of Number of advantages than other ERP packages.
Some major ERP vendors are : SAP R/3, Oracle and BAAN.
4. What is SAP?
SAP is the name of the company founded in 1972 under the German name Systems , Applications
and Products in Data Processing . SAP is the Leading ERP software package.

5. When was SAP AG founded?


SAP AG is a German company founded in 1972 with Five former IBM Employees. Their vision: to
develop standard application software for real-time business processing.
Market Leader in Industrial Enterprise Application (IEA) About 56% market share in the ERP market,
Serving more than 2,38,000 customers in 188 countries, SAP is the world's largest business software
company and the world's third-largest independent software provider overall.
Today, SAP employs more than 65,500 people in more than 130 countries.

101

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

6. What are the 3 layers of the SAP R/3 ?


"R" stands for real-time data processing.
SAP R/3 is known as SAP 3 Tier Architecture. These SAP R/3 architecture having three Layers there
are a. The Database Layer, b. The Application Server, and c. The Presentation System
7. What is the Database Layer?
Those SAP R/3 software components that specialized in the Management, Storage and Retrieval
the data from Database layer.
8. What is the Application Layer?
Those SAP R/3 Software components that specialized in Processing Business Applications and from
the Application layer.
These application Server is connecting with various Presentation systems as well as a Database,
Application server basically containing three parts:
a. Dispatcher,
b. Work processer,
c. Roll area.

9. What is the Presentation Layer?


Those SAP R/3 software components that specialized in Interacting with End-users from the
Presentation layer.

102

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

10. What is Dispatcher?


Dispatcher is one of the part of the Application layer, the purpose of the Dispatcher is receive the
request from the presentation systems and Assign the request to the related work processer, its
Dispatcher works on First in First out basis.
11. What is Work Processes?

In SAP R/3 architecture Application layer having 7 types of Work Processes, there are:
1. Dialogue work processes
2. Update work processes
3. Enqueue work processes
4. Background work processes
5. Spool work processes
6. Gateway work processes
7. Message work processes.

12. What is Roll area?


103

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Roll area is a one of the part of Application layer in SAP R/3 architecture, these Roll area is allocates
some memory need to have a system like RAM.
13. What is the NetWeaver?
NetWeaver is a vision of total integration of People, Information, Business Process and Applications.
14. What result can be expected from ERP software?

Reduced working capital requirements

Improved customer service

Improved direct labor productivity

Reduced purchase costs

Reduced obsolescence

Reduced overtime

Having the figures to make decisions

Having accountability throughout the organization

Improved quality of life

15. What is the SAP R/3 Overview?


SAP earlier divided into two major modules there are: 1. Technical modules and 2. Functional
modules.

16. What are the Technical modules in SAP R/3?


SAP R/3 is divided into two technical modules, there are :
1. BASIS (Business Application Systems Integrated Solutions)
2. ABAP (Advanced Business Application Programming language).

17. What are the Functional modules in SAP R/3?


104

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

SAP was earlier divided into different Functional modules like Materials Management (MM), Sales &
Distribution (SD), FI (Financial Accounting), CO (Controlling), HR (Human Resources), PP (Product
Planning), PM (Plant Maintenance), PS (Project Systems) etc.
18. What is Integration in SAP?
All business processes throughout the supply chain are INTEGRATED & executed on a common
system sharing all information

19. What is Customization?


The adaptation of application software to customer-specific needs is accomplished in two ways :
1. Coding:
Programming customer-specific code that replaces or complements components of the application
2. Configuration:
105

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Rendering the application appropriate to a specific customer by specifying data on which the
application operates.
20. What is ABAP Programming?

SAP R/3 applications are written in the ABAP programming language, and run within the
application layer of the R/3 System.

ABAP programs communicate with the database management system of the central relational
database (RDBMS), and with the graphical user interface (SAPGUI) at presentation level.

21. Why do we need ABAP Development?


We need ABAP Development Applications or Objects will helpful for End-users for Easily access data
from Database and Reduce risk or effort of End-users. These Applications was developed by ABAP
Developers for the Client or customer requirements.

22. What is SAP Landscape model?


In SAP Landscape model we have Develop some Business Applications in 3 stage process:

1. Development
2.

Quality and

3. Production
Some times SAP Landscape model completes in 4 stages:
1. Development
106

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

2. Quality
3. Pre-production and
4. Production.

23. What are the types of SAP Projects?


Generally in SAP we have 4 types of Projects:
1. Implementation project,
2. Support project,
3. Upgrade project,
4. Roll-out project.

24. Which methodology we use in SAP Implementation stage?


First we customizing the SAP Software for our Business requirement s within the Implementation
project.
These implementation stage we having using some process or Methodology, that is called as ASAP
methodology.
ASAP stands for Accelerated SAP methodology.
25. What are the Stages of ASAP methodology?
In Accelerated methodology we have 7 stages in Implementation process. There are:
1. Blueprint preparation
2. Analysis
3. Build stage or Development
4. Integration testing
5. Regression testing
6. Go-Live or Deploy
7. Post production support
107

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

26. What is the Blueprint preparation?

Developing some Documents at the stage of Implementation of a project, this is the first
stage of ASAP methodology ,
Preparing some Documents in this stage: those are 1. Coding standards Document, 2.
Naming standards Documents and 3. Landscape model Documents.
Preparing some Development Request (DRs) in Blueprint preparation.
Its Blueprint preparation process completes within a 2-3 months time.
Each Development request (DRs) having Some Request Code or Task Number .

27. What is the Analysis test stage?


Analysis test is one of the ASAP methodology Stage in SAP implementation project.
In this Analysis test stage Functional team prepared some Functional Specs (FSs) and Functional
Documents (FDs) and Technical team Developed some Technical specs (TSs) and Technical Documents
(TDs) basing on FSs and FDs.
Every project runs with Onsite or Offshore projects.
28. What is the Build stage or Development stage?
Build stage or Development is one of most important part of Implementation project, here enter
ABAP Developer into a project and Analyzing the Technical specs and Developing the Business
requirement Applications.
29. What are the Roles and Responsibilities of ABAPers?
Every ABAP developer having some Roles and Responsibilities, there are :
1. Development,
2. Review the code,
3. Testing (Unit testing)
4. Prepare UTP (Unit Test Plan) Document .

108

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

30. What is integration testing?


Once completed a Development program send from Development system to Quality systems.
Its Quality system received Development Program code testing is known as integration testing.
This integration testing if you have going to rise some issues are detected. These issues are divided
2 types there are: 1. Defects, and 2. CRs (Change requests).
31. What is the difference between Defect and CRs?
In integration testing we have raise some issue basing on Code defects or Programmatically errors
is known as DEFECTS.
And if u want any additional changes or add some functionality of your program the Quality or
Testing team raise a issue called as CHANGE REQUESTs (CRs).

32. What is Regression test?


Regression test is known as User Acceptance Test (UAT). Here accept your development or if any
CRs found Send back for Development.
33. What is Go-Live or Diploy?
Go-Live stage of implementation we have 2 steps:
1. Cut over activities (Stop all work activity)
2. Dress rehearsal

34. What is Roll out projects?


Already once successfully implemented SAP Projects are Copied or Reuse for same Enterprise is
known as Roll-out projects.

35. What is Upgrade project?


Already successfully implemented SAP project converting from SAP old version to SAP new version
is known as Upgrade projects, these are using some new patches.
36. Why do you usually choose to Implement SAP?
109

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

There are number of technical reasons and number of companies are planning to implement SAP.
Its highly configurable , highly secure data handling, Minimum data redundancy & Maximum data
consistency and you can capitalize on economic of sale like purchasing, tight integration cross
function.

SAP CLIENT OVERVIEW


37. What is client in SAP R/3?
A client is a logical portion of an SAP R/3 physical database. From a business standpoint, a client can
be interpreted as a logical group of companies. Ex: 800, 810, 900 etc.
All customizing (configuration) and development (ABAP) work in SAP R/3 is performed in a
client. However, the data from both customizing and development work may be stored within an
individual client (client dependent data) or among all clients (client independent data) in the system.

38. What is the difference between Client-Dependent and Client-Independent?


The data in each client may be separate from that of the other clients. There are basically
two types of data in an SAP R/3 System. Client-dependent and client-independent data.
Client-dependent data is defined as data specific to an individual client.
Ex: Some examples of client-dependent data include number ranges, ABAP variants, and user
masters as well as the data that is created or updated through SAP R/3 transactions (transaction
data).
Client-independent data can be defined as data contained across all clients in the system.
110

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Ex: Examples of client-independent data include data dictionary objects (tables, views), ABAP
source code, screens, and menus.
All data resides in tables. To determine if a particular table is client-dependent or client-independent,
the table structure needs to be reviewed. The table structure can be viewed by the data dictionary
(SE11). If MANDT (client in German) is the first key field of the table, then the table is client-dependent;
otherwise, the table is client-independent.
For example, the TSTC table is client-independent; however, the USR01 table is client-dependent.
As shown in the above diagram, every SAP R/3 system contains the three clients 000, 001, and 066.
Lets review these clients and examine what they contain.

39. What are the default clients or standard clients in SAP?


During a standard install of the SAP R/3 system, clients 000, 001, and 066 are set-up and
provided.
These clients provide different features and must not be deleted.

Client 000 performs special functions. In particular, it is given extended functionality during
upgrades.

Client 001 is basically a copy of 000 and can be used as a basis for a new customizing client.
Client 066 is a special client which is provided for operational system monitoring. It is used by
SAP R/3s Early Watch Service to provide performance recommendations.

40. What is IDES?


IDES stands for International Demonstration Education System. IDES is a sample application
provided for faster learning and Implementation. Value range of clients are 000-999.
Ex: 800, 810, 811.etc.

111

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

SAP NAVIGATION

41. What are the standard options of menu bar in every screen of SAP?
112

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

In Menu bar that are always available from every screen in the R/3 System:

System: This menu contains functions that affect the system as a whole, such as the
Create Session, End Session, User Profile, or Log Off options.

Help: The Help menu contains functions for accessing various forms of
online support.

42. On Standard tool bar Which icons are always available in every screen of SAP R/3 system?
In SAP R/3 system Standard toolbar we have always available Icons are Help icon and Layout menu
icon.
43. How many helps we have in SAP?

We have 2 types of help options in SAP, there are:


1. F1 help or Document help and,
2. F4 help or Value help.

44. What is Search Help?


A Search Help is a search tool to help you find data in the SAP R/3 system.
Sometimes it may be easier to use a Search Help for search purposes. Place your cursor in the
desired field and enter the desired search parameter.
For this example, you want to find all the personnel numbers in the system with a last name
beginning with S.
1. Click on the

icon at the end of the Personnel number field and then enter S* in the last

name field and the names will be retrieved once the

icon is clicked.

2. You can also activate the Search Helps by placing the cursor in the field and hitting the F4 key.

45. How many sessions can you open at a time?

113

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

You can create a session at any time and from any screen in the system; you will not lose any data in
sessions that are already open.
You can create up to 6 sessions.
1. Choose System Create Session from the menu bar.

46. What are the Screen elements in SAP R/3 system?


In SAP we have four types of toolbars, there are:
1. Menu bar (Max 8 options include 2 fixed options: system, help).
2. Standard toolbar (having Fixed options)
3. Title bar
4. Application toolbar (having Max 35 options)
5. Status bar

47. How to access Development screens from SAP Easy access screen?
We access SAP Development screens by using Transaction codes either SAP menu path.
48. What is the Maximum length of your Program name?
Any ABAP Program name starts with Z or Y, and the maximum length of Program name is 40
characters only. Not taken any Space of your program name.
114

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

49. What is ABAP Language?


ABAP is a programming language created and used by SAP for the Development of Application
programs including:

Reports

Module Pool Programming

Interfaces

Data conversions

User Exits & BADI

ABAP is a 4th generation language in SAP because its called as ABAP/4.


All of SAP R/3s applications and even parts of its basis system were developed in ABAP.
ABAP is an event-driven programming language. User actions and system events control the
execution of an application.
50. What is ABAP workbench?
The ABAP Workbench is used by SAP for the development of standard and custom application
software. The ABAP Workbench is also used to create dictionary objects.
51. What are the different parts in ABAP workbench?
ABAP workbench consists of the following components:

ABAP Editor is used to maintain programs.

ABAP Dictionary is used to maintain Dictionary objects.

Repository Browser is used to display a hierarchical structure of the components in a


package.

Menu Painter is used to develop graphical user interfaces, including menu bars and toolbars.

Screen Painter is used to maintain screen components for an online program.

Repository Information System contains information about development and runtime


objects, such as data models, dictionary types and table structures, programs, and functions.

Test and Analysis Tools, such as the Syntax Check and the Debugger.

Function Builder, which allows you to create and maintain function groups and function
modules.
115
SAP ABAP Interview Questions
E-mail: rameshkumaar.abap@gmail.com

Data Modeler, a tool which supports graphical modeling.

Workbench Organizer, which maintains multiple development projects and manages their
distribution.

52. What is the Report ? types of reports?


Report programs produce lists and can be divided into Conventional reports and Interactive reports.
53. What is the basic difference between conventional report and interactive report?
Conventional reports do not allows to interaction by the users, interactive reports can do.
Conventional reports do not allow interaction by the user; therefore, the basic list contains
extensive information that the user must often sort through to find the relevant data.
Interactive reports allow interaction by the user; therefore, the user can produce secondary,
detailed lists off of the basic list by choosing the relevant data and requesting more information
54. What is On-line programming or module pool programming?
Module pool programming (or online programming) involves the creation of a module pool (a
collection of ABAP modules) and one or more screens. The modules are called by the screen processor
during program execution.
55. What are the types of ABAP programs or Terms of ABAP programs?

Below is a list of common ABAP program terms.

Program A series of ABAP statements

Report An ABAP program whose output is a list

Module Pool A dialog program which is a collection of screens

List The output generated by an ABAP report program

56. What is Package in SAP?

116

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

Package was stores all object related elements like Program, Tables, Structures, Screens etc. its
not Folder , its transport purpose only. Every object saved in a package it will generate a request
number for transport purpose.
Every package will be created by the transaction SE21.
57. How to move a local object request number into a Package?
Use a standard program RSWBO052 for transport object from Local object to a Package.
58. What is Request Number and types of requests?
Every object saved in a package it will generate a request number for transport purpose.
In SAP we have 2 types of Requests:
There are: 1. Workbench request number, 2. Customizing request number.
59. What is Workbench Request Number?

All ABAP related objects or changes are saved into as Workbench Request Number.

60. What is Customizing request number?

All Function (Customizing) related changes are saved into as Customizing Request Number.

61. How to Transport a request number from Development to Quality?


Using transport organizer (SE09 or SE10) for Release a Request from Development to Quality
systems.
62. Types of statuss of Request number ?
In SAP we have two types of statuss of Request number:
2. Released status

There are : 1. Modifiable status , and

63. What is task number?


In every object number having multiple task numbers, if you want to transport it first release task
numbers then release object number from development to quality systems.
117

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

64. What is version management?


Every program generates a version. In this program in every changes to be generates a new
version. To display every version of change program code and compare old version program from new
version program change. Its version management helps to save temporary version of code.

118

SAP ABAP Interview Questions


E-mail: rameshkumaar.abap@gmail.com

You might also like