option
Questions
ayuda
daypo
search.php

ABAP 7.4 - Chapter 15 - ALV Grid Control

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
ABAP 7.4 - Chapter 15 - ALV Grid Control

Description:
ABAP 7.4 - Chapter 15 - ALV Grid Control

Creation Date: 2017/04/24

Category: Others

Number of questions: 31

Rating:(6)
Share the Test:
Nuevo ComentarioNuevo Comentario
New Comment
NO RECORDS
Content:

ALV Grid Control is stand-alone binary software component, it uses the Control Framework (CFW), instead the screen processor. True. False.

You cannot create stand-alone instances of a control on the presentation server. You must provide a special control known as a container control. This container control is placed in a reserved area on the screen, and the ALV Grid is within this container control. True. False.

What is correct to say about ALV Grid Programming (CL_GUI_ALV_GRID): (There are four correct answers). You need to generate an instance of a container. In your program, you need to do this before displaying the screen where the ALV Grid Control is to appear on the presentation server. The Process After Input (PAI) of the screen that contains the reserved area is the usual place to create the container instance. The reference variable needs to refer to the Container class, in this case TYPE REF TO cl_gui_custom_container. You generate a container control instance by using the statement CREATE OBJECT to generate an instance of the class cl_gui_custom_container. Link the container you are creating to the area you reserved for it on the screen by using the IMPORTING parameter container_name. You can stop unwanted instances from being generated by only creating one after checking if the reference variable is not valid with the condition IS NOT CREATED.

What is correct to say about ALV Grid Programming (CL_GUI_ALV_GRID): (There are three correct answers). You must create the instance of the ALV Grid Control after the container control instance because the container instance must exist before you can link the ALV Grid to it. If you want to display the ALV Grid Control in full-screen mode, you do not reserve a control area on the screen, and you do not create a container control. Instead, you assign a static value to the export parameter i_parent cl_gui_custom_container=>screen0. You must pass the data for display to the ALV Grid as a standard internal table to the method SET_TABLE_FOR_FIRST_DISPLAY, which you call for the ALV Grid instance. The ALV Grid makes a copy of the supplied internat table. The table supplied to the ALV Grid can be a standard table or a sorted table.

What is correct to say about ALV Grid Programming (CL_GUI_ALV_GRID): (There are four correct answers). The data to appear in the ALV must be supplied to the parameter it_outtab; all other parameters are optional. If you supply the name of a global structure type (ABAP Dictionary) to the parameter i_structure_name, the field catalog is automatically generated by the ALV Grid for the fields in this structure, table, or view. However, each component in the structure must also exist in the data internal table as a column. You can have the list data and the additional information sent to the presentation server again by using the method REFRESH_TABLE_DISPLAY. The parameter i_soft_refresh, if supplied with the value 'X', specifies that only the data contents are to be passed again, which keeps the current filter and sort criteria. If you assign the value 'X' to the ROW or COL fields of a structure using the global type LVC_S_STBL (for the parameter IS_STABLE), the scroll positions of the rows and columns will be retained during refreshing. You can also use the method REFRESH_TABLE_DISPLAY if you have changed the row structure of the display table. In this case, the field catalog will be automatically created again.

What is correct to say about Variants: (There are two correct answers). User-dependent variants must start with a digit (0-9). A customer’s cross-user variants (also known as standard variants) must start with a slash (/). SAP’s cross-user variants start with a letter. Only standard layout variants can be transported.

What is correct to say about the Display settings: (There are three correct answers). To change the ALV layout you provide a work area to the parameter is_layout. To sort the data in a specific order in the ALV Grid Control when the grid is initially displayed, you must provide an internal table for the IT_ORDER parameter. If more than one field will be part of the sort criterion, you either enter the sequence for each field in the sort criterion in the field SPOS or you provide the fields in the correct sequence for the sort order. To sort in ascending order, you place an X in the UP field.

What is correct to say about Field Catalog: (There are two correct answers). The most complicated way to generate the field catalog is to supply the name of a structure from the ABAP Dictionary to the ALV Grid in the parameter i_structure_name. If you cannot provide all details for all columns via the i_structure_name parameter, you provide this information to the ALV Grid through the parameter it_fieldcatalog. The common reasons for the inclusion of a field catalog are, change the display of the output, for example, a different column position or heading and when the internal table has columns that are not contained in the ABAP Dictionary structure that is supplied for the parameter i_structure_name.

To specify an event handler method in a local class, in the definition part you use the addition FOR EVENT <event_name> OF <class_name>: True. False.

The ALV Object Model (ALV OM) is a new feature available since SAP NetWeaver 6.40. In earlier releases, the ALV Grid was based on the global class CL_GUI_ALV_GRID.The ALV Object Model is simpler to use. True. False.

