Current Knowledge Final Test

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Satbond
S
Satbond
Community Contributor
Quizzes Created: 1 | Total Attempts: 882
Questions: 79 | Attempts: 882

SettingsSettingsSettings
Current Knowledge Final Test - Quiz

This is a mock up exam covering week1-4 of the course. This test no way should be associated with the real exam, it just give you a feeler and gauge your current knowledge.
All the Best Passing this test no way guarantees that you will pass the actual exam you still need to read the books and study more till the exam

Best of Luck
SN  


Questions and Answers
  • 1. 

    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.

    Correct Answer(s)
    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.
    Explanation
    Using Field Catalog, you can create custom fields, show or hide specific column
    specify the position, format characteristics of each column
    All the options in field catalogs are meant for columns not for the the rows

    Rate this question:

  • 2. 

    Which of the following are true about subscreens (2 correct answer)                        

    • A.

      Subscreens have their own ok code fields

    • B.

      Subscreens may have their own PBO and PAI logic

    • C.

      You call subscreen using ABAP command CALL SUBSCREEN

    • D.

      You call subscreen using SCREEN command CALL SUBSCREEN.

    Correct Answer(s)
    B. Subscreens may have their own PBO and PAI logic
    D. You call subscreen using SCREEN command CALL SUBSCREEN.
    Explanation
    Subscreen don't have their own okcode, okcode are defined in the normal screens
    Subscreen can have their won PBO and PAI
    subscreen is called used screen command CALL SUBSCREEN

    Rate this question:

  • 3. 

    Which statement about the internal table concerning program performance are correct? (There are 2 correct answers)                        

    • A.

      The cost for reading a data record from the hashed table do not depends upon number of entries.

    • B.

      If the field symbol is assigned with READ … ASSIGNING statement, the entry in the internal table can be changed directly using field symbols

    • C.

      If you have a standard table , searching an entry using a fully qualified key is faster than searching by index

    • D.

      The cost for reading a data record are higher for a large number of entries in a sorted table than for a large number of entries in a standard table

    Correct Answer(s)
    A. The cost for reading a data record from the hashed table do not depends upon number of entries.
    B. If the field symbol is assigned with READ … ASSIGNING statement, the entry in the internal table can be changed directly using field symbols
    Explanation
    For Hashed table, reading a record doesn't depends upon the number of rows
    Using Field Symbols one can change the content of the table entry e.g
    Loop at it_tab assigning to .
    -col = 'test'.
    endLoop.
    For standard table searching for a particular row is always done sequentially irrespective of key columns or not
    Reading a set of record in sorted table is faster than standard table

    Rate this question:

  • 4. 

    For a new colleague you have to explain the necessary steps for defining a database view in the ABAP Dictionary. What are the necessary steps for definition of database view in the ABAP Dictionary? (There are 3 correct answers )                        

    • A.

      You have to define selection criteria for the view

    • B.

      You have to define the Join condition for this view

    • C.

      You have to name the database table where the view gets data

    • D.

      You have to choose the fields from the tables that should be part of the view

    Correct Answer(s)
    B. You have to define the Join condition for this view
    C. You have to name the database table where the view gets data
    D. You have to choose the fields from the tables that should be part of the view
    Explanation
    For defining a database view, you need to specify the name of the tables , you need to define the join condition, which can be automatically retrieved from the ABAP dictionary of the Primary key and Foreign Key is defined
    You also have to choose the columns you need to be part of the view
    Selection criteria is completely optional

    Rate this question:

  • 5. 

    After creating a Search Help in ABAP dictionary you have to attach this search help to a field (There are 3 correct answers)                        

    • A.

      A Search Help can be attached directly to a field of structure or table

    • B.

      A Search help can be attached to a check table of the ABAP dictionary field

    • C.

      A Search Help can be attached to the data element.

    • D.

      A Search Help can be attached to the domain.

    Correct Answer(s)
    A. A Search Help can be attached directly to a field of structure or table
    B. A Search help can be attached to a check table of the ABAP dictionary field
    C. A Search Help can be attached to the data element.
    Explanation
    Search Help can be attached at following level
    at the field of table/structure
    at the table level of check table
    at the data element
    You cannot attach the search help at the domain level
    Domain can have following properties
    Fixed Value, Value range and Value table

    Rate this question:

  • 6. 

    Your colleague need advise on several ABAP types, Which of the following statement are correct? (There are 3 correct answers)                        

    • A.

      Data object of ABAP type STRING initially takes up no spaces, If any data is put into it at runtime , it takes up exactly the space that is needed . If its cleared the value changes to spaces, but the previous length remains.

    • B.

      A data Object of type X has fixed length while data object of type XSTRING the length changes dynamically depending upon the length of the content

    • C.

      Type X is useful for working with bit information

    • D.

      You can compute date with the following DATA: old_date type d, new_date type d, old_date = sy-datum. new_date = old_date + 14.

    Correct Answer(s)
    B. A data Object of type X has fixed length while data object of type XSTRING the length changes dynamically depending upon the length of the content
    C. Type X is useful for working with bit information
    D. You can compute date with the following DATA: old_date type d, new_date type d, old_date = sy-datum. new_date = old_date + 14.
    Explanation
    Type X - Hexadecimal field interprets individual bytes in memory valid field length is 1-655535
    Type XSTRING - A byte string is a hexadecimal type with variable length. It can contain any number of bytes. The length of a byte string is the same as the number of bytes.
    X is used for processing BITS
    On date field type if you do any operation it would be treated as number of days, e.g old_date + 14, it adds 14 days to the old_date value.

    Rate this question:

  • 7. 

    Which view allows a read only access? (Only 1 correct answer)                        

    • A.

      Database view with more than 1 table

    • B.

      Maintainence View

    • C.

      Projection view with 1 table

    Correct Answer
    A. Database view with more than 1 table
    Explanation
    Database view is always read only
    Maintainence view can be read/write

    Rate this question:

  • 8. 

    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

    Correct Answer(s)
    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
    Explanation
    All the event block starts with the event keyword and end with the start of another event block or modular unit
    e.g
    START-of-SELECTION.
    ---
    ---
    ---
    Initialization.
    ----
    ---
    ---
    FORM doSomething.
    ......
    ENDFORM.

    The sequence of event blocks to be executed are determined by ABAO runtime, e.g in above code. first INITIALIZATION event gets fired then the START-OF-SELECTION event gets fired.

    Rate this question:

  • 9. 

    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

    Correct Answer(s)
    C. The fields of the Append structure should start with ZZ or YY
    E. Append structures are not possible for tables containing long field
    Explanation
    Append structure name can start with Z or Y
    Append structure field name should start with ZZ/YY
    One Append structure can be used in only one table
    If the table has Long fields you cannot use Append structures
    Append structure is an enhancement , so during the upgrade there is no need to do any adjustment.

    Rate this question:

  • 10. 

    What kind of controllers exists within a Web Dynpro component ? (Only 3 correct answers)        

    • A.

      View Controllers

    • B.

      Exactly one Component Controller

    • C.

      User Controller

    • D.

      Window Controller

    Correct Answer(s)
    A. View Controllers
    B. Exactly one Component Controller
    D. Window Controller
    Explanation
    A WebDynpro component has following types of controller
    Component Controller(only one)
    View Controllers(one for each view)
    Window Controllers(one for each window)
    Custom Controllers
    Interface Controller
    Configuration Controller

    Rate this question:

  • 11. 

    You defined two classes cl_airplane and cl_passenger_plane, where cl_passenger_plane is subclass of cl_airplane. In the class cl_airplane , the public instance method display_attributes is defined, which has no parameters. In the sub class of cl_passenger_plane, the public instance method display_number_of_seats is defined which has no parameters.In your program, you have implemented the following lines: DATA: r_plane type ref to cl_airplane,            r_passenger type ref to cl_passenger_plane.            create object r_passenger.            r_plane = r_passenger. Which of the methods are syntantically correct? (3 correct answers)        

    • A.

      R_airplane->display_attributes( ).

    • B.

      R_passenger->display_number_of_seats( ).

    • C.

      R_airplane->display_number_of_seats( ).

    • D.

      R_passenger->display_attributes( ).

    Correct Answer(s)
    A. R_airplane->display_attributes( ).
    B. R_passenger->display_number_of_seats( ).
    D. R_passenger->display_attributes( ).
    Explanation
    As its upcasting(Widening cast), at design time, r_airplane can only call the methods available in his class, but at runtime it will execute the display_attributes method of the subclass

    Rate this question:

  • 12. 

    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

    Correct Answer(s)
    B. Menu Enhancement
    C. Functional Enhancement
    E. Screen Enhancement
    Explanation
    BADI's only provide Menu, Screen and Program(functional enhancement)

    Rate this question:

  • 13. 

    You want to write subroutine names check_booking that receives a parameters of type sbook. You want to change fields of the actual parameter within your subroutine but only if your subroutine executes without any error. How do you declare the subroutine (1 correct answer)        

    • A.

      FORM check_booking USING VALUE(p_book = TYPE sbook ).

    • B.

      FORM check_booking CHANGING VALUE(p_book) TYPE sbook

    • C.

      ORM check_booking CHANGING p_book type sbook ON RETURN

    • D.

      FORM check_booking USING p_book TYPE sbook.

    Correct Answer
    B. FORM check_booking CHANGING VALUE(p_book) TYPE sbook
    Explanation
    CHANGING with the value is also called as PASS BY VALUE and RETURN, the value is send back to the calling program only at the end of the sub routine if there is no error.

    Rate this question:

  • 14. 

    You want to select the fields MATNR, ENAM and EDAT from table MARA to display them in report. Whats the best way to do this? (1 correct answer)        

    • A.

      Declare the work area containing fields MATNR, ENAM and EDAT and use select matnr ename edat from MARA into wa. ENDSELECT.

    • B.

      Declare the work area of type MARA and use select* from MARA into wa.ENDSELECT.

    • C.

      Declare the work area of type MARA use select matnr ename edat from MARA into wa.ENDSELECT.

    • D.

      Declare the work area containing fields MATNR, ENAM and EDAT and use select* from MARA into correspodnig fields of wa.ENDSELECT.

    Correct Answer
    A. Declare the work area containing fields MATNR, ENAM and EDAT and use select matnr ename edat from MARA into wa. ENDSELECT.
    Explanation
    For better performance you should select specific columns and carete the work area with required number of columns

    Rate this question:

  • 15. 

    When analyzing older program as associate consultant will often find the definition and use of an internal table with a header line, for example DATA: it TYPE TABLE of spfli WITH HEADER LINE. Which statements about the internal table with header lines are correct? (2 correct answer)                    

    • A.

      To address a component of the header line you can use the following : it[]-component = 'ABC'.

    • B.

      Internal tables with header lines are faster than internal tables without header lines

    • C.

      Instead of LOOP at IT ….. ENDLOOP one might as well use LOOP at it into it. …. ENDLOOP.

    • D.

      Two data objects with the same name exists , the internal table's body and header line, which is a structure of the row type of the table

    Correct Answer(s)
    C. Instead of LOOP at IT ….. ENDLOOP one might as well use LOOP at it into it. …. ENDLOOP.
    D. Two data objects with the same name exists , the internal table's body and header line, which is a structure of the row type of the table
    Explanation
    When you define the table with header line, there will be two data objects created with same name, one is the workarea which would be of same rowtype as the internal table and the internal table itself
    If you want to refer to the internal table body explicitly you need to use itab[]
    For all the internal table operations into/to keyword can be omitted

    Rate this question:

  • 16. 

    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

    Correct Answer(s)
    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.
    Explanation
    You need to create a local class if which you write the handler method for the event DOUBLE_CLICK of class CL_GUI_ALV_GRID
    You need to register the event DOUBLE_CLICK using the SET_HANDLER statement.

    Rate this question:

  • 17. 

    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

    Correct Answer(s)
    B. To define indexes for the appropriate database tables
    C. To use table buffering for appropriate database tables
    Explanation
    For improving the performance of select or data retrieval following techniques could be used
    Create appropriate indexes
    Table buffering with relevant techniques(Full,Single,Generic)
    Logical databases(if more than one table is accessed frequently)
    Database views(if more than one table is accessed frequently)

    Rate this question:

  • 18. 

    You create function group ZATP that contains couple of function modules to manage material master data. What is the name of the correspondnig main program?      

    • A.

      SAPLZATP

    • B.

      SAPTZATP

    • C.

      SAPFZATP

    • D.

      SAPMZATP

    • E.

      ZATP

    Correct Answer
    A. SAPLZATP
    Explanation
    Whenever you create a Function Group, in the background SAP create s a ABAP main program with standard naming conventions as SAPL

    Rate this question:

  • 19. 

    You can realize the polymorphism between objects from different classes if these classes are connected via inheritance. For objects of classes that are not connected via inheritance, another technique exists to achieve polymorphism. With which of the following concepts you can also acheive polymorphism?        

    • A.

      The Friend concept

    • B.

      The Interface concept

    • C.

      The Event concept

    Correct Answer
    B. The Interface concept
    Explanation
    Using Interface concept also you can use Polymorphism concept using narrow or widening cast.

    Rate this question:

  • 20. 

    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

    Correct Answer
    A. The HELP view
    Explanation
    For a search help the base could be either Table or View
    For view you can specify either database view or Help view
    database view is always inner join, so if in your Search help you want left outer join data, you need to specify Help view which is always left outer join and used with search helps only.

    Rate this question:

  • 21. 

    You need to create an integer data object and you wonder about the features of ABAP type I. Which of the following statements are correct.      

    • A.

      A data object of type I always have length of 8 bytes

    • B.

      A data object of type I always have length of 4 bytes

    • C.

      A data object of type I have length of 1,2 and 4 bytes depending upon the content

    Correct Answer
    A. A data object of type I always have length of 8 bytes
    Explanation
    The correct answer is that a data object of type I always has a length of 8 bytes. This means that when you create an integer data object using ABAP type I, it will always occupy 8 bytes of memory.

    Rate this question:

  • 22. 

    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.

    Correct Answer(s)
    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.
    Explanation
    If you bundle all your database updates then you can use the principle of ALL or NOTHING , so if user cancels the transaction nothing is saved in the DB and the DB is in consistent state
    You bundle all your database updates because system does an implicit commit after every dialog step

    Rate this question:

  • 23. 

    You want to display a dialog box window . Which statement can you use to do this?    

    • A.

      WINDOW 200 starting at 5 5.

    • B.

      CALL SCREEN 200 STARTING AT 5 5.

    • C.

      CALL SCREEN 200.

    • D.

      SET SCREEN 200

    Correct Answer
    B. CALL SCREEN 200 STARTING AT 5 5.
    Explanation
    The correct answer is "CALL SCREEN 200 STARTING AT 5 5." This statement is used to call a screen (dialog box window) with the number 200 and position it at coordinates 5,5 on the screen. It allows the user to display the desired dialog box window at the specified location.

    Rate this question:

  • 24. 

    You want to have user entries on the selection screen checked( for example authorization check) . If there is any error , the user must correct the entries, which step you need to program?        

    • A.

      You need to program the check at the event AT SELECTION-SCREEN, if there is any error an E type MESSAGE must be output.

    • B.

      You need to program the check at the event END-OF-SELECTION, if there is any error an E type MESSAGE must be output.

    • C.

      You need to program the check at the event AT SELECTION-SCREEN, if there is any error , processing must be interrupted with a STOP statement and an message type I must be output.

    Correct Answer
    A. You need to program the check at the event AT SELECTION-SCREEN, if there is any error an E type MESSAGE must be output.
    Explanation
    All the validations on Selection screen data or authorization should be done at event AT SELECTION-SCREEN and if any error should output message of type "E" which will stop the navigation and the selection screen will be displayed again

    Rate this question:

  • 25. 

    If you want the system to output the list in the program using SAP ALV Grid control, in which order you need to carry out the steps in order to acheive this                

    • A.

      A

    • B.

      D

    • C.

      C

    • D.

      B

    Correct Answer
    D. B
    Explanation
    Correct sequence for ALV GRID would be
    create an object of class CL_GUI_CUSTOM_CONTAINER
    create a screen and define the custom area in the screen
    generate object of class CL_GUI_ALV_GRID
    call the method SET_TABLE_FOR_FIRST_DISPLAY

    Rate this question:

  • 26. 

    which of the following statement concerning with structures and internal tables in ABAP debugger?      

    • A.

      With the ABAP debugger, you can edit internal tables(for example append lines, delete lines, change contents

    • B.

      With ABAP debugger you can change the definition of the structure at run time

    • C.

      With the ABAP debugger you can create new data objects even if they are structures or internal tables.

    Correct Answer
    A. With the ABAP debugger, you can edit internal tables(for example append lines, delete lines, change contents
    Explanation
    With ABAP debugger you can manipulate the data, change the data, add new rows to the internal table, clear the internal table, delete a internal table row
    But what you cannot do is to manipulate the meta information like changing data types , adding new column or creating new data objects.

    Rate this question:

  • 27. 

    Which of the following are tools of ABAP Workbench? (3 correct answer)      

    • A.

      Human Capital Management System

    • B.

      Class Builder

    • C.

      Easy Access Menu

    • D.

      Screen Painter

    • E.

      Function Builder

    Correct Answer(s)
    B. Class Builder
    D. Screen Painter
    E. Function Builder
    Explanation
    The tools of ABAP Workbench include Class Builder, Screen Painter, and Function Builder. These tools are used for different purposes in ABAP development. The Class Builder is used to create and manage classes and objects. The Screen Painter is used to design the user interface of a program by creating screens and screen elements. The Function Builder is used to create and manage function modules, which are reusable blocks of code. The Human Capital Management System and Easy Access Menu are not tools of ABAP Workbench.

    Rate this question:

  • 28. 

    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.

    Correct Answer
    A. Because you cannot read beyond the non character data within the structure using offset notations
    Explanation
    In the UNICODE system, if you are using offset and length specification for accessing the structure, the offset should start with character data, offset and length are interpreted as characters

    Rate this question:

  • 29. 

    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.

    Correct Answer(s)
    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.
    Explanation
    Once you declare a private variable/method, it can be accessed within the same class or to another class to whom CL_CUSTOMER grants friendship

    Rate this question:

  • 30. 

    You need to create the ABAP program that list a invoice from a supplier. What types of programs can you create to achieve this goal? (2 correct answer)      

    • A.

      ABAP WebDynpro applications

    • B.

      ABAP Executable Program.

    • C.

      ABAP subroutine

    • D.

      ABAP Include program.

    Correct Answer(s)
    A. ABAP WebDynpro applications
    B. ABAP Executable Program.
    Explanation
    To execute a program within ABAP it has to be either ABAP Executable Program(Reports) which is executed in SAP GUI CLIENT, ABAP WebDynpro applications which is executed over the browser
    Other types of program which can be finally executed in ABAP is Module Pool(requires T Code)
    BSP applications

    Rate this question:

  • 31. 

    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

    Correct Answer(s)
    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
    Explanation
    Data types can be used to define a variable of constants, meaning that a data type can be used to specify the type of value that a constant variable can hold. Data types can also be defined in the program, allowing for the creation of custom data types within the program itself. Additionally, data types can be defined in the ABAP dictionary, which is a central repository for storing and managing data definitions in the ABAP environment.

    Rate this question:

  • 32. 

    You want to write the dialog program that changes data on the screen . You want to bundle all updates by using UPDATE FUNCTION MODULE. What do function modules have to do if they encounter problems?      

    • A.

      ABORT the message with message axxx(nnn).

    • B.

      Write an error message with message exxx(nnn)

    • C.

      Write a warning message with message wxxx(nnn)

    • D.

      Inform the user with message ixxx(nnn)

    Correct Answer
    A. ABORT the message with message axxx(nnn).
    Explanation
    By raising the ABORT message in the update module does the rollback so all the transaction is rolled back and the database is in consistent state

    Rate this question:

  • 33. 

    What do you do if you want to extend SAP table sbook although in your company its strictly forbidden to modify SAP obejcts?      

    • A.

      You have to define a structure where you put in the field travel_agency in and include this structure in the SAP table sbook.

    • B.

      You have to create an append structure where you can define an appropriate field with name zztravel_agency

    • C.

      You have to extend the SAP table sbook by adding the field travel_agency directly into the definition of the table sbook.

    Correct Answer
    B. You have to create an append structure where you can define an appropriate field with name zztravel_agency
    Explanation
    Append Structure is an enhancement not a modification and when you enhance using Append structure all the column names should start with ZZ/YY

    Rate this question:

  • 34. 

    On a classical screen (Dynpro) there is an input field for an airline code coming from the field carrid of the database table zcarr. This field carrid refers to the data element z_carr_id which itself refers to the domains z_char_3. You task is to change the F1 help of the field carrid on the dynpro. The documentation of which object do you have change in order the F1 help on the dynpro?        

    • A.

      Documentation of the domain z_char_3.

    • B.

      Documentation of the data element z_carr_id

    • C.

      Documentation of the field carrid of the table zcarr.

    Correct Answer
    B. Documentation of the data element z_carr_id
    Explanation
    DataElement have the following properties
    Field Labels
    Field Documentation(F1)
    Search Help(F4)
    Parameter ID (Get/Set Parameter)

    Rate this question:

  • 35. 

    The database interface is responsible for which tasks? (3 correct answers)      

    • A.

      Database independence of applications programs

    • B.

      Syntax check of native SQL statements

    • C.

      Conversion of Open SQL statements from ABAP statements into the corresponding database statements

    • D.

      Data consistency check with respect to foreign Keys relationships

    • E.

      Usage of SAP buffers

    Correct Answer(s)
    A. Database independence of applications programs
    C. Conversion of Open SQL statements from ABAP statements into the corresponding database statements
    E. Usage of SAP buffers
    Explanation
    The database interface is responsible for ensuring database independence of application programs, converting Open SQL statements from ABAP statements into the corresponding database statements, and utilizing SAP buffers for improved performance. It is not responsible for the syntax check of native SQL statements or data consistency checks with respect to foreign key relationships.

    Rate this question:

  • 36. 

    You want to create Web Dynpro component with two view. The selection view contains two input fields for departure and arrival city and a button to trigger the search flight connections between two cities. The resulting view contains a table that displays the found flight connections and a button to navigate back to selection. In each view you have defined an outbound plug that will be fired by pressing the button in that view. Furthermore you have defined the inbound plug in each view. Which is the easiest way to define the navigation structure between two views?      

    • A.

      Create a combi view that contains two viewcontainerui element controls. Embed the combi view in a window and the other two views in the viewcontainerui element . Then connect the outbound plug of selection view to the inbound plug of result view and the outbound plug of result view to inbound plug of selection view.

    • B.

      Embed each view in its own window . Then connect the outbound plug of the selection view to the inbound plug of result view and the outbound plug of result view to inbound plug of selection view.

    • C.

      Embed both the views in same window, within the window connect the outbound plug of selection view to the inbound plug of result view and the outbound plug of result view to inbound plug of selection view.

    • D.

      Create a combi window that contains two Viewcontainerui element , Embed these two view in two viewcontainerui element. The connect outbound plug of selection view to the inbound plug of result view and the outbound plug of result view to inbound plug of selection view.

    Correct Answer
    C. Embed both the views in same window, within the window connect the outbound plug of selection view to the inbound plug of result view and the outbound plug of result view to inbound plug of selection view.
    Explanation
    Embedding both views in the same window and connecting the outbound plug of the selection view to the inbound plug of the result view, and vice versa, is the easiest way to define the navigation structure between the two views. This allows for seamless navigation between the selection view and the result view, as the outbound plug of one view connects directly to the inbound plug of the other view within the same window.

    Rate this question:

  • 37. 

    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( )

    Correct Answer(s)
    A. R_int->handle_event( ).
    D. R_class->if_bsp_controller~handle_event( )
    Explanation
    The first correct answer, "r_int->handle_event( )", is syntactically correct because r_int is a reference to an object of type IF_BSP_CONTROLLER, which means it can directly call the method HANDLE_EVENT.

    The second correct answer, "r_class->if_bsp_controller~handle_event( )", is also syntactically correct because r_class is a reference to an object of type CL_BSP_CONTROLLER2, which has implemented the IF_BSP_CONTROLLER interface. By using the interface reference, r_class can access and call the method HANDLE_EVENT defined in the interface.

    Rate this question:

  • 38. 

    You are writing application to stores data in internal table temporarily. Since application is runtime critical, you wonder which type of internal table to use. Which statements about internal table are correct? (2 correct answers)    

    • A.

      There are four types of internal table, standard, sorted, hashed and indexed tables.

    • B.

      If you want to add entry to sorted table, sort sequence must remain same.

    • C.

      You can use index to access hashed tables.

    • D.

      You can use the INSERT TABLE statements to add data records to all types of internal tables.

    Correct Answer(s)
    B. If you want to add entry to sorted table, sort sequence must remain same.
    D. You can use the INSERT TABLE statements to add data records to all types of internal tables.
    Explanation
    The correct answers are:
    1) If you want to add an entry to a sorted table, the sort sequence must remain the same. This means that when adding a new entry, it must be inserted in the correct position according to the sorting criteria of the table.
    2) You can use the INSERT TABLE statements to add data records to all types of internal tables. This means that regardless of the type of internal table (standard, sorted, hashed, or indexed), the INSERT TABLE statement can be used to add data records to it.

    Rate this question:

  • 39. 

    Which of the following ABAP statements referring to type t1 is syntantically correct? TYPES:BEGIN of t1,                   comp1 type scarr-carrid,                   comp2 type scarr-carrname,              END of t1. (2 correct answers)    

    • A.

      Data: str1 like t1.

    • B.

      TYPES str1 type t1.

    • C.

      Data: str1 type t1.

    • D.

      TYPES: t2 like t1.

    Correct Answer(s)
    B. TYPES str1 type t1.
    C. Data: str1 type t1.
  • 40. 

    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

    Correct Answer
    B. In the PBO module of corresponding screen
    Explanation
    In classical screen programming, the PBO (Process Before Output) module is responsible for setting the initial values and attributes of the screen elements before they are displayed to the user. This includes setting the status and title for a modal dialog box or popup. Therefore, the correct place to set the status and title for a modal dialog box is in the PBO module of the corresponding screen.

    Rate this question:

  • 41. 

    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

    Correct Answer
    D. SORT
    Explanation
    When working with an internal table of type sorted, the SORT command is allowed. This command is used to sort the entries in the internal table based on a specified key field. The MODIFY, INSERT, and DELETE commands are not allowed because they can potentially disrupt the sorted order of the table. These commands are typically used with internal tables of type standard or hashed, where the order of the entries is not important.

    Rate this question:

  • 42. 

    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 ).

    Correct Answer
    B. R_desc ?= cl_abap_typedescr=>describe_by_data( wa_material ).
    Explanation
    The statement "r_desc ?= cl_abap_typedescr=>describe_by_data( wa_material )" is syntactically correct because it uses the comparison operator "?=" to check if the reference r_desc is equal to the reference returned by the method describe_by_data( wa_material ) of the class CL_ABAP_TYPEDESCR.

    Rate this question:

  • 43. 

    You want to run a dialog program that update all the changes to the database. You want to bundle al the changes by using update function module. You want to inform the user of the update function module fails. Which is the easiest way to do it?      

    • A.

      Perform the update synchronously, retrieve the status and write the message to the inbox of the user

    • B.

      After the commit work , wait for couple of seconds , check the result of the update , write to the inbox of user

    • C.

      Run a job periodically checks the result of the update and writes the message to the inbox of the user

    • D.

      The system notifies the user automatically with the express message.

    Correct Answer
    D. The system notifies the user automatically with the express message.
    Explanation
    For Database Updates, you can set up email options where in case of update module fails it can notify the user
    The option of informing users by mail that an update action has failed can be set using the profile parameters rdisp/vb_mail_user_list and rdisp/vbmail.

    The parameter rdisp/vbmail can be set to '0' (no mail is sent in the event of an error) or '1' (a mail is sent in the event of an error).

    The rdisp/vb_mail_user_list parameter setting specifies who will be informed in the event of an error (rdisp/vbmail = 1) ($ACTUSER informs the user who generated the data record to be updated).

    Rate this question:

  • 44. 

    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.

    Correct Answer
    C. Define structure with these two fields and include the structure in both the database tables.
  • 45. 

    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

    Correct Answer
    E. Define SPFLI-CARRID as foreign key with check table SCARR with foreign key as MANDT and CARRID
    Explanation
    The easiest way to ensure that only CARRID values from the field SCARR-CARRID can be entered in the dynpro is to define SPFLI-CARRID as a foreign key with a check table SCARR. This ensures that the values entered in SPFLI-CARRID are validated against the values in SCARR-CARRID. Additionally, the foreign key should include MANDT and CARRID as the foreign key fields to ensure data consistency.

    Rate this question:

  • 46. 

    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.

    Correct Answer(s)
    A. Definition of method parameters.
    B. Definition of subroutine parameters
    D. Definition of selection screen parameters.
    Explanation
    The correct answer is Definition of method parameters, Definition of subroutine parameters, and Definition of selection screen parameters. These are all examples of places where TYPES are used. In the context of programming, TYPES refer to the specification or definition of data types for variables or parameters. In the given options, method parameters, subroutine parameters, and selection screen parameters are all places where the data types of variables or parameters need to be defined.

    Rate this question:

  • 47. 

    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

    Correct Answer(s)
    B. Classical Screens(dynpros) with controls(like ALV control)
    D. Selection Screen
    Explanation
    BSPs and WebDynpro uses Browser as the front end doesn't use SAP GUI frontend while executing

    Rate this question:

  • 48. 

    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.

    Correct Answer
    A. Check if the field with the ok code attribute in the screen 100 contains the value 'SAV'
    Explanation
    In order to check if the user has clicked on the push button with function code 'SAV', the correct approach is to check if the field with the ok code attribute in the screen 100 contains the value 'SAV'. This can be done by comparing the value of the field with the ok code attribute to 'SAV'. If they are equal, it means that the user has clicked on the button with the function code 'SAV'.

    Rate this question:

  • 49. 

    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

    Correct Answer
    A. Number_of_list is public static functional method of the class cl_list.
    Explanation
    The correct answer is that "number_of_list is a public static functional method of the class cl_list." This means that number_of_list is a method that can be accessed without creating an instance of the class cl_list, and it performs a specific function or operation.

    Rate this question:

  • 50. 

    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.

    Correct Answer(s)
    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.

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 28, 2011
    Quiz Created by
    Satbond
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.