Final Flashcards
You have implemented a class CL_CUSTOMER where you have defined a private instance variable , from where you can access the private instance attribute directly? (2 correct answer)
A. You have direct access to the attribute name from all methods of the class cl_customer itself
B. You have direct access to the attribute name from the main part of the program.
C. You have the direct access to the attribute name of all methods of all the subclasses of cl_customer
D. You have direct access to the attribute name from all the methods of a class cl_friend, where cl_customer grants friendship to the class cl_friend.
A. You have direct access to the attribute name from all methods of the class cl_customer itself
D. You have direct access to the attribute name from all the methods of a class cl_friend, where cl_customer grants friendship to the class cl_friend.
You want to display the data in a view of WebDynpro component. However the data you want to display are stored in the context of component controller . What is the best way to display the data?
A. Move the context of the component controller to the context of the view controller and bind the control that displays the data to the context of view controller.
B. Copy the context of component controller to the context of view controller and bind the control data that displays the data to the context of view controller
C. Bind the control that display the data to the context of component controller.
D. Map the context of components controller to the context of the view controller and bind the control data that displays the data to the context of view controller.
B. Copy the context of component controller to the context of view controller and bind the control data that displays the data to the context of view controller
Which of the following statements about field transport between ABAP and classical screen (dynpro) are correct? (3 correct answers)
A. Dictionary structures in SCREEN requires a TABLES statement in ABAP
B. Name equivalence is imperative for field transport between ABAP and SCREEN
C. Field transport from screen to ABAP is delayed if you have FIELD statement.
D. Field transport from ABAP to screen generally takes place before the first PBO module of screen.
A. Dictionary structures in SCREEN requires a TABLES statement in ABAP
B. Name equivalence is imperative for field transport between ABAP and SCREEN
C. Field transport from screen to ABAP is delayed if you have FIELD statement.
You want to display data from transparent table BKPF and BPOS which contain header data and position data of accounting documents. The primary key of BKPF is MANDT and BELNR(document number) . The primary key of BPOS is MANDT , BELNR and POS(position). What are the options to select data from BKPF together with corresponding data of BPOS? (3 correct answers)
A. Use a view
B. Use a left outer join
C. Use two nested select loops
D. Use a inner join
A. Use a view
B. Use a left outer join
C. Use two nested select loops
You want to create a simple search help, last search help you created was long time ago. Therefore you try to recall what component are needed for simple search help (3 correct answer)
A. The dialog behavior, for instance selection screen appear or not
B. The interface, import and export parameter.
C. The selection method, from which table or view the data should come from
D. The attachment to a field, at which level search help should appear.
A. The dialog behavior, for instance selection screen appear or not
B. The interface, import and export parameter.
C. The selection method, from which table or view the data should come from
You create the classical screen (dynpro) to enter flight connection data. Each connection is identified by the contents of the fields MANDT, CARRID and CONNID in the database table spfli. The carriers are stored in the scarr table and identified by CARRID . What is the easiest way to ensure that only CARRID values from field SCARR-CARRID can be entered in the dynpro?
A. Maintain SCARR as the value table of the domain of SPFLI-CARRID.
B. Implement a search help that ensures that user can enter only correct values.
C. Implement a PAI module that check the user have entered correct values.
D. Define SCARR-CARRID as foreign key with check table SPFLI and foreign key as MANDT and CARRID
E. Define SPFLI-CARRID as foreign key with check table SCARR with foreign key as MANDT and CARRID
E. Define SPFLI-CARRID as foreign key with check table SCARR with foreign key as MANDT and CARRID
You should implement search help, where the data of search help should be selected via outer join . Which of the following types would you use?
A. The HELP view
B. The DATABASE view
C. The MAINTAINENCE view
A. The HELP view
Which kind of enhancements can BADIs provide? (3 correct answers)
A. Table Enhancement B. Menu Enhancement C. Functional Enhancement D. Data Element Enhancement E. Screen Enhancement
B. Menu Enhancement
C. Functional Enhancement
E. Screen Enhancement
You want to add two field to SAP standard table using append technique. What do you have to keep in mind of this technique? (Only 2 correct answers)
A. The name of Append structure should start with ZZ or YY.
B. An Append structure can be assigned to more than 1 table
C. The fields of the Append structure should start with ZZ or YY
D. Append structures must be compared with the SAP original in release upgrade
E. Append structures are not possible for tables containing long field
C. The fields of the Append structure should start with ZZ or YY
E. Append structures are not possible for tables containing long field
Why do we need to bundle database updates in your dialog programs? (2 correct answer)
A. To increase the performance of your program.
B. Because there is no implicit database commit after each dialog step
C. To keep the database in a consistent state if the user wants to cancel the transactions
D. Because there is an implicit database commit after each dialog step.
C. To keep the database in a consistent state if the user wants to cancel the transactions
D. Because there is an implicit database commit after each dialog step.
In your program you need a name of the field of a structure wa_material at run time. Therefore you can use RTTI classes. The root class is CL_ABAP_TYPEDESCR, provides a public static functional methods describe_by_data. This method returns a reference of type CL_ABAP_TYPEDESCR.You have defined a reference r_descr as follows
DATA: r_desc type ref to CL_ABAP_STRUCTDESCR.
The class CL_ABAP_STRUCTDESCR is a subclass of CL_ABAP_TYPEDESCR. Which of the following statements are syntantically correct?
A. R_desc = cl_abap_typedescr=>describe_by_data( wa_material ).
B. R_desc ?= cl_abap_typedescr=>describe_by_data( wa_material ).
C. R_desc != cl_abap_typedescr=>describe_by_data( wa_material ).
B. R_desc ?= cl_abap_typedescr=>describe_by_data( wa_material ).
Which of the following are true about subscreens (2 correct answer)
A. You call subscreen using SCREEN command CALL SUBSCREEN.
B. Subscreens have their own ok code fields
C. Subscreens may have their own PBO and PAI logic
D. You call subscreen using ABAP command CALL SUBSCREEN
A. You call subscreen using SCREEN command CALL SUBSCREEN.
C. Subscreens may have their own PBO and PAI logic
One of your colleague has left the company and now you are in charge of al lhis programs.One program deals with handling the list, you go through the coding, and in the main part of the program you find the following lines
DATA: current_list TYPE I. current_list = cl_list=>number_of_lists(). What type of component is the number_of_list?
A. Number_of_list is public static functional method of the class cl_list. B. Number_of_list is public static attribute of class cl_list C. Number_of_list is public instance functional method of class cl_list D. Number_of_list is public instance attribute of class cl_list
A. Number_of_list is public static functional method of the class cl_list.
For a database table zdepartment you have defined a text table zdepartmentt in the ABAP dictionary , where the names of the department are stored. How would you design the text table zdepartmenttso that it is a text table of zzdepartment. (3 correct answers)
A. The text table zdepartmentt is linked with table zdepartment by a foreign key of type key fields of text table.
B. The text table zdepartmentt as atleast one text field which is not a key field.
C. The text table zdepartmentt is a cluster tables
D. The text table zdepartmentt has same key fields as zdepartment plus one additional key field of data type LANG.
A. The text table zdepartmentt is linked with table zdepartment by a foreign key of type key fields of text table.
B. The text table zdepartmentt as atleast one text field which is not a key field.
D. The text table zdepartmentt has same key fields as zdepartment plus one additional key field of data type LANG.
When you refer to the field of database table typically you refer to a dataelement,which in turn refers to domain. But it is also possible to set to dataelement without refering to domain. Which feature do you get in , if you refer the dataelement to a domain?
A. Only then you can add this field to the database view.
B. Only then you can link the search help to this field
C. Only then it is possible to define a check table for this field.
C. Only then it is possible to define a check table for this field.
In classical screen programming , where can you set the status and title for modal dialog box(popup)?
A. At the event TOP-OF-PAGE.
B. In the PBO module of corresponding screen
C. In the PAI module of corresponding screen
D. In the attribute of corresponding screen
B. In the PBO module of corresponding screen
You as a ABAP consultant have been asked by customer to lists out the benefits of moving from non-unicode to unicode system? (2 correct answers)
A. Unicode system requires less database space
B. Transfer of character sets between two unicode systems from different cultures is easier than between NON-unicode systems.
C. A unicode system can support users of different cultures
D. A unicode system automatically translates between different cultures.
B. Transfer of character sets between two unicode systems from different cultures is easier than between NON-unicode systems.
C. A unicode system can support users of different cultures
You like to create a list with the global class CL_GUI_ALV_GRID. In the class the event DOUBLE_CLICK is defined. This event is triggered whenever a user double clicks a line in the ALV,. In your case every time the user makes the double click on the list a popup should appear which shows the number of the line on which has been double clicked. What do you have to do therefore? (2 correct answer)
A. Define a local class in which event DOUBLE_CLICK is redefined and raised.
B. Write a handler method for the event DOUBLE_CLICK of the class CL_GUI_ALV_GRID, which calls the dialog box.
C. Register for the event DOUBLE_CLICK by using SET_HANDLER statement.
D. Catch the Event DOUBLE_CLICK with the CATCH statement under which the dialog box call is implemented
B. Write a handler method for the event DOUBLE_CLICK of the class CL_GUI_ALV_GRID, which calls the dialog box.
C. Register for the event DOUBLE_CLICK by using SET_HANDLER statement.
You have written a classical dynpro with number 100 in module pool containing push button p_save. You have assigned function code ‘SAV’ against this button. In the PAI module USER_COMMAND_100 you want to check if the user has clicked on this button, how can yo achieve this?
A. Check if the field with the ok code attribute in the screen 100 contains the value ‘SAV’
B. Check if p_save-okcode equals to ‘SAV’.
C. Check if field SY-OKCODE contains the value ‘SAV’.
D. Check if p_save-ACTIVE = 1.
A. Check if the field with the ok code attribute in the screen 100 contains the value ‘SAV’
Which of the following statements are true about data type? (3 correct answer)
A. Data types can be defined only in ABAP dictionary
B. Data type can be used to define a variable of constants.
C. Data types can be defined in the program.
D. Data types can be defined in ABAP dictionary
B. Data type can be used to define a variable of constants.
C. Data types can be defined in the program.
D. Data types can be defined in ABAP dictionary
You design an executable program that displays flight bookings, the selection screen of the program contains the parameters pa_car of type SCARR-CARRID for the carrier, you want to make sure that users will be forced to re enter the carrier , if they type in a carrier for which they don’t have authorization. Hence you perform a authority check with authorization object S_CARRID. Where do you do this?
A. In th event block GET SCARR.
B. In the PBO module of the selection screen
C. In the event block AT USER-COMMAND
D. In the event block AT SELECTION-SCREEN.
D. In the event block AT SELECTION-SCREEN.
- You are writing BSP applications where you use global class CL_BSP_CONTROLLER2. This class has implemented the global interface IF_BSP_CONTROLLER in which the method HANDLE_EVENT is defined. There is no other method in the class CL_BSP_CONTROLLER2 with the name HANDLE_EVENT. In your program we find following lines: DATA: r_class TYPE REF to CL_BSP_CONTROLLER2, r_int TYPE REF to IF_BSP_CONTROLLER. CREATE OBJECT r_class. CREATE OBJECT r_int TYPE CL_BSP_CONTROLLER2. Which of the following methods calls are syntantically correct (in relation to above coding)? (2 correct answer)
A. R_int->handle_event( ).
B. R_int->if_bsp_controller~handle_event( ).
C. R_class->handle_event( ).
D. R_class->if_bsp_controller~handle_event( )
A. R_int->handle_event( ).
D. R_class->if_bsp_controller~handle_event( )
You want to write a ABAP program that make use of SAP GUI . Which of the following UI types can you see? (2 correct answer)
A. Business Server Pages(BSPs)
B. Classical Screens(dynpros) with controls(like ALV control)
C. ABAP WebDynpro
D. Selection Screen
B. Classical Screens(dynpros) with controls(like ALV control)
D. Selection Screen
You want to display the data of accounting documents with BELNR = 10000 from table BKPF and BPOS . These transparent tables contains HEADER data and POSITION data .The primary key of BKPF is MANDT and BELNR(document number) . The primary key of BPOS is MANDT , BELNR and POS(position).which would be the correct statement to achieve this ?
A. Select * from bkpf INNER JOIN bpos on bkpf.belnr = bpos.belnr into wa WHERE bkpf.belnr = ‘1000’.
B. Select * from bkpf RIGHT OUTER JOIN bpos on bkpf~belnr = bpos~belnr into wa WHERE bkpf~belnr = ‘1000’
C. Select * from bkpf INNER JOIN bpos on bkpf~belnr = bpos~belnr into wa WHERE bkpf~belnr = ‘1000’.
C. Select * from bkpf INNER JOIN bpos on bkpf~belnr = bpos~belnr into wa WHERE bkpf~belnr = ‘1000’.
Some transactions contain SELECT statements in their applications that causes a very long runtimes. You should now improve the performance without changing the program. What techniques can be suitable for increasing the performance during database table access? (2 correct answers)
A. To unit the appropriate database in pool table
B. To define indexes for the appropriate database tables
C. To use table buffering for appropriate database tables
D. To put the appropriate database table in a special fast access tablespace of the database
B. To define indexes for the appropriate database tables
C. To use table buffering for appropriate database tables
You review a ABAP program that needs to be migrated to a Unicode system. Within the program, two data objects city and member are declared in following way
DATA: city(20) TYPE c, Begin of Member, firstname(20) TYPE c, lastname(20) TYPE c, age TYPE i, city(20) TYPE c,
End of Member.
START-OF-SELCTION.
city = member+44(20).
Why the above line doesnot work as expected?
A. Because you cannot read beyond the non character data within the structure using offset notations
B. Because the result of offset calculations depends on the Unicode codepage used.
C. Because the integer has 8 bytes
D. Because of the Unicode systems, offsets are allowed for unstructured data objects only.
A. Because you cannot read beyond the non character data within the structure using offset notations
Which of the following places uses TYPES? (3 correct answer)
A. Definition of method parameters.
B. Definition of subroutine parameters
C. Definition of parameters for PBO modules
D. Definition of selection screen parameters.
A. Definition of method parameters.
B. Definition of subroutine parameters
D. Definition of selection screen parameters.
Which of the following command are allowed not if you are working with internal table of type sorted? (1 correct answers)
A. MODIFY
B. INSERT
C. DELETE
D. SORT
D. SORT
In your team of ABAP developer there is lot of confusion concerning relationships between Enhancement point, Enhancement spots and Enhancement sections. Which statements about these concepts are true? (2 correct answers)
A. An Enhancement point manages either new BADIs or explicit enhance point and enhancement section
B. Classical BADI’s are not part of Enhancement spots
C. Enhancement point organizes the explicit enhancement spots, enhancement sections and new BADI’s
D. Enhancement spots organize explicit enhancement point, enhancement sections and new BADI’s
B. Classical BADI’s are not part of Enhancement spots
D. Enhancement spots organize explicit enhancement point, enhancement sections and new BADI’s
You have have written an ABAP executable program that displays the flight connections between cities for your customer. You hand over your program to your customer maintainence and need to explain to the customer’s programmer the properties of event blocks (2 correct answers)
A. Event Blocks starts with event key word and end with the start of any other modularization block. For example , another event block or subroutine.
B. Event Blocks are executed in sequence they occur in the program.
C. The ABAP runtime decides in which sequence to execute the event blocks
D. Event blocks can be nested , for example , you can have event blocks inside another event blocks
A. Event Blocks starts with event key word and end with the start of any other modularization block. For example , another event block or subroutine.
C. The ABAP runtime decides in which sequence to execute the event blocks
What you can control using the field catalog of SAP ALV GRID Control (3 correct answer)
A. Hide Individual Columns
B. Specify color of the list rows
C. Set the output characteristics of a column position or width
D. Influence the format properties of column contents, such as number of decimal places or the alignment of the content cell.
A. Hide Individual Columns
C. Set the output characteristics of a column position or width
D. Influence the format properties of column contents, such as number of decimal places or the alignment of the content cell.
You have to define two database tables where in both the tables you need fields change_date and change_time (which are not key fields) How do you proceed?
A. Define a append structure with these two fields and assign the append structure to both the tables.
B. Define two fields separately in both the tables.
C. Define structure with these two fields and include the structure in both the database tables.
C. Define structure with these two fields and include the structure in both the database tables.