Sap-Taw12 Questions
Sap-Taw12 Questions
Sap-Taw12 Questions
(3 correct)
N
T
D
P
X
MISSING 2
3. Which Database objects can you create in the ABAP Dictionary? (2 correct)
Indexes (Also Indexes)
Views (Projection views)
Foreign key relationships
Logical databases
https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-
us/abenddic_classical_objects.htm
6. How can you search for classic Business Add-Ins (BAdIs)? (2 correct)
Search in the application program for the CALL BADI statement
Search in the application program for the GET BADI statement
Search the relevant component in the Implementation Guide (IMG)
Search in the application program for the method GET_INSTANCE of class
CL_EXITHANDLER
8. Which of the following actions can you perform in both the ABAP Editor and in the
ABAP Debugger
Create a breakpoint for a specific statement
Create a breakpoint for a specific message
Create a breakpoint for a specific line
Create a watchpoint for a specific variable
9. You want to develop a program that processes character type data. When you
implement the program, you can either use the classical string statements or the never
string expressions and functions.
What are the main benefits of using the newer string expressions and string functions?
(2 correct answers)
You can write compact syntax instead of a long sequence of statements
You can improve the performance significantly
You can reduce the number of intermediate variables
You can write code that is very easy to read and understand
10. What transaction can be used to carry out modification adjustments after a system
upgrade? (2 correct)
SPAU_ENH
SPAD
SPAU
SPDD
Found answer
- Modification adjustment: Dictionary object selection transition SPDD to adjust
ABAP dictionary object
- Modification: adjustment object selection transaction spud to adjust ABAP
repository object
11. You have been asked to review the following expression, which process character
strings:
result = find( val = ‘abapABAP’
sub=’A’
occ= 2
case = ‘X’…..)
What is the expected value of the result?
1
2
4
6
12. What are some of the new features of Open SQL in SQL NetWeaver 7.5? (2 correct)
Full Join
String expressions
CASE expressions
Intersection
13. What parameters can you set when you run the Code Inspector? (3 correct)
Object set name
Work process name
Inspection name
Background job name
Check variant name
14. Your program preforms a database update by calling function modules in an update
task
Which ABAP statements can be used in the program to discard all update requests for
the current SAP logical unit of work (LUW)? (3 correct)
MESSAGE TYPE W
MESSAGE TYPE A
ROLLBACK WORK
MESSAGET TYPE X
MESSAGE TYPE E
15. What ABAP Dictionary object allows you to define fixed values?
Data element
View
Lock object
Domain
16. A user runs an ABAP program, enters an incorrect value on the selection screen,
and chooses Execute.
Which event block must send the error message in order to display the selection screen
again?
AT SELECTION-SCREEN
AT SELECTION-SCREEN ON HELP-REQUEST
AT SELECTION-SCREEN OUTPUT ???
AT SELECTION-SCREEN ON VALUE-REQUEST
17. You have been asked by a customer to develop Open SQL code to convert the value
of argument “arg” into the ABAP Dictionary specified….
Which SQL syntax do you use to meet this requirement?
CASTING(arg FOR type)
CAST(arg AS type)
CAST(arg FOR type)
CASTING(arg AS type)
18. What can be part of the signature of an instance constructor? (2 correct)
Exporting parameters
Importing parameters
Changing parameters
Exceptions
19. Which of the following components are part of SAP NetWeaver AS ABAP version
7.1x and higher? (2 correct)
SAP GUI for Java
Internet Communication Manager (ICM)
Software Deployment Manger (SDM)
Message Server
20. What are the advantages of defining text symbols in executable programs? (2
correct)
They are easier to maintain than literals
They facilitate multilingual functionality
The text of the text symbol can be changed at runtime
They can store up to 256 characters.
23. To which of the following can you assign a search help? (3 correct)
Data element
Domain
Check table
Table type
Structure component
24. You want to define a field symbol that will be assigned to a character string
Which generic types can you use? (3 correct)
Any table
Any
Csequence
Clike
Xsequence
25. You write a program that updates a data record in the database using the following
statement:
UPDATE scar FROM ls_scarr
Which of the following tasks does the database interface perform? (2 correct)
It checks the authorization of the current user
It translates the statement to native SQL
It applies a logical lock to the updated data record
It restricts the access to the logon client
- Conversion of OpenSQL statements from ABAP statements into the
corresponding database statements
- Database independence of application programs
- Access to SAP table buffers
26. Your program uses class CL_GUI_ALV_GRID to generate a classic ALV Grid
Control
What do you need in your program to react to a user double-clicking a row in the ALV
Grid? (3 correct)
A method call to raise the double_click event
A handler method for the double_click event
A handler class
A SET HANDLER statement to register the event handler to event
A method call to refresh the display
27. You have created table ZTAB and you want to create a foreign-key relationship to
table SAPTAB.
Under which condition is this possible?
The check field in ZTAB must have the same ABAP Dictionary type as the
corresponding field of check table SAPTAB.
The check field in ZTAB must have the same name as the corresponding field of
check table SAPTAB.
The check field in ZTAB must have a data element that does NOT refer to
domain
The check field in ZTAB must havethe same domain as the corresponding field of
check table SAPTAB
28. You have declared a sorted internal table with the columns A, B, C and D. The key
consists of columns A B and C in this order.
Which combination of columns in the WHERE clause of a LOOP statement allows the
system to optimize the access to the table? (2 correct)
A B C and D
B and C
C and D
A and B
29. In which of the following source code blocks can you define local data objects? (3
correct)
Subroutine
PBO module
LOAD-OF-PROGRAM
Static method
Function module
30. Which data types are incomplete ABAP standard data types? (3 correct)
D
C
N
P
I
31. You want to read a single line of an internal table using table expression itab[…]
How can you identify the line? (3 correct)
Specify a free table key
Specify a secondary table key
Specify the line index
Specify a WHERE condition
Specify a regular expression
32. What do you need to consider when creating a secondary index on a table? (2
correct)
The index can be created for specific database systems only
The table will be updated more quickly if you create more indexes
The most frequently selected fields should be at the first positions in the index
The index must always be unique
33. How is the data shared between WEB Dynpro controllers? (2 correct)
By using context mapping from a view controller to the component controller
By using data binding from a view controller to another view controller
By using context mapping from a view controller to a custom controller
By using context mapping from a view controller to another view controller
35. A customer has asked that you improve a performance for a small table with frequent
read accesses.
What buffering type do you recommend?
Primary key
Full table
Column store
Single record
36. What type of method is generated automatically by the Web Dynpro Explorer when
you assign and an action to a button UI element?
Supply function
Event handler method
Ordinary method
Standard hook method
37. In which order do you implement a new BAdI?
1 create enhancement spot implementation 2 create badi implementation
1 create enhancement project 2 create badi implementation
1create badi implementation 2 create enhancement project
1create badi implementation 2create enhancement spot implementation
39. You created a class by inheriting from a superclass. The superclass contains a
public instance method do_something.
You want to redefine method do_something
What must you do?
Change the visibility of the method to PROTECTED
Declare the method FINAL
Call the implementation in the superclass.
Leave the signature of the method unchanged
44. You have written a method implementation containing the following access to an
internal table defined as a changing parameter of the method.
READ TABLE ct_itab INTO cs_struc INDEX 1.
What are the possible type definitions for parameter ct_itab? (3 correct)
Standard table
Index table
Sorted table
Any table
Hashed table
46. You call a lock module. Which exceptions could the lock module raise when a logical
lock CANNOT be set? (2 correct)
SYSTEM_FAILURE
FOREIGN_LOCK
CX_SY_OPEN_SQL_ERROR
CX_SY_DATA_ACCESS_ERROR
47. You enhance an SAP standard global class by defining a post-method for an SAP
method. The original SAP method as an EXPORTING parameter named PAR 1. What
type of parameter is PAR1 in the post-method?
CHANGING
IMPORTING
RETURNING
EXPORTING
PROTECTED SECTION.
CONSTANTS: c_pos type i value 100.
METHODS: get_passengers.
PRIVATE SECTION
DATA: mv_passengers TYPE i.
METHODS: set_attributes.
ENDCLASS
Which components can be addressed directly from a subclass of class lcl_airplane? (3
correct)
GET_PASSENGERS
SET_PASSENGERS
MV_PASSENGERS
C_POS
SET_ATTRIBUTES
49. After which statement will the runtime system initialize the ABAP memory?
LEAVE TO TRANSACTION
SUBMIT
CALL TRANSACTION
SUBMIT…AND RETURN
51. You are asked to enhance the GUI status of an SAP standard application.
How do you identify which menu exit function code you can use?
It starts with an asterisk (*)
It starts with a dollar sign ($)
It starts with an ampersand (&)
It starts with a plus (+)
52. What properties will be set when you define a table type in the ABAP Dictionary? (3
correct)
Change document
Line type
Access mode
GET/SET parameter
Primary key
53. What is data binding?
Connecting the values of user interface elements to the context attributes of the
corresponding controller
Connecting an outbound plug of one view to the inbound plug of another view
Connecting one Web Dynpro component to another Web Dynpro component
Connecting a context node in one controller to a context node in another
controller
55. Which of the following standard hook methods exit in all Web Dynpro controllers? (2
correct)
Wddobeforenaviation
Wddoinit
Wddoafteraction
Wddoexit
56. You define database view A and maintenance view B in the ABAP Dictionary.
What restrictions apply to these views? (2 correct)
The tables joined in A must have foreign key relationships.
Only A can be used in the from clause of a select statement
The join type of both A and B is an inner join
The tables joined in B must have foreign key relationship
57. A function module that has 2 classical exceptions s called with actual parameter
values in such a way that both exception conditions are fulfilled.
How will the runtime system behave?
Both exceptions will be raised. In the calling program, sy-subrc has the value
specified for the OTHERS option
Both exceptions will be raised. In the calling program, sy-subrc has the value
specified for the second exception.
The first exception will be raised. In the calling program, sy-subrc has the value
specified for the first exception.
No exception will be raised. In the calling program, sy-subrc as the value
specified for the OTHERS option
Which components of the class can static method static1 address directly? (2 correct)
The state_changed event
The t_table type
The do_something method.
The gc_const constant
59. You want to loop over an internal table without copying each table row to a work
area.
How can you achieve this using a field symbol?
LOOP…INTO <field_symbol>….ENDLOOP.
LOOP…REFERENCE <field_symbol>….ENDLOOP.
LOOP…ASSIGNING <field_symbol>….ENDLOOP. ???
LOOP…INTO <field_symbol> TRANSPORTING….ENDLOOP.
60. Which of the following elements can a string template contain? (2 correct)
Literals
Functional method calls
String processing statements
Function module calls
61. You have created a screen on which the user enters data that is to be inserted into
table T1
How do you ensure that the content of field F in table T1 is checked against table T2
Create a foreign key for the assigned field of field F of table T1 in table T2 and
make table T1 check table.
Create a foreign key for field F of table T1 and make table T2 check table
Create a foreign key for field F of table T1 and make table T2 the foreign key
table
Create a foreign key for the assigned field of field F of table T1 in table T2 and
make table T2 the check table.
64. What are some of the advantages of using Open SQL? (2 correct)
The application server buffer is NOT used
Syntax is checked at design time
All standard SQL commands can be used
It can be used with any supported DBMS
66. In which event block can you overwrite the default value of a PARAMETERS field on
the selection screen?
AT SELECTION-SCREEN
START-OF-SELECTION
PROCESS BEFORE OUTPUT
INITIALIZATION
67. What ABAP statements can you use to create an instance of class
CL_GUI_CUSTOM_CONTAINER in an ABAP program?
1
DATA: go_container TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
CREATE DATA go_container…
2
DATA: go_container TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
CREATE OBJECT go_container…
3
DATA: go_container TYPE CL_GUI_CUSTOM_CONTAINER.
CREATE OBJECT go_container…
4
DATA: go_container TYPE CL_GUI_CUSTOM_CONTAINER.
CREATE DATA go_container…
69. Which of the following statements correctly define a data object with the type of data
elements s_conn_id? (3 correct)
CONSTANTS gc_id TYPE s_conn_id VALUE ‘0400’.
DATA gv_id LIKE s_conn_id.
DATA gv_id TYPE REF TO s_conn_id.
PARAMETERS pa_id TYPE s_conn_id.
DATA gb_id TYPE s_conn_id
70. Which of the enhancements can provide a screen exit? (3 correct) also known
Explicit enancment sections
Customer exits ???
Classic BAdIs
New BAdIs
Explicit enhancement points
- Classic BADIs
71. Which of the following settings can you define for both structures and transparent
tables in the ABAP Dictionary? (2 correct)
Storage type
Enhancement category
Size category
Foreign key relationships
DATA: r TYPE p,
a TYPE i VALUE 201,
b TYPE i VALUE 200,
c TYPE i.
73. You write a report that displays mass data in a table using the ALV Grid Control.
Which of the following functions can you offer to the user without doing any specific
programming? (2 correct)
Sort and filter the data by and column
Convert currency amount columns
Change column width and sequence
Display details by double-clicking on a row
75. You run an executable program that contain the following code:
DATA: gv_var1 TYPE n LENGTH 3,
gv_var2 TYPE n LENGH 3 VALUE ‘456’.
START-OF-SELECTION.
CLEAR gv_var2.
gv_var2 = gv_var1.
gv_var1 – ‘123’.
At what point does the system reserve memory for data object gv_var1?
At the beginning of the START-OF-SELECTION event block
When value ‘123’ is assigned to the data object
When the assignment to gv_var2 is executed
As soon as the program is loaded into the internal session
76. You need to create a piece of code that can be used by multiple programs.
Which of the following techniques does SAP recommend? (Note: there are 2 correct
answers to this question.)
Use an include program
Use a function module in a function group.
Use a method in a local class.
Use a method in a global class.
78. Which of the following rules must you follow when you create a static constructor
(Note: There are 2 correct answers to this question.)
You must define the method as public.
You must name the method CONSTRUCTOR.
You can define class-based or classic exceptions.
You CANNOT define parameters
79. How do you create lock objects and lock modules for use in ABAP programs that
access the database?
Use the Function Builder to create the lock modules. The Lock objects are
created automatically.
Use the ABA Dictionary to create the lock objects Use the Function Builder to
create the lock modules..
Use the ABAP Dictionary to create the lock objects. The lock modules are
created automatically.
Use the Function Builder to create the lock modules and the lock objects.
EXTRA
Each component has an interface of what does this interface consist? 2 correct
- Interface context
- Data container
- Interface view
- Interface controller
Which of the following predefined data types are character types? 3 correct
- D
- N
- X
- T
- P
Which of the following action can you perform in both the ABAP editor and the ABAP
debugger?
- Create breakpoint for a specific line
- Create watchpoint for a specific variable
- Created a breakpoint for a specific message
- Create as breakpoint for a specific statement
In a subclass, you want to redefine a method of the super class. Which of the following
conditions must be fulfilled?
- The super class method is abstract
- The subclass method has a lower visibility that the super class method
- The subclass method has same visibility as the super class method
- The superclass method is an instance method