Professional Documents
Culture Documents
005 Abap-Certification-Questions and Answers
005 Abap-Certification-Questions and Answers
You have newly joined a development team and your team member is developing a
report. He wants to put the validation for the vendor No. In which event he should put the
error message so that in case when wrong vendor is entered error message should
2 . Business want to change the F1 help for the field for all Reports At what level you will
As data element store the schematic information. It can be used and the idea of changing the code
of all reports with D option is useless .So the answer is : B Data element
3. which statement can be used to read a single record from the internal table.
A. Move it_tab to wa_taab with <i>.
B. Read table it_tab into wa_tab index <i>.
C. Move-corrosponding it_tab to it_taab1.
D. None of the above.
The answer is : B
4. Which one of these event will be triggered first when you execute the program ?
A. INITIALIZATION
B. LOAD-OF-PROGRAM
C. START-OF-SELECTION
D. END-OF-SELECTION
This one also does not take much time as loading of the program is the first thing which is done and
after that it will start looking into the code. So the answer is : LOAD-OF-PROGRAM
The question is not that clear but As far as SAP is concern it believes in Central instance, So answer
is A.
http://www.sapyard.com/ HANA-ABAP, UI5, Fiori, OData, Personas, WF, Ariba, Adobe, OOPs
6. There is one function group name AG which contains three function module FM1 ,FM2
and FMR .It also has one global variable Gl_val .FM1 and FM2 has a simple code of
adding 1 into that variable And FMR has the code of returning that global variable.
Report test_fungrp.
Clear gl_val.
Write : / Ret_val.
A. 1
B. 2
C. 3
D. 4
HHhmmm…need to use little mind in this As function Group will have only one instance through out
the program run so only one copy of that global variable: Answer is : b.2
7. Which layer will be used to convert the OPEN SQL into the database specific query.
A. WORK Process
B. DATA BASE interface
C. ABAP interprter
D. None of the above
Answer is : B. Data base interface (that will be used to make SAP database independent)
8. You have 10 records into the internal table .you want to make use of loop statement to
loop through all the records which system variable can be used to find out the loop
iteration?
A. SY-INDEX
B. SY-DATUM (What a option !!!!!!!! )
C. SY-TABIX
D. None of thee above
9. Can database view used to fetch the data from the database using SELECT Query?
A. True
B. False
http://www.sapyard.com/ HANA-ABAP, UI5, Fiori, OData, Personas, WF, Ariba, Adobe, OOPs
Anser is : A. True
10. In Case of Webdynpro for ABAP how will you map context Attribute of view container
I know you want to kill me !!!!! but this question was there…Any way answer is clear it is B.
Answer is : D.
Answer is : B.
14. Which of these are correct statements for SELECT-OPTIONS and RANGES.
http://www.sapyard.com/ HANA-ABAP, UI5, Fiori, OData, Personas, WF, Ariba, Adobe, OOPs
16. What will be the output of the following code for the user has a date format as DD-
Report test_date.
Write : / sy-datum.
A. 2010-02-14
B. 20100214
C. 14-02-2010
D. 02-14-2010
Answer is : C.
Suddenly i went back to time when i was preparing for the exam…what will be the answer of this
Report test_date.
Lv_date = sy-datum.
And what about if i use lv_date as char 8.(In this case answer is : 20100214)
17. You are working on a program which is updating the database now you want that if
something goes wrong you want that your code should be capable of reverting the
18. you want to declare a variable which can be used out side class globally but no one
should be allowed to change that variable except the method of that class.how you can
achieve this ?
A. class class_name Definition.
Public section.
Data : gl_var type i.
Endclass.
B. class class_name Definition.
Proteced section.
Data : gl_var type i.
Endclass.
http://www.sapyard.com/ HANA-ABAP, UI5, Fiori, OData, Personas, WF, Ariba, Adobe, OOPs
C. class class_name Definition.
Public section.
Data : gl_var type i hidden.
Endclass.
D. class class_name Definition.
Public section.
Data : gl_var type i read-only.
Endclass.
Answer Is : D.
19. There is a screen 500 with next screen set as 501 in it’s screen attribute. Business
want that in some of the condition instead of going to screen 501 it should go to screen
502 after screen 500 finish it’s execution .how will you achieve this?
A. Use statement LEAVE TO SCREEN 502. in PBO of screen 501.
B. Use statement SET SCREEN 0. In PAI of screen 500.
C. Use statement SET SCREEN 502. IN PAI of screen 500.
D. It is not possible to over right the next screen attribute set into screen 500.
Appropriate answer is C.
As it will override the next screen attribute set into the screen 500.
20. you want to hide a P_MATNR field from the screen how will you achieve it?
A. LOOP AT SCREEN WHERE NAME = ‘P_MATNR’.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDLOOP.
B. LOOP AT SCREEN.
If SCREEN-NAME EQ ‘P_MATNR’.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
C. LOOP AT SCREEN WHERE NAME = ‘P_MATNR’.
SCREEN-ACTIVE = 0.
ENDLOOP.
D. READ TABLE SCREEN WITH KEY NAME = ‘P_MATNR’.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
So seams tricky??? But for SCREEN it is only possible to use LOOP AT SCREEN. “where” condition in
LOOP and “read table” statement with screen is not at all possible So
Answer is B.
21. A database table without MANDT field is called?(Select most appropriate anser)
A. Client dependent
B. Client in-dependent
C. Structure (What an option!!!!!!!!!!)
http://www.sapyard.com/ HANA-ABAP, UI5, Fiori, OData, Personas, WF, Ariba, Adobe, OOPs
D. Database View.
Answer is : B.
22. To define the internal table using statement: Data : it_tab type XYZ
Answer is : C. (As Rest will define work area not the internal table.)
Name Salary
John 80000
Bob 20000
Amar 10000
David 50000
Read table ITAB into WTAB with key Name = ‘David’ using binary search.
A. 0
B. 4
C. 8
D. 12
As the mandatory condition to use binary search in internal table is that it should be sorted.
So answer is : B
(Note: what will be answer if you read ITAB without binary search? )
24. Business want to put validation on plant No. For all the screen. The requirement is to
give Error message whenever user give plant 567.what can be most appropriate way to
achieve this?
A. Screen EXIT
B. Function module EXIT
C. Field EXIT
D. USER EXIT
Answer is: C.
http://www.sapyard.com/ HANA-ABAP, UI5, Fiori, OData, Personas, WF, Ariba, Adobe, OOPs
A. You can use filter to choose the implementation you want to call.
B. BADI cannot have multiple implementations.
C. BADI can be reusable.
D. BADI can be filter dependent.
Answers are: A, C, D.
Answers are: A, B.
http://www.sapyard.com/ HANA-ABAP, UI5, Fiori, OData, Personas, WF, Ariba, Adobe, OOPs