How to code in the standard refresh button in ALV toolbar

Hi Experts,
My ALV includes some standard toolbar buttons like refresh, select all, sort, and etc. How can I put logic into the refresh button such that when user click on the refresh button, I want to run some logic on my own?
THanks in advance.

Hi again,
1. Further to my previous reply
2. This code will make it clear.
3. just copy paste
a. Before that, copy the SALV Standard Toolbar to ABCD as suggested before.
<b>Important & Relevant code has been marked in bold.</b>
4.
report abc.
type-pools : slis.
Data
data : itab like t001 occurs 0 with header line.
DATA : fc type SLIS_T_FIELDCAT_ALV.
Logic
select * from t001 into table itab.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
  EXPORTING
    I_PROGRAM_NAME         = sy-repid
    I_INTERNAL_TABNAME     = 'ITAB'
    I_INCLNAME             = SY-REPID
  CHANGING
    CT_FIELDCAT            = fc
  EXCEPTIONS
    INCONSISTENT_INTERFACE = 1
    PROGRAM_ERROR          = 2
    OTHERS                 = 3.
Display
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
  I_INTERFACE_CHECK              = ' '
  I_BYPASSING_BUFFER             =
  I_BUFFER_ACTIVE                = ' '
   I_CALLBACK_PROGRAM             =  SY-REPID
<b>   I_CALLBACK_PF_STATUS_SET       = 'MYSTATUS '</b>
<b>   I_CALLBACK_USER_COMMAND        = 'MYFORM'</b>   IT_FIELDCAT                    = FC
  TABLES
    T_OUTTAB                       = ITAB
EXCEPTIONS
   PROGRAM_ERROR                  = 1
   OTHERS                         = 2
<b>
IMPORTANT
This sets the PF Status on ALV Screen
And not Selection screen
FORM MYSTATUS USING rt_extab TYPE slis_t_extab.
  SET PF-STATUS 'ABCD'.
ENDFORM.                    "MYSTATUS
IMPORTANT
When Fcode is pressed on ALV Toolbar
FORM MYFORM USING r_ucomm LIKE sy-ucomm
                                   rs_selfield TYPE slis_selfield.
  IF R_UCOMM = 'ZREFRESH'.
*----CODE
  ENDIF.
ENDFORM.                    "MYFORM</b>
regards,
amit m.

