Refresh functionality in Webdynpro

Hi ,
This is the first time i am starting a discussion  , Currently I am working on Web dynpro and have a doubt related to it .
I have created a Web Dynpro application but when I  press "F5" button My application returns back to the Home screen.
I want it to be controlled and a Dialogue Box to appear asking for permission to leave to Home Screen .
Please suggest me It will be appreciated .

Hi,
It is not possible in stand alone. However If you integrate your WDA Application in portal, you can use Work Protech mode. Check this help: Work Protect Mode (SAP Library - Web Dynpro for ABAP)
Hope this helps u,
Regards,
Kiran

Similar Messages

  • Refresh functionality in portal

    Dear Experts,
    I'm facing issue regarding REFRESH functionality in WDP ..The issue is i have REFRESH(FPM Button) on my screen and when ever the user clicks on it , the screen should refresh(should come to initial state).
    And on refresh button event, i'm launching the screen by using below code.
    But, when appl'n is tested from portal, it is working incorrectly. If i pass parameter use_suspend_plug = ' ', first time on click of refresh button in portal,it is opening screen in portal it self, and on second click of refresh button in portal screen, it is opening screen in new window.
    Is it better to launch the appl'n or to refresh/clear all the screen element values and bind it again?... Here i have one more probelm, the ex-developer of the component has declared some attributes(nearly 15 attributes) in view controller(which cannot be access in component controller) and i cannot read those view controller attributes in component controller. so that i can read those attributes and clear the values( which is not possible now).
    Pls help me to achieve REFRESH(F5) functionality .
    Thanks
    KH

    Hi,
    My issue is resolved.
    Steps followed :
    1) Created an event in component controller( in events tab)
    2) In process_event of component controller, the created event is fired.
    3) And that event can be handled in any of the view controller's by declaring method in view controller
        with method type as event handler and in event->select the event created in component controller.
    4) Proceed further with the required functionality.
    Thanks
    KH

  • My Trips and Expenses - tab refresh functionality

    Hi Experts,
    Only one tab from My trips and Expenses screen is getting refreshed after clicking 'My trips and Expense' link. I found SAP note 1542417, which says after implementation of note 1495681 or corresponding support package, the refresh of POWL query in WDA version of Travel application is not done for all tabstrip in the same time for performance reason.
    After implementing SAP note 1542417, manual setting is required in IMG to set URL parameter &SAP_FITV_REFRESHA=X, to refresh of POWL query parallel for all tabstrip. I followed the steps given in the note to make the refresh functionality parallel, but still only active tab is getting refreshed. Please let me know if any action is required after maintaining the URL parameter.
    Kindly help me in this.
    Thanks,
    Siva Sankar

    Hi Lasse,
    I can't directly relate to the problem because I'm on EHP6. But I've taken a look at the note and the coding. You should debug WDYN FITV_POWL_TRIPS Eventhandler "HANDLE_DEFAULT" of Window "TRAVELLER" around. Serach for "*OCA 1542417", set an external breakpoint there.
    Maybe the parameter isn't correctly retrieved from the URL. Alternatively maybe the subsequently fired plug and the Init-Hooks handle the parameter incorrectly.
    I hope this helps a bit with the analysis.
    I wouldn't be surprised if this simply is a standard problem, there have been tons of standard problems with POWL...
    Cheers, Lukas

  • Refresh function - RSS as Rest again

    Hello,
    Maybe by design but I noticed some strange behaviour
    When using Refresh(rss!channel!item) (e.g. refresh RSS when used as REST) it doesn't actually refresh the data or at least it's not visible in the gallery displaying the data.
    No errors, viewing the feed directly in browser shows updated articles but the gallery doesn't update till reload of the application itself.
    This happens regardless of how the refresh is called (button, timer, etc.).
    Some context or guidance would be helpful.
    Update:
    I've added the same RSS feed as RSS with a refresh and that one does work after a while (assume there is a mandatory delay to avoid too many requests).
    Could it be that it's not working because when refreshing Refresh(rss!channel!item) you are actually not targetting the whole feed but just the needed data part?
    Regards
    StonyArc
    http://www.stonyarc.com http://www.xboxlivenation.com

    Hello Ayuba,
    This will not work as this is mixing records and tables
    Assume http://feeds.mashable.com/Mashable is used to expose complex features of RSS/atom (images / media / nested categories) exposed as Rest Datasoure.
    In your formula logic this would become 
    Clear(RSSREST);Refresh(Mashable); Collect(RSSREST,Mashable!channel!item)
    This doesn't work as that's a record and not a table. The table resides in [item] (see also data sources)
    To expose the table you would then again use
    Clear(RSSREST);Refresh(Mashable!channel!item); Collect(RSSREST,Mashable!channel!item)
    which brings you back to the original problem, it's just transfered into a collection.
    The data is not refreshed via the refresh function if RSS is used via REST as data source as the data is not reloaded in the refresh function.
    Exposing the RSS as RSS datasource with the [rss_1] in the root does refresh as a charm.
    Any other suggestions?
    Regards
    StonyArc
    http://www.stonyarc.com http://www.xboxlivenation.com

  • How to write perfect refresh function for each module in flex4 web application

    hi all,
      I am doing web application, i am using 5 modules in that,every module in a single page.
    In this application i am using datagrid in last 3 models. the operation is same for the models, select a record from grid then click post it should move to next page.
    In that i am writting init() function . this for showing the last module posted records here while i am entering this model.
    At the panel initializing time the records loading and showing in the gird,
    i written refresh function for this .
    But some times the function working properly and show the records in grid.
    some time it wont show the records.
    refresh function not working properly..
    looking for usful suggession,
    Thanks,
    B.venkatesan.

    hi all,
      I am doing web application, i am using 5 modules in that,every module in a single page.
    In this application i am using datagrid in last 3 models. the operation is same for the models, select a record from grid then click post it should move to next page.
    In that i am writting init() function . this for showing the last module posted records here while i am entering this model.
    At the panel initializing time the records loading and showing in the gird,
    i written refresh function for this .
    But some times the function working properly and show the records in grid.
    some time it wont show the records.
    refresh function not working properly..
    looking for usful suggession,
    Thanks,
    B.venkatesan.

  • Print Function in webDynpro

    Dear VS and All
    Pls guide me how to take print in webdynpro
    Send me the code one by one i.e From the scratch.
    B'cos i am new to webDynpro.
    So for i didn't get clear idea.
    Regrads
    Dhinakar

    Hi,
    Implementing print in Webdynpro is possible.Please have a look at the following thread
    Re: How to start the Print function in webdynpro
    Regards,
    Vijith

  • How to deactivate Internet Explorer's REFRESH Functionality ?

    Hello All,
            I want to deactivate the REFRESH Functionality of the Internet Explorer.
    Can we acheive this ?
    If yes can anyone guide me ?
    Regards,
    Deepu.K

    Deepu,
    As you mentioned in other thread, the problem is because of stateful mode...
    What i suggest you is, in your child window after the downloading the files,make your application as stateless dynamically..Anytime you can change it as stateful too..
    [SAP allows changing the mode dynamically using program.
    * To Change the BSP application to Stateless mode use the below syntax,the application is executed statelessly.
    runtime->keep_context = 0.
    * To Change the BSP application to Stateful mode use the below syntax,the application is executed statefully.
    runtime->keep_context = 1.
    Make it as stateless & clear the variables
    FREE: gv_event,display_url. "OR
    Clear: gv_event,display_url.
    Raja T
    Message was edited by:
            Raja Thangamani

  • Print Functionality in Webdynpro Java

    Hello,
    I have a created a Webdynpro Java Application in which i want to give the 'Print Functionality' to the users.....how can i implement the same in webdynpro..../?
    Any help would be highly appreciated...
    Regards,
    Shikhil

    hi
    check this blog on print functionality , 
    /people/ritushree.saha/blog/2009/07/02/webdynpro-java-printing-using-nw-2004-2004s
    the above blog you can go through , just use the code and work on print functionality in webdynpro java.
    hope this bolg should certainly solve your problem.
    Thanks

  • Itunes 10.1.1 will not show all podcast updates via Refresh function

    I am having a problem with my podcast not refreshing on the itunes podcast page when a publish a new episode. If I use the "show all available episodes" function the episode appears but if I click refresh or the automatic update functions the podcast is not new seen.
    This is only a problem with itunes 10.1.1 on OS X 10.6.5, the refresh function operates on my windows machine using the latest itunes version. I am awaiting a response from Libsyn where my podcasts are based but I was wandering if anyone is having any similar problems.
    Once the podcast is selected as previously mentioned, download and play is normal

    Thank you but alas the Store's check available downloads facility does not work for podcasts.
    This problem has only appeared since the last itunes update to my knowledge. It may well be an rss related issue as it does not seem to effect other podcast's new episodes, though I cannot see why it should only be a problem on my Mac...and all subscribe settings are constant for all podcast issuers on both platforms...It might just be a hidden setting somewhere but I've tried everything

  • Block "Refresh" function during the calculation

    Hello @all,
    is it possible to block the refresh function, or smart view as a whole, while calc script is running?
    Because the user may see incorrectly data while for example the allocation script is running.
    I using Essbase ans Smart View 11.1.1.3.
    Many thanks,
    Ilias

    look up the command Alter application disable commands
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/maxl_altapp.html
    Prevent all requests to databases in the application, including non-data-specific requests, such as viewing database information or changing database settings. All users are affected, including other administrators. Administrators are affected by this setting as a safety mechanism to prevent accidental updates to databases during maintenance operations. This setting remains in effect only for the duration of your session. The setting takes effect immediately, and affects users who are currently logged in, as well as users who log in later during your session.
    Caution!
    If performing maintenance operations that require disabling commands, you must make those maintenance operations within the same session and the same script as the one in which commands were disabled.
    After make sure you enable them. Also note, you may need to also logout all users on the application as well

  • Refresh problem of Webdynpro application which is wrapped in a BSP IFrame

    I have a BSP Iframe inside which I am calling a webdynpro application ('zwdc_re_replenishment'). The requirement is that this WD application should be reloaded whenever a timeout occurs. Currently, when there is a timeout, an error is shown.
    In order to achieve this, for this WD Application , I have a SICF node to which I have attached a customized Errorpage via the option 'Redirect URL'.
    Whenever the WD application undergoes a timeout error, my custom error page is called which is named as errorpage.htm. On this page in the 'OnInitialization event', I try to call the WD application URL again (via the following code) which should reload the application. But instead I get a blank page.
    CALL METHOD cl_wd_utilities=>construct_wd_url
      EXPORTING
        application_name = 'zwdc_re_replenishment'
      IMPORTING
        out_absolute_url = lv_def_url.
    response->redirect( url         = lv_def_url
                        permanently = 1 ).
    Just as a note I have already tried out the following methods as well but nothing works
    *navigation->exit( lv_def_url ).
    *navigation->call_application( lv_def_url ).
    Is this because my WD application is inside a BSP Iframe and therefore reloading it manually does not work ?
    Please help!
    Thanks.
    Sukanya

    Hi Thomas,
    First of all, thanks a lot for replying !!
    Sorry for the confusion. Although seems like you have answered my question already.
    Actually the requirement for embedding WDA inside a BSP Iframe came up since there are some WD report applications  that are accessed by very controlled environments in which the users were not able to close the WDA session directly (without the IFrame)  and were getting some errors. Hence the WDAs had to be wrapped inside BSP IFrame which solved the above problem.
    I am working with only one BSP app which has the Iframe and one WD app which is called within the BSP app.
    Now, the other requirement that came up was that whenever the WDA session inside the BSP IFrame expires, there should be no error page and instead the WD app should be reloaded.
    So  I was trying to reload the WD App in the following way.
    1. For the SICF node of WDA, I attached an errorpage.htm for all the tabs under the tab 'Error Pages'. I have defined this errorpage.htm inside the same BSP App which has got another default.htm page. So the BSP App has 2 views : default.htm which has the IFrame and Errorpage.htm.
    2. So now when the WDA expires, the events of errorpage.htm are called like OnInitialization, In this event I was calling the methods navigation->exit( 'URL of the same WDA' ).
    I did this because I wanted to reload the WDA whenever it expires. I tried to specify the WDA Url in the SICF node of the same WDA in 'Redirect URL' under the Error Page tabs but it didnot work.
    Now I realize this is not gonna work. I didnot want to modify the WDA and so I didnot specify any exit plugs in the WDA which would have taken care of reloading the WDA. But that seems to be the only way out.
    Actually speaking there are multiple WDAs which will open inside the same BSP IFrame via their own Application URLs. I have coded the BSP IFrame to read the URL Parameters and open up the corresponding WDA.  So now I have to define an exit plug in all of these WDAs.
    Do you suggest that this will solve the problem of WDA refresh ? Just to confirm.
    Thanks again.

  • REFRESH FUNCTIONALITy in ALV GRID

    Hi Experts,
    I have added two custom buttons (CO40 and REFRESH) in ALV GRID .
    WHEN CO40 button is clicked it will go the CO40 transaction.
    here the problem is when clicking the REFRESH , the REFRESH fuctionality is not working.
    (here i went to CO40 transaction by clicking CO40 button and deleted one planned order and come back and clicked REFRESH button but the planned order still showing in the output but the planned oreder is deleted in the table ) please help me rgarding this
    pls see my code and pls send me the code with modifications
    Thanks
    Nagendra
    REPORT  zpp_plannedorder_conv LINE-SIZE 200.
    TYPE-POOLS: slis.
    TABLES: plaf, vbak.
    PLANNED ORDER TABLE
    CONSTANTS: c_e TYPE c LENGTH 01 VALUE 'E'.
    TYPES: BEGIN OF ty_plaf,
           kdauf     TYPE kdauf,
           kdpos     TYPE kdpos,
           plnum TYPE plnum,     
           dispo TYPE dispo,
           matnr     TYPE matnr,
           maktx     TYPE maktx,
           pwwrk     TYPE pwwrk,
           paart     TYPE paart,
           beskz     TYPE beskz,
           gsmng     TYPE gsmng,
           END OF ty_plaf.
    SALES FIELDS
    TYPES: BEGIN OF ty_vbak,
           vbeln TYPE vbeln,
           posnr TYPE posnr,
           kunnr     TYPE kunnr,
           grkor     TYPE grkor,
           autlf     TYPE autlf,
           mvgr2     TYPE mvgr2,
           fixmg     TYPE  fixmg,
           bstdk     TYPE bstdk,
           edatu     TYPE edatu,
           posex  TYPE posex,
           END OF ty_vbak.
    output table.
    TYPES: BEGIN OF ty_out,
           plnum TYPE plnum,     
           dispo TYPE dispo,
           matnr     TYPE matnr,
           maktx     TYPE maktx,
           pwwrk     TYPE pwwrk,
           paart     TYPE paart,
           beskz     TYPE beskz,
           gsmng     TYPE gsmng,
           kdauf     TYPE kdauf,
           kdpos     TYPE kdpos,
           kunnr     TYPE kunnr,
           grkor     TYPE grkor,
           autlf     TYPE autlf,
           mvgr2     TYPE mvgr2,
           fixmg     TYPE  fixmg,
           bstdk     TYPE bstdk,
           edatu     TYPE edatu,
           posex  TYPE posex,
           END OF ty_out.
    DATA: tb_plaf TYPE STANDARD TABLE OF ty_plaf,
          tb_vbak TYPE STANDARD TABLE OF ty_vbak,
          tb_out  TYPE STANDARD TABLE OF ty_out.
    DATA: lv_plaf TYPE ty_plaf,
          lv_vbak TYPE ty_vbak,
          lv_out  TYPE ty_out.
    TYPES: BEGIN OF ty_vbep,
        vbeln TYPE vbeln,
        posnr TYPE posnr,
        etenr TYPE etenr,
        edatu TYPE edatu,
       END OF ty_vbep.
    DATA: tb_vbep TYPE STANDARD TABLE OF ty_vbep.
    DATA: lv_flag(1) TYPE c.
    **Start changes RFS: SANN - 0856
    DATA:  w_repid            TYPE sy-repid.
    DATA:  it_fieldcat        TYPE slis_t_fieldcat_alv, "field catalog table
           gs_layout          TYPE slis_layout_alv, "struct data type
           it_sort            TYPE slis_t_sortinfo_alv,
           it_events          TYPE slis_t_event,
           gt_event_exit          TYPE slis_t_event_exit.
    **End changes RFS: SANN - 0856
    SELECT OPTIONS.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-t01.
    SELECT-OPTIONS: sel_pln FOR plaf-plnum,
                    sel_pww FOR plaf-pwwrk OBLIGATORY,
                    sel_dis FOR plaf-dispo,
                    sel_kun FOR vbak-kunnr,
                    sel_paa FOR plaf-paart,
                    sel_kda FOR plaf-kdauf.
    SELECTION-SCREEN END OF BLOCK a1.
    START-OF-SELECTION.
      REFRESH: tb_plaf ,tb_vbak.
      SELECT pkdauf pkdpos pplnum pdispo pmatnr mmaktx
              ppwwrk ppaart pbeskz pgsmng INTO TABLE tb_plaf
              FROM plaf AS p JOIN makt AS m
                ON pmatnr EQ mmatnr
                WHERE p~plnum IN sel_pln
                  AND p~pwwrk IN sel_pww
                  AND p~dispo IN sel_dis
                  AND p~paart IN sel_paa
                  AND p~kdauf IN sel_kda
                  AND m~spras EQ c_e.
      IF NOT  tb_plaf[] IS INITIAL.
        SORT tb_plaf BY kdauf DESCENDING.
        SELECT  kvbeln pposnr kkunnr pgrkor kautlf pmvgr2 p~fixmg     
                kbstdk vedatu p~posex INTO TABLE tb_vbak
                 FROM vbak AS k JOIN vbap AS p
                   ON kvbeln EQ pvbeln
                      INNER JOIN vbep AS v
                         ON pvbeln EQ vvbeln
                        AND pposnr EQ vposnr
        FOR ALL ENTRIES IN tb_plaf
            WHERE k~vbeln EQ tb_plaf-kdauf
              AND p~posnr EQ tb_plaf-kdpos
              AND k~kunnr IN sel_kun
              AND v~etenr EQ '0001'.
        IF NOT  tb_vbak[] IS INITIAL.
          LOOP AT tb_plaf INTO lv_plaf.
            CLEAR lv_out.
            MOVE-CORRESPONDING lv_plaf TO lv_out.
            IF NOT lv_plaf-kdauf IS INITIAL.
              READ TABLE tb_vbak INTO lv_vbak WITH KEY vbeln = lv_plaf-kdauf
                                                       posnr = lv_plaf-kdpos.
              MOVE-CORRESPONDING lv_vbak TO lv_out.
            ENDIF.
            APPEND lv_out TO tb_out.
          ENDLOOP.
        ENDIF.
      ENDIF.
    END-OF-SELECTION.
      PERFORM f_build_fcat.
      PERFORM f_get_display.
    *&      Form  F_BUILD_FCAT
    FORM f_build_fcat .
      CLEAR: w_repid.
      PERFORM fill_fieldcat " TABLES it_fieldcat
            USING:
                   text-f01 'TB_OUT'  text-k01  text-k01 '10' ,
                   text-f02 'TB_OUT'  text-k02  text-k02 '10' ,
                   text-f03 'TB_OUT'  text-k03  text-k03 '06' ,
                   text-f04 'TB_OUT'  text-k04  text-k04 '18' ,
                   text-f05 'TB_OUT'  text-k05  text-k05 '06' ,
                   text-f06 'TB_OUT'  text-k06  text-k06 '08' ,
                   text-f07 'TB_OUT'  text-k07  text-k07 '05' ,
                   text-f08 'TB_OUT'  text-k08  text-k08 '05' ,
                   text-f09 'TB_OUT'  text-k09  text-k09 '15' ,
                   text-f10 'TB_OUT'  text-k10  text-k10 '05' ,
                   text-f11 'TB_OUT'  text-k11  text-k11 '05' ,
                   text-f12 'TB_OUT'  text-k12  text-k12 '10' ,
                   text-f13 'TB_OUT'  text-k13  text-k13 '10' ,
                   text-f14 'TB_OUT'  text-k14  text-k14 '10' ,
                   text-f15 'TB_OUT'  text-t15  text-k15 '10' ,
                   text-f16 'TB_OUT'  text-k16  text-k16 '10' ,
                   text-f17 'TB_OUT'  text-k17  text-k17 '10' .
    ENDFORM.                    " F_BUILD_FCAT
    *&      Form  fill_fieldcat
    FORM  fill_fieldcat  " TABLES  l_catalog TYPE slis_t_fieldcat_alv       "#EC *
                       USING    p_field                         "#EC *
                                p_table                         "#EC *
                                p_desc                          "#EC *
                                p_desc_l                        "#EC *
                                p_len.                          "#EC *
      DATA: ls_fieldcat   TYPE slis_fieldcat_alv.
      ls_fieldcat-fieldname       = p_field.
      ls_fieldcat-tabname         = p_table.
      ls_fieldcat-seltext_l       = p_desc_l.
      ls_fieldcat-reptext_ddic    = p_desc.
      ls_fieldcat-outputlen       = p_len.
      APPEND ls_fieldcat TO it_fieldcat.
      CLEAR ls_fieldcat.
    ENDFORM.                    " fill_fieldcat
    *&     FORM F_GET_DISPLAY
          text
    FORM f_get_display .
      CLEAR w_repid.
      MOVE sy-repid TO w_repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = w_repid
          i_callback_pf_status_set = 'PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          is_layout                = gs_layout
          it_fieldcat              = it_fieldcat
          it_sort                  = it_sort
          i_save                   = 'X'
        TABLES
          t_outtab                 = tb_out
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc EQ 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " F_GET_DISPLAY
    *&      Form  PF_STATUS
          text
    FORM pf_status USING rt_extab TYPE slis_t_extab.
      DATA: wa_extab LIKE LINE OF rt_extab.
      REFRESH: rt_extab.
      wa_extab-fcode = '&REFRESH'.
      APPEND wa_extab TO rt_extab.
      SET PF-STATUS '0001' EXCLUDING rt_extab.
    ENDFORM.                    "PF_STATUS
         -->COMMAND    text
         -->SELFIELD   text
    FORM user_command USING command LIKE sy-ucomm selfield TYPE slis_selfield."#EC CALLED
      CLEAR : lv_out-plnum,lv_out-kdauf,lv_out-paart,lv_out-kdauf.
      CASE command.
        WHEN '&IC1'.                       "doubleclick
          CASE selfield-fieldname.
            WHEN 'PLNUM'.
              READ TABLE tb_out INTO lv_out INDEX selfield-tabindex.
              IF sy-subrc EQ 0.
                SET PARAMETER ID 'PAF'  FIELD lv_out-plnum.
                CALL TRANSACTION 'MD12' AND SKIP FIRST SCREEN.
              ENDIF.
            WHEN 'KDAUF'.
              READ TABLE tb_out INTO lv_out INDEX selfield-tabindex.
              IF sy-subrc EQ 0.
                SET PARAMETER ID 'AUN'  FIELD lv_out-kdauf.
                CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
              ENDIF.
          ENDCASE.
        WHEN 'CO40'.
          READ TABLE tb_out INTO lv_out INDEX selfield-tabindex.
          IF sy-subrc EQ 0.
            SET PARAMETER ID 'PAF'  FIELD lv_out-plnum.
            CALL TRANSACTION 'CO40' AND SKIP FIRST SCREEN.
          ENDIF.
        WHEN 'REFRESH'.
          PERFORM select_data.
      ENDCASE.
    ENDFORM.                    "user_command
    *End changes RFS: SANN - 0856
    *&      Form  SELECT_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM select_data .
      commit work and wait.
      REFRESH:tb_plaf[],tb_vbak[],tb_out[].
      SELECT pkdauf pkdpos pplnum pdispo pmatnr mmaktx
              ppwwrk ppaart pbeskz pgsmng INTO TABLE tb_plaf
              FROM plaf AS p JOIN makt AS m
                ON pmatnr EQ mmatnr
                WHERE p~plnum IN sel_pln
                  AND p~pwwrk IN sel_pww
                  AND p~dispo IN sel_dis
                  AND p~paart IN sel_paa
                  AND p~kdauf IN sel_kda
                  AND m~spras EQ c_e.
      IF NOT  tb_plaf[] IS INITIAL.
        SORT tb_plaf BY kdauf DESCENDING.
        SELECT  kvbeln pposnr kkunnr pgrkor kautlf pmvgr2 p~fixmg     
                kbstdk vedatu p~posex INTO TABLE tb_vbak
                 FROM vbak AS k JOIN vbap AS p
                   ON kvbeln EQ pvbeln
                      INNER JOIN vbep AS v
                         ON pvbeln EQ vvbeln
                        AND pposnr EQ vposnr
        FOR ALL ENTRIES IN tb_plaf
            WHERE k~vbeln EQ tb_plaf-kdauf
              AND p~posnr EQ tb_plaf-kdpos
              AND k~kunnr IN sel_kun
              AND v~etenr EQ '0001'.
        IF NOT  tb_vbak[] IS INITIAL.
          LOOP AT tb_plaf INTO lv_plaf.
            CLEAR lv_out.
            MOVE-CORRESPONDING lv_plaf TO lv_out.
            IF NOT lv_plaf-kdauf IS INITIAL.
              READ TABLE tb_vbak INTO lv_vbak WITH KEY vbeln = lv_plaf-kdauf
                                                       posnr = lv_plaf-kdpos.
              MOVE-CORRESPONDING lv_vbak TO lv_out.
            ENDIF.
            APPEND lv_out TO tb_out.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDFORM.                    " SELECT_DATA

    Hi,
    Gothrough the following link,
    Handle Refresh button on ALV
    Regards,
    Harish

  • Trex search function in WebDynpro application

    We fail to run trex search function in a webdynpro application,
    in debugging, when it reach the method:
    search.seach(), we caught NullPointerException(instance "search" is not null!), we draw out the trex search code from the wd app, found it could works well, no exceptions occur.
    so do you know any additional configuration must be done before the search function could be used in a wd app?
    e.g. specify name server address in j2ee engine adm gui?
    I want to try this too, but I could not start the "Trex Service" in adm gui,
    following exception message got:
    Start service TREX Service
    java.rmi.RemoteException: Could not start service trex.service on cluster ID 9281950; nested exception is:
         com.sap.engine.frame.ServiceException: <--Localization failed: ResourceBundle='com.sap.engine.frame.KernelResourceBundle', ID='Service trex.service error. Nested exception is: java.lang.NullPointerException
         at com.sapportals.trex.core.TrexConfigManager.<init>(TrexConfigManager.java:175)
         at com.sapportals.trex.core.TrexConfigManager.internalGetInstance(TrexConfigManager.java:224)
         at com.sapportals.trex.core.TrexConfigManager.getInstance(TrexConfigManager.java:231)
         at com.sapportals.trex.core.TrexFactory.getTrexConfigManager(TrexFactory.java:100)
         at com.sap.trex.service.TrexService.setServiceProperties(TrexService.java:54)
         at com.sap.trex.service.TrexService.start(TrexService.java:28)
         at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:189)
         at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:140)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:60)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:72)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:126)
    ', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key Service trex.service error. Nested exception is: java.lang.NullPointerException
         at com.sapportals.trex.core.TrexConfigManager.<init>(TrexConfigManager.java:175)
         at com.sapportals.trex.core.TrexConfigManager.internalGetInstance(TrexConfigManager.java:224)
         at com.sapportals.trex.core.TrexConfigManager.getInstance(TrexConfigManager.java:231)
         at com.sapportals.trex.core.TrexFactory.getTrexConfigManager(TrexFactory.java:100)
         at com.sap.trex.service.TrexService.setServiceProperties(TrexService.java:54)
         at com.sap.trex.service.TrexService.start(TrexService.java:28)
         at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:189)
         at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:140)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:60)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:72)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:126)
    don't know what happened to this service

    Problem, he had a trexjavaclient.properties below his WebAS path. From WebAS630 TREX config has to be done inside Visual Administrator and not with any old (in this case wrong) trexjavaclient.properties.
    After removing this file. TREX service started normally.

  • Download functionality in  WebDynpro

    Hello,
    My WebDynpro application must support download functionality. I have implemented this with the help of FileDownload component. So the user can start Webdynpro application in browser and download some xml files.
    But additionally it must be possible to access the download of file directly by URL: for example
    <i>URL download = new URL(urlToWebDynpro);</i>
    // get file
    Is it possible to do with WebDynpro?
    Thanks in advance
    With best regards
    Belenki Michael

    Hello Michael,
    I can think of no way how you could make your Web Dynpro application act like a servlet and return a file instead of an HTML page containing a UI.
    Inside your Web Dynpro application, you can find out a URL that can be used from outside to download a certain file, even one that is stored in a context attribute. But that would be of limited use because your other Java application on the outside has no good way to learn that URL.
    Thus I agree with Stefan that it sounds more promising to directly program a servlet in this case.
    Best regards,
         Thomas

  • A Continuous running function in webdynpro

    hi all,
    I wanted to know if a continoussly running function in the background can be run in webdynpro. For eg in my view if i enter in the morning a label should say "good morning" and afterwards a function should be running in the background which will change the caption of label to "good afternoon" when its afternoon and something like that. so in brief an event should always be fired without user interaction.
    Regards,
    Jayant

    hi Jayant,
    You can use timed trigger UI element. Write the function you want to run in an action and map it to the onAction of TimedTrigger and that will be executed after the time specified in the delay property of this UI element.
    Regards,
    Jaydeep

Maybe you are looking for