What Are the Events in ALV

Embed Size (px)

Citation preview

  • 8/6/2019 What Are the Events in ALV

    1/3

    What Are The Events In ALV

    What are the events in alvs and which events not used in alvs?

    Events in alv and their FM The main events in alv and their FM and why we use these:

    1. SLIS_PRINT_ALV.2. SLIS_T_LISTHEADER.

    3. SLIS_T_EVENT.4. SLIS_T_SORTINFO_ALV.

    5. SLIS_T_LAYOUT_ALV.6. SLIS_T_FIELDCAT_ALV.

    and in classic reports what is the sequence of events: === Events are

    At selection-screen output.

    Initialization.At selection-screen on field

    At selection-screen on end of fieldAt selection-screen on Radiobutton Group R1. (If you have any radio buttons)

    At selection-screen on block b1. (If you have any blocks)Start-of-selection.

    Get node. (if the data is retreived from a logical database)

    Get node late. (if the data is retreived from a logical database)

    Top-of-page. (if the write statement is in the end-of-selection event or we can say that beforethe first write statement)

    end-of-selection.and fuction modules are

    LISTHEADER - Is used to print the header information in the ALV List. Name, Date, Time,ALV Name and other details are called as Header information. EVENT - Basically this is

    the FM to handle Event's. When the user needs to do some event operation like when doubleclicking the a particular field we need to perform some operation. These events are captured

    by this FM. LAYOUT - This FM is used to define the layout of the List. There are manyoptions available in this FM to define the Layout style. FIELDCAT - These are used to

    populate the List header. We can change them according to our req.

    User-defined Text Output Event

    Applicationprint_end_of_list

    Define output text to be printed at the end of the entire listprint_top_of_list

    Define output text to be printed at the beginning of the entire list

    print_end_of_page

    Define output text to be printed at the end of each pageprint_top_of_page

    Define output text to be printed at the beginning of each pagesubtotal_text

    Define self-defined subtotals texts

  • 8/6/2019 What Are the Events in ALV

    2/3

    Mouse-controlled Actions in the Grid Control EventApplication

    button_clickQuery a click on a pushbutton in the ALV Grid Control

    double_click

    Query a double-click on a cell of the ALV Grid control

    hotspot_clickQuery a hotspot click on columns defined for this purpose in advance

    onDragCollect information when elements of the ALV Grid Control are dragged

    onDrop

    Process information when elements of the ALV Grid Control are dropped

    onDropCompletePerform final actions after successful Drag&Drop

    onDropGetFlavorDistinguish between options for Drag&Drop behavior

    Processing of Self-defined and Standard Functions EventApplication

    before_user_commandQuery self-defined and standard function codes

    user_commandQuery self-defined function codes

    after_user_commandQuery self-defined and standard function codes

    Definition of Self-defined Functions EventApplication

    toolbarChange, delete or add GUI elements in the toolbar

    menu_buttonDefine menus for menu buttons in the toolbar

    context_menu_request

    Change context menu

    onf1Define self-defined F1 help

    All of these can be found under type group SLIS.

    * Events

    SLIS_EV_ITEM_DATA_EXPAND TYPE SLIS_FORMNAME VALUE'ITEM_DATA_EXPAND',

    SLIS_EV_REPREP_SEL_MODIFY TYPE SLIS_FORMNAME VALUE'REPREP_SEL_MODIFY', SLIS_EV_CALLER_EXIT_AT_START TYPE

    SLIS_FORMNAME VALUE 'CALLER_EXIT',

    SLIS_EV_USER_COMMAND TYPE SLIS_FORMNAME VALUE

    'USER_COMMAND',SLIS_EV_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE

  • 8/6/2019 What Are the Events in ALV

    3/3

    'TOP_OF_PAGE',SLIS_EV_DATA_CHANGED TYPE SLIS_FORMNAME VALUE

    'DATA_CHANGED',SLIS_EV_TOP_OF_COVERPAGE TYPE SLIS_FORMNAME VALUE

    'TOP_OF_COVERPAGE',

    SLIS_EV_END_OF_COVERPAGE TYPE SLIS_FORMNAME VALUE

    'END_OF_COVERPAGE',SLIS_EV_FOREIGN_TOP_OF_PAGE TYPE SLIS_FORMNAME

    VALUE 'FOREIGN_TOP_OF_PAGE', SLIS_EV_FOREIGN_END_OF_PAGE TYPESLIS_FORMNAME

    VALUE 'FOREIGN_END_OF_PAGE',

    SLIS_EV_PF_STATUS_SET TYPE SLIS_FORMNAME VALUE

    'PF_STATUS_SET',SLIS_EV_LIST_MODIFY TYPE SLIS_FORMNAME VALUE

    'LIST_MODIFY',SLIS_EV_TOP_OF_LIST TYPE SLIS_FORMNAME VALUE

    'TOP_OF_LIST',

    SLIS_EV_END_OF_PAGE TYPE SLIS_FORMNAME VALUE'END_OF_PAGE',

    SLIS_EV_END_OF_LIST TYPE SLIS_FORMNAME VALUE

    'END_OF_LIST',SLIS_EV_AFTER_LINE_OUTPUT TYPE SLIS_FORMNAME VALUE

    'AFTER_LINE_OUTPUT', SLIS_EV_BEFORE_LINE_OUTPUT TYPESLIS_FORMNAME VALUE 'BEFORE_LINE_OUTPUT',

    SLIS_EV_SUBTOTAL_TEXT TYPE SLIS_FORMNAME VALUE

    'SUBTOTAL_TEXT'.

    These are the main events that are used in an ALV

    report.

    1. USER_COMMAND2. TOP_OF_PAGE3. PF_STATUS_SET4. TOP_OF_LIST5. END_OF_PAGE6. END_OF_LIST7. SUBTOTAL_TEXT