Problem with Toolbars in LVC_S_LAYO

Dear all,
i am using structure LVC_S_LAYO.
Here in my toolbar some icons like show next,summation are inactive.
Also i am using LVC_T_FCAT where i have set DO_SUM = 'X'.
When i see in debugging the value X is getting passed from my it_fieldcatalog table but still
the sum of the desired column is not displayed.what must be the problem?
Why are these icons inactive in the toolbar.?What should i do to Activate them?

If you are using the OO model cl_gui_alv_grid you won´t need any of the fcat models as the sum facility is included on the standard toolbar.
Just select the column and then press the SUM button.
If  you switch to the OO model you don`t need to do very much coding and there are a lot less chances of getting errors.
However if you DO program the toolbar then you will need some code like
1)  in the constructor set the handler for the ON TOOLBAR event.
SET HANDLER z_object->on_toolbar FOR grid1.
also have one for ON_USER_COMMAND
  SET HANDLER z_object->on_user_command FOR grid1.
2) in the the toolbar method activate the buttons you need
For example
method ON_TOOLBAR.
type-pools icon.
CLEAR ls_toolbar.
    MOVE 0 TO ls_toolbar-butn_type.
    MOVE 'EXIT' TO ls_toolbar-function.
    MOVE space TO ls_toolbar-disabled.
    MOVE icon_system_end TO ls_toolbar-icon.
    MOVE 'Click2Exit' TO ls_toolbar-quickinfo.
    APPEND ls_toolbar TO e_object->mt_toolbar.
    CLEAR ls_toolbar.
    MOVE  0 TO ls_toolbar-butn_type.
    MOVE 'SAVE' TO ls_toolbar-function.
    MOVE space TO ls_toolbar-disabled.
    MOVE  icon_system_save TO ls_toolbar-icon.
    MOVE 'Save data' TO ls_toolbar-quickinfo.
    APPEND ls_toolbar TO e_object->mt_toolbar.
    CLEAR ls_toolbar.
    MOVE  0 TO ls_toolbar-butn_type.
    MOVE 'EDIT' TO ls_toolbar-function.
    MOVE  space TO ls_toolbar-disabled.
    MOVE  icon_toggle_display_change TO ls_toolbar-icon.
    MOVE 'Edit data' TO ls_toolbar-quickinfo.
    MOVE  'EDIT' TO ls_toolbar-text.
    APPEND ls_toolbar TO e_object->mt_toolbar.
    CLEAR ls_toolbar.
    MOVE  0 TO ls_toolbar-butn_type.
    MOVE 'PROC' TO ls_toolbar-function.
    MOVE  space TO ls_toolbar-disabled.
    MOVE   icon_businav_process TO ls_toolbar-icon.
    MOVE 'Process.' TO ls_toolbar-quickinfo.
    MOVE  'PROC' TO ls_toolbar-text.
    APPEND ls_toolbar TO e_object->mt_toolbar.
    CLEAR ls_toolbar.
    MOVE  0 TO ls_toolbar-butn_type.
    MOVE 'EXCEL' TO ls_toolbar-function.
    MOVE  space TO ls_toolbar-disabled.
    MOVE  icon_xxl TO ls_toolbar-icon.
    MOVE 'Excel' TO ls_toolbar-quickinfo.
    MOVE  'EXCEL' TO ls_toolbar-text.
    APPEND ls_toolbar TO e_object->mt_toolbar.
    MOVE  0 TO ls_toolbar-butn_type.
    MOVE 'REFR' TO ls_toolbar-function.
    MOVE  space TO ls_toolbar-disabled.
    MOVE  icon_refresh TO ls_toolbar-icon.
    MOVE  'Refresh' TO ls_toolbar-quickinfo.
    MOVE  'REFR' TO ls_toolbar-text.
    APPEND ls_toolbar TO e_object->mt_toolbar.
endmethod.
What the above code does is set the variable E_UCOMM with the value in the toolbar function for example if I press the EXCEL button E_UCOMM is set to EXCEL.
Now the method ON_USER_COMMAND is called where you can then choose your method / action for the toolbar.
method ON_USER_COMMAND.
       FOR EVENT before_user_command OF cl_gui_alv_grid
       IMPORTING
         e_ucomm
         sender.
CASE e_ucomm.
      WHEN 'EXIT'.
        LEAVE PROGRAM.
      WHEN 'EXCEL'.
        CALL METHOD me->download_to_excel.
      WHEN 'SAVE'.
      WHEN 'PROC'.
        CALL METHOD me->process.
      WHEN 'REFR'.
        CALL METHOD me->refresh.
    ENDCASE.
endmethod.
Note that the routine ON Data Changed Finished is always called before the user command handling if you set a handler for the event data changed finished;
Your data of course must still be correct  for summing it must be NUMERIC.
Cheers
jimbo

Similar Messages

  • Problem with Toolbar in Itunes 9.0.3

    I upgraded to 9.0.3 and now my itunes toolbar will not work. This happened in 9.0.2 also. Is there a fix or should i just go back to 9.0.1 until they update again.

    I've had this problem as well, the solution from the AXIS mail lists shows that it seems to be a problem with the xmlparserv2.jar that is supplied with IAS. Xerces does not produce this problem, the solution is simple but annoying.
    Save the auto generated WSDL and then add the following to the wsdl:definitions line of your WSDL document, and then deploy this WSDL document with your application.
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    Then in your server-config.wsdd file, reference the supplied WSDL with the following tag in your service descriptor.
    <wsdlFile>/<path-to-wsdl>/myService.wsdl</wsdlFile>
    Then everything should work perfectly, the AxisServlet will display your supplied WSDL rather than generate it dynamically when the ?WSDL parameter is specified.
    Andy.

  • ALV: Problem with toolbar event

    Hi ALV-experts,
    I have a dynpro with a header area where I display an ALV table. Below this I have a subscreen with a tabstrip control and two tabs.
    In the ALV toolbar I defined an own button. This button gets deactivated after pressing this button. I achieved this by the option "disabled" in the structure stb_button within the event handler for the toolbar event.
    This works all fine so far. If I start the dynpro and click on the button in the ALV-toolbar the buttons gets deactivated afterwards. But I have I jump between the tabs before I press the ALV-toolbar button, the button does not get deactivated.
    The debugger does not go into the event handler of the toolbar event. I also did system debugging of the method SET_TOOLBAR of the CL_GUI_ALV_GRID-class. Here I pass in both cases the command
    raise event toolbar e_object = m_cl_toolbar e_interactive = i_interactive.
    but in the second case (when I change the tabs before I press the button) the event handler is not executed and I don't know why. I also tried to register the event handler for all instances of the ALV still with the same result.
    The ALV method set_toolbar_interactive( ) did also not solve the problem.
    I couldn't find any SAP note about an issue for this event.
    Does anybody have an idea or a solution for this problem?
    EDIT:
    Problem solved, it was typo!
    Thanks in advance and regards,
    Martin
    Edited by: Martin Fischer on Jul 7, 2010 4:53 PM

    The problem was a typo!

  • BI analyzer in office 2003 problem with toolbar

    HI,
    We have Office 2003 SP3 and sap GUI 710 with new patch and new NET framework 3.5 SP1. When I run Analyzer and it will have open Excel, there is toolbar with Germany description, and when I push button for open, nothing will not is happened. We found only recommendation about patch for excel, but it didn't help me. Please help me with this problem.
    Thanks, Libor

    Hi,
    Please try the following....
    Uninstall:
    .NET Framework, if this is not 2.0
    SAP GUI
    Install:
    .NET Framework 2.0
    SAP GUI 710 - install GUI and Business Explorer
    GUI path 11
    BI Add - on for GUI "bi710sp09_900-10004472"
    Other Way:
    Applying the patch attached to the OSS Note 1121263 - BEx Analyzer 7.10
    Applying the Microsoft patch : http://support.microsoft.com/kb/908002/
    Rgds,
    Murali

  • Problem with toolbars

    I am using three toolbars in my application. the problem of overwritting of toolbar over one another is solved, thanks to u people. but now the toolbars are not acting as ordinary toolbar at all. For example, if I dock any of them, they appear in a totally seperate window and also appear in taskbar as well. someone tell me have anyone ever saw a toolbar like this which appears in taskbar. also, it has all three buttons (min, max, and close) how to remove them? and secondly, when I click on another toolbar it loses the focus, now again have anyone ever saw the toolbar that loses its focus and hide behinds the application. thirdly, when i close the toolbar, it doesnot places back to its original position rather, it is placed at the end of panel.
    Please help.
    Shamail

    To Leonard
    Sometimes I start Acrobat 8.1,the toolbars do not appear as usuall,such as File,Find,Advanced Editing toolbar and so on.
    Menus are OK every time.

  • Urgent!!!! problems with Toolbar

    Hi ,
    I have Toolbar with buttons on it. I also have 3 tables
    and i'm trying to display them in a panel depending upon the button that is being clicked by the user.For this i have written action listeners which are not working properly. Following is the code and i'll be greatful if u can advise me in this regard. Any kind of suggestion or direction to helpful links is appreciated.....Treat this as
    very urgent......
    import javax.swing.JToolBar;
    import javax.swing.JButton;
    import javax.swing.ImageIcon;
    import javax.swing.AbstractButton;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import java.awt.*;
    import java.awt.event.*;
    public class ToolBarTest extends JFrame {
        protected JTextArea textArea;
        protected String newline = "\n";
        JPanel contentPane = new JPanel();
        public ToolBarTest() {
            //Do frame stuff.
            super("ToolBarDemo");
            addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
            //Create the toolbar.
            JToolBar toolBar = new JToolBar();
            addButtons(toolBar);
            //Create the text area used for output.
    //        textArea = new JTextArea(5, 30);
             TableDemo1 generaltable=new TableDemo1();
              JTable table=new JTable();
              table.setModel(generaltable);
               JScrollPane scrollPane = new JScrollPane(table);
               scrollPane.setViewportView(table);
            //Lay out the content pane.
    //        JPanel contentPane = new JPanel();
            contentPane.setLayout(new BorderLayout());
            contentPane.setPreferredSize(new Dimension(400, 100));
            contentPane.add(toolBar, BorderLayout.NORTH);
            contentPane.add(scrollPane, BorderLayout.CENTER);
            setContentPane(contentPane);
        protected void addButtons(JToolBar toolBar) {
            JButton button = null;
            ImageIcon general=new ImageIcon("ql3nava.gif");
            //first button
            button = new JButton("General",general);
            button.setToolTipText("General");
            button.setVerticalTextPosition(AbstractButton.BOTTOM);
            button.setHorizontalTextPosition(AbstractButton.CENTER);
            button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
            repaint();
                    JTable  table1=new JTable();
                    TableDemo1 test1=new TableDemo1();
                    table1.setModel(test1);
               JScrollPane scrollPane1 = new JScrollPane(table1);
               scrollPane1.setViewportView(table1);
               JPanel panel1=new JPanel();
               panel1.add(scrollPane1);
            toolBar.add(button);
            ImageIcon chart=new ImageIcon("ql3nava.gif ");
            //second button
            button = new JButton("BarGraph",chart);
            //new ImageIcon("Chart.bmp"));
            button.setToolTipText("Bar Graph");
            button.setVerticalTextPosition(AbstractButton.BOTTOM);
            button.setHorizontalTextPosition(AbstractButton.CENTER);
            button.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    JTable  table2=new JTable();
                    TableDemo2 test2=new TableDemo2();
                    table2.setModel(test2);
               JScrollPane scrollPane2 = new JScrollPane(table2);
               scrollPane2.setViewportView(table2);
               JPanel panel2=new JPanel();
               panel2.add(scrollPane2);
            toolBar.add(button);
            ImageIcon pie=new ImageIcon("ql3nava.gif");
            //third button
            button = new JButton("PieGraph",pie);
            //new ImageIcon("pie.bmp"));
            button.setToolTipText("Pie Graph");
            button.setVerticalTextPosition(AbstractButton.BOTTOM);
            button.setHorizontalTextPosition(AbstractButton.CENTER);
            button.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    JTable  table3=new JTable();
                    TableDemo3 test3=new TableDemo3();
                    table3.setModel(test3);
               JScrollPane scrollPane3 = new JScrollPane(table3);
               scrollPane3.setViewportView(table3);
               JPanel panel3=new JPanel();
               panel3.add(scrollPane3);
            toolBar.add(button);
        //Fourth Button
            ImageIcon refresh=new ImageIcon("ql3nava.gif");
            button = new JButton("Refresh",refresh);
            //new ImageIcon("Refresh.bmp"));
            button.setToolTipText("Refresh");
            button.setVerticalTextPosition(AbstractButton.BOTTOM);
            button.setHorizontalTextPosition(AbstractButton.CENTER);
            button.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
      //  protected void displayResult(Component comp) {
           // JPanel.add(Component comp);
    //        System.out.println(comp);
        public static void main(String[] args) {
            ToolBarTest frame = new ToolBarTest();
            frame.pack();
            frame.setVisible(true);
    }Thanks,
    Anita

    Anita,
    Your program misses one line in all ActionListeners
    add this line after
    <pre>
    panel2.add(scrollPane2);
    //add this
    getContentPane().add(panel2);
    </pre>
    let me know if it helps.,
    vinod

  • Trial Version Problem with toolbar

    I'm working with the CS5.5 trial version. It worked fine but now when I open it I can't get the toolbar to appear and I don't see a default work space option either.
    Thanks

    Publication on businCata I am sorry I do not understand your inquiry.  Can you please restate your question?  What Adobe software or service is your inquiry in relation too?

  • Strange problem with toolbar

    I added a toolbar to a frame by setting the floatable property to true. When i drag this toolbar, it comes in a frame instead of a dialog. There comes a separate frame instant in task bar. I couldn't understand the cause of it.
    Can anybody help me, please
    Thanks in advance
    Rex

    Works fine for me on JDK1.4.2 using XP.
    If you need more help then check out this site:
    http://www.physci.org/codes/sscce.jsp

  • I downloaded a new version of firefox. It said it had problems with my norton toolbar and now it doesn't feature it in the window. I'm not that comp savvy. How do I either get the Norton toolbar up or go back to the old firefox? Thank you.

    I downloaded a new version of firefox. It said it had problems with my norton toolbar and now it doesn't feature it in the window. I'm not that comp savvy. How do I either get the Norton toolbar up or go back to the old firefox? Thank you.

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • Problem with application toolbar

    Hi all
    I am facing a problem with the alv application toolbar.
    i have attached a custom  gui status to the alv but i am not able to see all the buttons created by me.
    some buttons are getting cut and i cannot see the buttons after scrolling as well
    Please suggest.

    Hi,
    U might have copied a standard PF-status into ur own status and added ur own buttons right....if it is so do not alter the std buttons sequence.......and add ur own buttons at the last.....
    also see if all de buttons are active...(red letters r inactive) activate den individually using function code button.....
    Cheers,
    jose.

  • Why cant i re-add gmail button on google toolbar? 4.01 is not good, I have never had a problem with your products..Whats going on??

    Question
    Why cant i re-add gmail button on google toolbar? 4.01 is not good, I have never had a problem with your products..Whats going on??

    http://support.mozilla.com/en-US/kb/how-do-i-use-bookmarks

  • Problem with RGB Values for Canvas Type ‚Horizontal Toolbar' in Webforms 10

    Hello,
    I have a problem with the canvas type ‘Horizontal Toolbar’ in Webforms 10g.
    When I try to set or change the RGB value of a ‘Horizontal Toolbar’ with the forms function
    Set_Canvas_Property(‘my_horizontal_toolbar’, BACKGROUND_COLOR, rgb-value)
    (at runtime) it has no effect in Webforms 10g for the canvas type ‘Horizontal Toolbar’ (the background color of the horizontal toolbar doesn’t change).
    But it works fine for other canvas types like ‘Stacked’ or ‘Content’.
    In Oracle 6i (Client / Server) this function works quiet well (even for the ‘Horizontal Toolbar’ canvas type).
    The reason why we are using rgb values instead of visual attributes in this case is, that the color of the ‘Horizontal Toolbar’ should be customizeable (via a RGB Field) for our customers (at runtime).
    Further more we are using the same technique for Text-Field-Items, Content- and Stacked-Canvases (and all works fine).
    Maybe it has something to do with the pre-configured IAS color-schema (blaf).
    But changing the color schema (e.g.: from 'blaf' to 'red') has no effect also.
    Thanks for your help.

    This is probably bug 777312. Call Support for the latest info on this bug and for help getting it fixed.

  • Having problems with my Firefox toolbar.

    Having problems with my google Firefox toolbar. Having problem sending and deleting using the tab. having problems accessing my calendar in new format. I am having problems modifying seachs in my google search engine

    If you are are experiencing the same issue downloading something else then it is not a Firefox issue. Also, please have a look at the following as copied from another contributor.
    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    * https://support.mozilla.org/kb/Safe+Mode
    * https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I updated my browser to the last versoin of firefox (31). But I have a problem with mozilla. why tha toolbar of alexa does not work on it?

    Hello...
    I updated my browser to the last versoin of firefox (31). But I have a problem with mozilla. why tha toolbar of alexa does not work on it?

    After a quick search in the addon.mozilla.org page, it looks like that add on is still compatible with version 31. Please try to [[Re-enable add-ons that were disabled when updating Firefox]] or make a back up of the add on folder in the profile folder and reinstall the add on. [[Back up and restore information in Firefox profiles]]

  • I´ve a problem with Ancestry Toolbar and Firefox 4.0

    I´ve a problem with Ancestry Toolbar and Firefox 4.0

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for

  • Nullpointer exception... any help would be appreciated

    In advance, I apologize for any ignorance which I may obviously have... I'm in the process of learning Java, and am used to C/C++... In any case, I'm running into a nullpointer exception while 'compiling', which I'm having trouble figuring out... I'l

  • Zen Touch: How to edit multiple songs artists and genres at once with new firmwa

    With the old firmware I was able to do that with Nomad Explorer. But with the V2 firmware, I cannot use the Nomad Explorer anymore, and Media Source Organizer only alows to edit one track at once. Zen Touch Explorer also does not allow me to do that.

  • Installing Webdb 2.1 on Solaris big problem

    "You entered an incorrect system password or an incorrect TNS names alias" error message while I was installing the Webdb 2.1 on Sun Solaris. During configation : In installer I entered other new home: ORACLE_HOME=/u01/app/oracle/product/webdb Host N

  • Is it possible to have "additive" presets?

    I've been mucking around recently with a preset that sets a bunch of development related settings along with a calibration profile. If I apply this to a new photo it's great, but if, for example, I apply it to a photo that already has some exposure c

  • Code / Logic review

    Hi All, Please review the following code and logic used for uploading data by converting comma separated value column to multiple rows. Tables Used. create table temp_stg (id number(16), equip_name varchar2(200), pcb1 varchar2(50), pcb2 varchar2(50))