Sap Abap Interview Questions
Sap Abap Interview Questions
© Copyright by Interviewbit
Contents
SAP is widely used by plenty of organizations & one of the major reasons behind the
popularity of SAP is that it was specially developed for distributed applications. SAP
ABAP gives extended versatility to the SAP applications such that varied database
systems can be contiguous as per user demands.
The scope of the SAP ABAP career is vast. ABAP can give a prominent career boost for
a programmer recognizing their commitment levels. Once you become a member of
the SAP community, you can begin your career as a trainee, followed by a junior
counsellor, then a specialist, a erwards a senior specialist, and then finally a lead
consultant.
An ABAP consultant’s profession is never going to fade as the business process keeps
changing, the technologies also keep getting renewed from time to time which
enforces the person to tune into the variations and learn new forthcoming
technologies. The career of SAP ABAP consultant is intellectually challenging, along
with that it is professionally & financially satisfying.
ABAP data dictionary represents metadata(i.e. data about data) that is present
inside the SAP database in addition to the metadata maintained by the
database. Data dictionary allows the necessary description of all the data
without redundancies that are used in the system. New or updated information
will be provided automatically for all the system components. This ensures data
security, data consistency, and data integrity.
It is used to describe the logical structures of certain objects that can be used in
the development of the ABAP/4 application and it can also display the
underlying relational database in tables.
The data dictionary is useful in creating and managing data definitions as well as
in creating Tables, Domains, Views, Data Elements, and Types. Also, it supports a
few standard functions for editing screen fields like assigning input help to the
field of a screen.
The database table will have The database table will have
the same name, the same a different name, different
number of fields, and the number of fields, and
same field names different field names
It is possible to develop and test the comprehensive web transaction in the R/3
system.
It acts upon all transaction components, including those components used
outside of ITS.
In the R/3 system, using automatic language processing utilization of language-
dependent HTML documents can be done during runtime.
The above statement calls the target system mentioned under dest synchronously.
The unique name of a destination should be used for the parameter dest.
Update function module: This module will not be executed immediately. This
update process will be triggered by the COMMIT WORK statement. The
ROLLBACK WORK statement is responsible for deleting all update function
module registrations.
IN UPDATE TASK will bundle database modifications into a single database called
LUW. Since the update happens asynchronously, it is proved beneficial for
performance.
BAPI(Business Application Programming Interface) function module: BAPI is
a Function Module that provides a standard interface for business objects
available in SAP. Common usage of BAPI is to create/delete/update/read
business objects such as Business Partners, Purchase Orders, or Sales Orders.
In the SAP system, workflows in business are used for executing business processes in
applications. Workflows are the SAP system’s essential component that helps in
business process design, it can be either a simple process or a complex repeated
business process. These are predefined in the SAP R/3 system and the user is allowed
to create their new workflows. It also permits the users for managing business
processes in the most efficient manner.
Workflows will make sure that the correct information will be sent to the right person
at the right time in a proper sequence. It is a tool for business process automation
and will uniformly work across all the applications. It is suitable for business
processes that involve multiple people or a group of people.
Interface in SAP ABAP is an independent structure that is used when two similar
classes have the same method name, but the functionalities of each will be different
from each other. It looks similar to classes, but the method defined in an interface
needs implementation in a class for extending the scope of that class. Interfaces, as
well as inheritance features, will provide a base for polymorphism, because a
function defined in an interface may act differently in various classes.
Following is the syntax for the creation of an interface:
INTERFACE <interfac_name>.
DATA.....
CLASS-DATA.....
METHODS.....
CLASS-METHODS.....
ENDINTERFACE.
In the above given syntax, <interfac_name> stands for the interface name. The DATA
and CLASS-DATA statements are used for instance and static interface attributes
definition respectively. The METHODS and CLASS-METHODS statements are used for
instance and static interface methods definition respectively. Here, the interface
definition will not include the implementation class, so adding the DEFINITION clause
in the interface declaration is not mandatory.
With the help of the INSERT statement, it is possible to insert a line or lines into
internal tables of ABAP. For inserting a line, you need to put the values which we wish
to insert in a work area, then later you can use the INSERT statement for inserting the
values in the work area then into the internal table.
The general format for a line insertion into an internal table is:
OR
‘Type’ ‘Like’
You can assign the You can assign the data type of one
data type directly object to another during the
during the declaration of the data object. The
declaration of the datatype will be indirectly referenced
data object here.
It is used when
user-defined
It is used when data objects connect
objects connect
with the other data object
with SAP system
data type
Type keyword is
Like keyword is useful in copying the
useful in referring
existing data object properties
to the data type
Adobe forms is a technology used for developing the forms and now it has
become the current standard in SAP for form development. To use these forms,
a Java stack must be first installed in SAP Basis. Along with that, developers
need to configure the Adobe Document Service(ADS). Adobe LiveCycle
Designer(LCD), GUI(graphical user interface) for Adobe Forms- must also require
to be installed separately as the application will run on Windows.
Using Adobe Forms, we can create the forms in companies, fill out the form,
output as a print form, show it as a PDF file on screen, or even it can be sent.
Such forms will include purchase orders, orders, and invoices.
From the SAP system, it reads the associated master data and transaction data.
The data will be displayed by the application in the predefined and desired form,
for example, as a print form. Entering data in forms is also allowed.
Adobe has become the successor to SAPscript and SmartForms. This technology
has surpassed its two predecessors SAPscript and SmartForms in various areas
like performance and design.
We can separate design and programming by using Adobe forms in SAP. Also,
Interactive Forms by Adobe in SAP provides different suitable tools and
functions for the easier design of a form.
It is possible to customize the forms by form developers with the help of their
own programming by using two script languages Adobe FormCalc or JavaScript.
The developer tool for Adobe Forms will be accessed through SFP(SAP tcode-
Form Builder) transaction.
It is a standard SAP
It is a standard programming interface that allows
interface for
accessing business processes as well as data for
communicating bet
external applications in the R/3 system
various SAP system
No business object
A business object is associated with it
associated with it
Top of page: This event will be triggered by the first ‘write’ statement written in
the report. It acts as a page header. By default, the first event triggered will be
the ‘load-of-program’, if the ‘write’ statement is not included in the report.
Load-of-program: This event will be triggered when the program of type
E(Executable program), M(Module pool), F(Function pool), or S(Subroutine pool)
gets loaded. It will be in existence only once per program.
Initialization: This event is used for initializing the values. This event will be
triggered a er the ‘load-of-program’ event and before the display of the
selection screen.
At selection-screen output: This event will be triggered just before the display
of the selection screen. It is used if you wish to change the screen fields during
runtime. It will hide the fields or make them invisible/visible or make them
intensified.
At selection-screen: This event will be triggered processing of selection-screen
by the user. It will be used for checking and validating the inputted values.
At selection-screen on field: This event will be triggered in the PAI(Process A er
Input) when data is transferred from PARAMETERS or SELECT-OPTIONS to ABAP.
It can be used for validating the user input.
At selection-screen on value-request: Using this, if a program field is defined
with ABAP Dictionary field reference for which possible entries help has been
defined, the values from the ABAP Dictionary help will be displayed
automatically on calling F4 help for that field by the user.
Start-of-selection: This event will be triggered on execute button click or F8
button press by the user.
End-of-selection: This event will be triggered on the execution of the last
statement of the start-of-selection event.
End of page: This event will be triggered each time when the list data reaches
the page footer region.
Projection View: It is used to hide specific fields in a given table and can also be
used to gain access to the cluster, pooled, and transparent tables. Selection
conditions are not available in a projection view. The projection view access will
be through an Open SQL, not Native SQL.
Help View: It is used in the search helps. The search help is able to select
database views, database tables, and special help views. For database views, the
search help is restricted to the inner joins and for database tables, it is restricted
to a single table. It is not possible to define a help view in the database.
Database View: It is a general view used for single or multiple basis tables. Once
the database view is activated, multiple basis tables can be joined with an inner
join by creating a matching SQL view. It is possible to access database views
using both Open SQL and Native SQL.
Maintenance View: It performs writes on different tables using extended table
maintenance. One maintenance view is capable of changing the contents of
many related database tables unfailingly. The maintenance view cannot be
accessed using Open SQL.
It is an independent technology
It is an SAP technology used for
used for transferring data between
transferring data between SAP
two systems, either between SAP
systems
systems or non SAP systems
Consider that you have got a Business Requirement that says, “It requires a control at
the Production Order level”, which implies that when a sales order has been created,
the creation of a production order will also take place based on the sales order
values. This needs to be stopped for various business reasons. There is no standard
functionality available where the functional user will be able to configure this in SAP.
The current open sales order at the production level should not be hot by the
process. ABAPer has to make a checkpoint creation for the business where the
quantity will be approved by the Manager, which needs to be produced based on the
sales order.
You need to code at numerous user exits and a custom table should be created that
populates all the details of sales orders and restricts the user authority only for the
approval authority like Manager. It has to perform the quality checks multiple times
before we finally decide for moving the code into production.
SCENARIO 2:
Generally, when the creation of a sales order takes place, the sales order gets blocked
based on the credit check or credit limit(if activation was done by the functional
consultants) of the customer. So, you need to ‘unblock’ the sales order even if the
customer has been exceeded the credit limit depending on certain conditions.
For this scenario, you need to write code at numerous places, during the time of the
creation of sales orders and also during the delivery time. This process is known as
enhancements.
So, for ABAPers the constant evolution of SAP coding standards for core ABAP must
be the same, but the methodologies and techniques of implementation or
workarounds will be evolving.
In the above program code, you need to enter values for two numbers using
SELECTION_SCREEN. In START-OF-SELECTION by using the if condition, it will check
whether variables are having the values, if it returns true then it will perform the sum,
else it will display a message for entering the numbers.
In END-OF-SELECTION, the user name, date, time, and sum values are displayed.
TABLES: pa002.
*Type Declarartion
TYPES : BEGIN OF ty_employee, "Structure declaration
pernr TYPE pa0002-pernr,
subty TYPE pa0002-subty,
nachn TYPE pa0002-nachn,
vorna TYPE pa0002-vorna,
gesch TYPE pa0002-gesch,
END OF ty_employee.
*--Data Declaration
DATA : lt_employee TYPE STANDARD TABLE OF ty_employee, "Internal table
ls_employee TYPE ty_employee, "Work area
lt_fieldcat TYPE slis_t_fieldcat_alv, "Internal table for ALV display
ls_fieldcat TYPE slis_fieldcat_alv,
lv_repid LIKE sy_repid. "Local variable for the program name
*Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001. "Please enter employee nu
SELECTION-OPTIONS: so_pernr FOR pa002-pernr. "Selection screen field to enter empl
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
*Data Fetching "To get the employee details from database
SELECT pernr subty nachn vorna gesch
FROM pa0002
INTO TABLE lt_employee
WHERE pernr IN so_pernr.
IF sy-subrc=0.
SORT lt_employee BY pernr.
ENDIF.
END-OF-SELECTION.
*Field Catalog "Inserting records for ALV display
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 1. "Column position in output
ls_fieldcat-fieldname = 'PERNR'. "Field name in the output
ls_fieldcat-tabname = 'LT_EMPLOYEE'.
ls_fieldcat-seltext_m = 'Employee number'. "Field description
APPEND ls_fieldcat TO lt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 2.
ls_fieldcat-fieldname = 'SUBTY'.
ls_fieldcat-tabname = 'LT_EMPLOYEE'.
ls_fieldcat-seltext_m = 'Sub type'.
APPEND ls_fieldcat TO lt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 3.
ls_fieldcat-fieldname = 'NACHN'.
ls_fieldcat-tabname = 'LT_EMPLOYEE'.
ls_fieldcat-seltext_m = 'Last name'.
APPEND ls_fieldcat TO lt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-col_pos = 4.
ls_fieldcat-fieldname = 'VORNA'.
l fi ld b ' '
Page 32 © Copyright by Interviewbit
SAP ABAP Interview Questions
Conclusion
To obtain any technical position, theory and basic concepts are necessary for any
fresher who is applying for the SAP ABAP job role, but for an experienced candidate
both practical and applied concepts are mandatory. Usually, for an experienced
candidate, a lot of SAP ABAP interview questions will be related to your previous
project and roles.
This article essentially covered a list of frequently asked SAP ABAP related questions
that fits the interview requirements. A candidate who wants to get a job in an SAP
ABAP role should glance through these questions once before heading towards the
SAP ABAP Interview round. You can prepare well and give your best in the next
interview.
References
Generally, you can follow the following steps to become an SAP ABAP developer:
Earn a bachelors degree: You can start by completing a bachelor’s degree in
computer science, computer engineering, so ware engineering or a related
field. These degree programs will give you a basic knowledge of SAP ABAP
programming concepts.
Undergo an internship: During the college study, seek an SAP ABAP developer
internship. Finishing an internship allows you to apply for a relevant job role.
Take SAP ABAP courses: You can continue the professional training by taking
SAP ABAP programming courses from certified SAP training institutes online.
This assists you learn more about ABAP since many college degrees give a basic
overview of a variety of languages.
Pursue a masters degree: Enhance your efficiency and effectiveness by earning
a master’s degree in computer science. In order to become a manager or IT
director, you may need to get an MBA degree.
Css Interview Questions Laravel Interview Questions Asp Net Interview Questions