Similar Messages

  • How to use the standrad Refresh button in ooalv Grid?

    Hai Experts ,
                              i write editable oo alv program its works fine.  when change the data
    then click save button its saved correctly, but the problem is totals of row  & column not refresh when i am click the
    Refresh button . Please Help how to handle the standard Refresh button in ooalv .
    Thanks
    Adv....

    thank q u for ur reply,
                                            when i edit the data in grid and save the data its saved  successful,
    but the problem is manually i calculating the totals at the end of the Row as well as at end of the columns,
    when i edit the data in Grid that totals are not effected for that im using the Standard Refresh button ,
    Plz help me.

  • Web interface layout u2013 Standard refresh button

    Hi there
    In our web interface layout, we have got a button which has the label  <%=otr(UPWB/REFRESH)%> .
    This looks to me  the standard Refresh button. When we click on this button it actually save the data in the database.
    Is that what the refresh button suppose to do.
    Any suggestion/advise will be greatly appreciated.
    kind regards
    Sarah

    Hi Sarah,
    it seems that the wrong OTR text was assigned to the 'save' button. <%=otr(UPWB/REFRESH)%> belongs to the submit button that only sumits the data to the server to update the plan buffer. So check in transaction bps_wb whether the correct button was used in the web interface.
    Regards,
    Gregor

  • How to hide the standard save button

    Hi gurus,
    I am using the javascript below in my BPS Web Ap to perform a check function on save.  The Javascript runs the check function and then simulates the pressing of the standard save button.  It works fine.
    My problem is that I now need to hide the standard Save button as I don't want users to press it, just my code.  But there is no option in the application builder to hide those standard buttons.
    Is there some other way I can hide it?  Or is there some way I can perform the save from JavaScript without having to have a Save button?
    Cheers,
    Tristan
    <script type="text/javascript">
        function CheckAndSave()
                if (bspSubmit('FunctionButtonPerformCheck'))
                        bspSubmit('SaveButton1')
    </script>
    <span>
        <a href="#1" class=urBtnStd onClick="javascript:CheckAndSave();"
            <nobr>
                New Save
            </nobr>
        </a>
    </span>

    Hi,
    If you have created your layout using transaction BPS_WB then you can hide the SAVE button.
    Cheers,
    Gimmo

  • How  to get the java code of the standard functions

    How  to get the java code of the standard functions in xi
    Example , hoh get the java code for a node function - removeContext.

    hi
    Click on the Standard Function.
    Hold Ctrl+Shift
    right click on the standard function to view the context menu. You will see options to view the source code by exporting
    regards
    krishna

  • HT204053 The ICloud refresh button is gone in my Outlook 2007 due to power outage. How do I get it back?

    The ICloud refresh button is gone in my Outlook 2007 due to power outage. How do I get it back?

    For Outlook 2007, follow these steps to verify the iCloud Outlook Add-in is active 
    Open Outlook 2007.
    From the Tools menu, choose Trust Center.
    Select Add-ins from the left column.
    Look at the list of add-ins beneath "Active Application Add-Ins" and verify that the "iCloud Outlook Add-in" is listed.

  • My refresh button will not appear in 4.0, all I can get is a stop and home button, the refresh shows up in customize toolbar and I can put it up there, but as soon as I close it it dissapears, how do I get my beloved refresh button to show up?

    At first I had the stop/refresh buttons merged, which I hated so I tried putting spaces and things between them to stop their unholy union, but instead it has now made my refresh button dissapear in anger for not being allowed to see that dirty stop button! I cannot make it come back! Even if I put it on the toolbar in customize and it shows up, the moment I close it it has gone again.

    Firefox 4 uses a combined Stop/Reload/Go button that is positioned at the right end of the location bar.<br />
    During the page load process it shows as a Stop button and after the loading has finished the button is changed to a Reload button.<br />
    If you type in the location bar then that button becomes a Go button.<br />
    You can middle-click that Reload button to duplicate the current tab to a new tab.
    To move the Stop and Reload buttons to their position to the left of the location bar you can use these steps:
    * Open the "View > Toolbars > Customize" window to move the Stop and Reload button out of the location bar.
    * Drag the Reload and Stop buttons to their previous position to the left of the location bar.
    * Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
    * Set the order to "Stop - Reload" or separate them otherwise to get two distinct buttons.
    See also:
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • How to batch change the standard value of routing

    Dear all,
             I meet a problem, and need you help.
            As you know, we can use T-code "CS20"  to batch change a component's quantity in different Bom by a factor.
           for example:  Component a in Fert. A,  quantity change from 6g x 0.9 = 5.4g
                               Component a in Fert. B,  quantity change from 8g x 0.9 = 7.2g
           now, my question is how to Batch change the standard value in routing. (select by work center)  CA85N can select the value, but seems can not batch change by a factor,
           thanks in advance

    It is not a big task for u prasobh...Just play in CEWB for 5-10 mins you will understand everything....
    If you face any issue let me know..
    For ur information I am also an IBM employee...
    Gobi

  • How do i move the reload page button in firefox OSX to beside the back button where it was before i updated.

    how do i move the reload page button in firefox OSX to beside the back button where it was before i updated.
    i know there is a classic theme addon for windows but i need a fix for osx...its very frustrating when you update and things like this change and cant be customized back to the way we are used to using the browser. its counter intuitive to have the refresh page button so far away from the back and home buttons.

    Is Classic Theme Restorer only for Windows? I thought it worked on Mac, too. Some of the pre-selected interface items like the Application Button may match old Windows versions and you may need to deselect those in its Settings dialog.
    To access that dialog, you can use the Add-ons page. Either:
    * Command+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions, the on the right side, look for the Options button below Classic Theme Restorer.

  • How can we Customise the standard tool bar ??

    Can any body tell em how can we customise the standard tool baar in the forms. ie is there any way by which we can enable or disable few of its button.
    do reply
    thanx in advance
    amyt

    Hi,
    I have accomplished through the creation of a Menu in oracle Forms. After setting up your menu options, go to the "Visible In Horizontal Menu Toobar" property and set to YES. Then change the "Icon Filename" property to whatever your icon file is.
    Good luck!
    Bob

  • What is module pool programming?how we can change the standard screen?

    Hi EXPERTS
    what is module pool programming?how we can change the standard screen using module pool programming ?
    please explain with example.

    Check the below link:
    http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    You can also check the transaction ABAPDOCU which gives you lot of sample programs.
    Also you can see the below examples...
    Go to se38 and give demodynpro and press F4.
    YOu will get a list of demo module pool programs.
    One more T-Code is ABAPDOCU.
    YOu can find more examples there.
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    regards,
    venkat.

  • How can i replace the standard ESS iview with my own iview

    I want to replace standard ESS addr iview with my own WD developed by ABAP
    I added the iview(my WDA) into standard ESS addr page.
    (pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.pages/com.sap.pct.erp.ess.personal_information/com.sap.pct.erp.ess.cn/com.sap.pct.erp.ess.addr/com.sap.pct.erp.ess.addr)
    And make it visible.
    But I got this error in ESS PA addr :
    WebDynpro Exception: Application PER_ADDRESS_CN Does Not Exist
    Here is the error code :
    Error code&#65306;ICF-IE-http-c:100-u:AC_WANGFZ-l:1-s:CE1-i:SAPCE101_CE1_01-w:0-d:20070514-t:172301-v:RABAX_STATE-e:UNCAUGHT_EXCEPTION
    So , how can i replace the standard ESS iview with my own iview?
    Thanks

    Can you see any Javascript EPCF code in the old iView  ?  You are surely just going to have to find it  (if our hunch is correct) and analyse it and copy it into your new iView so that it functions in some way that at least does not error

  • How to find out the standard smartforms?

    how to find out the standard smartforms?

    Hi Sunil
    You just go to transaction   <b>SE80</b>(Object Navigator)
    and in that enter <b>Package BC470</b>
    which contains the standard Programs on Smart forms ,
    I think there you can find some Smart forms in those programs.
    I hope it will help you.
    If it helps reward with points.
    Regards Rk

  • How to find out the standard info stucture for a customized IS in LIS

    Hi All
    I have to run the statistical set up for the customized info structure S763 for the application plant maintenance in LIS. But i dont know whether it was copied from a standard SAP info structure or it was enhanced from a standard info structure.
    I have even checked out all the standard IS for plant maintenance but it is not matching. The closest match is S063 but a few characteristics and a key figure is missing.
    Could anybody guide me how to find out the standard info structure?
    Any help would be of great help.
    Regards
    Saddy

    Hi Ganesh
    No..it didnt solve my problem. MC23 only displays the info structures.  I have a customized info structure S763 which was created long time back. Im not sure whether it was copied from a standard info structure or enhanced from a standard info structure.
    I have to give the source info structure name to run statistical set up. The closest one which matches with the S763 is S063 but it is missing few characteristics and key figure.
    does it means that the IS S063 was enhanced?? Am i right?? If it was enhanced how will i run the statistical setup for the same...
    I hope i have explained clearly.
    Do provide ur valuable input.
    Regards
    Saddy

  • How to move all the standard and adhoc reports from cube to multi provider

    How to move all the standard and adhoc reports from the basic cube to multi provider?
    i created this multiprovider to do the maintenence on the basic cube. for example the infocube physical partition, line item dimension and compression.
    what we decided to do is move all the Standard and ad-hoc reports from the basic cube to the multiprovider. How to do it? and make a copy of the basic cube and do the maintenence on the cube. please help.
    Thanks in advance sdn experts!

    Hi Les,
    This sounds good and one thing we try to always keep in mind when undertaking such activities is to always minimise the impact to the user and make the process as transparent to them as possible. So lets say you have your multiprovider and copied queries up in Prod, these queries will still pick up the data from the base cube.
    Now you need to make a copy of the base cube for some changes to the cube model, I would suggest that you copy the cube and make your changes on the copied cube itself. Then 9depending on the changes done) you can load data from Original Cube to New Cube. When this is being done, make sure that you change your queries to add a restriction on 0INFORPOV by Original Cube.
    After the load to the new cube is complete you can run reports restricted to each cube to verify the numbers. Then change the 0INFOPROV restriction in the queries to point to the New Cube and disengage the old cube from the multiprovider.
    Hope this helps...

