Académique Documents
Professionnel Documents
Culture Documents
itsabaper.blogspot.com/2014/06/sap-abap-all-question.html
DATA DICTIONARY
1/33
pool. The table pool corresponds to a physical table on the
database in which all the records of the allocated pooled
tables are stored.
4/33
What is the significance of Technical settings (specified while
creating a table in the data dictionary) ?
By specifying technical settings we can control how database
tables are created in the database. The technical settings
allows us to - optimize storage space requiremnets
- table access behaviour
- buffering required
- changes to entries logged
What are the two ways for restricting the value range for a
domain?
- By specifying fixed values.
- By stipulating a value table.
Can we define our own Match Code ID's for SAP Matchcodes
?
Yes, the numbers 0 to 9 are reserved for us to create our own
Match Code IDs for a SAP defined Matchcode object.
What is a View ?
- A view is a logical view on one or more tables. A view on one
or more tables i.e, the data from a view is not actually
physically stored instead being derived from one or more
tables. A view can be used to summarize data which is
distributed among several tables
6/33
How many types of Views are there ? - Database View (SE11)
Database views are implement an inner join, that is, only
records of the primary table (selected via the join operation)
for which the corresponding records of the secondary tables
also exist are fetched. Inconsistencies between primary and
secondary table could, therefore, lead to a reduced selection
set. In database views, the join conditions can be formulated
using equality relationships between any base fields. In the
other types of view, they must be taken from existing foreign
keys. That is, tables can only be collected in a maintenance or
help view if they are linked to one another via foreign keys.
- Projection View
Projection views are used to suppress or mask certain fields
in a table (projection), thus minimizing the number of
interfaces. This means that only the data that is actually
required is exchanged when the database is accessed. A
projection view can draw upon only one table. Selection
conditions cannot be specified for projection views.
7/33
What is Locking ?
When two users simultaneously attempt to access the same
data record, this is synchronised by a lock mechanism.
When dialog transactions are programmed, locks are set and
released by calling certain function modules. These function
modules are generated automatically from the definition of
so-called lock objects in the ABAP/4 Dictionary. To
synchronize the access to a table by setting and removing
locks, a Lock object has to be defined in the ABAP/4
Dictionary. Activating the lock object automatically creates
#function modules for setting and removing locks. These
function modules must be included when programming
interactive transactions.
Example :
Problem : You wish to prevent a user from being able to
change the name of a course or the name of the professor
with responsibility for the course at a time when another user
is editing the course description (which contains this
information).
MODULARIZATION
9/33
How can we create callable modules of program code within
one ABAP/4 Program?
A. By defining macros. B. By creating include programs in the
library.
10/33
copies of the actual parameters. The formal parameters have
memory of their own. Changes to the formal parameters have
no effect on the actual parameters.
C. Calling by value and result: During a subroutine call, the
formal parameters are
created as copies of the actual parameters. The formal
parameters have their own memory space. Changes to the
formal parameters are copied to the actual parameters at the
end of the subroutine.
The method by which internal tables are passed is By
Reference.
19. How can we set the table spaces and extent sizes?
14/33
You can specify the extent sizes and the table space (physical
storage area in the database) in which a transparent table is
to be stored by setting the size category and data class.
16/33
currency amounts to the reference field is made at runtime.
The value in the reference field determines the currency of the
amount.
17/33
- Determines how the table behaves when it is first installed, at
upgrade, when it is transported, and when a client copy is
performed.
lo_nd_node1 = wd_context->get_child_node
( name = wd_this->wdctx_node1 ).
lo_el_node1 = lo_nd_node1->get_element( ).
**Read Node1
lo_el_node1->get_static_attributes(
importing
20/33
static_attributes = ls_node1 ).
**Write to Node1
lo_el_node1->set_static_attributes(
exporting
static_attributes = ls_node1 ).
13) Message Areas in Webdynpro
Message areas are created in views to display messages
(Error,Success,Warning,Info).
WD allows to have multiple Message errors in a view but
throws an
error when the view is displayed.
Use the code wizard to get code for raising error
messages.
Few of the message classes and methods are:
Interface: if_wd_message_manager.
methods: report_t100_message.(used to report message
from the
message class)
14) Concept of OTR(Online Text Repository) and its Usage
OTR's are similar to text elements in ABAP. OTR's are
created for
UI texts and texts can be maintained in multiple language.
OTR's can be created using the transaction: SOTR_EDIT
15) Concept of Interface Views
If the views of a different components are need to be used
in a
webdynpro component mark the view as interface view
and use it in
another component. It's similar to using a include in a
program.
A Interface view of the component can be used in any no
of components.
this concept supports the reusuability of the views.
16) Sequence of Webdynpro Events:
Ex: WDDOINIT,WDMODIFYVIEW,WDAFTERACTION,
WDBEFOREACTION etc
21/33
Sequence: WDDOINIT of the component controller,
WDDOINIT of the Window Controller,
WDDOINIT of the View Controller,
WDMODIFYVIEW(On Input/Display on any UI Element).
WDBEFOREACTION(Method for validation of user input,
Once the user action happens on the UI)
WDAFTERACTION(Method for non-action specific
operations
before Navigation)
WDDOEXIT( Exit from the View/Window/Component
Controller)
17) Can a Component have Multiple Applications
Yes, For a given webdynpro component any no of
applications can be
created. Applications are similar to transactions in SAP.
You can associate different Interface views of the
component to
create different applications using the same component.
18) How do you launch a Webdynpro Application from a
Transaction
Refer to the previous blog Calling webdynpro application
from a Transaction
URL:
http://sapabapwebdynpro.blogspot.com/2011/04/call-abap-
webdynpro-application-from-r3.html
19) How do you Navigate between two Webdynpro
Components
You can use Interface views to navigate between
components or create a navigation class and
do a explicit call.
20) Creating a tree in Webdynpro
Tree UI element is used to create Tree in Webdynpro.
Tree can be defined as part of the table column.
21) Usage of Exit Plug in a Webdynpro Window
Exit plugs are outbound plugs used to close the webdynpro
application.
they can be called from the view which are embedded in
the window
Note: Exit plugs won't work in portal environment.
22/33
Exit plugs can also be used to pass the call to another URL.
Here is the sample code snippet of the exit plug call:
method onexit .
23/33
Append structure can be placed only at the end of a structure
or table which also stops further insertion of fields.Only one
append structure can be used
6. Preformance techniques
Ans.
1. The sequence of fields must be same as per database table
2. During writing select query write all fields in sequence as
per database table.
3. Never write select statements inside loop….endloop.
4. Use st05 SQL trace, se30 run time analysis, code inspector,
slin,etc.
5. Use select single * statement instead of select *
6. Always use primary key
7. Use binary search but before using binary search sort that
table.
24/33
11. What is page window?
Ans : page window is nothing but a container of a page ,which
uniquely identifies a set of data …for example while creating
invoice …we create logo window , billing document header
window , customer window , terms and condition window etc
…
25/33
Buffering is use for improve performance. it improves
performance 10 to 100 times more
26/33
Ans: Chain and end chain are used for multiple field validation
in Module pool programming .It is written inside the screen
flow logic.
31/33
SAP SCRIPTS & FORMS
DATA DICTIONARY
1.Apart from .include & .append how will u do table
enhancement?
2.what r the events of table maintainence generator?
3.what will happen if i use projection view and maintainence
view together?
4. I created ZEMP table now i want to add more data but prev.
data should not disturb how can i do this?
=====================================================
REPORTS
1.How will u print footers in alv report?
2.How will u edit fields from output list of alv?
====================================================
BDC
1.what r the fields u took during recording for mmo1,me21n?
2.If u want to do bdc for xd01 explain me how will be the flow?
=================================================
user exits
1.what r enhancement points?
2.How to write customer exits?
3.what is routine? how it is different from user exits?
Share this
Google Facebook Twitter More
Related Posts
32/33
SAP ABAP FRESHER Interview Questions asked
at ACCENTURE INDIA
33/33