Professional Documents
Culture Documents
Interview Questions
Interview Questions
H) Moved to Production
Efforts
Analysis 5
Technical Specification 8
Develop 20
Unit Test 4
Code Review 3
Total 40 5 Workign Days
8) What is architecture?
Ans- It is R/3 architecture.
Each iteration is considered as a short time "frame" in the Agile process model, which typically lasts from one to
four weeks. The division of the entire project into smaller parts helps to minimize the project risk and to reduce
the overall project delivery time requirements. Each iteration involves a team working through a full software
development life cycle including planning, requirements analysis, design, coding, and testing before a working
product is demonstrated to the client.
1. Requirements gathering
3. Construction/ iteration
5. Deployment
6. Feedback
1. How many presentation servers we can have and how many application server?
Ans - Multiple presentation server as many as you need , one application server maximum two (very few casws)
14) Is SAP database independent?
Ans -SAP DB is an open-source, platform-independent, SQL-based database system provided by SAP for
enterprises.
18) What is code review and who does that? Have you ever done that?
Ans - Change-based peer code reviews increase code quality by finding defects earlier and preventing them from
polluting the main code line. They also enable continuous integration by registering automated checks as
reviewers. These modern capabilities have been on the wish list of ABAP developers for some time.
Delivery class A:
Application table for master data and transaction data.
Delivery class C
Customer table for data entered only by the customer.
Delivery class L
Table used as a repository for temporary data. SAP delivers tables in the delivery class L as
empty tables.
Delivery class G
Customer table where SAP can add data but not modify or delete it.
Delivery class E
System table in which customers can make entries.
Delivery class S
System table delivered by SAP with predefined data as part of the system, such
as ABAPDOCU_TREE containing the read-only tree of the ABAP keyword documentation.
Delivery class W
System table for system administration data, such as TFDIR as a directory of all function
modules. A system table in the delivery class W is usually delivered with prefilled entries by
SAP and can be affected by customer modifications.
A primary key is a field that uniquely identifies the rows in a table by one or more columns. The
primary key field cannot have a NULL value or duplicate values.
There are 16 primary key fields allowed in a table.
You use the size category to define the expected space required for the table in the database.
Table Buffering in SAP ABAP is a concept in ABAP Tables to enhance performance (10 to 100 times)
and reduce time of processing (accessing) the table.
There are 3 types of Buffering …
a. Full Buffering. (all record at a time )
b. Generic Buffering (customizing or small part of the record )
c. Single-record Buffering (Single record)
Data element describes the semantic attributes or business function of a table field. Its technical
attributes are based on the domain and it’s business function is described by it’s field labels and
documentation.
b. Bottom-to-top.: in this way first you have to create domain in SE11 and then assign that domain to data element
and then create a table and give the created data element for a particular field. This is a bit time consuming but very
good way to learn.
27) What is foreign key relationship ?How you create a foreign key
relationship ?Is foreign key relationship only exists on primary key
fields ?
Foreign keys are used to establish the relationship between the different tables present in the ABAP Dictionary.
The table that contains the foreign key is called a foreign key table and another table that contains valid fields,
known as the value table.
It connects two tables by assigning the foreign key field of one table to the primary key field of another table.
a. To create foreign key relationship we have to go to SE11 Tcode. Create a database table as check table.
b. we need to create another database table, let's say it "ZEMPLOYEES" that contains three main fields, which are,
EMPID, FULLNAME, and DOB.
c. Once both the tables are created successfully, we can now create the foreign key relationships between the tables,
follow the given steps:
g. New windows will pop-up, where provide the Check table name, which is containing the master data.
Client dependent data means the data which user creates in one client is limited to that client only
and it is not accessible in other clients.
Client Independent data means the data which user creates in one client that is available in that as
well as in other clients. Client Dependent Table.
29) What is the difference between primary and secondary indexes?
How to create them? How many primary keys can be created?
Secondary index:
A Secondary index is an index that is not a primary index and may have duplicates. eg. Employee name
can be example of it. Because Employee name can have similar values.
The primary index contains the key fields of the table. The primary index is automatically created in the
database when the table is activated. If a large table is frequently accessed such that it is not possible to
apply primary index sorting, you should create secondary indexes for the table.
The indexes on a table have a three-character index ID. '0' is reserved for the primary index. Customers
can create their own indexes on SAP tables; their IDs must begin with Y or Z.
Ans:- 1.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.
2. https://blogs.sap.com/2019/09/26/update-and-create-events-in-table-maintenance-generator/ .
31) How to make fields not editable in the TMG? What are the event's
used for creating and update in TMG?
Ans:- 1.standard recording routine" ==> will create transport request, when you maintain the table entries
2."No, or user, recording routine" ==> won't create transport request (or you can add your own logic.
33) What are the various option when you select the radio-button
‘Data type’ in the SE11 transaction?.
Ans:- 1.Search for data element,2.Search for structure,3.Search for database tables,4.Search for table
types,5.Search for view, 6.Search by class/Interface.
34) In how many ways you can define the data type in the Data
element?
Ans:-1.Elementary Type(Domain) .2.Predefined Type, 3.Reference Type.
35) What is field label in the data element and it’s purpose?
36) In domain, what are the different ways in which you can define
Value Range?
Ans:- There are three options to choose from when creating value ranges.
1.The first is ‘Single Values’ – This is where you actually enter a list of individual valid values that a user
can enter.
2.The next is ‘Intervals’ – If you have many values but they are all related or in a sequence you can enter
the lower limit and the upper limit for each range. For example, a lower limit of 1, an upper limit of 9,
and that saves you entering 9 individual single values. This ensures a user can only enter a value that falls
within the ranges that you specify.
3.The last option you have is ‘Value table’ – When you have a large number of possible entries it is quite
common to use a Value Table instead of a value range or list of single values. With a value table, you
specify a complete valid value table entry list. But please note that if you use this option you must also
introduce Foreign Keys to your table to ensure the user’s entries are tested against the values stored in the
value table that you create.
37) How you can allowed lower case characters and ‘+’/’-‘ sign in a
field?
Ans:- You can find these setting in new domain creation page in se11 while creating a data element in a
table.
Ans:- 1.Conversion routine as part of the output properties of domains(REF SAP DOC).
39) What is the difference between value table and check table?
Ans:- There are two types of search help like 1.Elementary search help ,2.Collective search help.
Ans:- There are three types of lock objects like 1.Read lock,2.Write lock,3.Enhanced lock….................
Also REF to this Blog(https://data-flair.training/blogs/lock-objects-in-sap-abap-types-and-examples/)
43) What is database utility, its purpose and transaction code? What
are the various ways in which we can use database utility to
create/modify DB table?
Ans:- 1.The database utility is the interface between the ABAP Dictionary and the relational database
underlying the SAP system. The database utility allows you to edit (create, delete and adjust to changes to
their definition in the ABAP Dictionary) database objects derived from objects of the ABAP Dictionary.
44) What are the different types available in the report program?
Ans:- There are 3 types report program like..1.Classical Report, 2.ALV Report,3.Interactive Report.
45) What are the different events exists in the report program and there
purpose?
Ans:- There are many no of Event are there like Load of Program, Initialization, At-Selection-Screen
Output ,At-Selection Screen, Start Of Selection, End of Selection, Top-Of-Page, End-Of-Page. (Events
are the function that are triggered based on the result of a condition).
46) What is the difference between various selection-screen events?
Ans:- There are many Selection-Screen Events are like 1.AT SELECTION-SCREEN ON RADIO
BUTTON GROUP , 2.AT SELECTION-SCREEN ON HELP-REQUEST, 3.AT SELECTION-SCREEN
ON VALUE-REQUEST, 4.AT SELECTION-SCREEN ON BLOCK..
Ans:- 1.In Parameter you can one perticular value but in select-options you can used no of value at time.
2. (OPT,SIGN,HIGH and Low fields)
48) How to create radio-button, check box and push buttons on the
selection-screen?
Ans:- To Create radio-button in AT SELECTION -SCREEN ON RADIO BUTTON Group Event, for
Check box, push button create in AT SELECTION -SCREEN Event.
49) What need to be done to display different input fields based upon
selected radio-button/checkbox?
80 System variable.
SY-ULINE – Underline
With Header line or the work area is used as interface . We can’t access data from an internal table or
send data to an internal table without header line.
If we define internal table with header line, then we don’t require to create explicit work area.
A. Standard Tables.
- Access by liner table index or key
B. Sorted Tables.
- Filled in sorted order
C. Hashed Tables.
- Direct access by table key.
Main difference is subroutine is used internally in a program while FM is used externally in a program. It
means subroutine is written within a program and can't be used outside the program. FM can be written
outside the program and can be used within a program.
Macro Subroutine
Macro can be called only in the program it is defined. Subroutine can be called from other programs also.
Macro can have maximum 9 parameters. Can have any number of parameters.
Macro can be called only after its definition. This is not true for Subroutine.
59) Which system variable holds current loop counter value in DO and
LOOP statement?
The variable sy-index is used for the iterative operations. This variable holds the current iteration
number in a WHILE or DO loop.
Clear internal table - (if with header line) just clears the workarea.
refresh internal table - deletes internal table contents. If with header line doesn't clear workarea.
STOP
STOP is a statement which is used to stop processing an event block, ex: If I have two events START-OF-
SELECTION and END-OF-SELECTION in my program, If I use STOP keyword in START-OF-
SELECTION, the keyword will exits start-of-selection and goes to END-OF-SELECTION.
CONTINUE
CONTINUE is a statement, which is used to skip execution of a record inside loop.. endloop, do..endo,
while..endwhile etc.
RETURN
RETURN is a statement which is used to stop processing of current block immediately.
EXIT: The EXIT command will stop the LOOP passings, exit from the SUBROUTINES..etc.
If you use EXIT keyword inside IF .. ENDIF., it will comes out of the program.
If you use EXIT inside LOOP .. ENDLOOP., it will come out of loop.
If you use EXIT inside FORM .. ENDFORM., it will comes out of form (subroutine)
62) What is the difference between internal and external session? What
is the difference between SAP and ABAP memory?
Data stored in SAP memory is there till you logoff. Internal Session is a session with in the External
session there can be many internal sessions in an External Session, You can use ABAP memory to share
data between Internal session.
Within a main session, when ever you start an application program, it opens up an
internal sessions with in the main session. The internal session has a memory area that
contains the ABAP program and its associated data. So when ever you want to pass
data between two internal sessions, then you can use ABAP Memory (i.e import,
export).
When comes to SAP memory (also known as global memory), if the data has to be
passed b/w two main sessions, we can use SAP Memory(SPA/GPA Parameters).
SAP Memory can also be used to pass data b/w internal sessions.
63) What is the difference between classical and interactive report?
Classical Report is used to display just the table data. It consist only single list. Interactive reports are
reports where users can interact more means if we cliack on some field it will display one more list. In
ALV reports SAP has provided some function modules to display output
1. Inner Join.
2. Outer Join.->(i) Left Outer Join, (ii) Right Outer Join, (iii) Full Outer Join.
3. Equi Join.
4. Cross Join.
5. Self Join.
66) What is the difference between INNER JOIN and FOR ALL
ENTRIES?
INNER JOINs only look at the intersection of the results that meet the WHERE clause. FOR ALL ENTRIES
eliminates duplicates from the results
The domain is used for the technical definition of a table field such as field type and length, and the data
element is used for the semantic definition (short description). A data element describes the meaning of
a domain in a certain business context
Initialization.
At Selection-screen.
Start-of-selection.
End-of-selection.
Top-of-page.
End-of-page.
We can create a smartform without a main window. In smartform we can directly loop by right clicking
on table, which gives a loop window and also we can create a window and a table line outside the main
window
A foreign key is the one that is used to link two tables together via the primary key. It means the
columns of one table points to the primary key attribute of the other table.
1. Presentation
2. Application
3. Database
The presentation layer sends the user’s input to the application server, and
receives data for display from it. While a SAPgui component is running, it remains
linked to a user’s terminal session in the R/3 System.
Application Layer:
The Application Layer consists of one or more application servers and a message
server. Each application server contains a set of services used to run the R/3
System. Theoretically, you only need one application server to run an R/3 System.
In practice, the services are distributed across more than one application server.
The message server is responsible for communication between the application
servers. It passes requests from one application server to another within the
system. It also contains information about application server groups and the
current load balancing within them. It uses this information to assign an
appropriate server when a user logs onto the system.
Database Layer:
The Database Layer consists of a central database system containing all of the
data in the R/3 System. The database system has two components – the database
management system (DBMS), and the database itself. SAP has manufactured its
own database named Hana but is compatible with all major databases such as
Oracle.All R/3 data is stored in the database. For example, the database contains
the control and customizing data that determine how your R/3 System runs. It also
contains the program code for your applications. Applications consist of program
code, screen definitions, menus, function modules, and various other components.
These are stored in a special section of the database called the R/3 Repository, and
are accordingly called repository objects. R/3 repository, objects are used in ABAP
workbench
78) Explain the use of insert and append statement in SAP ABAP?
ANS. Insert is a keyword which is used to insert a record at specific position of an internal table
from work area.
Append keyword is used to add a record at bottom of internal table from work area.
End of table.
86) How many SAP Sessions can you work on at a given time?
ANS. 6 sessions.
87) what do you mean by datasets? is it related to presentation or
application server?
Top down approach – Create Table Create Data Elements Create Domains
91) What are Smart forms in SAP ABAP? and transaction code to
create one
ANS. Smart forms is a GUI tool that used to create and maintain forms for sending across and mass
printing. We can create, change and display a smart form using Transaction SMARTFORMS. To style the
smart form, we can use Transaction SMARTSTYLES.
Or
Smart forms are printing forms used to print invoice and purchase order forms.
MESSAGE ID <message class/id name> TYPE <message type> NUMBER <message number>
WITH <message place holders>. There are maximum 4 place holders allowed.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-
msgv4.
101) What is the difference between the Global variable and the Local
Variable?
Ans- A global variable is available that is accessible globally. A data dictionary type group is an
example of global variable.
A local variable declares and used in the same program.
111) What is the difference between the Global variable and the Local
Variable?
Ans- A global variable is available that is accessible globally. A data dictionary type group is an
example of global variable.
A local variable declares and used in the same program.
131) Adobe form to print original and other copies, link customer
vendor etc.
Ans: Sir will explain….
132) How to identify a singleton class?
Ans: We can distinguish a singleton class from the usual classes with respect to the process of
instantiating the object of the class.
138) What are BAPI and RFC, difference between them in sap abap ?
Ans- The difference between RFC and BAPI is business objects. which can be accessed
outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in
BAPI there is no direct system call. while RFC is a direct system call.
Ans- SAP Scripts are client dependent whereas Smartforms are client-independent. SAP
Scripts require a driver program to display the output whereas in smartforms the form routines
can be written so that it is standalone. The function module is generated for Smartforms when
we are activating it.
140) Explain Adobe Forms.
Ans- Adobe Forms reads the associated master and transaction data from the SAP system. The
application then displays the data in the desired and predefined form, for example, as a print
form. It is also possible to enter data in forms. SAP Interactive Forms by Adobe is the successor
to SAPscript and SmartForms.
SAP Interactive Forms by Adobe offer you the following business advantages:
2. Full integration into the SAP development environments for Java and ABAP
3. User-friendly tools reduce the time and costs associated with creating form layouts.
4. The usage of the PDF format means that forms retain their appearance regardless of the
environment they are used in.
Moreover,
1. Create form templates for the layout that include logos or pictures
4. Forms can be filled in advance automatically with specific data from SAP applications and then
sent to the correct recipients using secure methods
8. Send completed forms to the SAP application with automatic updates of the business data
There are not any disadvantages in adobe forms as such except the value help is not present but
that could be done after a little coding.
1) Projection View
A projection view is used to hide certain fields from in a given table. The main purpose of Projection
views is gaining access to pooled, cluster as well as transparent tables. There are no selection conditions
in a projection view. The definition of the structure type lies in the view fields that may be referenced to
using TYPE in ABAP. The access to projection view is through an Open SQL, not Native SQL. The Open
SQL statement to accesses a projection view is manipulated to the platform-specific SQL statement
within the database for results. The values of the Access setting may be read-only or read, change,
delete, and insert.
2) Help View
A help view is used to search helps. The search help can select database tables, database views, and
special help views. However, in the case of database tables, the search help is restricted to one table and
in database views, it is restricted to the inner joins. A help view cannot be defined in the database. The
referencing to the structure type is defined using a help view with TYPE. One cannot access help view
with an Open SQL.
The join conditions are applied in a help view with the help of existing foreign keys. This means only the
tables joined with foreign keys can be grouped using help view. The first table in the help view is known
as the primary table while the others are known as secondary tables.
3) Database View
A database view is a general view used for one or more basis tables. Multiple basis tables are joined with
an inner join with the creation of a matching SQL view once the view is activated. It is possible to access
a database view using both Open SQL and Native SQL. The main components of a database view are-
Basis Tables
View Fields
Join Conditions
Maintenance Status
SAP Buffering
4) Maintenance View
A maintenance view performs writes on various tables with the help of extended table maintenance. One
maintenance view may change the contents of several related database tables unfailingly. It is not
explained on the database but the structure type is defined using TYPE on ABAP. One cannot access
maintenance using Open SQL. The SE54 transactions are used in the creation of maintenance dialogues
for maintenance views to edit all the maintenance views tables together. The main components of this
view include-
Thus, every view has its own purpose. Data belonging to an application object spread across many
tables are combined using database views. A maintenance view displays and modifies data within an
application object. Projection view masks unnecessary fields and helps view helps to search helps. One
can use the views to suit their needs and get desirable results.
Web Dynpro for ABAP or Web Dynpro for ABAP (WD4A, WDA) is the SAP standard UI technology for
developing Web applications in the ABAP environment. It consists of a runtime environment and a graphical
development environment with special Web Dynpro tools that are integrated into the ABAP development
environment (SE80).
Layout and navigation are easily changed using Web Dynpro tools
Support of stateful applications because when paging is used, the data required again is kept, which
A transport request collects development objects and categories for export to your local computer or to an SAP
transport system.
When you create a development object (ABAP repository object) in a non-temporary ABAP package, you must
Changes to development objects from non-temporary packages are organized in tasks and take place in
transport requests. A transport request records all changes to development objects. The assignment of a
package to a transport layer ensures that the package is connected to the Change and Transport System,
thereby defining the integration and consolidation system for its development objects.
Transaction code SE11 is a ABAP dictionary. By using this transaction code, you can create,
change and display table entries and structures.
152) How Many Types of Tables in SAP Abap and what are their name
and Difference?
In the ABAP dictionary, we can create three types of tables: Transparent Tables. Pooled Tables. Cluster
Tables.
153) Difference between Data Element and Domain ?
The domain is used for the technical definition of a table field such as field type and length, and the data
element is used for the semantic definition (short description). A data element describes the meaning of
a domain in a certain business context.
Search Help, another repository object of ABAP Dictionary, is used to display all the possible values for a
field in the form of a list. This list is also known as a hit list.
Lock Object is a feature offered by ABAP Dictionary that is used to synchronize access to the same data
by more than one program. Data records are accessed with the help of specific programs. Lock objects
are used in SAP to avoid the inconsistency when data is inserted into or changed in the database.
1. ENQUEUE
This function module sets the lock for the object. We use it to insert the object into a queue
2. DEQUEUE
A table is a table that has been created in the database. A structure is just a list of fields defined under a
name. Structures are useful for painting screen fields, and for manipulating data that has a consistent
format defined by a discrete number of fields.
Those are :
10 After creating the header entries for the change task (E071)
12 After changing the key entries for the change task (E071K)
1. Flat Structure
2. Nested Structure
3. Deep Structure
Work-Areas − Work area is basically variables used to store a single row of data. It is similar to structure
apart from the fact that it can only be used at program level whereas structure can be used at data
dictionary level as well.
Load-of-program
Initialization
At Selection-Screen output
At Selection-Screen on field
At Selection-Screen
Start-of-Selection
End-of-Selection
Top-of-Page
End-of-Page
This event triggers at the screen event Process Before Output(PBO) of the selection screen.
1. INITIALIZATION.
2. AT SELECTION-SCREEN.
a. AT SELECTION-SCREEN ON <FIELD>.
b. AT SELECTION-SCREEN OUTPUT.
c. AT SELECTION-SCREEN ON VALUE-REQUEST FOR <FIELD>.
3. START-OF-SELECTION.
4. TOP-OF-PAGE.
5. END-OF-PAGE.
6. AT LINE-SELECTION.
7. AT USER-COMMAND.
168) Explain How To Debug a Report Or Tcode And What are the use
of f5,f6,f7,f8.
There are four different ways in which you can go through the source code of a program you want to
analyze:
Single step (f5): Use this option to execute the program statement by statement. This allows you to
branch to other program units.
Execute (f6): Use this option to process a program line by line. All of the statements on the current line
are processed in a single step. This allows you to process the whole program.
Return (f7): The Debugger returns to the point at which control is passed back to the main program. Use
this option to return from other program units.
Continue (f8):Use this option to process the program up to the next breakpoint. If there are no more
breakpoints in the program, the system exits debugging mode and executes the rest of the program
normally.
2. PAI – Process After Input: When a user passes any data/input on the screen, this event is triggered so
that follow-up action can be taken.
3. POV – Process On Value Request: When a user wants to get plausible value/ranges for a component
that can be used on the screen, he presses F4 which triggers this event.
4. POH – Process On Help Request: When a user wants to get technical details for a component, he
presses F1 which triggers this event.
CHAIN.
field validations...
.............
.....
ENDCHAIN.
1. Main window
2. Secondary window
3. Copies window
4. Final window
Main Window
Secondary Window
Final Window
It is a kind of special secondary window used for details which are needed to be processed only at the
end of processing form.
Copies Window
It is also a kind of special secondary window which is used for making pages as copy or original.
Table is dynamic the number of column and row can be increased of decreased according to the
requirement of data.
Find the statement in the Smartform where you want to place the break-point.
Go to menu Environment –> Function Module Name to get the name of the function module for the
Smartform.
Enter the name of the function module and go to Menu Goto –> Main Program.
In the Main Program click on FIND to search the statement where you want to place the break-point.
Enter the text of the line where you want to place the break-point in the FIND popup.
Now run the driver program, the control stops at the break-point and you can analyze the smartform.
or
Use the tcode SMW0 to upload the company logo to SAP system.
180) What is Table Function in CDS View why we use this Table
Function ?
Ans - A CDS table function is defined using the ABAP CDS statement DEFINE TABLE FUNCTION and
protocol or be of a complex type. An entity type must have a unique identifier that allows the entities
using code based implementation. you rarely use MPC extension class. DPC - used to code your
CRUDQ methods as well as function import methods. you write all your logic in redefined methods of
183) Have you any idea in Odata CURD Operation Please Explain it ?
Ans - The Open Data Protocol (OData) includes standard CRUD (Create, Retrieve, Update, and Delete)
operations that map to the HTTP methods POST, GET, PUT/MERGE, and DELETE.
the addition PRIMARY KEY and can only be used to access a single table or view.
internal table <itab> must have a structured line type, and each field that occurs in the condition
<cond> must be compatible with the column of the database with which it is compared.
187) What happened if the for all entries base table is not having data?
Ans - If the internal table used with FOR ALL ENTRIES IN is empty/initial, the whole WHERE CLAUSE is
That means even id you have other conditions in the WHERE CLAUSE, they are ignored as well.
entries from the inner LOOP. The typical WHERE clause would scan entire table to find the
matching key. The cost of finding the one key would remain same for each row in the outer LOOP.
Definition.
192) Did you know about Enhancements? Types of Enhancements?
Ans - enhancement in SAP is adding or modifying the logic of SAP standard program without modifying it,
enhancement consist of customer exit , Business transaction event (BTE) and Business add-ins
(BADI).
Implicit Enhancement.
SAP provided the space to enhance your programs in form and endform. When you click on enhance
button if there are double inverted comma in between form and endform then you can create your
implementation over there.
Explicit enhancement.
Here you can explicitly enhance your standard code. There is concept called enhancement
option(Enhancement point and enhancement section). Anywhere in program you can create your
enhancement option and provide enhancement spot(group of enhancement option) to that enhancement
option.
Enhancement Point -
If you have written code using enhancement point your custom code will be executed along with the standard
code.
Enhancement Section -
If you have written code using enhancement section, only your custom code will be executed replacing standard
code. standard code will not be executed.
197) How comfortable you are with debugging. How to stop the
debugger at particular value ?
Ans - I am average at debugging. In the debug mode click on watchpoint button.
198) Can we insert one main window in one page and another main
window in second page.
A. Yes we can
Following interfaces.
205) How many types of ABAP HANA CDS views are there?
A. There are two types of views: ABAP CDS views and HANA CDS views.
Load-of-program
Initialization
At Selection-Screen output
At Selection-Screen on field
At Selection-Screen on value request
At Selection-Screen on help request
At Selection-Screen
Start-of-Selection
End-of-Selection
Top-of-Page
End-of-Page
214) What is the name of the system variable that holds the contents of
the selected line in interactive reporting?
A. SY-LSIND
226) Which function module can be used to transfer the data using bdc
programming?
Ans.
227) How can you make the Smart forms to choose a printer name by
default?
Ans. In the call function of the Smart form Function Module, set the output options parameter to
set the printer’s name.
The output options is of the type SSFCOMPOP which contains the field TDDEST. Set the
TDDEST field to your default printer name.
228) Where can I provide the input parameters to the smart form?
Ans. Global Settings->Form Interface.
232) How can you see the smart form print preview output as list
output?
Ans. Type SLIS in the command prompt and hit enter.
1. Ans. Go to the properties of 'PAGE', tab 'Background Picture'. Add the graphic
image name here. Make sure to select "Print preview and print" output mode.
2. And add a window in front of a background picture, the image will behave as a
watermark.
Ans. At the Page level in smart forms, you can find something called as Print Mode. Set
the Print mode to duplex to print on both sides of the smart form.
Ans.
239) How can you display the total number of pages in smart form?
Ans.
242) where can i define my own global type for the smart forms?
Ans. The input parameters for the smartform can be defined in Global Settings->Form
Interface. The Associated Type must be defined in the ABAP Dictionary.
245) What is the max. no. Of structures that can be included in a table
or structure.
Ans- Nine
a- We can modify the tables by extended/add new fields to the table >>Go to table in SE11 >>>click
on change button, in that screen >>Click APPEND STRUCTURE.
b- The second method is customizing includes. We can add includes in structure.
Append Structure: # In case of an append structure, the table itself remains unchanged and the
reference originates in the append structure.
250) What are the two ways for restricting the value range for a
domain?
Ans- – By specifying fixed values.
– By stipulating a value table.
-You first define the relevant tables and fields for the search in a matchcode object.
-A matchcode object describes the set of all possible search paths for a search string.
252) Can you delete a domain, which is being used by data elements?
Ans- No, we can not delete if it is being used by any data element. You can only delete a domain if it is
no longer being used by a data element.
- Conversion routines are used to convert from external display format to internal storage format and vice-
versa.
Function: A data element is a focus of a DQ check (annotation is represented by “[[ data element ]]” for
parsing); a function is the qualitative or quantitative evaluation over the data element (annotation is
represented by “{{ function }}” for parsing). Each DQ check is essentially a function of a data element
Table Structure
Structure can not store data physically, it
Tables will store data physically and permanently. can hold data at run time only.
Tables have primary key’s. Structure’s does not have any primary key.
Table have technical settings (data class, size category, etc), Structure’s does not have any technical
maintenance attributes (Display maintenance restrictions). attributes and maintenance attributes.
Structures does not have primary and
Table have primary and secondary indexes. secondary indexes.
Whereas work area is a variable declared with the TYPE of an internal table or a database table. It can
store only one record at a time. It is like a structure declaration in C. You can refer individual columns in
the work area with the names.
Standard Tables. Access by linear table index or key. Response time proportional to table size.
Sorted Tables. Filled in sorted order. Access by linear index or sort key. Response time
logarithmically proportional to table size.
Hashed Tables.
262) What is the difference between COLLECT and APPEND
statements
Ans- APPEND: This keyword will append the current contents of the table header or the structure to the
end of the table as a new record.. This will not affect the any existing record of the table.
COLLECT : This keyword is used for summation purposes.. when you collect a record to an internal
table, it will find that is the table already have any record with the same key values? If yes, then it will add
all the numeric values of the new record to the existing record without changing the non numeric values..
DESCRIBE TABLE <Internal Table Name> LINES <Variable Name> Once the function is executed the
variable will hold the number of rows in the internal table
A FREE statement is used to delete entire rows and free all the memory(used when the internal table
is no longer needed).
266) What are the different control break statements available inside a
loop?
Ans- The following control break statements are available with in LOOP and ENDLOOP.
-The code between AT NEW and ENDAT is executed only during the first loop pass. So it is used
to write the headers or some other initialization processing.
-The code between AT LAST and ENDAT is executed only during the last loop pass.
-It doesnt allow to write at new or at end of between select and endselect.
ON CHANGE OF is unsuitable for recognizing control levels in loops of this type because it always
creates a global auxiliary field which is used to check for changes. This global auxiliary field is only
changed in the relevant ON CHANGE OF statement. It is not reset when the processing enters loops or
subroutines, so unwanted effects can occur if the loop or subroutine is executed again. Also, since it is
set to its initial value when created (like any other field), any ON CHANGE OF processing will be
executed after the first test, unless the contents of the field concerned happen to be identical to the initial
value.
275) What is the ABAP program name to process the batch input
session automatically?
The ABAP program RSBDCSUB must be scheduled as a periodic job in the SAP background processing
system. RSBDCSUB checks for and starts any batch input sessions that have not yet been run. It
schedules such sessions for immediate execution in the background processing system.
And on the other hand the explicit enhancements can be implemented by the customers or partners.
They are predefined at the beginning and end of includes, FM's etc. You can see what are available by
going into editor and go to edit -> Enhancement Operations -> Show Implicit
CUSTOMER-EXITS: These exits are delivered by SAP as Function module calls. So in standard SAP
code you will find statements like CALL CUSTOMER-FUNCTION '003' … for example in Include
LCATSF0Y on line 21 you will find the statement CALL CUSTOMER-FUNCTION '003' However the
corresponding Function Module EXIT_SAPLCATS_003 has an include ZXCATU03 which does not exist.
Hence based on your client requirements you will need to add code into this include to enhance the
behavior of the standard SAP program. Notice that since here you are not actually changing any of SAP
standard code hence this is not considered a modification and you will not have any issues during future
upgrades.
BADI: Business Add-Ins are an Object Oriented way of implementing SAP enhancements. The limitation
of a custom exit is that it can only have a single include implementation in it. However a BADI can have
several implementations ( implemented as Classes as opposed to Include Programs as in the case of
Customer Exit) and you can select which implementation should be called based on a Filter value. BADI's
are specific to the module and the relevant BADI can be found through the IMG configuration node of that
module. Technically SAP Standard code uses the class CL_EXITHANDLER to identify and call the
relevant BADI class."
The problem with this method is for each record in the first internal table, when system checking
for the matching record in second table, it search all the records starting from index 1 to the last record.
To overcome the performance issue , there is a method called parallel cursor, in this method
before the loop in second table, first we read the index of the matching record in second table , and then
loop get starts from the that index only and exist , when record not match. In this method for each record
of first table system check and perform logic only for the match records of second table"