Daypo.net ABAP Tests
-
Upload
swati-jain -
Category
Documents
-
view
215 -
download
0
Transcript of Daypo.net ABAP Tests
-
7/24/2019 Daypo.net ABAP Tests
1/25
How is an ABAP program with several dialog steps executed?
The program is always executed in just one dialog work process witout
The program is always executed in just one dialog work process wit
roll out
The ABAP dispatcher takes over the entire execution with out assigany work process.
Usually dialog steps are assigned to different dialog work process
When do you need to use the GROUP BY clause in the SELECT statement?
If you want to use aggregate functions and all components in the fieare aggregate functions
If you want to redefine the sequence of the columns in the result se
If you want to use aggregate functions and at least one component
field list is a column identifier
If you want to use ORDER BY to specify a sub-order
What feature are provide by the databse interface?
Note: 3 ans
Sytax check of "native" SQL commands
Conversion of Open SQL statements from ABAP statements into thcorresponding databse statements.
Access to SAP table buffers.
Databse independence of application programs
Data consistency check using foregin key relationships
-
7/24/2019 Daypo.net ABAP Tests
2/25
In which modularization units can you use parameters?note: 3 Ans
Subroutines
Function module
Methods
Dialog modules such as PBO modules
Event Blocks such as START-OF-SELECTION
Which boundary conditions lead to improved access time to an internal table
note: 3 ans
Index access for hashed tables
Fully qualified key for sorted tables
Left Justified part of key for sorted tables
Index access for standard tables
Left justified part of key for hashed tables
What happen when an authorization check fails?
The program is terminated
A CX_AUTH_FAILED type exception is raised
A type E message is displayed
The system field SY_SUBRC is set to a value other than zero
-
7/24/2019 Daypo.net ABAP Tests
3/25
when analyzing a program,which tasks can you perform using the code insp
Discover unused variables
Determine used database tables.
Evaluate the time needed for program execution.
Inspect the memory consumption
Search for ABAP Statements
To which ABAP Dictionary definition can you assign fixed values?
Component of a structure
Domain
Data element
Field of a transparent table
How can you maintain documentation for input fields on your screen?
note:2 ans
Define Text tablesfor the underlying structure
Add documentation to the underlying data element.
Use PROCESS ON HELP_REQUEST(POH)
Add Documnetation tot he SCREEN table at PROCESS BEFOUROUTPUT
Which ABAP statement using the local type gty_1 correctly defines a data ob
DATA gv_1 TYPE gty_1 DEFAULT '1'.
DATA gv_1TYPE gty_1 VALUE '1'.
CONSTANTS gc_1 TYPE gty_1.
DATA gv_1 LIKE gty_1.
-
7/24/2019 Daypo.net ABAP Tests
4/25
A customer changes tha code of a standerd SAP ABAP program.
How do you call this action?
Correction
Customizing
Modification
Personalization
What can you do using the class builder?note: 3 ans
Redesign classes and interfaces using the refactoring assistant.
Convert methods to function modules
Import classical screens from your program
Test Classes in a simulated runtime environment
Improt local classes and local interfaces from your program
which of the following data objects are called "deep"?
Note: 3 ans
Structures containing only numberic components
Type F elementary variables
Reference variables
STRING type elementary variables
Internal tables
-
7/24/2019 Daypo.net ABAP Tests
5/25
what can you enhance using BAdIs?
note 3 ans
Screens
Database tables
Data elements
Souce Code
Menus
You have created a classical screen(dynpro) with 5 radio buttons.How do you ensure that only one radio button is selected at a time?
Combine all radio buttons into a radio button group.
Enclose all radio buttons in a frame
Assigne the same value to the same modification group of all radio
Assigne the same functions code to all radio buttons
Which of the following data objects are called "deep"?
note: 3 ans
Type F elementary variables
Structures containing only numeric components
Reference variables
Internal Tables
STRING type elementary variables
-
7/24/2019 Daypo.net ABAP Tests
6/25
What is mandatory for automatic data transport between a variable and an in
field on a classical screen(dynpro)?
The variable must be declared using the TABLES statement
The name of the variable and the name of the input field must be id
The variable must be declared using the DATA statement
The property OUTPUT of the input field must be set.
What can you use to achive polymorphism?note: 2 ans
Events
Interfaces
Inheritance
Friends
You have defined a classical screen (dynpro) with mandatory input fields. Yo
to exit the screen using the Cancel button even if not all of the mandatory fielhave been filled.
What is necessary to achieve this?
Define the function code assigned to the Cancel button as type E ahandle it in a module with the addition AT EXIT-COMMAND.
Use the LOOP AT SCREEN.... ENDLOOP statement to set the "req
property of the input field to zero.
Set the function code assigned to the cancel button to CANCEL
Set the function type assigned to the cancel button to S.
-
7/24/2019 Daypo.net ABAP Tests
7/25
You want to start a module pool.
What do you need to create?
OO transaction
Dialog transaction
Selection Transaction
Report transaction
You want to use a BAdI to extend the functions of an SAP program.Which of the following tasks in necessary?
Create an enhancement project using a customer exit
Call the BAdI
Define an Interface for the BAdI.
Implement a class that implements that BAdI interface
Which of the following statements regarding database indexes and buffering
correct?
If table data is read using indexes the table buffer cannot be filled
If data is read from the table buffer, the existing indexes are not use
A buffered table cannot have secondary indexs
If indexes are defined for a table , buffering setting cannot be define
What is the purpose of implicit enhancement points?
To change code in a standard SAP program
To add code to a standard SAP program
To add fileds to an SAP database table
To create a secondary index for an SAP database table.
-
7/24/2019 Daypo.net ABAP Tests
8/25
What is the task of a view within a Web Dynpro component?
To define that navigation structure within a Web Dynpro Application
To define a part of the graphical layout
To define the URL for a Web Dynpro application
To store data that can be accessed by other controllers
An executable ABAP program contains a standard selection screen and useevent blocks AT SELECTION-SCREEN,AT SELECTION-SCREENOUTPUT,INITIALIZATION,START_OF_SELECTION
In which sequence will ABAP runtime call these event blocks?
INITIALIZATIONAT SELECTION-SCREEN
AT SELECTION-SCREEN OUTPUT
START_OF_SELECTION
AT SELECTION-SCREEN
AT SELECTION-SCREEN OUTPUTINITIALIZATIONSTART_OF_SELECTION
INITIALIZATIONAT SELECTION-SCREEN OUTPUTAT SELECTION-SCREEN
START_OF_SELECTION
AT SELECTION-SCREEN OUTPUTINITIALIZATION
AT SELECTION-SCREENSTART_OF_SELECTION
Where can you set the GUI status and the GUI title for a classical screen?
In the properties of the related header UI element
In a module called from PAI of the screen
In the attributes of the screen
In a module called from PBO of the screen
-
7/24/2019 Daypo.net ABAP Tests
9/25
What do you need in your program to respond tot he DOUBLE_CLICK eventby an instance of the CL_GUI_ALV_GRID class?
note: 3 ans
A method to read the registration table.
A SET HANDLER statement to reagester the handler to the event
A handler class
A CATCH statement to capture the event
A handler method for the event
Which options do you have when setting a watchpoint?
note: 2 ans
Stop at any change of any variable.
Stop at any change of a specific variable
Stop at predefined conditions for any variable.
Stop at predefined conditions for a specific variable.
How can you declare an internal table using the transparent table A as its lin
DATA gt_itab TYPE a
DATA gt_itab TYPE LINE OF a
DATA gt_itab TYPE REF TO a
DATA gt_itab TYPE TABLE OF a.
-
7/24/2019 Daypo.net ABAP Tests
10/25
The event block AT SELECTION-SCREEN contains a MESSAGE statement.issues a warning message that is displayed on the selection screen.
What action can the user take to continue the execution of the program afterMESSAGE statement?
Change at least one field value and press Execute.
Press Execute (F8) with out changing ant field value
Change at least one field value and pass ENTER
Press ENTER with out changing any field value
The instance method SUPER_METHOD belong to class CL_SUPER and th
instance method SUB_METHOD belongs to class CL_SUB.You Create two reference variables:DATA go_super TYPE REF TO cl_super.
DATA go_sub TYPE REF TO cl_sub.Which statement will raise a syntax error?
go_sub->super_method()
go_super->super_method()
go_super->sub_method()
go_sub->sub_method()
You define a component that contains two views.Each view contains an inbo
plug and an outbound plug.You want to define an application that display onlview at at time and allows navigation between these two views.
How do you define navigation between these two views?
Embed each view in a separate window and connect the plugs of thwindows using navigation links.
Embed the same window in both views using view containers and c
the pligs of the views using navigation links.
embed one view in a window , embed the other view in this view usiview container, and connect the plugs of the views using navigation
Embed both view in one window and connect the plugs of the views
navigation links.
-
7/24/2019 Daypo.net ABAP Tests
11/25
How do you embed a subscreen in a main screen?
Use CALL SUBSCREEN in a PBI module of the main screen
Use SET SUBSCREEN in a PBO module of the main screen
Use CALL SUBSCREEN in the flow logic of the main screen
Use SET SUBSCREEN in the flow logic of the main screen
Your program contains the following code:result = cl_list=>number_of_lists().
What type of component is NUMBER_OF_LISTS?
A public instance attribute
A public static attribute
A public static functional method
A public instance functional method
Which components belog to an elementary seatch help?
note: 3 ans
fixed values
Selection method
Attachement to a field
Import/Export parameters
Dialog behavior
-
7/24/2019 Daypo.net ABAP Tests
12/25
At the end of a project, the developers of a team need to release their tasksproject lead needs to release their change request R1. Now another develop
does not belong to this team needs to maintain the object O1 that is part of tchange request R1.
when will this developer be able to change the object O1?
After the request R1 has been released
After the object O1 has been activated.
After all objects of the request R1 have been imported successfully
the next system.
After the task that contains the object O1 has been released
Where can you define global data types that are visible system-wide?note: 3 ans
In the ABAP Dictionary
In a function module
In a global interface
In a method of a global class
In a global class
Which solutions are part of the SAP Business Suite?Note: 3 ans
SAP Business One
SAP Product Lifecycle Management
SAP Business BYDesign
SAP Enterprise Resource Planning
SAP Supply Chain Management
-
7/24/2019 Daypo.net ABAP Tests
13/25
You want to read data from 2 database tables A and B using a databasejoin.Database table B Contains details for data records stored in database ta
A.Your result should contain all combainations of matching rows from A andall rows from A that do not have matching rows in B.
Which statement do you use?
SELECT... FROM a JOIN b...
SELECT.. FROM a INNER JOIN b
SELECT.. FROM a LEFT OUTER JOIN b..
SELECT.. FROM b RIGHT OUTER JOIN a...
Which Modularization units can be called across serveral systems?
Subroutines
Methods
Function Modules
Dialog Modules
You want to check the user authorization for data entered in an input field of
selection screen.where do you do this?
In a PBO module of the selection screen
In the event block AT SELECTION-SCREEN OUTPUT
In the event block AT SELECTION-SCREEN.
In the event block LOAD-OF-PROGRAM.
-
7/24/2019 Daypo.net ABAP Tests
14/25
How can you start the ABAP debugger?
note: 3 ans
Set a breakpoint in the ABAP editor for a specific code line
Set a Watchpoint in the ABAP editor for a specific code line
Select Execute-> Debugging in the context menu of the program
Enter /h in the command field and proceed with the execution of the
program
Add the ABAP statement STOP tot he source code.
Which additional features have domains compared to ABAP dictionary build-
types?note: 3 ans
Conversion exits
value tables
search help
Parameters IDs
fixed values
Tou perform an update task using update function modules and detest an err
the program that calls the update function modules.which statement can be used to discard all updates requests for the current
LUW?
ROLLBACK WORK
DELETE UPDATE
EXIT
MESSAGE exxx(nnn)
-
7/24/2019 Daypo.net ABAP Tests
15/25
In which databse table type is there a one-toone relationship between the
Dictionary table defination and the relevent physical table in the database?
Internal table
Transperent Table
Cluster table
Pooled table.
Which steps are needed when implementing a singleton pattern?note: 3 ans
Define the instantiation of the class as private
Create an event that returns the instance of the class
Define the class as abstract
Save the instance of the class in one of its static attributes
Create an instance of the class in one of its static methods.
You want to check the user inut in the field FIELD_NAME on a classical scre
an incorrect value is entered, the user should be able to corect the field valuHow do you call the module CHECK_MODULE in the PAI of the screen to
accomplish this?
FIELD field_name MODULE check_module.
FIELD field_name MODULE check_module MESSAGE Ennn.
MODULE check_module ON ERROR.
CHAIN.MODULE check_module FIELD field_name,ENDCHAIN
-
7/24/2019 Daypo.net ABAP Tests
16/25
What can you create using the ABAP Dictionary?
Note 3 ans
Type Pools
Internal Tables
Field Symbols
Transparent Tables
Domains
Controller A declars controller B as a used controller.Which parts of controller B can be accessed by controller A?
Note: 2 ans
All context node
All supply functions
All normal methods
All controller attributes
which prerequisites must be fulfilled befour a repository object can be transpnote : 3 Ans
An Application component must be assigned to the repository objec
The repository object must be assigned to a change request
The repository object must be assigned to a package
An inactive version of the repository object must exist
A transport layer must be assigned to the package.
-
7/24/2019 Daypo.net ABAP Tests
17/25
you want to develop a classical scren(dynpro) with an input field. you define
input field with reference to a component of an ABAP Dictionary structure.
Define a foreign key relationship for the stuucture component.
Implement a PBO module to check the field value.
Assigne a search help to the input field.
Assigne a value table to the underlying domain.
What do global type and local type have in common?
Technical Information
Field Labels
Documentation
Search help
What do you have to consider when using the append structure technique fo
standerd SAP table?
An append structure triggers an adjustment when SAP delivers a nversion of the appending table
The name of the append structure must start with ZZ or YY
The field of an append structure should start with ZZ or YY
An append structure can be assigned to more than one table
-
7/24/2019 Daypo.net ABAP Tests
18/25
You have written a program to output data using the ALV grid control.Which sequence of steps should be executed at runtime?
1.Create a grid object.2.Create a container object
3. Pass data to the grid object.
1.Create a container object2.Create a grid object
3. Pass data to the grid object.
1.Pass data to the grid object.2.Create a container object
3.Create a grid object.
1.Create a container object2.Pass data to the grid object.
3.Create a grid object.
What do you have to do to add fields to an SAP-delivered transparent table
modification?
Create an Append structure containing the new fields
Add the new fields to the table definition.
Define a structure containing the new fields and include it in the tabl
definition
Use the database utility to enhance the definition on the database d
You implement a search help that displays data selected via an outer join.Which view type can you use?
Projection view
Help view
Maintenance view
Databse view
-
7/24/2019 Daypo.net ABAP Tests
19/25
What do you need to fully specify a table type?note 3 ans
Table Category
Line type
Table Key
Header Line
Table size
You want to display a dialogbox in your ABAP program.Which statement do you use?
SET SCREEN 200
WINDOW 200 STARING AT 5 5.
CALL SCREEN 200.
CALL SCREEN 200 STARING AT 5 5.
YOu have written a classical screen(dynpro) containing a button named P_Syou have assigned the function code SAVE to this button. You want to check
whether the user has clicked this button.how can you achive this?
Check wether the data object related to the OK code field contains tvalue SAVE
Check wether P_SAVE-ACTIVE equals 1.
Check wether SY-OKCODE contains the value SAVE
Check wether P_SAVE-OKCODE equals SAVE
-
7/24/2019 Daypo.net ABAP Tests
20/25
Which options do you have to read data from multiple tables within a SELECstatement?
Nested Select statements
Join statement
Database views
Polled tables
Nested loop statements
Which definitions are NOT allowed in ABAP objects?
Note: 2 ans
Definitions of nested structures
Definitions using the TABLES statement
Definitions of internal tables with header lines
Definitions of deep structures
Definitions of table types
You want to define two database tables with differrent structures. Both tablescontain the fields CHANGE_DATE and CHANGE_TIME.
How do you implement this in order to minimize the maintenance effort?
Define an append structure with these two fields and assign this apstructure to both database tables.
define the two fields in each databse table separately.
Define the two fields in one databse table and copy them to the oth
database table.
Define a structure with these two fields and include this structure indatabse tables
-
7/24/2019 Daypo.net ABAP Tests
21/25
What can you change in the ABAP debugger?
content of an internal table
Value of a constant
Value of reference variable
Definition of a structure
To which context object is the attribute LEAD_SELECTION_INDEX related?
Node
Element
Attribute
Supply function
How many bytes are needed for a type I data objects?
As many as are needed to store the assigned value.
2
4
8
Which comparision operators can you use in a logical experssion related to t
WHERE clause of the SELECT statment?
note : 3 ans
CP (Covers pattern)
EQ (equals)
GT (grater than)
CO (contains only)
LIKE ( fits pattern)
-
7/24/2019 Daypo.net ABAP Tests
22/25
Which assignment will lead to a conversion error?
A type P data object to a type F data object.
A XSTRING type data object to a STRING type data object.
A type C data object with the value '123' to a type C data object witlenght 2.
A type C data object with the value '1.50E4' to a type I data object.
Which of the following tools belong to the ABAP workbench?
Function builder
Easy access menu
Screen Painter
Implementation Guide
Class builder
How can you improve the performance of a database table access when usi
given SELECT statement?Note: 2 ans
Put the database table in the special fast access tablespace of thedatabase.
use appropriate table buffering for the database table.
Covert the database table to a pooled table.
Define appropriate indexes for the database table.
-
7/24/2019 Daypo.net ABAP Tests
23/25
What must you do to define a database view using the ABAP Dictionary?Note: 3 Ans
Define buffering settings for the underlying databse tables
Define the join condition between the table
Choose the fields from the tables that should be part of the view
Define selection criteria for the view
Choose the database tables from where the view acquires data
What kind of data object do you declare with the following Statement?
DATA myvar TYPE dbtab.
A structure variable
A reference to an internal table.
An elementary field
An internal table
Which controller types can exist within a Web Dynpro Component?
note: 3 Ans
Window controller
Application Controller
componentcontroller
User Controller
view controller
-
7/24/2019 Daypo.net ABAP Tests
24/25
Why do you need to bundle database update in your dialog programs?
To avoid database locks set by an SQL statment persisting until thethe program
To avoid data inconsistency due to the implicit database commit aftdialog step
To be able to rollback databse changes performed in the same dial
To be able to use SAP locks
How do you program an input validation on a selection screen that allows us
correct their input?
Implement a check at the event AT SELECTION-SCREEN in case
input error, a type E MESSAGE must be displayed.Implement the check at the event AT SELECTION-SCREEN OUTP
case of an input error, a type E MESSAGE must be displayed.
Implement the check at the event END-OF-SELECTION. In case ofinput error, a type E MESSAGE must be displayed.
Implement the check at the event AT SELECTION-SCREEN. In cas
input error a type A MESSAGE must be displayed.
You Want to define a foreign key relationship between a combination of fieldtable and the primary key fields of another tableWhat do you have to consider?
The cardinality of the foregin key relationship must be 1:cn
The check field and its corresponding fields in the check table must
the same domain.
The number of key fields in the foreign key table must be exactly thas in the check table
The table must be assigned as a value table in the domain of the chfield
-
7/24/2019 Daypo.net ABAP Tests
25/25
Which parameter types can be used in the signature of a functional method?
note: 2 ans
EXPORTING
RETURNING
IMPORTING
CHANGING
You want to loop over an internal table with out copying each table row to aarea.how can you achieve this using a field symbol?
LOOP...TRANSPORTING INTO.ENDLOOP.
LOOP...INTO.ENDLOOP.
LOOP...REFERENCE INTO.ENDLOOP.
LOOP...ASSIGNING.
ENDLOOP.
Which statements are allowed for processing internal tables?
note: 3 ans
MODIFY
DELETE
UPDATE
SELECT
INSERT