Autorefresh ALV contents

Hi All,
I have 3 components
In POWL_UI_COMP i have a few Link to URLS.In one of its view I have an event handler method 'On_Query_switch' assigned to the event "QUERY_SWITCH" which is triggered when a user clicks on any of the above linktoUrls
I have two other Components POWL_TABLE_COMP and POWL_DETAIL_COMP_IF.
POWL_DETAIL_COMP_IF has an event DO_REFRESH in its interface controller.
POWL_TABLE_COMP has an event handler ON_DETAILS_REFRESH assigned to the event 'DO_REFRESH'
I want to autorefresh the ALV contents when user clicks on the linktourls
I tried - firing the 'DO_Refresh' event  in the method 'On_Query_Switch' by defining component usage of POWL_DETAIL_COMP_IF in POWL_UI_COMP
But after adding usage i do not get any method like Fire_DO_refresh_Evt as we normally do using the code wizard.
I also tried setting e_do_refresh in the handle_action method of IF_POWL_FEEDER but i dont have the requied parameters for this method.
Or can use a certain parameter in POWL_UI_COMP which i can set in the method On_Query_Switch and access it in POWL_TABLE_COMP.
Or is there any other way i can achieve this ?
Please Help!
~Veena.

Hello Veena,
One way to refresh the POWL is to embed the POWL in to another webdynpro component. In the WebDynpro component declare the POWL_UI_COMP as used compoent, create a view and create ViewcontainerUIelement. In WINDOWS attach the POWL_UI_COMP components view in the view container. In the init method of the view trigger outbound plug with all the parameters to POWL_UI_COMP.
In the view capture the event QUERY_SWITCH or implement a method to the event. In the call the outbound plug again (outbound plug with all the parameters to POWL_UI_COMP) with refreshq = 'X'  so it will refresh the POWL.
Best regards,
Suresh

