SAP ABAP Interview Questions and Answers
SAP ABAP Interview Questions and Answers
To access DDIC (Data Dictionary) objects we will use transaction code SE11,
below mentions objects are some DDIC objects.
Tables: It is the first object of DDIC, Tables are defined in DDIC where we store
our data. To identify own custom table in SAP naming must start with Y & Z.
2.Data Type: Data type is another object of DDIC which has following objects:
Data Element: Data element contain Domain and field label of fields;
Parameters ID is also contain by data element in the further characteristics tab.
Help View: Help view is used to provide multiple possible entries in selection
method of elementary search help by combining multiple tables.
Projection View: Projection view is used to only hide the unwanted fields
from a table and create a new view to use only selected fields.
5.Lock Object: Lock object is used to lock the particular object which is using
by multiple users to avoid parallel access. Transaction code SM12 is used to
see the all locked objects list, here you can delete the locked object.
To know about TMG (Table Maintenance Generator) please click on below link.
What is TMG?
7.) What is the difference between value table and check table?
The major difference between check table and value table is check table is
defined using foreign key concepts and value table is define to use in search
help. Value table defined in domain level. Check table can be used to retrieve
data from table in a program but value table can’t be used in program.
Search help is another object of DDIC, search help created to provide all
possible entries of to the input parameters or input field as a search help.
Search help can be defined in two types.
STEP2). Select the radio button of Search Help and enter the Search
Help name which you want to create and click on Create Button.
STEP3). Create Search Help dialogue box will open here select which
search help you want to create Elementary Search Help or Collective
Search Help.
STEP4). Dictionary Change search help window will open here enter Short
Description of your search help then in Definition tab enter table name
or view name from where you want to search data in selection method.
STEP5). In Parameter area enter search help parameter choose the Import
and Export Check box then enter the Lpos and Spos.
To know the steps how to create search help please click on below link.
Transparent tables
Pooled Tables
Cluster Tables
1. Transparent tables : Transparent tables has one to one relation in the table
definition in database. transparent table is used to store application data
which represent master and transactional data used by the application for
example master data of vendors stores in vendor master and customer data of
customer stores in customer master.
2. Pooled Tables : Pooled table has many to one relationship, Pooled table
has only primary index we can’t create secondary index in pooled
table. Pooled tables can be used to store control data screen sequences,
program parameters or temporary data. Several pooled tables can be
combined to form a table pool. The table pool corresponds to a physical table
of the database in which all the records of the allocated pooled tables are
stored.
For example : T040, T040A, B006, B007, B008, T001E – company code
depended address data.
3. Cluster Tables : Cluster tables has many to one relationship like pooled
table, In cluster table has only primary index like pooled table. Cluster table
has used when the constituent tables have a common primary key, the data
from these common primary key fields can be accessed simultaneously.
Cluster Table (BSEG, KONV, BSEC).
STEP2). Select the radio button Database Table and enter the table name
for which you want to create TMG and click on change button.
Include Structure is used to add fields in our table or enhance the tables, It is
only used for standard table. Include structure can add multiple table.
Data element contain Domain and field label of fields; Parameters ID is also
contain by data element in the further characteristics tab.
DD01L Domains
DD03P Structure
In SAP if we are using Currency type field in our table then we must assign the
currency field and currency key to that particular field, The data type of that
currency field is “CURR” and the currency key is “CUKY”.
18.) What is the data type of Quantity Field and Quantity Key?
In SAP if we are using quantity type field in our table then we must assign the
quantity field and quantity key to that particular field, The data type of that
quantity field is “QUAN” and the quantity key is “QUAN”.
Hotkey is the term refer in case of search help, Hotkey is used to select the
elementary search help from the collective search help.
Lpos and Spos is the position to coordinate with field is defined via Lpos ans
Spos.
Lpos: Lpos stands for list position of fields in search help results hit list.
Spos: Spos stands for selection position of fields in selection screen from
where we will select the value for search help.
21.) Hot to identify client dependent and client independent tables in SAP?
Client dependent tables first field must be MANDT field which is client name.
Client independent tables don’t have MANDT field.
Key fields in tables not allow to system any duplicate entry of key field in table.
Key field has unique entries in table. to create a key field we have to click on
key check box .
Non Key fields are fields where key check box is unchecked.
Initial value check box is defined for field where we don’t want blank value in
field. If the initial value check box is checked for a field that define user must
have to enter specific value on the field you can’t remain blank it.
24.) Can we create the custom transaction code for table maintenance?
Yes we can create the custom transaction code for table maintenance by using
transaction code SE93 and enter the view name and update keyword in
Default values and enter the SM30 in transaction code.
Data Class is used to specify the type of table, data class contains 6 entries.
27.) Name the function for custom search help in ABAP Program.
STEP2). Select Database Table radio button and enter the table name
then click on create button.
STEP3). Enter short description then fill delivery class and Data
browser and table maintenance in Delivery and Maintenance tab.
STEP4). Enter field name and data type or data element of fields in
Field tab.
STEP5.) Click on Technical Setting button fill data class and size
category in general properties tab of Technical setting.
To know more about How to Create SAP Tables in SAP ABAP click on below
mention link.
I Integer
C Character
F Floating
X Hexadecimal
DDIC
32). can a transparent table exist in data dictionary but not in the database
physically?
“F4IF_INT_TABLE_VALUE_REQUEST”