ALV catch EVENT

Hi everybody!
Do you know event for ALV, which work as event "delayed_callback" but faster.
I want find event which triggered in moment move from one cell to another.
P.S. sorry for my english

Hi,
you need to SET The pf status using the PFstatus option,
here you have to set the OKCODE for the Green tick button
that is related to enter.
say ENTR for the Green Tick button and catch it in User Command form.
you need to have two forms
one for pf status, one for user_command.
Regards
vijay

Similar Messages

  • ALV Catch Event's

    Hi,
        l am using 'REUSE_ALV_GRID_DISPLAY'.
    I am able to catch event, from ALV list, example DBLCLICK.
    I would like to catch command from key pad also, example ENTER.
    How can l do?

    Hi,
    you need to SET The pf status using the PFstatus option,
    here you have to set the OKCODE for the Green tick button
    that is related to enter.
    say ENTR for the Green Tick button and catch it in User Command form.
    you need to have two forms
    one for pf status, one for user_command.
    Regards
    vijay

  • How to catch event before retrieving data in table?

    Hello
    I use Oracle JDeveloper 11.1.1.2.0
    I need to set parameters session (Package Vars) before any refresh my page (I retrieve data from views that use this vars).
    For this reason I have created method setUserSessionParameters(int[] parameters) in AppModuleImpl.java and I am able to call it from my backing bean.
    It's working fine, but I need to call it before any retrieving data in my tables.
    May be, there is a usual way to catch event before retrieving data is started?
    I'd call my method in that place. I think it would be perfectly well decision.

    Hi,
    you can define a PhaseListener method on the f:view component (it has pre and post properties for this). In the after RestoreView phase, you can access the binding container and call teh AM method to set the values. This way, before the page renders, the value is set
    Frank

  • In ALV End_of_list Event  Scrolling Option

    Hi Experts,
    In ALV END_OF_LIST Event if I want to display more records approx:50 .
    iam able to display using Reuse_Alv_Commentary_Write But .Due to high volume of Records Its Overlaping Main List  I need to drag Manually.
    My Question : is There any option where Scrolling is Available for Reuse_Alv_Commentary.
    Thank You.Please Reply.

    Hi,
    Use do_sum = 'X', in the fieldcatalog for the fields for which you need to do the summation.
    Best Regards,
    Durga Naresh Bayireddy

  • Service and operation options are not visible in catch event.

    I have created a file adapter service and calling the same using throw and catch event.I have created service call type conversation which is configured in throw event with default conversation option.But when i am trying to config same in catch event my service name and operation does come up.
    Any idea ?
    http://postimg.org/image/orb03h29x/

    Hi Madhu,
    My Understanding:
    1. When you enter the main/header product in the item details, the item catefory for the header product gets determined.
    2. Your components can also be seen below as sub-items automatically, but the item category is not determined.
    Tell me if my understanding is correct.
    If Yes, u need to maintain the item category determination for the sub-items or components as well.
    Transaction Type: Put the service order transaction type
    Item Category Group: Check the item category group of your component product in COMMPR01 (Material tab/ Sales and Distribution Tab)
    Item Category Usage: Leave it Blank
    Main Item Category: Put the header product item category
    Item category: Put the desired item category here.
    Also ensure that in the customizing of the header item category, u have maintained the Structure Scope as A- Single Level Explosion of Structured Products.
    Regards,
    Shalini Chauhan

  • ALV  ONF4 event

    Hi All,
    I have used the ALV onF4 event for F4 help for a field in an ALV display....But the problem is that this is not getting triggered on pressing F4.....
    What might be the problem..
    I have referred the program : BCALV_EDIT_08.
    -SatyaPriya

    Hi ,
      Please check whether you have created the class to handle events and also set the handlers for it.
    Regards
    Arun

  • Catching events on Desktop , without using any AWT or Swing components.

    How can I catch events(for eg: mouse clicks) on the Desktop? I do not want to use any AWT or Swing components in my application.
    Also, i want to get events even some other java/non-java application windows are visible on desktop, as long as my application is running.

    Myrequirement is to capture all AWT events, regardless of on which component its being happened.
    I mean I have to capture events outside the current running application (on desktop and any other java/no-java appliation windows also).
    I couldn't find any other forum which discusses about event handling.
    This is part of my app. other end extensively uses awt.

  • ALV Print event in Custom Button

    Hi,
    I have requirement to call ALV print event in Custom Button after some condition. Can anyone give me the solution or link to achieve this requirement.
    Thank in advance.

    Hi Mani,
    On that ALV button event, write the following code.
      DATA lo_component TYPE REF TO if_wd_component.
      DATA lo_appl      TYPE REF TO if_wd_application.
      lo_component = wd_comp_controller->wd_get_api( ).
      lo_appl      = lo_component->get_application( ).
      lo_appl->print_page( ).
      DATA lo_app_info TYPE REF TO if_wd_rr_application .
      lo_app_info = lo_appl->get_application_info( ).
      DATA lv_app_name TYPE string .
      lv_app_name = lo_app_info->get_name( ).
    It helps you to print the table contents. Hope this helps you.
    Thanks
    KH

  • Cannot catching events on some forms.

    Hello,
    When you go to Issue for Production and click Production Order cfl will pop up with production orders currently available and then when you select one or more orders another form will show with all the items from production orders selected from cfl.
    I created very similar workflow but I cannot catch events with that latter form (the one that displays items from selected production orders). I would like to be able to react to item pressed event or item click.
    It seems as if I cannot catch events on a form created inside cfl.
    What is going on?
    Thanks in advance.
    Wydrzycki Kamil

    Dear Kamil,
    it is possible. I know that there are several forms in SAP B1, which missing some general events (ex: service form)
    please download B1 Event Logger (Starting from B1DE 1.5) , and check out the event flow.
    Link:
    http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/a175fb62-0c01-0010-a8b5-fa58a13b1cf7 [original link is broken]
    Regards,
    J

  • Wrong messagetype while processing in an alv grid event

    Hello,
    a brief discription of my problem:
    I am processing a standard SAP form "PERIODE_PRUEFEN" which calls the function "READ_CUSTOMIZED_MESSAGE". The routine is called inside an event-handler of the ALV Grid event 'user_command'. The messagetype is selected from a customising table 'T100C'. Despite the messagetype 'W' the program is always aborted with an 'E' message.
    What I have tried so far:
    1. I debugged the SAP standard transaction 'fb08' which runs exactly the same functions with the same values and it works.
    2. I changed the messagetype in the debugger - no success
    3. I searched the SAP notes, but theres nothing about my problem
    I guess the problem is somewhere in the ALV Grid event, because this is the only difference between the SAP standard an my program. Maybe the message is processed wrong while beeing called within an event.
    It would be great to get some useful hints to solve this problem

    Hi,
    The ABAP runtime environment handles messages according to the type declared in the MESSAGE statement and the context in which the message was sent.
    The behaviour of message type 'W' in a dialog is different from a report program.
    Run demo program DEMO_MESSAGES, select Main Program, Type 'W' and execute. You will get an error message instead of warning message.
    This behaviour is well documeneted in the on-line help for MESSAGE statement.
    Regards,
    Rao A

  • Catching event exceptions?

    Is it possible to catch event exceptions/errors? If yes, how? If no, why not?
    I get this error:
    Exception occurred during event dispatching: java.lang.Error: Destination component not connected to component tree hierarchy.
    Thanks in advance
    /Tommy

    The problem arises from a Tooltiptext of an object that is removed while the tooltiptext is visible. When I move the mouse pointer from the object (while the tooltiptext is still visible) during the object removal this error will occur.
    I guess I could write my own ToolTipText that handles these situation, but since the error doesn't affect the application more that printing out the error message and stack trace in the console, I though it could be caught instead.
    But I do not know where to put a try-catch clause to catch this error.
    /Tommy

  • Catch event ctrl + V

    Hello
    I want to know if is possible to catch event ctrl + V, because I need that when the user presses this combination of keys on textbox, changes the mode of form.
    I hope that they can help me, thanks.

    HI
    You can use the SAPbouiCOM.BoEventTypes.et_KEY_DOWN event and the pVal.CharPressed to catch the key pressed.  I do not know if you can actually catch a combination of the two and/or the key code for the CTRL button.
    On the other hand, when you press the CTRL + V combination, you are executing the Paste menu event, and that you can capture on the SBO_Application_MenuEvent rutine with the statement ...
    Select Case pVal.MenuUID
        Case "773" 'Code of the Paste command under the Edit menu.
    End Select

  • ALV F8 event + Checkbox?

    Hi,
    1. How to catch F8 event in an ALV?
    2. How to determine witch checkbox is checked.
    tnx!
    Simple ALV example:
    TYPE-POOLS: slis.
    DATA: g_repid LIKE sy-repid,
    gs_print            TYPE slis_print_alv,
    gt_list_top_of_page TYPE slis_t_listheader,
    gt_events           TYPE slis_t_event,
    gt_sort             TYPE slis_t_sortinfo_alv,
    gs_layout           TYPE slis_layout_alv,
    gt_fieldcat         TYPE slis_t_fieldcat_alv,
    fieldcat_ln LIKE LINE OF gt_fieldcat,
    col_pos TYPE i.
    DATA: BEGIN OF itab,
    sel,
      field1(5) TYPE c,
      field2(5) TYPE c,
      field3(5) TYPE p DECIMALS 2,
    END OF itab.
    DATA: BEGIN OF itab1 OCCURS 0.
            INCLUDE STRUCTURE itab.
    DATA: END OF itab1.
    DATA: BEGIN OF itab_fieldcat OCCURS 0.
            INCLUDE STRUCTURE itab.
    DATA: END OF itab_fieldcat.
    INITIALIZATION.
      g_repid = sy-repid.
    " PERFORM print_build    USING gs_print.      "Print PARAMETERS
      gs_layout-box_fieldname = 'SEL'.
    START-OF-SELECTION.
    * TEST DATA
      MOVE 'TEST1' TO itab1-field1.
      MOVE 'TEST1' TO itab1-field2.
      MOVE '10.00' TO itab1-field3.
      APPEND itab1.
      MOVE 'TEST2' TO itab1-field1.
      MOVE 'TEST2' TO itab1-field2.
      MOVE '20.00' TO itab1-field3.
      APPEND itab1.
      DO 5 TIMES.
        APPEND itab1.
      ENDDO.
    END-OF-SELECTION.
      PERFORM build.
      PERFORM call_alv.
    *&      Form  BUILD
    *       text
    FORM build.
    * DATA FIELD CATALOG
    * Explain Field Description to ALV
      DATA: fieldcat_in TYPE slis_fieldcat_alv.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname = 'FIELD1'.
      fieldcat_ln-tabname   = 'ITAB1'.
    *FIELDCAT_LN-NO_OUT    = 'X'.  "FIELD NOT DISPLAY, CHOOSE FROM LAYOUT
      fieldcat_ln-key       = ' '.   "SUBTOTAL KEY
      fieldcat_ln-no_out    = ' '.
      fieldcat_ln-seltext_l = 'HEAD1'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname = 'FIELD2'.
      fieldcat_ln-tabname   = 'ITAB1'.
      fieldcat_ln-no_out    = 'X'.
      fieldcat_ln-seltext_l = 'HEAD2'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'FIELD3'.
      fieldcat_ln-tabname       = 'ITAB1'.
      fieldcat_ln-ref_fieldname = 'MENGE'. "<- REF FIELD IN THE DICTIONNARY
      fieldcat_ln-ref_tabname   = 'MSEG'.  "<- REF TABLE IN THE DICTIONNARY
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-do_sum        = 'X'.   "SUM UPON DISPLAY
      APPEND fieldcat_ln TO gt_fieldcat.
    * DATA SORTING AND SUBTOTAL
      DATA: gs_sort TYPE slis_sortinfo_alv.
      CLEAR gs_sort.
      gs_sort-fieldname = 'FIELD1'.
      gs_sort-spos      = 1.
      gs_sort-up        = 'X'.
      gs_sort-subtot    = 'X'.
      APPEND gs_sort TO gt_sort.
      CLEAR gs_sort.
      gs_sort-fieldname = 'FIELD2'.
      gs_sort-spos      = 2.
      gs_sort-up        = 'X'.
    *GS_SORT-SUBTOT    = 'X'.
      APPEND gs_sort TO gt_sort.
    ENDFORM.                    "BUILD
    *&      Form  CALL_ALV
    *       text
    FORM call_alv.
    * ABAP List Viewer
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
      i_callback_program = g_repid
    * I_CALLBACK_PF_STATUS_SET = ' '
    * I_CALLBACK_USER_COMMAND = ' '
      i_structure_name = 'ITAB1'
      is_layout =  gs_layout
      it_fieldcat = gt_fieldcat[]
        it_sort = gt_sort[]
        it_events = gt_events[]
        is_print = gs_print
      TABLES
      t_outtab = itab1
      EXCEPTIONS
      program_error = 1
      OTHERS = 2.
    ENDFORM.                    "CALL_ALV

    Hi,
    stil not working..:(
    Please, could you use my code and fil up with yours?
    TYPE-POOLS: slis.
    DATA: g_repid LIKE sy-repid,
    gs_print            TYPE slis_print_alv,
    gt_list_top_of_page TYPE slis_t_listheader,
    gt_events           TYPE slis_t_event,
    gt_sort             TYPE slis_t_sortinfo_alv,
    gs_layout           TYPE slis_layout_alv,
    gt_fieldcat         TYPE slis_t_fieldcat_alv,
    fieldcat_ln LIKE LINE OF gt_fieldcat,
    col_pos TYPE i.
    DATA: BEGIN OF itab,
    sel,
      field1(5) TYPE c,
      field2(5) TYPE c,
      field3(5) TYPE p DECIMALS 2,
    END OF itab.
    DATA: BEGIN OF itab1 OCCURS 0.
            INCLUDE STRUCTURE itab.
    DATA: END OF itab1.
    DATA: BEGIN OF itab_fieldcat OCCURS 0.
            INCLUDE STRUCTURE itab.
    DATA: END OF itab_fieldcat.
    INITIALIZATION.
      g_repid = sy-repid.
      " PERFORM print_build    USING gs_print.      "Print PARAMETERS
      gs_layout-box_fieldname = 'SEL'.
    START-OF-SELECTION.
    * TEST DATA
      MOVE 'TEST1' TO itab1-field1.
      MOVE 'TEST1' TO itab1-field2.
      MOVE '10.00' TO itab1-field3.
      APPEND itab1.
      MOVE 'TEST2' TO itab1-field1.
      MOVE 'TEST2' TO itab1-field2.
      MOVE '20.00' TO itab1-field3.
      APPEND itab1.
      DO 5 TIMES.
        APPEND itab1.
      ENDDO.
      gs_layout-get_selinfos = 'X'.
    END-OF-SELECTION.
      PERFORM build.
      PERFORM call_alv.
    *&      Form  BUILD
    *       text
    FORM build.
    * DATA FIELD CATALOG
    * Explain Field Description to ALV
      DATA: fieldcat_in TYPE slis_fieldcat_alv.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname = 'FIELD1'.
      fieldcat_ln-tabname   = 'ITAB1'.
    *FIELDCAT_LN-NO_OUT    = 'X'.  "FIELD NOT DISPLAY, CHOOSE FROM LAYOUT
      fieldcat_ln-key       = ' '.   "SUBTOTAL KEY
      fieldcat_ln-no_out    = ' '.
      fieldcat_ln-seltext_l = 'HEAD1'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname = 'FIELD2'.
      fieldcat_ln-tabname   = 'ITAB1'.
      fieldcat_ln-no_out    = 'X'.
      fieldcat_ln-seltext_l = 'HEAD2'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'FIELD3'.
      fieldcat_ln-tabname       = 'ITAB1'.
      fieldcat_ln-ref_fieldname = 'MENGE'. "<- REF FIELD IN THE DICTIONNARY
      fieldcat_ln-ref_tabname   = 'MSEG'.  "<- REF TABLE IN THE DICTIONNARY
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-do_sum        = 'X'.   "SUM UPON DISPLAY
      APPEND fieldcat_ln TO gt_fieldcat.
    * DATA SORTING AND SUBTOTAL
      DATA: gs_sort TYPE slis_sortinfo_alv.
      CLEAR gs_sort.
      gs_sort-fieldname = 'FIELD1'.
      gs_sort-spos      = 1.
      gs_sort-up        = 'X'.
      gs_sort-subtot    = 'X'.
      APPEND gs_sort TO gt_sort.
      CLEAR gs_sort.
      gs_sort-fieldname = 'FIELD2'.
      gs_sort-spos      = 2.
      gs_sort-up        = 'X'.
    *GS_SORT-SUBTOT    = 'X'.
      APPEND gs_sort TO gt_sort.
    ENDFORM.                    "BUILD
    *&      Form  CALL_ALV
    *       text
    FORM call_alv.
    * ABAP List Viewer
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
      i_callback_program = g_repid
    * I_CALLBACK_PF_STATUS_SET = ' '
      i_callback_user_command = 'form_user'
      i_structure_name = 'ITAB1'
      is_layout =  gs_layout
      it_fieldcat = gt_fieldcat[]
      it_sort = gt_sort[]
      it_events = gt_events[]
      is_print = gs_print
      TABLES
      t_outtab = itab1
      EXCEPTIONS
      program_error = 1
      OTHERS = 2.
    ENDFORM.                    "CALL_ALV
    *&      Form  form_user
    *       text
    FORM form_user.
      CASE sy-ucomm.
        WHEN 'ENTER' OR 'SPACE'.                                " for F8
    ***do coding
      ENDCASE.
    ENDFORM.                    "form_user

  • ALV scroll event ?

    Hello,
    I need to display a long list using a ALV display.  For each line, there are data to be fetched from multiple tables so this can take quite long to accomplish.  To avoid having users to wait while gathering the data for the whole list I would like to be able to gather only data for the lines visible at each time.  So if a user scrolls down, I would select the data for the new lines displayed.
    So I was wondering if anyone would know if there is an event in the ALV object which allows me to catch which lines are being displayed ?  The method get_scroll_info_via_id would allow me to know which lines are displayed in the beginning but if a user scrolls down I have no information about this as an PBO event is not triggered.
    So if anyone could advise me or has an alternative approach to this problem I would be very grateful.
    Regards,
    Sigurjon

    Hi,
      One solution I can think of is to add your own button to the ALV Toolbar (Like "Show Next Page") and then limit the initial display to certain N number of lines..
      And when user clicks on this button, you read next N number of records and then <b>add</b> these entries to the internal table that is used for ALV display and call REFRESH_TABLE_DISPLAY method..
      Once you reach the end, just disable the button..
      Since you are always adding the lines, if he wants to see previous page he can simply use paging keys or scrollbar...
      Hope this helps..
      May be you already know..but just..FYI, you can handle TOOLBAR event of ALV Grid to add your own buttons to the ALV Toolbar.. Please take a look at sample program BCALV_GRID_05 just in case you need reference on how to add the button..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • Drop Down List in ALV with Event handler

    Hi All ,
    I have created an ALV grid with a dropdown as one of the columns. This all works fine, except that I want to be able to react to a change in the value of each line's dropdown the next column values should change according to the user selection in the 1st column .
    Is this possible?
    As an example, I have a table of records with one column as a dropdown called " Replace Function Module "   and in 2nd column i have call function of that Replace Function Module , If a  change in " Replace Function Module " should change the call function of in the 2nd column .
    I am using these objects lvc_t_drop , lvc_s_drop and  the method  " set_drop_down_table ",
    Please Can any 1 tel me how to do this with any event handler ar any other way !

    Hi,
    You need to use event handler for this. Check if the below link gives some direction.
    [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cda3992d-0e01-0010-90b2-c4e1f899ac01|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cda3992d-0e01-0010-90b2-c4e1f899ac01]
    I guess you should create a method inside which you call the FM using the FM name from the selected cell in ALV.
    I have not tried it out, but its worth a try.
    Hope this helps!
    Regards,
    Saumya

Maybe you are looking for

  • Closing the Applet when I exit the form

    I am deploying an application on web plataform using Forms Server 6i. I have created my own base.html with a logo and a menu as appropiate. I am using Oracle JInitiator to run the forms. When I run a form, the applet is loaded in a frame created in m

  • How can I find my other user account migrated from another mac?

    I used time machine to backup all the data from my macbook and then I used the migration assistant on my imac and transfer those data to the imac. Everything was successful and after that. I can see the new user account under my hard drive > User fol

  • Lumia 630 Wi-Fi problem.

    Whenever I try to connect to my Wi-Fi(Bsnl router) it shows that"your modem did not respond" or something like that.. I don't know why this is happening.. I have tried with my android phone but its connecting after changing the setting in mobile Wi-F

  • Please help to provide a join for the three tables and output as per list

    to produce a report to list out all condition records for output and pricing. <u><b>usage  app  procedure step  counter  cod type  description  access seq </b> </u> <u><b>accseqnum  cond table   sales org  doctype  customer  channel  sale doc type</b

  • XI Content Server directory

    hi,    I am doing a EDI scenario using Itemfields Conversion agent(Content master).It is a FILE-XI-R/3 scenario. I have done the necessary configurations in the Conversion agent. I need to deploy this in the "XI Content Server directory" Can anyone t