SAP Certified Development Associate - P2W for ABN - C-P2W-ABN Exam Practice Test
Question 1
You write the following ABAP statement:
SELECT SINGLE carrid, connid, cityfrom, cityto
FROM spfli
INTO @gs_spfli
WHERE carrid = @pa_car
AND connid = @pa_con.
How are the selected fields placed into target structure gs_spfli?
SELECT SINGLE carrid, connid, cityfrom, cityto
FROM spfli
INTO @gs_spfli
WHERE carrid = @pa_car
AND connid = @pa_con.
How are the selected fields placed into target structure gs_spfli?
Correct Answer: C
Question 2
You have the following class definition: CLASS Icl_airplane DEFINITION.
PUBLIC SECTION. METHODS:
set_passengers.
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 Icl_airplane?
Note: There are 3 correct answers to this question.
PUBLIC SECTION. METHODS:
set_passengers.
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 Icl_airplane?
Note: There are 3 correct answers to this question.
Correct Answer: A,C,E
Question 3
You run an executable program that contains the following code:
DATA:
gv_var1 TYPE n LENGTH 3,
gv_var2 TYPE n LENGTH 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?
DATA:
gv_var1 TYPE n LENGTH 3,
gv_var2 TYPE n LENGTH 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?
Correct Answer: D
Question 4
Which of the following settings can you define for both structures and transparent tables in the ABAP Dictionary?
Note: There are 2 correct answers to this question.
Note: There are 2 correct answers to this question.
Correct Answer: B,D
Question 5
What pre-defined ABAP data type is deep?
Correct Answer: B
Question 6
What ABAP statements can you use to create an instance of class CL_GUI_CUSTOM_CONTAINER in an ABAP program?
Correct Answer: B,C
Question 7
What parameters can you set when you run the Code Inspector?
Note: There are 3 correct answers to this question.
Note: There are 3 correct answers to this question.
Correct Answer: A,B,D
Question 8
You want to read a single line of an internal table using table expression itab[...].
How can you identify the line?
Note: There are 3 correct answers to this question.
How can you identify the line?
Note: There are 3 correct answers to this question.
Correct Answer: B,C,E

