Professional Documents
Culture Documents
Abap Test and Answers
Abap Test and Answers
1) Select the right order of event processing for the selection screen.
a) Initialization, At selection screen, Start of selection, At selection screen output.
b) Start-of-selection, At selection screen output, At selection screen, Initialization.
c) Initialization, At selection screen output, At selection screen, Start-of-selection.
d) Initialization, Start-of-selection, At selection screen output, At selection screen.
2) How many bytes does the declaration of a variable of integer data type within a program be
allocated?
a) 4 bytes
b) 2 bytes
c) 1 byte
d) 8 bytes
5) If you noticed a function code in a menu that began with +, what type of exit is it?
a) Menu exit
b) Program exit
c) User exit
d) Screen exit
9) How can you add a field to an SAP delivered transparent table without doing a modification?
a) Define structure and use .Include
b) Assign field to table definition in change mode
c) Create an append structure
d) use DB utility to enhance
10) Which of the following is used to provide highlight color for a column in the ALV grid?
a) set a new variant
b) use a field catalog
c) use a new layout
d) trigger an hotspot event
11) What is the term used when a change is made to customer object in a system other than the
original system?
a) change
b) repair
c) modification
d) correction
14) While debugging a program, you are required to use watch points. which of the following are
correct?
a) stops at predefined condition for a specific variable
b) stops at any change of a specific variable
c) stops at predefined condition of any variable
d) stops at any change of any variable.
17) Which of the following are required for defining a database view?
a) the join condition
b) choose fields of db table
c) define selection criteria
d) choose tables
e) choose maintenance settings
18) You are a part of a development team that is responsible for creating a number of objects
for your project, what are the prerequisites to reference one developed object within another
object?
a) The referred object must be assigned to a package.
b) active version of referred object must exist
c) the referred object must be assigned to change request in the transport layer
d) the referred object must be assigned to the same package as the other object.
19) Which internal table will have the same response time irrespective of the size of the table?
a) Sorted table
b) Hashed table
c) Transparent table
d) Standard table
20) how can the field p_carrid be hidden from the screen.
a) Read table screen with key name = 'p_carrid'.
screen-active = 0.
modify screen.
b) Loop at screen.
If screen-name eq 'p_carrid'.
screen-active = 0.
endif.
modify screen.
endloop.
d) Loop at Screen.
if screen-name = 'p_carrid'.
screen-active = 0.
modify screen.
endif.
endloop.
21) Which of the following will read a single line of an internal table itab.
a) select single * from itab.
b) read itab.
c) loop at itab…. endloop.
d) read table itab.
22) You are working on the program which is updating the database. If the changes made to the
database are to be rolledback what should the code contain?
a) Rollback work.
b) Message 'changes aborted' type 'A'.
c) Message 'changes aborted' type 'E'.
d) Commit work.
23) The database interface is an important component within the work process. What does it
do?
a) Checks the syntax of native SQL.
b) does the data consistency check using foreign key relationship.
c) accesses the sap table buffers.
d) database independence of the application programs.
24) Move field1 to field2. Using this syntax will cause a conversion error for.
a) Type C with value '1.50E4' to type I
b) Type P to Type F.
c) Type C with value '123' to Type C with length 2.
d) Type C with value '12345678' to Type D.
26) Which are the considerations for creating a foreign key relationship between fields of a table
to the primary key of another?
a) The check field and its corresponding field in the check table must have the
same domain.
b) Check table is assigned as a value table in the domain of the check field.
c) the number of key fields in foreign key table must be exactly the same as in the check
table.
d) the check field must be a key field same as the primary key field of the check table.
29) A screen is designed to call another screen as a modal dialog box when it uses the syntax.
a) Call screen 200 starting at 5 5.
b) Call subscreen 200
c) Call screen 200 starting at 5 5 ending at 50 10
d) Call subscreen 200.
31) If a field is passed as a parameter to a routine or a function module, its value will not be
affected in the main program when you use.
a) Pass by reference
b) Pass by value
c) Pass by value and result
d) Pass by reference and result
32) It is required that you add two fields (mobile and email) in two database tables that you had
created earlier. Which is the best option?
a) Use the customizing include
b) Create a structure with the fields and append them to both tables
c) Create a structure with the fields and include them to both tables
d) Add directly to the two tables
33) Which condition must be fulfilled in a program check so that a screen input field is ready for
input?
a) CHAIN….. ENDCHAIN
b) FIELD field_name MODULE check_module
c) MODULE check_module AT EXIT-COMMAND
d) MODULE check_module ON VALUE-CHECK
34) You are working on a program 'SAPMABC' and within are editing code of an include 'ZABC'.
What are you working on?
a) doing a modification
b) doing an enhancement
c) doing a customer development
d) doing a repair
35) The property that is selected to allocate space for a table in the database is
a) Data Class
b) Size Category
c) Delivery Class
d) Initial Extent
36) Which one of the following is the correct flow of an ALV GRID?
a) Create an object for cl_gui_custom_container
Create a custom container on the screen
Assign it to cl_gui_alv_grid
Call Method set_table_for_first_display( )
37) The Netweaver AS works as an integration platform in the SAP system. Which among these
are the components of it?
a) Business Warehouse (BW)
b) Product Lifecycle Management (PLM)
c) Customer Relationship Management (CRM)
d) Master Data Management (MDM)
43) What process is used to establish the automatic transport of data between the view
controller's context and the UI element of its layout?
a) Context Mapping
b) Data binding
c) Data migration
d) View Assembly
45) Screen 200 follows Screen 100. Screen 100 is displayed with GUI status 'BASE'. Screen
200 is then displayed without issuing the SET PF-STATUS. What will take place?
a) Status 'BASE' is displayed
b) Standard List Status
c) Screen 200 will not have any pf-status
d) run time error
a) ABAP PROGRAM
b) syntax error
c) A
d) none of the above.
48) Which of the following are true?
a) You can change the type of assigned data object using the casting-type
addition for the assign statement.
b) A field symbol always references a data element.
c) If you change the value of the field symbol, the value of the data object to which
the field symbol is assigned is also changed.
d) A field symbol only references a data object after it has been assigned to the
field symbol using the assign statement.
50) The cardinality of the relationship between the check table and the foreign key table is
defined as 1:N. What does this imply?
a) Many records of the check table are assigned to one record of the foreign key table
b) One record of the check table is assigned to many records of the foreign key
table
c) One record of the check table is assigned to one record in the foreign key table
d) One record of the foreign key table is assigned to one record in the check table.
51) The controller within a webdynpro component that is visible to all other controllers is _____
a) Interface controller
b) Component controller
c) View controller
d) Window controller
52) What conditions apply for a LEFT OUTER JOIN in OPEN SQL.
a) Only or can be used as a logical operator in the ON condition
b) Atleast one field from the table on the right is required for comparision in the
ON condition.
c) A join statement is found to the right of the join operator
d) A left outer join is not permitted in open sql
53) Which of the following describes the internal representation of a type D data object?
a) DDMMYYYY
b) YYYYDDMM
c) MMDDYYYY
d) YYYYMMDD
56) Choose the correct operators that can be used in the WHERE clause.
a) GT
b) EQ
c) LIKE
d) IN BETWEEN
57) Which of the following cardinalities ensures that in a node defined under the root context
node, you have atleast one default element?
a) 1…1
b) 0…1
c) 0…n
d) 1…n
58) Which boundary conditions lead to improved access time to an internal table?
a) Index access to standard table
b) index access for hashed table
c) key access for sorted table
d) key access for standard table with binary search addition
e) key access for hashed table
59) Changes which are done to an SAP program in the development system are termed as
a) Customizing
b) Customer Development
c) Modification
d) Personalization
60) You have declared an internal table it_tab based on a transparent table db_tab. How can
you now define a work area for it?
a) data : wa_tab like it_tab.
b) data : wa_tab like db_tab.
c) data : wa_tab like line of it_tab.
c) data : wa_tab like line of db_tab.
61) A super class has a method super_method and a subclass has a method sub_method.
data : go_super type ref to super_class
data : go_sub type ref to sub_class
Which of these method calls is not possible and will give a syntax error?
a) go_super->super_method( ).
b) go_super->sub_method( ).
c) go_sub->super_method( ).
d) go_sub->sub_method( ).
62) Type definitions can be local or global. Which of these would you consider is common
between them?
a) Field Label
b) Technical settings
c) Documentation
d) Search Help
63) Data : my_var type db_tab. What is my_var, where db_tab is a transparent table?
a) my_var is a variable of the first key field from db_tab.
b) my_var is a structure of db_tab
c) my_var is an internal table of db_tab
d) my_var is a transparent table like db_tab
65) An SAP object when created can be in a status - ACTIVE or INACTIVE. Which is true with
regards to the status?
a) Active object is visible only in the editor
b) Inactive object cannot be transported
c) Inactive objects are visible only to the developer
d) Active objects can be used in other objects
66) Dialog programs perform an automatic data transfer between the screen and program. How
is it done?
a) By using the same name and value for the fields
b) By using the same name and declaration with DATA.
c) By using the same name and declaration with TABLES
d) By setting property OUTPUT of input fields
73) Which statement is used to move identically named fields between structures?
a) MOVE
b) ASSIGN
c) MOVE_CORRESPONDING
d) MOVE-CORRESPONDING
74) Which of the following will clear the header line of the internal table itab?
a) CLEAR itab
b) REFRESH itab
c) FREE itab
d) DELETE itab
76) An ABAP program makes calls to a function module from the same function group. What
happens with the global data from the function group?
a) function modules from the same function group can access the data when they
are called.
b) the global data is reinitialized for each call
c) the global data remains active only for the duration of the function call only
d) the global data remains available for the duration of the calling program.
77) Which statement is used in ABAP programming to check if a user is authorized to perform
an action?
a) check sy-subrc
b) check authority
c) authority-check
d) check permission
78) Which of the following is used to assign a superclass reference to a subclass reference?
a) Widening Cast
b) Redefinition
c) Narrowing Cast
d) Polymorphism
79) What determines the sequence in which the event blocks are processed?
a) the dispatcher
b) database interface
c) runtime system
d) programmer
80) Which of the following includes can be used by the customer to enhance the SAP Program?
a) LXAAATOP
b) YXAAAO01
c) ZXAAAF01
d) LXAAAU01