Maybe you are looking for

  • How to log in to the new installed SAP ABAP instance ?

    Dear Experts, In SAP ERP 2005 installation, I have done central system installation, Now I need to perform postinstallation steps, Could you please tell me,  how to log in to the new installed SAP ABAP instance and do the post installation? Regards,

  • Apple ID

    I wonder if some one can clarify the whole Apple ID thing. Here's the situation. My girlfriend (who I live with) has just purchased a iPad. We intend to set her up with her own Apple ID (eg [email protected]) I currently have two Apple IDs but as I h

  • Recording from eurosport

    Trioed to do a recording the other day from eurosport and all looked well ,BUT  on playback later  it shrunk to the top left hand quarter of my screen making it impossible to watch , it was showjumping by the way   the previous week they had overlapp

  • How does 0SOURSYSTEM Souce system Id get filled?

    Hi Gang, How does 0SOURSYSTEM Souce system Id get filled? I'm trying to recreate some transfer rules which were deleted. Is there an ABAP program or transfer program to populate this field? Or do I hard code a value? Thanks, John Hawk

  • How to stop the guesswork with printing business cards

    Hello everyone, when I print business cards I use one of those 10 blank business cards per sheet paper. I scan the image of the blank business card template, then I import to Illustrator and then I make the business cards. The problem is when I print