List Events in J2ME

Hi!
Can we add an event to List?
Like say: I want to display at the ticker the content of the list which is selected.
If I select List index[0], then the content of the List at zero will be shown at the ticker and so on for which ever index I select from the List.
When I press down the down arrow of my keyboard that particular index should be displayed only and not on Pressing the Ok button which goes for the commandAction (Command c, Displayable d) method. There must be some event handling for the problem which I am facing but not sure about it.
Using this code only display the text of the first selected item which is selected by default:
Code:
getTicker().setString(titleArray[0]);
mainList.setTicker(getTicker());If someone can please throw some lights on this.
Thanks,

In MIDP, there is no way for the application to handle List traversal events.
It is possible to do something like that with CustomItem designed to simulate list look and feel but the code would be quite complicated. Also, even though it's doable that way, I generally doubt that passing list element text to ticker while traversing would make nice [user experience|http://en.wikipedia.org/wiki/User_experience|Wikipedia article].
To do stuff like showing (large? detailed?) content of selected List element I'd personally prefer good old commandAction. And I'd show it on a dedicated "helper" screen, not on a ticker.
By the way - as far as I understand you are trying to avoid commandAction... why?

Similar Messages

  • JComboBox: how to capture the internal list  events?

    Hi
    Does anybody know how to capture JComboBox internal list events, what I mean
    is when I click the box arrow button a list of the items pops up and as you move the mouse inside that list up and down, an items gets highlighted.
    So I am interested in capturing those events - basically when the next item from the list is highlighted.
    Thanks

    You can add an item listener to the combo box for that. IIRC, your listener will get
    notified twice: once for the deselection of the previous item, and once for the new
    item's selection.
    : jay

  • Regarding list events

    can anyone explain about list events
    at line selection
    at user command.
    at pf##.
    thanks in advance.

    Hi Moorthy,
    AT LINE-SELECTION : This Event triggers when we double click a line on the list, when the event is triggered a new sublist is going to be generated. Under this event what ever the statements that are been return will be displayed on newly generated sublist.
    After user interaction with the screen, you may need to know the position of the cursor when the action occurred. This is particularly important if the user chooses the Choose function (F2 or mouse double-click).
    sample code using user command.....
    The onlycocept is that user command contains only
    the user action.....and it is represented as "sy-ucomm".
    REPORT demo_list_set_pf_status_1.
    DATA: fcode TYPE TABLE OF sy-ucomm,
    wa_fcode TYPE sy-ucomm.
    START-OF-SELECTION.
    wa_fcode = 'FC1 '. APPEND wa_fcode TO fcode.
    wa_fcode = 'FC2 '. APPEND wa_fcode TO fcode.
    wa_fcode = 'FC3 '. APPEND wa_fcode TO fcode.
    wa_fcode = 'FC4 '. APPEND wa_fcode TO fcode.
    wa_fcode = 'FC5 '. APPEND wa_fcode TO fcode.
    wa_fcode = 'PICK'. APPEND wa_fcode TO fcode.
    SET PF-STATUS 'TEST'.
    WRITE: 'PF-Status:', sy-pfkey.
    AT LINE-SELECTION.
    IF sy-lsind = 20.
    SET PF-STATUS 'TEST' EXCLUDING fcode.
    ENDIF.
    WRITE: 'Line-Selection, SY-LSIND:', sy-lsind,
    / ' SY-PFKEY:', sy-pfkey.
    AT USER-COMMAND.
    IF sy-lsind = 20.
    SET PF-STATUS 'TEST' EXCLUDING fcode.
    ENDIF.
    WRITE: 'User-Command, SY-LSIND:', sy-lsind,
    / ' SY-UCOMM:', sy-ucomm,
    / ' SY-PFKEY:', sy-pfkey.
    Rewards Points if contents are useful...
    Thanks.

  • List Event Listener

    Is there a List Event Listener that gets activated every time a different item in the list is selected. The ListSelectionListener sounded like it was activated when the data changed and I wasnt quite sure what all of the ListSelectionEvent methods did.

    try using ItemListener
    public void itemStateChanged(ItemEvent ie)

  • Is there Key Event in J2ME?

    Hi there,
    Is there key event in j2me? It seems we only can get event from Command.
    By the way, there is only few messages in KVM disscussion home. I thought J2ME is getting more popular recently, So we should have more people in Forum.
    However, Microsoft put more on WinCE; and Qualcomm has BREW for wireless device. Do you think Java will win?

    why don't you look in the specs B4 posting.
    you'll actually SAVE yourself time ;-)
    rob,

  • List event handler

    Hello everyone,
    I have a List with some elements in. I would like to handle the list events such that i.e. when the selectedIndex changes, a specific action to happen.
    For example if the list elements are music file names, by changing the cursor from one element to the next one without pressing any buttons (no command listener) the new selected file should start to play.
    How do we normally do that? Does ItemStateListener help?
    Thank you.

    I don't think you willbe able to do this with a List. Lists don't have any items, so you can't set an ItemStateListener. The ItemStateListener is used for the classes which extend Item, such as TextField, ChoiceGroup etc. So you would need to create a form and add some items to it for this to work. But even then the ItemStateListener only does something when the state changes, such as changing the text in a TextField etc.
    To get this to work using LCDUI components you would have to create a CustomItem to represent each music track. This means doing all of the drawing yourself (which means it won't match the phone's theme). Within the CustomItem you can handle the traversal actions, i.e. on traverse in you could play the track and traverse out you could stop it. If you want to use this you should search for help on creating CustomItems, they can be quite tricky.
    Alternatively you can create your own screen using Canvas (again this would not match the phone's theme). Here you can control the key pressed events and move between tracks and do whatever you want when one track is selected.

  • List events in iCal

    I want to do something which should actually be relatively simple, but proves near impossible in iCal. I want to move a date range of events (eg all events from October 2006 to September 2008) from Calendar A to Calendar B. I want to archive old events in Calendar B and leave only current and future events in Calendar A. In a program like Outlook I would display all events in a list view, sort them by date, select the date range I'm intersted in and move the events. iCal doesn't seem to have a list view option, which makes this seemingly simple task surprisingly difficult. I tried going to month view and selecting events this way, hoping to at least be able to move items month by month. But I can't seem to select items by dragging over them, nor does cmd-A ("Select all") do any thing. The only way to accomplish the task is to tediously control-click every single item.
    I also tried solving my problem using the search field. But you can only search by content (event titles, notes etc), not by date range. I haven't figured out a search parameter that would return all events (in Outlook, if you search for "" you get a list all events back). I then tried searching for a very common string, such as "e", hoping to cover many events, and being left with only a few to manually clean up later. This did return a very long list, which I could sort by date and then select a large contiguous chunk, but when I wanted to manipulate it (i.e. move it to another calendar), iCal crashed.
    Is there any more sensible way to solve this - after all quite simple - task?

    I am having the same problem. I have tried different scenarios and it looks like its an issue with syncing from MobileMe. I thought I had it beat when I saw my preferences for in iCal were set to to start at 8AM and end at 6PM. I made it Midnight to Midnight but that did not fix it.
    I am perplexed - has to be a bug!
    Message was edited by: RaoulDuke

  • Just got ios7 on iPhone but calendar doesn't list events like in ios6. You need to tap the date to see what is listed on the calendar . Can that be changed ?

    Don't like calendar set up with IOS7. Can't see list of actual events on calendar as was the case with IOS6. If you have a dental appointment in October but can't remember the day ,you need to tap each day to see what us on whereas before you could just scroll down the dates showing a list what is on. Wish that could be organized as before. Is there a way to set it up as in ios6? Otherwise ios7 looks great .

    Im not going to be much help because I don't know of anything else to besides take it somewhere that fixes electronics and see if they can get it off some how maybe if you take it to an apple store they can do something to get your information.

  • Incorrect URL on Calendar List Event in Overlay View

    Hello,
    We're using Standalone SharePoint 2010 installation.
    The agency I work for has a Clerical Staff calendar list. This is the principal calendar staff use so it has several other calendars overlaid in the list view.
    One such calendar was Volunteer Schedule. Once this was no longer used I renamed the volulnteer calendar to payroll calendar and changed the URL in sharepoint designer 2010. This was successful, I can hit the payroll calendar and the URL is correct.
    However, I'm having issues with the payroll calendar items. When you click on any Payroll Calendar Event in the Clerical Calendar overlay view, the URL for the payroll calendar item resolves to a completely different calendar list and throws
    an "Item Does Not Exist" error.
    I can still add, edit, and delete those items on the payroll calendar specifically, and new adds do show up in the overlay... it's only when you click the Title of that item in the Clerical calendar overlay does the error happen, it's almost as if the Calendar
    list items have lost their connection to their parent calendar list.
    Further investigation has brought no answers, I'd rather not delete and recreate the payroll calendar as it's densely populated.
    Any thoughts or links will be much appreciated.
    Thanks,
    Brian H.

    Hi,
    According to your post, my understanding is that you wanted to solve the issue about the Payroll Calendar Events when you clicked on any Payroll Calendar Event in the Clerical Calendar overlay view in SharePoint 2010.
    I try to reproduce the issue, however, the result is the same as yours.
    If you need to rename the Volulnteer Calendar to Payroll Calendar and change the URL in SharePoint designer 2010, I suggest that you can delete the previous Volulnteer Calendars Overlay and create a new one Payroll Calendars Overlay in the Clerical Calendar
    list.
    I recommend that you can follow the steps as below to implement it.
    1. Open the Clerical Calendar list, go to the “Calendar Tools”, and click the “Calendars Overlay” under “Calendar”.
    2. Click the previous Volulnteer Calendars Overlay, and click the “Delete” button to delete it.
    3. Click “New Calendar”, type the Calendar Name, select the Color and click the “Resolve” button to get the latest information of the Calendar list in the Web URL.
    4. Select the new Payroll Calendar list and click “OK” button.
    Now, you can go back to the Clerical Calendar list and test the new Payroll Calendars Overlay in your environment.
    In addition, you can rename the Volulnteer Calendar through the UI, then the URL will be changed automatically. And then you can click the Calendars Overlay directly.
    To rename the Volulnteer Calendar through the UI, you can follow the steps as below:
    1. Go to “List Settings” of the Volunteer Calendar, and click the “Title, description and navigation” under “General Settings”.
    2. Change the name to “Payroll” and click “Save” button.
    Then, you can see the new Payroll Calendar list on the Quick Launch.
    For more information, you can refer to:
    How
    to Change the Url For a SharePoint 2010 List or Library
    Changing
    the URL of an existing document library or list
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Top of List event when using class cl_salv_hierseq_table

    Hi all,
      I am using above class to display Top of List .
    I am to able to display one line at top using following :
    gr_hierseq->set_top_of_list( lr_content ).
    But i have to display 5 lines in top of list.
    Please let me know how can this be achieved.
    Thanks and Regards,
    Taranam

    Wow, that example did suck.  Sorry for that.  I have spent a little time revising the example program into such a form that you can easily see what you need to do.  SO here it is, hope it helps.   Pay close attention to the implementation of the on_top_of_page event handler method.
    REPORT zsalv_demo_hierseq_form_events NO STANDARD PAGE HEADING.
    TYPES: BEGIN OF g_type_s_master.
    INCLUDE TYPE alv_chck.
    TYPES:   expand   TYPE char01,
           END OF g_type_s_master,
           BEGIN OF g_type_s_slave.
    INCLUDE TYPE alv_t_t2.
    TYPES: END   OF g_type_s_slave.
    TYPES: BEGIN OF g_type_s_test,
             amount      TYPE i,
             repid       TYPE syrepid,
             top_of_list TYPE i,
             end_of_list TYPE i,
           END OF g_type_s_test.
    CONSTANTS: con_master TYPE lvc_fname VALUE 'ALV_CHCK',
               con_slave  TYPE lvc_fname VALUE 'ALV_T_T2'.
    *... §5 Definition is later
    CLASS lcl_handle_events_hierseq DEFINITION DEFERRED.
    DATA: gs_test TYPE g_type_s_test.
    DATA: gt_master TYPE STANDARD TABLE OF g_type_s_master,
          gt_slave  TYPE STANDARD TABLE OF alv_t_t2.
    DATA: gr_hierseq TYPE REF TO cl_salv_hierseq_table.
    *... §5 object for handling the events of cl_salv_table
    DATA: gr_events_hierseq TYPE REF TO lcl_handle_events_hierseq.
    *       CLASS lcl_handle_events DEFINITION
    CLASS lcl_handle_events_hierseq DEFINITION.
      PUBLIC SECTION.
        METHODS:
          on_top_of_page FOR EVENT top_of_page OF cl_salv_events_hierseq
            IMPORTING r_top_of_page page table_index.
    ENDCLASS.                    "lcl_handle_events DEFINITION
    *       CLASS lcl_handle_events IMPLEMENTATION
    CLASS lcl_handle_events_hierseq IMPLEMENTATION.
      METHOD on_top_of_page.
        DATA: lr_content TYPE REF TO cl_salv_form_element.
        DATA: lr_grid   TYPE REF TO cl_salv_form_layout_grid,
               lr_grid_1 TYPE REF TO cl_salv_form_layout_grid,
               lr_grid_2 TYPE REF TO cl_salv_form_layout_grid,
               lr_label  TYPE REF TO cl_salv_form_label,
               lr_text   TYPE REF TO cl_salv_form_text,
               l_text    TYPE string.
    *... create a grid
        CREATE OBJECT lr_grid.
    *... in the cell [1,1] create header information
        CONCATENATE 'TOP_OF_PAGE' text-h01 INTO l_text SEPARATED BY space.
        lr_grid->create_header_information(
          row    = 1
          column = 1
          text    = l_text
          tooltip = l_text ).
    *... add a row to the grid -> row 2
        lr_grid->add_row( ).
    *... in the cell [3,1] create a grid
        lr_grid_1 = lr_grid->create_grid(
                      row    = 3
                      column = 1 ).
    *... in the cell [1,1] of the second grid create a label
        lr_label = lr_grid_1->create_label(
          row     = 1
          column  = 1
          text    = 'Number of Records'
          tooltip = 'Number of Records' ).
    *... in the cell [1,2] of the second grid create a text
        lr_text = lr_grid_1->create_text(
          row     = 1
          column  = 2
          text    = gs_test-amount
          tooltip = gs_test-amount ).
        lr_label->set_label_for( lr_text ).
    *... in the cell [2,1] of the second grid create a label
        lr_label = lr_grid_1->create_label(
          row    = 2
          column = 1
          text    = 'Output Tool'
          tooltip = 'Output Tool' ).
    *... in the cell [2,2] of the second grid create a text
        lr_text = lr_grid_1->create_text(
          row    = 2
          column = 2
          text    = 'Seq List'
          tooltip = 'Seq List').
        lr_label->set_label_for( lr_text ).
    *... in the cell [2,1] of the second grid create a label
        lr_label = lr_grid_1->create_label(
          row    = 3
          column = 1
          text    = 'Another Label'
          tooltip = 'Another Label' ).
    *... in the cell [2,2] of the second grid create a text
        l_text = text-t15.
        lr_text = lr_grid_1->create_text(
          row    = 3
          column = 2
          text    = 'Another Text'
          tooltip = 'Another Text').
        lr_label->set_label_for( lr_text ).
    *... content is the top grid
        lr_content = lr_grid.
    *... set the content
        r_top_of_page->set_content( lr_content ).
      ENDMETHOD.                    "on_top_of_page
    ENDCLASS.                    "lcl_handle_events IMPLEMENTATION
    * SELECTION-SCREEN                                                     *
    SELECTION-SCREEN BEGIN OF BLOCK gen WITH FRAME.
    PARAMETERS:
    p_amount TYPE i DEFAULT 30.
    SELECTION-SCREEN END OF BLOCK gen.
    * START-OF-SELECTION                                                   *
    START-OF-SELECTION.
      gs_test-amount = p_amount.
      gs_test-repid = sy-repid.
    *... §1 select data into global output table
      PERFORM select_data.
    * END-OF-SELECTION                                                     *
    END-OF-SELECTION.
      PERFORM display_hierseq.
    *&      Form  select_data
    * §1 select data into your global output table
    FORM select_data.
      FIELD-SYMBOLS: <ls_master> TYPE g_type_s_master.
      DATA: lt_slave TYPE STANDARD TABLE OF g_type_s_slave.
      SELECT * FROM (con_master)
        INTO CORRESPONDING FIELDS OF TABLE gt_master
        UP TO gs_test-amount ROWS.                              "#EC *
      LOOP AT gt_master ASSIGNING <ls_master>.
        SELECT * FROM (con_slave) INTO CORRESPONDING FIELDS
                   OF TABLE lt_slave
                   UP TO gs_test-amount ROWS
                   WHERE carrid EQ <ls_master>-carrid
                     AND connid EQ <ls_master>-connid.          "#EC *
        APPEND LINES OF lt_slave TO gt_slave.
      ENDLOOP.
    ENDFORM.                    " select_data
    *&      Form  display_hierseq
    *       text
    FORM display_hierseq.
      DATA:lt_binding TYPE salv_t_hierseq_binding,
           ls_binding TYPE salv_s_hierseq_binding.
      DATA:lr_functions TYPE REF TO cl_salv_functions_list.
      DATA:lr_columns TYPE REF TO cl_salv_columns_hierseq,
           lr_column  TYPE REF TO cl_salv_column_hierseq.
      DATA:lr_level TYPE REF TO cl_salv_hierseq_level.
    *... create the binding information between master and slave
      ls_binding-master = 'MANDT'.
      ls_binding-slave  = 'MANDT'.
      APPEND ls_binding TO lt_binding.
      ls_binding-master = 'CARRID'.
      ls_binding-slave  = 'CARRID'.
      APPEND ls_binding TO lt_binding.
      ls_binding-master = 'CONNID'.
      ls_binding-slave  = 'CONNID'.
      APPEND ls_binding TO lt_binding.
    *... §2 create an ALV hierseq table
      TRY.
          cl_salv_hierseq_table=>factory(
            EXPORTING
              t_binding_level1_level2 = lt_binding
            IMPORTING
              r_hierseq               = gr_hierseq
            CHANGING
              t_table_level1           = gt_master
              t_table_level2           = gt_slave ).
        CATCH cx_salv_data_error cx_salv_not_found.
      ENDTRY.
    *... Functions
    *... activate ALV generic Functions
      lr_functions = gr_hierseq->get_functions( ).
      lr_functions->set_all( abap_true ).
    *... *** MASTER Settings ***
      TRY.
          lr_columns = gr_hierseq->get_columns( 1 ).
        CATCH cx_salv_not_found.
      ENDTRY.
    *... set the columns technical
      TRY.
          lr_column ?= lr_columns->get_column( 'MANDT' ).
          lr_column->set_technical( if_salv_c_bool_sap=>true ).
        CATCH cx_salv_not_found.                            "#EC NO_HANDLER
      ENDTRY.
    *... set expand column
      TRY.
          lr_columns->set_expand_column( 'EXPAND' ).
        CATCH cx_salv_data_error.                           "#EC NO_HANDLER
      ENDTRY.
    *... set items expanded
      TRY.
          lr_level = gr_hierseq->get_level( 1 ).
        CATCH cx_salv_not_found.
      ENDTRY.
      lr_level->set_items_expanded( ).
    *... *** GENERAL Settings ***
    *... register to the events for top-of-page and end-of-page
      DATA: lr_events TYPE REF TO cl_salv_events_hierseq.
      lr_events = gr_hierseq->get_event( ).
      CREATE OBJECT gr_events_hierseq.
      SET HANDLER gr_events_hierseq->on_top_of_page FOR lr_events.
    *... display the table
      gr_hierseq->display( ).
    ENDFORM.                    "display_hierseq
    REgards,
    RIch Heilman

  • The TOP-OF-LIST and END-OF-LIST events are not triggered in spool

    Hi Everyone,
    I am displaying a block list ALV where when using "REUSE_ALV_BLOCK_LIST_APPEND", I have populated the events with TOP-OF-LIST and END-OF-LIST. The ALV is displaying perfectly with the top-of-list and end-of-list.
    I have created a button in the toolbar using the USER COMMAND which when clicked will generate a PDF file with my output result. In the subroutine for USER COMMAND , I have put the print parameters using "GET_PRINT_PARAMETERS". Then I have again called "REUSE_ALV_BLOCK_LIST_DISPLAY" with is_print parameter in order to generate the spool no. Then I am using "CONVERT_ABAPSPOOLJOB_2_PDF" to convert the spool to pdf.
    The problem that I am facing is that the spool is generated without the TOP-OF-LIST and END-OF-LIST. I cannot see the lines written in TOP-OF-LIST and END-OF-LIST in the spool.
    Also the font-size is reduced very much in the pdf.
    Please suggest me some solution if possible.
    <promise removed by moderator>
    Regards,
    Edited by: Thomas Zloch on Mar 29, 2011 4:40 PM

    Hi Everyone,
    I am displaying a block list ALV where when using "REUSE_ALV_BLOCK_LIST_APPEND", I have populated the events with TOP-OF-LIST and END-OF-LIST. The ALV is displaying perfectly with the top-of-list and end-of-list.
    I have created a button in the toolbar using the USER COMMAND which when clicked will generate a PDF file with my output result. In the subroutine for USER COMMAND , I have put the print parameters using "GET_PRINT_PARAMETERS". Then I have again called "REUSE_ALV_BLOCK_LIST_DISPLAY" with is_print parameter in order to generate the spool no. Then I am using "CONVERT_ABAPSPOOLJOB_2_PDF" to convert the spool to pdf.
    The problem that I am facing is that the spool is generated without the TOP-OF-LIST and END-OF-LIST. I cannot see the lines written in TOP-OF-LIST and END-OF-LIST in the spool.
    Also the font-size is reduced very much in the pdf.
    Please suggest me some solution if possible.
    <promise removed by moderator>
    Regards,
    Edited by: Thomas Zloch on Mar 29, 2011 4:40 PM

  • Radio List events

    I've noticed a quirk (imagine that) with Forte radio lists and am
    wondering if there is a known work around. Here is the problem:
    We are trying to catch the value of a radio list. We want the value
    that the user inteded by his/her click, so we register for the
    AfterValueChange event. Ordinarily this work fine, but an error ensues
    when the user clicks for a second time the calue that they just clicked.
    Error:
    DEVELOPER ERROR: Attempt to invoke method which is invalid for
    DataValue object with Null Value
    A double-click will do this as well when registered for the
    AfterValueChange event. Registering for the Click event is no good
    because the value has not yet changed to what the user intended. The
    value is still at the same place prior to the user click.
    Does anybody have any light that they'd like to shed on this one? Much
    thanks in advance. :)
    Sincerely,
    Gregory J. Dalbey,
    May&Speh
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    It works fine for me - I can email a simple example if you need it.
    I've noticed a quirk (imagine that) with Forte radio lists and am
    wondering if there is a known work around. Here is the problem:The quirk is Developer Error.
    We are trying to catch the value of a radio list. We want the value
    DEVELOPER ERROR: Attempt to invoke method which is invalid for
    DataValue object with Null Value
    Based on the error message you described, I predict that your radio list
    widget has a mapped type of integerdata, and it doesn't have any memory.
    There are at least 2 solns:
    A. If you change the mapped type to integer you wont need to '=new;'
    memory for the widget, but you loose the power of the integerdata class.
    B. If you keep the mapped type to integerdata, then you need to edit the
    'Init()' method by adding a line which says radiolistAttrib = new;
    and your problems will be corrected.
    -jim
    Jim Rice mailto:[email protected]
    Forte Software, Inc. http://www.forte.com
    National Tech Services Work#: 301-721-1910
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Change View to list event from New to Old

    In the iPhoto app it was possible to view your events from 'newest to oldest'. However in the new Photo app my events are listing old to new which means I have to scroll down to get to the latest event and I can't find a way to reverse the order (the only other option seems to be by event name). Can anyone find a way to view the events with the newest event at the top?

    Tell Apple what additional features you want in Photos via both http://www.apple.com/feedback/iphoto.html and  http://www.apple.com/feedback/macosx.html since they don't have a feedback page for Photos as yet.

  • Alv list event: GROUPLEVEL_CHANGE

    Hi All,
    Pls provide some simple example for how to use GROUPLEVEL_CHANGE event in Alv list.
    Thx in advance

    hii
    try out this form
    FORM SET_USER_COMMAND USING R_UCOMM
                                RS_SELFIELD TYPE SLIS_SELFIELD.
      CASE R_UCOMM.
        WHEN 'DC'.
          READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
          IF SY-SUBRC = 0.
            SELECT SINGLE MTART
                          FROM MARA
                          INTO V_MTART
                          WHERE MATNR = IT_VBAP-MATNR.
            IF SY-SUBRC <> 0.
       MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
            ELSE.
              WRITE :/ 'MATERIAL NO :',IT_VBAP-MATNR.
              WRITE :/ 'MATERIAL TYPE :' , V_MTART.
            ENDIF.
          ENDIF.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
        WHEN 'CLOSE'.
          CALL TRANSACTION 'SE38'.
      ENDCASE.
    hope this helps.If not reply back.
    Thanks & Regards
    Naresh

  • Single click on list - event

    I have a list in listmodel. Now when i select any item from list , i want to do some action. Please tell me whats the event .

    use item state listener interface to handle events of
    listbut JList doesnt take itemlistener

Maybe you are looking for