What is the Event in ALV to handle a mark/demark?

Hi togehter,
I´m looking for the event to react on a mark or demark in ALV OO.
Thanks in advance,
Sebastian

Hi,
Check with the [Select or Deselect the row of ALV|Row Select in ALV]
Hope it helps you.
Regareds!

Similar Messages

  • What r the events in alv's

    what r the events contain in alv's
    plz give in an order
    clearly with decsription

    (Build up events table)
    build an event table, which are used for firing both user commands and the system dependent events i.e. top of page, end of page etc.
    A list of possible events is populated into an event table (I_EVENTS) when this table is passed from the function module REUSE_ALV_EVENT_NAMES_GET. The return table from this function module contains all the possible events.
    The function module contains following import and export parameters.
    IMPORTING PARAMETERS: I_LIST_TYPE
    This parameter has possible values from 0-4.
    The parameter I_LIST_TYPE is of TYPE SLIS_LIST_TYPE and is DEFAULT 0 .
    EXPORTING PARAMETERS:  I_EVENTS table.
    This table is of TYPE SLIS_T_EVENT and returns to the program the name of all the possible events.
    The table structure contains the fields:
         I_EVENTS-NAME: Name of the Callback event.
    I_EVENTS-FORM: Name of the form routine that should be called in the calling program at the event.
    Only events with a form routine name are processed.
    The I_EVENTS table returns with the following possible constants:
    1.     Slis_ev_item_data_expand TYPE slis_formname VALUE 'ITEM_DATA_EXPAND'.     
    Only relevant for hierarchical-sequential lists using the layout parameter IS_LAYOUT-EXPAND_FIELDNAME of the structure IS_LAYOUT. Exit for passing item entries (ITEM table) for a header record that was expanded interactively by the user.
    2.     Slis_ev_reprep_sel_modify TYPE slis_formname VALUE 'REPREP_SEL_MODIFY'.
    RS_SELFIELD-TABINDEX contains the header table index for which the item entries are to       be put in the global item output table (T_OUTTAB_SLAVE). The Callback is only called if ALV has no items for a header that is to be expanded.
    RFLG_ALL is passed with 'X' if the user shows all items. The application must ensure that    entries are not repeated in the item table.
        RS_SELFIELD is initial in this case.         
    3.     Slis_ev_caller_exit_at_start TYPE slis_formname VALUE 'CALLER_EXIT'.
    Is called at the beginning of the function module to make special settings. It is not usually used.          
    4.     Slis_ev_user_command TYPE slis_formname VALUE 'USER_COMMAND'.
    As this is a frequently-used Callback event, the form routine can also be passed        directly in the interface by passing the user command in the IMPORTING parameter           I_CALLBACK_USER_COMMAND.
    5.     Slis_ev_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE'.
       Equivalent to the list processing TOP-OF-PAGE event.           
    6.     Slis_ev_top_of_coverpage TYPE slis_formname VALUE 'TOP_OF_COVERPAGE'.       
    The selection information and list status are output together (if they exist) on a separate page by default
    7.     Slis_ev_end_of_coverpage TYPE slis_formname VALUE 'END_OF_COVERPAGE'.       
    Analogously to TOP_OF_COVERPAGE the user can add other information
    to the information output by ALV (selection information, list status) at this event.
    8.     Slis_ev_foreign_top_of_page TYPE slis_formname VALUE ‘FOREIGN_TOP_OF_PAGE'.
    The Top-of-page event is always processed in ALV and is only passed to the caller via the Callback mechanism. This is still the case if the caller, e.g. by a user action, processes a branch list which was not formatted by ALV (e.g. a popup with additional information about the list record selected and displayed by ALV).
    In this case, top-of-page cannot be formatted by ALV analogously to the basic list, it must be handled completely by the caller. The event top-of-page still occurs in ALV. When ALV notices a top-of-page which was not caused by an ALV output, the form routine in FOREIGN_TOP_OF_PAGE is called.
    9.     Slis_ev_foreign_end_of_page TYPE slis_formname VALUE 'FOREIGN_END_OF_PAGE'.  
    The event end-of-page is always processed in ALV and only passed to the caller via callback. This is still the case, e.g. when the caller processes a details list which was not formatted by ALV (e.g. a popup with further information about selected list records which were displayed by ALV).
    In this case, end-of-page cannot be formatted by ALV analogously to the basic list, it must be handled completely by the caller. The event end-of-page still occurs in ALV. When ALV notices an end-of-page that was not caused by an ALV output, the form routine in FOREIGN_END_OF_PAGE is called.                             
    10.     Slis_ev_pf_status_set TYPE slis_formname VALUE 'PF_STATUS_SET'.
    If a user list status is to be set, it must be done in the form routine assigned to this event. The ALV function codes, which must not be active, are in the Parameter RT_EXTAB. This table must be passed with the SET PF-STATUS command (with inactive user function codes as well, if necessary).
    The STANDARD status of the function group SALV should be used as a          template for a user-specific status. As this is a frequently used Callback event, its form routine can also be passed directly in the interface in the IMPORTING parameter I_CALLBACK_PF_STATUS_SET.
    11.     Slis_ev_list_modify TYPE slis_formname VALUE 'LIST_MODIFY'.     
    LIST_MODIFY USING R_TABNAME TYPE SLIS_TABNAME
                                             R_INDEX LIKE SY-TABIX
                                             R_INDEX_ITEM LIKE SY-TABIX
                                             R_INDEX_SUM LIKE SY-TABIX.
    12.     Slis_ev_top_of_list TYPE slis_formname VALUE 'TOP_OF_LIST'.  
    Information output at the start of the list     
    13.     Slis_ev_end_of_page TYPE slis_formname VALUE 'END_OF_PAGE'.
    Information output at the end of a page. This is only called for printing.
    14.     Slis_ev_end_of_list TYPE slis_formname VALUE 'END_OF_LIST'.     
    Information output at the end of the list
    15.     Slis_ev_after_line_output TYPE slis_formname VALUE 'AFTER_LINE_OUTPUT'.
    Output information after each output line. Should only be used in justified cases because it costs a lot of performance.
    16.     Slis_ev_before_line_output TYPE slis_formname VALUE   'BEFORE_LINE_OUTPUT'.       
    Output information before each output line. Should only be used in justified cases because it costs a lot of performance.         
    17.     Slis_ev_subtotal_text TYPE slis_formname VALUE  'SUBTOTAL_TEXT'.                        
    This event table (I_EVENTS) is now checked with the desired constants. If the desired constant is found, then the corresponding field for the FORM NAME is populated with the name of the routine containing the corresponding event.
    Sample code :
    FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
    FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE', FORMNAME_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND'.
    DATA: L_I_EVENT TYPE SLIS_ALV_EVENT.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
               I_LIST_TYPE = 0
           IMPORTING
                ET_EVENTS   = I_EVENTS.
      READ TABLE I_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
                               INTO L_I_EVENT.
      IF SY-SUBRC = 0.
        MOVE FORMNAME_TOP_OF_PAGE TO L_I_EVENT-FORM.
        APPEND L_I_EVENT TO I_EVENTS.
      ENDIF.
      READ TABLE I_EVENTS WITH KEY NAME = SLIS_EV_END_OF_PAGE
                               INTO L_I_EVENT.
      IF SY-SUBRC = 0.
        MOVE FORMNAME_END_OF_PAGE TO L_I_EVENT-FORM.
        APPEND L_I_EVENT TO I_EVENTS.
      ENDIF.
      CLEAR L_I_EVENT.
      READ TABLE I_EVENTS WITH KEY NAME = SLIS_EV_USER_COMMAND
                               INTO L_I_EVENT.
      IF SY-SUBRC = 0.
        MOVE FORMNAME_USER_COMMAND TO L_I_EVENT-FORM.
        APPEND L_I_EVENT TO I_EVENTS.
      ENDIF.
    This will prepare the events table for the report.
    The report will contain three forms for the above events:
    1.     FORM TOP_OF_PAGE: This form will contain the top of page event for the report i.e. header etc
    Using the function module ‘REUSE_ALV_COMMENTARY_WRITE’, the internal table containing the headings for top of page event can be passed to the list output. Also, any logo specific to the report can be passed to the function module.
    2.     FORM END_OF_PAGE: This form will contain the end of page event for the report i.e. footer etc
    3.     FORM USER_COMMAND: This form will contain the desired user command i.e. pick/line selection
    hope this helps
    Regards
    Abdullah

  • What are the events in alv reports

    hai this is siva

    Hi siva:
    This is technical question. you should post this query to an ABAPer.
    However this link may help you.
    alv report
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    MSReddy

  • What is the event by which i can get that user deny the offline data store when the message comes in the browser

    I have an application which stores manifest for offline use. Now firefox asking for a confirm message that if i want to allow or not. If i say 'allow' the application works fine. but if i say 'not now' or 'never for this site' the application stops. What is the event to check that user deny to allowing store data. i used different option like - cached,noupdate,error,uncached,idle,obsolete. as an example- applicationCache.addEventListener('idle', function () {});
    but none of this says that user deny to allow. Please tell me the option that i can check that user does not want to allow and do my rest work.

    It should be possible to allow offline data storage for only certain websites, and that setting is in Options > Advanced > Network. If the answer is "don't do it", then it should not be done. Is that not what is happening?

  • What is the difference between ALV list FM display and OO ALV Display?

    What is the difference between ALV Function Modules and Object Oriented ALV Display?

    Hi Sathish ,
      There is not much diffrence , it is only another way of implementing it.
    Regards
    Arun

  • What are the events in interactive reports?

    what are the events in interactive reports?
    could plz explain

    hi,
    First event -
    Initialization : triggered when the report is loaded in memory.
    At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.
    At selection-screen : before leaving the selection screen.
    start-of-selection : the first event for displaying the report.
    This event keyword defines an event block whose event is triggered by the ABAP runtime environment
    when calling the executable program selection screen processing of a selection screen.
    In an executable program, all statements that are not declarations,
    and are listed before the first explicit processing block, are assigned to this event block.
    If the program does not contain an explicitly defined event block START-OF-SELECTION,
    these statements form the complete event block START-OF-SELECTION.
    If a program contains an explicitly defined event block START-OF-SELECTION,
    these statements are added to the beginning of the event block.
    If the program contains no explicitly defined event blocks,
    these statements form the entire event block START-OF-SELECTION.
    end-of-selection : after the start-of-selection is completed.
    classiscal report events.
    top-of-page : every time a new page is started in the list.
    end-of-page : every time the list data reaches the footer region of the page.
    interactive report events.
    top of page during line selection : top of page event for secondary list.
    at line-selection : evey time user dbl-clicks(F2) on the list data.
    at pF<key> : function key from F5 to F12 to perform interactive action on the list.
    at user-command
    <b>http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm</b>
    Rgds
    Anver

  • What are the best practices for exception handling in n-tier applications?

    What are the best practices for exception handling in n-tier applications?
    The application is a fat client based on MVVM pattern with .NET framework.

    What are the best practices for exception handling in n-tier applications?
    The application is a fat client based on MVVM pattern with
    .NET framework.
    That would be to catch all exceptions at a single point in the n-tier solution, log it and create user friendly messages displayed to the user. 

  • What are the events in Module Pool Programming ?

    hi,
    what are the events in Module Pool Programming ???
    thx

    Refer the following links :
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://www.sap-img.com/
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com
    http://www.sapgenie.com/abap/example_code.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
    http://www.allsaplinks.com/dialog_programming.html
    http://www.sapbrain.com/TUTORIALS/default.html
    http://www.sappoint.com/abap/spmp.pdf
    <b>Reward points if it helps in any way.</b>

  • What are the events of lsmw?

    what are the events of lsmw?

    hi,
    Check out these:
    Processing time Meaning Default setting
    __BEGIN_OF_PROCESSING__ Before the beginning of
    data processing
    (blank)
    __BEGIN_OF_TRANSACTION__ Before the beginning of
    transaction data
    processing
    (blank)
    __BEGIN_OF_RECORD__ Before applying the
    conversion rules for a
    source structure
    Initialize the structure <segment>
    (Name of target structure)
    Batch Input, Direct Input:
    <segment> = init_<segment>.
    BAPI, IDoc:
    g_edidd_segnam = '...'.
    g_edidd_segnum = '....'.
    g_edidd_psgnum = '......'.
    g_edidd_hlevel = '..'.
    Clear <segment>.
    __END_OF_RECORD After applying the
    conversion rules for a
    source structure
    Transfer_record.
    __END_OF_TRANSACTION__ After finishing transaction
    processing
    Transfer_transaction.
    __END_OF_PROCESSING__ After finishing data
    processing
    (blank)
    transfer_record. Transfers the current record (i.e. for the current target
    structure) to the output buffer.
    transfer_this_record '...'. Transfers a record of another target structure to the output
    buffer. The name of the target structure has to be specified as
    argument in single quotes.
    at_first_transfer_record. Transfers the current record to the output buffer, if it is the first
    transaction.
    on_change_transfer_record. Transfers the current record to the output buffer, if it has
    changed compared to the last record.
    transfer_transaction. Writes the current transaction to an output file. All records of
    Legacy System Migration Workbench
    38
    the output buffer are transferred to the output file.
    skip_record. The current record is not transferred to the output buffer.
    skip_transaction. The current transaction is not written to the output file.

  • What is the event name after RESIZE is finished?

    Hi,
    I need to determine the new size of a component after it is
    resized by the user. But it seems if I check the 'size' when
    Event.RESIZE happens, 'size' is still the old one, not the new one.
    So what is the event name for the event when the Event.RESIZE
    is finished?
    Thanks!

    From my understanding when the resize has occurred the event
    is fired, so when you receive the event you should have the resized
    dimensions. Could you stick up your code?

  • How to capture the event in ALV grid display?

    Hi experts,
      How to capture the event in an ALV grid display which is editable. I have to capture the TAB key or ENTER key.
    regards,
    Arul Jothi.

    Hi Arul,
    Take a look at sample program BCALV_EDIT_03. (Find string "register ENTER" in the program to see how to register)
    Basically you have to Register edit events using method call REGISTER_EDIT_EVENT and then write a handler method for event DATA_CHANGED..
    If you are using a REUSE..GRID fm then first get the grid reference using function module GET_GLOBALS_FROM_SLVC_FULLSCR and then repeat the above procedure..
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • Query about the events in ALV List

    Hi,
    When does the events being triggered in the ALV?
    Whta is its behavior? Thanks a lot!

    Hi,
    Following this report is the sample report  ALV. Kindly go through that one.
    REPORT  YMS_ALVDEMO                             .
    TYPE-POOLS : SLIS.
    TABLES : QALS.
    DATA : BEGIN OF T_OUT OCCURS 0,
    MATNR LIKE QALS-MATNR, "MATERIAL
    WERK LIKE QALS-WERK, "PLANT
    ART LIKE QALS-ART, "Inspaction Lot Type
    OBJNR LIKE QALS-OBJNR, "Object Number
    END OF T_OUT.
    DATA : I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
    I_LAYOUT TYPE SLIS_LAYOUT_ALV,
    GS_LAYOUT TYPE LVC_S_LAYO,
    G_REPID TYPE SY-REPID,
    LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    SELECT-OPTIONS:S_PRFLOS FOR QALS-PRUEFLOS.
    INITIALIZATION.
      G_REPID = SY-REPID.
      I_LAYOUT-ZEBRA = 'X'.
      I_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    START-OF-SELECTION.
      PERFORM FETCH_DATA.
    END-OF-SELECTION.
      PERFORM FILL_FIELDCAT.
      PERFORM DISPLAY_ALV.
    *& Form FETCH_DATA
    * text
    * --> p1 text
    * <-- p2 text
    FORM FETCH_DATA .
      SELECT MATNR WERK ART OBJNR
      FROM QALS
      INTO TABLE T_OUT
      WHERE PRUEFLOS IN S_PRFLOS.
    ENDFORM. " FETCH_DATA
    *& Form FILL_FIELDCAT
    * text
    FORM FILL_FIELDCAT .
      REFRESH I_FIELDCAT[].
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          I_PROGRAM_NAME         = G_REPID
          I_INTERNAL_TABNAME     = 'T_OUT'
          I_INCLNAME             = G_REPID
        CHANGING
          CT_FIELDCAT            = I_FIELDCAT[]
        EXCEPTIONS
          INCONSISTENT_INTERFACE = 1
          PROGRAM_ERROR          = 2
          OTHERS                 = 3.
    ENDFORM. " FILL_FIELDCAT
    *& Form display_alv
    * text
    FORM DISPLAY_ALV .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM = G_REPID
          IS_LAYOUT          = I_LAYOUT
          IT_FIELDCAT        = I_FIELDCAT[]
        TABLES
          T_OUTTAB           = T_OUT
        EXCEPTIONS
          PROGRAM_ERROR      = 1
          OTHERS             = 2.
    ENDFORM. " display_alv
    Thanks,
    Sankar M

  • What is the best way of Exception Handling

    There are many ways to handle the exceptions of a program.
    1: You could put every exception handler in the most upper abstract classes.
    2: You could write a generic exception that handles a lot of things.
    3: You could write exceptions handling for every class.
    4: you could group the exception handling.
    many, many more ways.
    Question:
    What is the best way to do this?

    There are many ways to handle the exceptions of a program.
    1: You could put every exception handler in the most upper abstract classes.I woldn't do that always, a class may throw an exception if it's not able to handle it prperly, but it may, so it'll catch it. Throw Exception in abract supper clases only when you are sure the children must always throw the exception, not processing it.
    2: You could write a generic exception that handles a lot of things.Bad idea, if you always throw an Exception no informtaion is provaided about whta happened, if you throw a NullPointerException and a NumberFormatException in one of your method I (for example) colud handle properly both problems, one likely to be a programming erros, so check my cod eagain, and the other like to be an user error in introduciong some data, so I wold ask him for the data again.
    3: You could write exceptions handling for every class.Write exceptions handling for every class that needs it, throwing the exception if at that moment you don't know what to do with it and catching it if yes. Do not employ too many exception handling: execution of try catch blcks is slower than usuall code.
    4: you could group the exception handling.I don't undestand this. What do youmean?
    Question:
    What is the best way to do this? In general thrwo an exception if the class dosen't know what to do with it, the class which uses yours will handle it. If your class can process the Exception, don't be too lazy and process it.
    Employ exceptions always you need them but do not abuse; thay made the code execute slower because the VM machine must check if the exceotions occur.
    abraham.

  • What are the 'events' that are captured by a Visual Studio Workflow (PWA)

    Hello All,
    I need to understand what are the different events that Visual Studio workflow (PWA 2013) knows when it an event is triggered. As far as I know there are 3 events
    'OnProjectSubmit', 'OnProjectCommit' and “OnProjectCheckIn'.
    Are there any other events that workflow understands, especially on a click of a Save button?

    well done...
    http://www.soran.edu.iq

  • What are the events triggered in lsmw?

    what are the the events trigered in lsmw?

    check this link for complete info in LSMW
    How to mantaian the manditory ,optional and required fields in LSMW
    Regards
    Prabhu

Maybe you are looking for