Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ABAP1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

SAP ABAP Sample Questions:

01. What process is used to establish the automatic transport of data


between the view controller's context-attributes and the UI element in
its layout?
Note: Please choose the correct answer
a) Context mapping
b) Data migration
c) Data binding
d) View assembly

02. What is the purpose of implicit enhancement points?


Note: Please choose the correct answer
a) To add fields to an SAP database table
b) To add code to a standard SAP program
c) To change code in a standard SAP program
d) To create a secondary index for an SAP database table

03. Why should you bundle database updates in your dialog programs?
Note: Please choose the correct answer
a) To process the SAP LUW within the database LUW to ensure data consistency
b) To be able to rollback database changes performed in the same dialog step
c) To avoid database locks set by an SQL statement that persists until the end of
the program
d) To allow you to use SAP locks to ensure data consistency

04. What happens when an authorization check fails?


Note: Please choose the correct answer
a) The program is terminated
b) The system field SY-SUBRC is set to a value other than zero
c) A type E message is displayed
d) A CX_AUTH_FAILED type exception is raised

05. Which of the following interface technologies are available in SAP


systems?
Note: There are 3 correct answers to this question
a) OLE
b) Ethernet
c) HTTP
d) RFC
e) ODBC

06. You perform an update task using update function modules and
detect an error in the program that calls the update function modules.
Which statement can be used to discard all update requests for the
current SAP LUW?
Note: There are 2 correct answers to this question
a) EXIT
b) ROLLBACK WORK
c) MESSAGE axxx(nnn)
d) MESSAGE exxx(nnn)
e) DELETE UPDATE
07. In addition to the primary key of an internal table, how many
secondary indexes can you define for an internal table?
Note: Please choose the correct answer
a) 15
b) 0
c) 1
d) 10

08. You have implemented a class CL_CUSTOMER in which you defined a


private attribute. From where can you access this attribute directly?
Note: There are 2 correct answers to this question
a) From all methods of all subclasses of CL_CUSTOMER
b) From all methods of the class CL_CUSTOMER
c) From all methods of a class to which CL_CUSTOMER grants friendship
d) From any program using the class CL_CUSTOMER

09. Which of the following enhancement options does not require any
preparation from SAP?
Note: Please choose the correct answer
a) New BAdIs
b) Explicit enhancement point
c) Explicit enhancement sections
d) Implicit enhancement point

10. In which modularization units can you use parameters?


Note: There are 3 correct answers to this question
a) Event blocks such as START-OF-SELECTION
b) Function modules
c) Subroutines
d) Dialog modules such as PBO modules
e) Methods

Solutions:

QUESTION: 01 Answer: c

QUESTION: 02 Answer: b

QUESTION: 03 Answer: a

QUESTION: 04 Answer: b

QUESTION: 05 Answer: a, c, d

QUESTION: 06 Answer: b, c

QUESTION: 07 Answer: a

QUESTION: 08 Answer: b, c

QUESTION: 09 Answer: d

QUESTION: 10 Answer: b, c, e
SAP ABAP Sample Questions:
1. Which of the following ABAP standard types are numeric?
Note: There are 3 correct answers to this question.
a) D
b) F
c) I
d) P
e) N

2. When should you use a hashed internal table?


Note: There are 2 correct answers to this question.
a) When accessing mainly single records
b) When accessing by secondary key
c) When accessing using the left-justified part of the key
d) When accessing always by primary key
e) When accessing by index

3. You want to check the user input in the field FIELD_NAME on a


classical screen. If an incorrect value is entered, the user should be able
to correct the field value. How do you call the module CHECK_MODULE in
the PAI of the screen to accomplish this?
Note: Please choose the correct answer.
a) FIELD field_name MODULE check_module.
b) FIELD field_name MODULE check_module MESSAGE Ennn.
c) CHAIN. MODULE check_module FIELD field_name. ENDCHAIN.
d) MODULE check_module ON ERROR.

4. Which of the following predefined ABAP types is incomplete?


Note: Please choose the correct answer.
a) F
b) P
c) XSTRING
d) STRING

5. Which prerequisites must be fulfilled before a repository object can be


transported?
Note: There are 3 correct answers to this question.
a) An inactive version of the repository object must exist.
b) A transport layer must be assigned to the package.
c) An application component must be assigned to the repository object.
d) The repository object must be assigned to a change request.
e) The repository object must be assigned to a package.

6. Which boundary conditions lead to improved access time to an


internal table?
Note: There are 3 correct answers to this question.
a) Left justified part of key for sorted tables
b) Fully qualified key for sorted tables
c) Index access for hashed tables
d) Left justified part of key for hashed tables
e) Index access for standard tables

7. Which steps are needed when implementing the singleton concept for
class instantiation with minimum coding?
Note: There are 3 correct answers to this question.
a) Define the instantiation of the class as private.
b) Create an instance of the class in a static constructor.
c) Define the class as abstract.
d) Save the instance of the class in a static attribute.
e) Create an event that returns the instance of the class.

8. Which of the following tasks does the BADI implementing class


perform?
Note: Please choose the correct answer.
a) Filtering
b) Sequencing
c) Inserting
d) Deleting

9. What will happen at runtime when accessing a buffered table?


Note: Please choose the correct answer.
a) All SELECT statements will read data from the buffer.
b) If data is read from the table buffer, the existing indexes are not used.
c) Following an update to a buffered record, all table buffers in the system will be
updated.
d) If table data is read using indexes, the table buffer will not be filled.

10. An executable ABAP program contains a standard selection screen


and uses the event blocks AT SELECTION-SCREEN, AT SELECTION-
SCREEN OUTPUT, INITIALIZATION, START-OF-SELECTION. In which
sequence will ABAP runtime call these event blocks?
Note: Please choose the correct answer.
a) 1. AT SELECTION-SCREEN OUTPUT
2. INITIALIZATION
3. AT SELECTION-SCREEN
4. START-OF-SELECTION
b) 1. INITIALIZATION
2. AT SELECTION-SCREEN
3. AT SELECTION-SCREEN OUTPUT
4. START-OF-SELECTION
c) 1. INITIALIZATION
2. AT SELECTION-SCREEN OUTPUT
3. AT SELECTION-SCREEN
4. START-OF-SELECTION
d) 1. INITIALIZATION
2. AT SELECTION-SCREEN OUTPUT
3. START-OF-SELECTION
4. AT SELECTION-SCREEN

Solutions:

QUESTION: 01 Answer: b, c, d QUESTION: 02 Answer: a, d

QUESTION: 03 Answer: a QUESTION: 04 Answer: b

QUESTION: 05 Answer: b, d, e QUESTION: 06 Answer: a, b, e

QUESTION: 07 Answer: a, b, d QUESTION: 08 Answer: a

QUESTION: 09 Answer: b QUESTION: 10 Answer: c

You might also like