ALV OM - The ALV output formats are: the fullscreen ALV, the classic ABAP list, and the output in a container control as a subarea of a screen. the fullscreen ALV, ALV OO, and the output in a container control as a subarea of a screen. the fullscreen ALV OO and the output in a container control as a subarea of a screen.

You must call at least the following two methods in the ALV main class CL_SALV_TABLE to obtain the desired ALV output: Factory, Display. create object <ref>, set_for_first_display. reuse_alv_grid, set_for_first_display. reuse_alv_grid, show.

ALV OM - What is correct to say about the FACTORY static method: (There are four correct answers). Instantiates an object of the ALV main class, use the FACTORY method instead of the usual CREATE OBJECT. It returns an ALV instance. You pass into this method an internal table that will contain the data to be displayed (the display table) from which data is displayed. The display type (classic, full-screen, in container) is also defined. When this method is called, the table cannot be empty. During the FACTORY method a reference to the actual table is created. The data will need to be populated, however, prior to calling the next method. If you have multiple ALV displays on a single screen, they will have the same instance or reference variable.

ALV OM - Based on this picture, what is correct to say: (There are four correct answers). When the parameter list_display is true, it produces a classic list display. The parameters r_container and container_name allow you to place the ALV in a container. When the export parameters list_display, r_container and container_name are empty, it produces the standard table display. The container option produce a full-screen ALV. The two necessary parameters are r_salv_table, which returns a reference to the created ALV, and t_table, which is the internal table that contains (or will contain) the display data for the ALV.

ALV OM - The classic list display is still possible because it is the only way to display multiple rows for a record. True. False.

ALV OM - Notice that there is no field catalog and no structure name provided. If the fields referenced in the data table are defined with reference to data elements in the ABAP Dictionary, you need do nothing else: True. False.

ALV OM - You have to retrieve the display settings to change the attribute in the ALV: True. False.

This picture shows hot to set the zebra pattern: True. False.

The uppermost class of the ALV Object Model class hierarchy is the class CL_ALV_GRID: True. False.

Unlike the older version of ALV (where it is not necessary to create an object to the event class because the events belong to the ALV class), we create an object of the event class (CL_SALV_EVENTS_TABLE) if we do not have a valid reference and then set the handlers for the two events we are interested in processing. True. False.

What is the best order to provide an event handler for an ALV?. Create the ALV, write the handler, register for the event, display the ALV. Register for the event, write the handler, create the ALV, display the ALV. Write the handler, register for the event, create the ALV, display the ALV. Write the handler, create the ALV, register for the event, display the ALV. Write the handler, create the ALV, display the ALV, register for the event.

What are the differences between displaying in a full screen and in a container? Select all that apply (Tere are two correct answers). The full screen requires Dynpro programming. The container requires the use of an additional object (a container control). The only difference is that the container name must be specified when creating the ALV object. Only a full-screen ALV allows the use of event handling. Only an ALV in a container allows the use of event handling. Any type of ALV allows the use of event handling.

To reserve an area on the screen for an ALV Grid Control, you must do the following: Create an object (instantiate the object) of the class CL_GUI_CUSTOM_CONTAINER. Create an object (instantiate the object) of the class CL_GUI_ALV_GRID. Create an object (instantiate the object) of the class CL_SALV_TABLE. Use the Screen Painter.

You must call a method to actually display the contents of the display table after you create an ALV. True. False.

Which does the field catalog allow you to do? Select all that apply. (There are three correct answers). Add a field to the display. Specify the sort order of the display table. Produce a striped pattern for the display lines. Change the title of a column. Change the display order of a column.

Which class is used to define a reference for an instance of the ALV Object Model?. Class CL_GUI_CUSTOM_CONTAINER. Class CL_GUI_ALV_GRID. CL_SALV_TABLE.

You use the CREATE OBJECT statement to create both types of ALV: True. False.

What is the ALV Object Model?. A group of classes that describe the ALV Grid as a whole and inherit from a single class. A group of hierarchal classes that describe the ALV Grid as a whole but do not inherit from a single class.

Which statements are true? Select all that apply. The ALV Grid uses a reference to the data table for display. The ALV Object Model uses a reference to the data table for display. The ALV Grid can define a sort criteria for initial display. The ALV Object Model can define a sort criteria for initial display. The ALV Grid requires a table refresh after programmatically changing the ALV. The ALV Object Model requires a table refresh after programmatically changing the ALV.

The ALV was introduced with ABAP object-oriented capabilities in release 4.5A. True. False.

The ALV is entirely implemented using ABAP Objects. True. False.

Report abuse