Similar Messages

  • How to get tool tip for ALV Contents.

    Hi,
    I have a ALV list with some data and Icons.
    When my mouse is on Icon,
    it should display a info text or tool tip,
    Any body help me?
    Best Regards
    Vinay.

    Hi Vinay
    Happy that you have solved your problem.
    I do not know which post has solved your problem. But you can give points to the posters by clicking the yellow star next to the post header to thank them. This is a part of SDN Contributor Recognition Program.
    You can give;
    many '2' points (Helpful answer)
    two '6' points (Very helpful answer)
    and one '10' points (Problem solved)
    For more information:
    https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
    *--Serdar

  • Refreshing ALV contents

    Hi all..
    I have a few input fields and a button....based on the input provided i display the data in an ALV table.
    Now i navigate the next view and create a new entry and save it.
    until i click on the button again im not able to see that new entry in the ALV.
    What i want is when i come back to the previous screen  that newly created entry to be shown in the ALV..
    Can anyone help me out with this..
    Thank you.
    Radhika .

    Hi,
        Once the new entry is appended to the itab and binding back to the node is done on the second view and when u come back to the first view, that changed itab will be automatically display on the alv. u dont have to do any thing for that
    Regards
    Sarath
    Message was edited by:
            sarath satheesan

  • ALV editable cell contents - transfer to own comp context without Enter

    Hi,
    Have WD ALV.  Some cells have been made editable.  Cell contents are only passed back to own component once user has pressed Enter.  There is a button with action on the view.  If this button and corresponding action is triggered without the user pressing enter first when maintaining the editable cell, the new cell contents are not available.
    Is there a way to manually trigger the frontend ALV contents to own component context to ensure working with what has been entered on-screen in ALV?  I seem to remember you can trigger a data check but not sure if this is the solution, will check, but grateful for any feedback in meantime.

    Hi there
    IE7 doesn't give me the add new page option and I get 404 error when trying to access the "How to contribute" section.
    I'll load up Firefox later (this browser usually works when IE7 doesn't always work properly).
    I'll copy the stuff to the wiki when I've got the browser sorted out.
    Cheers
    jimbp

  • ALV Change layout before Content is displayed

    Hello expert,
    How can i call default button "change layout" before the alv content?. i want that when the alv appear, the initial screen is like below, where user can choose which column he want to be displayed.
    any help please?

    Hi Hassim,
    Miantain in the Reuse Alv Grid display Layout as Save options below
       i_save                           = 'A'
    Example :
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
           i_callback_program                = sy-repid
           i_callback_top_of_page            = 'TOP_OF_PAGE'
           is_layout                         = layout_h
           i_callback_user_command           = 'USER_COMMAND'
           it_fieldcat                       = it_fieldcat
            i_save                           = 'A'
         TABLES
           t_outtab                          = it_final
    *   EXCEPTIONS
    *     PROGRAM_ERROR                     = 1
    *     OTHERS                            = 2
       IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.

  • How to capture the enter even in alv

    hi, experts
    my requirement is that:
    i create an alv ,set it response to the enter even, if the content has changed, a class will be response it .
    the code like below:
        CALL METHOD g_grid->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        CREATE OBJECT g_event_receiver.
        SET HANDLER g_event_receiver->handle_data_changed FOR g_grid.
    but if the alv content has no changed, nothing will be happen, i want to do something such as popup a message even if the content has not changed and user press enter.
    pls help me ,thanks

    I don't think this is possible.
    may be you can do is
    during the enter key is pressed
        call method cl_gui_cfw=>set_new_ok_code
                 exporting
                     new_code = 'DUMMY'.
    and in the user command
    if ok_code eq 'DUMMY'
        call method g_grid->check_changed_data
          importing
            e_valid = v_valid.
        if v_valid ne c_x.
          call function 'POPUP_TO_CONFIRM'
            exporting
              titlebar              = text-025
              text_question         = text-026
              text_button_1         = text-027
              text_button_2         = text-028
              display_cancel_button = ' '
            importing
              answer                = v_answer.
    endif.
    a®s
    Edited by: a®s on Jul 2, 2008 10:37 AM

  • BLOCK ALV O/P

    Hi all,
    There is a report program which is submitting a standard report pgm. The Standard report pgm is generating a ALV o/p
    which is caught in the calling program for further process.
    Also we do have write statements in the calling program.
    When our report program is executed in foreground the ALV genarted by the Standard one is displayed first and then if we give the back button futher process of the report prg are executed.
    The issue is we want to call the std pgm and get the ALV content for furtherrocess. But we do not want to display the ALV on the screen.
    Please share if you have any ideas to acheive this.

    First option
    check any exports to memory in the standard program, if there are some export memory operations, then you can import the data in your program.
    second option
    you can play with SUBMIT...EXPORTING LIST TO MEMORY  addition, and then get the listobject from memory using the Function module LIST_FROM_MEMORY, then convert the list object to ASCII using the function LIST_TO_ASCI , now analayze the data how it is coming into the asci table and use it.
    Third option.
    using the field-symbols you can try that. before accesing the data you may have to call the submit along with List to memory addition. then try to access the internal table data using the fieldsymbols.

  • Problem in exporting ALV Layout to excelsheet!!!

    Hi,
    I am facing a problem while trying to export an ALV layout to Excel sheet. While the values appear correctly, the order of the columns gets distorted. So the table in Excel appears with correct values but with columns in disarray. I have checked the settings of Excel (SECURITY LEVEL is Medium and TRUSTED SOURCES "Trust All Installed Add-Ins and Templates" and "Trust Access to Visual Basic Project" is checked.) and its doesn’t seem to be change anything.
    Any suggestions?

    Hi,
    Follow the below procedures to export data to excel.
    Normal ALV :
    Click on the local file option and select spreadsheet option from the radio button list and click on ok , file save window will open , select the correct directory path and give the file name , then ALV contents will be downloaded into Excel sheet.
    In OO ALV :
    click on the Export button in the ALV toolbar ->click on the spreadsheet , then information message window will open , select ok button , then you will get three options , click on the table option and press ok , data will be exported to Excel sheet , then save the excel data in specified directory.
    Regards
    Appana

  • Trigger DATA_CHANGED event from triggered DATA_CHANGED event in second ALV

    Hello,
    I do have 2 ALVs (class CL_GUI_ALV_GRID) in a Splitter-Control.
    Both ALVs do have registered the event DATA_CHANGED in seperate handler methods.
    If there is a change in first ALV(line insertion with values), there will be inserted a new line with values in the second ALV.  After handling the event at first ALV, I call CHECK_CHANGED_DATA of the second ALV and REFRESH_TABLE_DISPLAY of the second ALV. I would expect that the call of CHECK_CHANGED_DATA would trigger the event DATA_CHANGED, but it does not trigger the event DATA_CHANGED of the second ALV.
    The problem is maybe that the input at the data is not made by the user(UI).
    What could I do to trigger this event and check the new data at second ALV?
    Yours Joerg

    Hello ,
    yeah thats correct , but in your case what you can do is
    g_grid1(first alv) >CHECK_CHANGED_DATA( Importing E_VALID =  l_Valid )>in the implementation method of this ..update global variable g_second = 'X' in order to refresh ALV2.
    g_grid1(first alv) -->Refresh_table_display( ).
    if g_second = 'X'.
    g_grid2-->SET_TABLE_FOR_FIRST_DISPLAY. so it will refresh the second alv contents.
    endif.
    regards
    Prabhu

  • ALV switch to Excel inplace & return

    Hello.
    I've developed a program that outputs information in ALV format.
    From there, I'm able to navigate to Excel inplace and the information is displayed as expected.
    My Requirement/problem is to make changes in Excel, save them & return to ALV with all information changes too.
    The Save button is available in Excel but the option "Close and return to ALV (1)" is inactive from Excel side.
    I can navigate back to Abap List Viewer from SAP menu options but I loose all changes made from Excel side.
    Can anyone please help in this matter?
    Thanks.
    Mário

    Mario,
    Copy all rows and columns in Excel.  Navigate back to the ALV.  Delete all ALV content.  Paste clipboad content copied from Excel into the ALV.
    Bruce

  • Container  ALV not working in background

    Hi all,
    I created an ALV grid, which runs fine foreground. In the background however the spool is created but cancelled.
    REATE OBJECT g_custom_container
            EXPORTING
              container_name              = 'G_CUSTOM_CONTAINER'
            EXCEPTIONS
              cntl_error                  = 1
              cntl_system_error           = 2
              create_error                = 3
              lifetime_error              = 4
              lifetime_dynpro_dynpro_link = 5
              OTHERS                      = 6.
    IF sy-subrc <> 0.
    Error in custom container instantiation. ALV cannot be displayed
            MESSAGE e000 WITH text-015.
          ENDIF.
          CREATE OBJECT g_dyndoc_id
            EXPORTING
              style  = 'ALV_GRID'.
      Create a splitter and split the container for
      the two parts of ALV contents
          CREATE OBJECT g_splitter
            EXPORTING
                   parent          = g_custom_container
                   rows              = 2
                   columns           = 1.
      Get container for top half of the report
          CALL METHOD g_splitter->get_container
            EXPORTING
              row       = 1
              column    = 1
            RECEIVING
              container = g_container_top.
      Set the height of container for top half of the report
          CALL METHOD g_splitter->set_row_height
            EXPORTING
              id     = 1
              height = 20.
      Get Container for bottom half of the report
          CALL METHOD g_splitter->get_container
            EXPORTING
              row       = 2
              column    = 1
            RECEIVING
              container = g_container_grid.
      Instantiate ALV grid main report
          CREATE OBJECT g_grid
            EXPORTING
              i_parent          = g_container_grid
            EXCEPTIONS
              error_cntl_create = 1
              error_cntl_init   = 2
              error_cntl_link   = 3
              error_dp_create   = 4
              OTHERS            = 5.
          IF sy-subrc <> 0.
        Error in grid instantiation. ALV caanot be displayed
            MESSAGE e000 WITH text-016.
          ENDIF.
      Build field catalogue
          PERFORM build_field_cat.
      Inatntiate Top-of-Page event
          CREATE OBJECT g_events.
          SET HANDLER g_events->handle_top_of_page FOR g_grid.
       IF it_comparednomatch[] IS INITIAL.
         MESSAGE s000 with text-003.
         EXIT.
       ELSE.
      Print ALV Contents of first half of report
          g_grid->set_table_for_first_display( EXPORTING i_default = 'X'
                            CHANGING it_outtab = it_comparednomatch
                               it_fieldcatalog = it_fldctdrl
                            EXCEPTIONS invalid_parameter_combination = 1
                                                  program_error = 2
                                                  too_many_lines = 3
                                                  OTHERS = 4 ).
          IF sy-subrc <> 0.
        Error in displaying ALV
            MESSAGE e000 WITH text-017.
          ENDIF.
       ENDIF.
      ENDIF.
      Call top-Of-Page
      CALL METHOD g_grid->list_processing_events
        EXPORTING
          i_event_name = 'TOP_OF_PAGE'
          i_dyndoc_id  = g_dyndoc_id.
    Please help me out.

    In Background only one ALV Print is coming, but the other one is giving not showing, This is not giving any Dump unlike previous case.
    REPORT  ztest_oo_a.
    DATA: it_flight TYPE sflight_tab1.
    DATA: dock TYPE REF TO cl_gui_docking_container,
          split TYPE REF TO cl_gui_splitter_container,
          grid1 TYPE REF TO cl_gui_alv_grid,
          grid2 TYPE REF TO cl_gui_alv_grid,
          doc1 TYPE REF TO cl_gui_docking_container,
          con22 TYPE REF TO cl_gui_docking_container.
    SELECT *
      FROM sflight
      INTO TABLE it_flight
      UP TO 20 ROWS.
    CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SATR'.
      CREATE OBJECT dock
        EXPORTING
          repid     = sy-repid
          dynnr     = '100'
          extension = '600'
          side     = '1'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CREATE OBJECT doc1
        EXPORTING
          repid     = sy-repid
          dynnr     = '100'
          extension = '1000'
          side     = '4'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CREATE OBJECT grid1 EXPORTING i_parent = dock.
      CALL METHOD grid1->set_table_for_first_display
        EXPORTING
          i_structure_name              = 'SFLIGHT'
        CHANGING
          it_outtab                     = it_flight
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CREATE OBJECT grid2 EXPORTING i_parent = doc1.
      CALL METHOD grid2->set_table_for_first_display
        EXPORTING
          i_structure_name              = 'SFLIGHT'
        CHANGING
          it_outtab                     = it_flight
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • SUBMIT...ALV

    Hello,
      I am calling zreport1 giving alvlistoutput in background using SUBMIT zreport1  and return from another zreport. After generating spool output i want the itab alv contents obtain in reuse_alv_list_display to be displayed in zreport. I tried through EXPORT/IMPORT itab, but not getting result.
    Please help!
    Thanks.

    Hi Uma,
    First you need to execute second report using SUBMIT statement like...
    SUBMIT  zreprt1 WITH role = 'X'
                            WITH f_role IN r_role
                            WITH fdate EQ fdate
                            WITH tdate EQ tdate
            EXPORTING LIST TO MEMORY
                AND RETURN.
    Then use FM LIST_FROM_MEMORY to export the data from memory to abaplist internal table.
    Then use FM LIST_TO_ASCI to convert data into ASCII format and then modify the table content got from above FM according to your requiremant.
    Thanks
    Nitesh

  • Interactive ALV not working - help me please

    Hi all,
    This is my first time here and I hope somebody could help me out with this.
    I have created an interactive ALV report in OOP. I have screen 1000 which contains the selection screen, and 2 custom controls. What I wanted to do is that when I select from the screen, data will be populated on the 1st ALV. Then when I double click on any item on my 1st ALV, it will do another selection and data will be displayed on the 2nd ALV (while 1st ALV contents remain). And when I double click on any item on the second ALV, it will call a transaction.
    Quite complex. But the event for my 2nd ALV is working, it's able to call a transaction. What puzzling me now is the event on my 1st ALV. Data selection is okay, but data are not populated on my 2nd ALV. It only shows data in the 1st ALV. Somebody please help!

    Hey Ayem...
    There is a other place to post your thread.
    Expert forums -> ABAP development -> UI Programming or ABAP general
    link: User Interface Development in ABAP
    All the best,
    Thanks,
    Naveen.I

  • ALV lists in background = no spool - why ??

    Hi Experts,
    I have a quick (probably very simple) issue on programs using ALV grid/lists.
    We have a program, dointg some treatmeant.
    At end of execution of program we display errors and processing messages viathe ALV grid.
    So it is working fine on foreground.
    But when we execute it in background we have no spool. nothing. Even in SM37 not the spool icon.
    I understood that normally we could have the ALV content in the spool. But I do not understand what is wrong.
    Could some experts help me to understand what is wrong and hwo to solve ??
    Thanks for your help.
    S.N

    Hi Newbie,
    The importing parameter IS_PRINT of ALV List will solve your issue. I have tested this.
    Data : wa_print type SLIS_PRINT_ALV.
    wa_print-print = 'X'.
    wa_print-no_print_listinfos = 'X'.
    Now you have to make separate call for ALV in foreground and background .
    For that,
    If sy-batch = 'X'.
    call function module by passing IS_PRINT parameter(wa_print).
    else.
    call function module without IS_PRINT.
    endif.
    Test the spool using sp01.
    Regards
    Sreekanth

  • ALV Grid - Very Strange Problem

    I am facing a very strange problem in ALV Grid. Our’s is a ECC5 system on SAP_APPL SAPKH50011 and SAP_BASIS SAPKB64016.
    I have implemented the ALV grid in a screen using classes. This grid by default appears in display mode however it can be switched to change mode and back to display mode using a custom button on the ALV toolbar. When the user clicks the change button the grid appears in editable mode. During the back and forth switching of the ALV between Change/Display modes the ALV grid control is not destroyed however the toolbar, fieldcatalog and ALV contents are refreshed.
    The data which is entered in an editable cell is validated using the data_changed event which has been implemented locally. If the validation fails an error message is raised using the message statement which is being issued correctly. Now when I correct the data and then click on another cell in the ALV grid the program is being aborted. Any clue why this is happening??

    Please check this code
    In the PBO of the screen set the field catalog and layout , i think this will help not to refresh the field catalog every time swtich between display and change mode
        set titlebar sy-dynnr with p_netwk.
        call method g_grid->set_frontend_fieldcatalog
          exporting
            it_fieldcatalog = gt_fieldcat[].
        call method g_grid->set_frontend_layout
          exporting
            is_layout = gs_layout.
        call method g_grid->refresh_table_display.
    2. Regarding program abort, please paste the first page of system dump

Maybe you are looking for

  • Problem with IMPORT CATALOG

    I have a question concerning the move of one recovery catalog from one server to another using the IMPORT CATALOG command. We have three Windows 2008 severs on which we are running Oracle 11.1.0.7.0. On server A we have nine Oracle instances that we

  • Need Help [Toshiba Registration] plzzz!

    I registered my product ,but i chose wrong Country puchrased: United States I puchrased it on switzerland , how can I change that? Here is the link where you can see product information http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/globalEntitl

  • How to  Export/Import "report for the query" to another company

    Hello, I do this: 1.create query in SQL analizer 2.copy paste into SBO query generator and save 3.create report for the query Then, How to Export/Import "report for the query" to another company ? Thanks for your HELP.

  • Does anyone know how to turn off those yellow pop-up labels...

    i know this is a small thing, but does anyone know how to turn off those yellow pop-up labels that appear when your mouse lingers over an icon or some other item for a bit ? you know the ones that give you a short description of whatever your mouse i

  • My skype subscription to call Nigeria mobile from ...

    I subscribed for 400 minutes monthly option to call Nigerian mobiles and landlines, the problem is that when i call, it rings and when someone picks up, i can't hear and he cant hear me also and the call drops after about 5 seconds automatically then