SAP ABAP Interview Questions & Answers
What is SAP ABAP?
SAP is a sort of programming known as ERP (Enterprise Resource Planning) that enormous organization use to deal with their everyday undertakings. ABAP (Advanced Business Application Programming) is the coding language for SAP to foster RICEFW objects. (Reports, Interfaces, Extensions, Forms and Workflows).1. Whatis SAP ABAP? Answer: SAP ABAP is a high-level programming language used for
developing applications and customizations within the SAP environment. ABAP
stands for Advanced Business Application Programming.
Q. What are the data types in ABAP?
Answer: ABAP supports various data types, including
numeric (e.g., INT, DEC, FLTP), character (e.g., CHAR, STRING), and date/time
(e.g., DATS, TIMS).
Q. Explain the difference between a transparent table and a pool table in SAP ABAP.
Answer: Transparent tables store application data directly, while pool tables
are used for storing control data, such as authorization levels and user
profiles.
Q. What is an internal table in ABAP?
Answer: An internal table is a temporary table
used to hold data in the memory during program execution. It can have different
structures and types, and its size is dynamically adjusted.
Q. How do you debug an ABAP program?
Answer: ABAP programs can be debugged using the
ABAP Debugger (transaction code: /h).
Q. What are function modules in SAP ABAP?
Answer: Function modules are reusable blocks
of code that can be called from different programs within the SAP system.
Q. Explain the difference between CALL FUNCTION and CALL TRANSACTION statements in ABAP.
Answer: CALL FUNCTION is used to call a function module, while CALL TRANSACTION
is used to execute a transaction code.
Q. What is a BDC (Batch Data Communication) in SAP ABAP?
Answer: BDC is a technique
used to upload data into SAP systems in batch mode from external sources.
Q. How do you handle errors in BDC?
Answer: Errors in BDC can be handled by using the
BDCMSGCOLL structure to collect error messages and processing them after the
BDC session.
Q. What is an ABAP data dictionary?
Answer: The ABAP data dictionary is a centralized
repository where data definitions (tables, views, data elements, domains, etc.)
are maintained in SAP.
Q. What is the difference between a structure and a table in ABAP?
Answer: A structure is
a data type that defines a template for holding data elements, while a table is
a data type that holds multiple records of the same structure.
Q. How do you create a selection screen in ABAP?
Answer: A selection screen is created using ABAP statements like PARAMETERS, SELECT-OPTIONS, and PARAMETERS-SELECTIONSCREEN.
Q. What are the different types of ABAP programs?
Answer: ABAP programs can be categorized
into report programs, module pool programs, function modules, and class-based
programs.
Q. How do you transport ABAP objects between systems?
Answer: ABAP objects can be transported
using the Transport Management System (TMS) in SAP.
Q. What is the purpose of a lock object in ABAP?
Answer: Lock objects are used to manage
data integrity and ensure that only one user can change a specific set of data
at a time.
Q. How do you pass data between two ABAP programs?
Answer: Data can be passed between two
ABAP programs using parameters or internal tables.
Q. What is a BADI (Business Add-In) in SAP ABAP?
Answer: BADI is an enhancement technique in
SAP that allows you to add custom functionality to standard SAP programs
without modifying them.
Q. How do you create an ALV (ABAP List Viewer) report in ABAP?
Answer: ALV reports can be
created using function modules like REUSE_ALV_GRID_DISPLAY or ALV Object Model
(CL_SALV_*).
Q. What is the use of the WRITE statement in ABAP?
Answer: The WRITE statement is used to
display output on the screen or in a list.
Q. How do you create a popup window in ABAP?
Answer: Pop-up windows can be created using the ABAP statement CALL SCREEN or using function modules like POPUP_TO_CONFIRM.
2) What do you mean by an ABAP information word reference?
To portray the legitimate designs of the items that are utilized in application advancement ABAP 4 information word reference is utilized. Showing the fundamental social data set in tables is likewise utilized.
3) Explain the distinction between pool tables and straightforward tables?
Straightforward tables: It has balanced connection with the table in the data set. Its construction compares to single data set field.
Pooled tables: It has numerous to one connection with the table in the data set. Pooled tables are put away at the information base level.
4) What do you mean by BDC (Batch Data Communications) programming?
It is a programmed technique to move enormous or outer information into SAP framework. 'Line record' is the focal part of the exchange, which gets the information through clump input projects and gatherings that are related into 'meetings'.
5) Describe the information classes?
The information classes are arranged into following classes
Ace Data: The information in this class only from time to time change
Exchange Data: The information can be changed frequently in this class
Association Data: This information is a tweaked information and is placed in the framework when the framework is designed. It is seldom different.
Framework Data: This information is utilized by R/3 framework itself
6) What are the inner tables?
Inward table exists just when the program is run. It is utilized for performing table estimations on subset of data set tables and furthermore for re-arranging the substance of data set tables as need might arise.
7) List down the practical modules utilized in grouping in BDC?
There are 3 practical modules which are utilized in grouping to perform information move effectively utilizing BDC programming. They are
a) BDC_OPEN_GROUP
b) BDC_INSERT
c) BDC_CLOSE_GROUP
8) What is an unfamiliar key relationship?
To guarantee the consistency of information, unfamiliar keys are utilized. The relationship laid out between the tables and should be unequivocally characterized at field level. Information entered ought to be checked against the current information to guarantee that there is no inconsistency. Cardinality must be determined while characterizing unfamiliar key relationship.
9) In ABAP what are the distinctions among table and design in information word reference?
The distinction among design and table is
a) Data can be put away truly in Table, yet a design can't
b) Structure doesn't have essential key however table can have
c) Table can have the specialized quality however the design doesn't have
10) What is Smart Forms?
Shrewd structures permit you to make structures utilizing a graphical plan instrument.
11) What are the parts of SAP scripts?
For SAP, SAP scripts are a word handling device. It has a capability like standard text and format sets. Its design set comprises of: Windows and pages, Character designs, Paragraph designs and so forth.
Experience the difference |
12) How to make 'table group'?
a) In ABAP word reference, select item type Table, enter a table name and pick make
b) A field upkeep screen for the table is shown. Table sort Transparent table, set it as a default
c) Make the vital sections in the short depiction and conveyance ordered on the Attributes page. Then characterize the fields of the table.
d) Proceed as while making a straightforward table. Presently save your entrances
e) Now pick EXTRASàChange table classification
f) When a discourse box seems you need to choose the table sort 'Pooled table' or 'Bunch table'
g) After choosing the table, return to the field upkeep screen for the table. Field pool or group name is shown on the Attributes tab page notwithstanding the standard fields.
h) Now enter the name of the table group or table pool to which you need to allot the bunch table.
13) How might you at any point design the information before compose proclamation in the report?
By utilizing the circle occasion the reports result can be arranged
a) .from the start
b) .at new
c) .finally
14) Explain the distinction among Template and Table?
The contrast between the table and that's what layout is, table is a dynamic and format is a static.
15) Mention what is ALV programming in ABAP? When is this network utilized in ABAP?
ALV represents Application List Viewer. To upgrade the result of the report, SAP gives a bunch of ALV capability modules which can be utilized, and it likewise works on the usefulness and coherence of any report yield. It is a proficient device utilized for orchestrating the sections in a report yield.