GOS in Custom Application Toolbar

I am trying to use "CREATE_ATTA" service of GOS on custom application toolbar. system is giving dump on  DISPATCH_SERVICE of  CL_GOS_TOOLBOX_VIEW.  I have maintained entry in table SGOSATTR .
The detail is as follows:
What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_GOS_TOOLBOX_VIEW===========CP" had to be
     terminated because it has
    come across a statement that unfortunately cannot be executed.
ERROR ANALYSIS
When specification a handler for an event in the SET HANDLER statement,
the reference "IS_SERVICE-SERVICE" to the handler instance cannot be NULL.

what is it your are trying to do?
If you just want to use the GOS toolbar in your own development I don't think you should add anything to SGOSATTR. This must be to add additional services to the GOS toolbar, but as I understand your message, you just want to use existing function CREATE_ATTA.
I have made a simple program with a dynpro 100 showing a salesorg. with the GOS toolbar. I use this program to upload xls, doc and pdf documents and link them to the salesorg.
If it is a similar requirement you have, I could post the abap code.
best regards

Similar Messages

  • User exit to modify FI Tcode FD02 Application toolbar

    HI GURU,
    currently i am working on a migration project. we are migrate to ERP 6.0 from R3
    after migration, one of the button that customize by previous consultant is disappaeared.
    i want to know is there any way to modify FI Tcode FD02(change customer: ) Application toolbar, what i need to do is add a button that next to standard button(General Data / Company code Data)
    many thx
    HOWARD

    Hello Howard,
    I seem to have found a user exit in the transaction FD02, its : SAPMF02D. Hope this works for you.
    Regards,
    Manish.

  • How to add a custom button on Application Toolbar for ME21N, ME22N & ME23N

    Hi Experts,
    I am new to this forum. I hope someone will help me.
    My Requirement is as :
    I want to add a new custom button on Application Toolbar for ME21N, ME22N & ME23N.
    There are already standard buttons in this toolbar which is Document Overview On, Hold, Personal Settings etc.
    So after the 'personal settings' button i want add a new button and want to write a code which will open one custom screen.
    I am not able to find any exit for this....
    Please help...
    Thanks....

    Hey Buddies
    Try below BADI : ME_PROCESS_PO_CUST
    and check with required methods.
    1)PROCESS_ITEM
    2)CHECK
    3)POST
    Regards,
    Pranav

  • Custom Button on Application Toolbar of VA01

    Hi,
    I have a requirement where i need to put in a button on the application Toolbar of VA01. This should be placed next to Orders button. I tried to find Exits, Badi's and Enhancement Spots but was not able to.
    There is one buton added and i have found the code for that but not able to understand how was it done.
    I checked in SDN too and found a couple of threads which explains that it could be done with GUIXT.
    Is this the only possible way or is there any other way in which this could be acheived.
    If GuiXT is the only solution, then let me know how can this be done or started since i'm New to GUIXT i don't have any idea about it.
    Thanks,
    Prashanth

    Hi,
    Check Enhancement spot ES_SAPMV45A. Check implementations in program MV45AF0C_CUA_SETZEN_BUTTONS.
    But be aware of the usage as you will need to replace a standard implementation.
    regards
    Nitesh

  • 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.

  • How can i make a vertical line in Application Toolbar when creat GUI STATUS

    I see some standard UI have a separator vertical line in the  GUI STATUS--Application Toolbar?
    Could you tell me how can i creat it in my customer  GUI STATUS?
    TKS a million~~

    Hi.
    Please try.
    1)Change mode your GUI-STATUS.
    2)menu -> Edit -> Insert -> Separator line.

  • How to deactive a button in application toolbar

    how to deactive a button in application toolbar?

    Simple example
    This example shows how to create a toolbar with a single Exit button, used to exit the program.
    Steps:
    Create a screen and add a custom container named TOOLBAR_CONTAINER
    Code:
       REPORT sapmz_hf_toolbar .
       TYPE-POOLS: icon.
       CLASS cls_event_handler DEFINITION DEFERRED.
    G L O B A L   D A T A
       DATA:
         ok_code                    LIKE sy-ucomm,
    Reference for conatiner
         go_toolbar_container       TYPE REF TO cl_gui_custom_container,
    Reference for SAP Toolbar
         go_toolbar                 TYPE REF TO cl_gui_toolbar,
    Event handler
         go_event_handler           TYPE REF TO cls_event_handler.
    G L O B A L   T A B L E S
       DATA:
    Table for registration of events. Note that a TYPE REF
    to cls_event_handler must be created before you can
    reference types cntl_simple_events and cntl_simple_event.
         gi_events                  TYPE cntl_simple_events,
    Workspace for table gi_events
         g_event                    TYPE cntl_simple_event.
          CLASS cls_event_handler DEFINITION
       CLASS cls_event_handler DEFINITION.
         PUBLIC SECTION.
           METHODS:
             on_function_selected
               FOR EVENT function_selected OF cl_gui_toolbar
                 IMPORTING fcode,
             on_dropdown_clicked
               FOR EVENT dropdown_clicked OF cl_gui_toolbar
                 IMPORTING fcode posx posy.
       ENDCLASS.
          CLASS cls_event_handler IMPLEMENTATION
       CLASS cls_event_handler IMPLEMENTATION.
         METHOD on_function_selected.
           CASE fcode.
             WHEN 'EXIT'.
               LEAVE TO SCREEN 0.
           ENDCASE.
         ENDMETHOD.
         METHOD on_dropdown_clicked.
         Not implented yet
         ENDMETHOD.
       ENDCLASS.
       START-OF-SELECTION.
         SET SCREEN '100'.
       *&      Module  STATUS_0100  OUTPUT
          text
       MODULE status_0100 OUTPUT.
         IF go_toolbar_container IS INITIAL.
    Create container
           CREATE OBJECT go_toolbar_container
             EXPORTING
               container_name = 'TOOLBAR_CONTAINER'.
    Create toolbar
           CREATE OBJECT go_toolbar
             EXPORTING
               parent = go_toolbar_container.
    Add a button
           CALL METHOD go_toolbar->add_button
             EXPORTING fcode       = 'EXIT'            "Function Code
                       icon        = icon_system_end   "ICON name
                       is_disabled = ' '               "Disabled = X
                       butn_type   = cntb_btype_button "Type of button
                       text        = 'Exit'            "Text on button
                       quickinfo   = 'Exit program'    "Quick info
                       is_checked  = ' '.              "Button selected
    Create event table. The event ID must be found in the
    documentation of the specific control
           CLEAR g_event.
           REFRESH gi_events.
           g_event-eventid    = go_toolbar->m_id_function_selected.
           g_event-appl_event = 'X'.    "This is an application event
           APPEND g_event TO gi_events.
           g_event-eventid    = go_toolbar->m_id_dropdown_clicked.
           g_event-appl_event = 'X'.
           APPEND g_event TO gi_events.
      Use the events table to register events for the control
           CALL METHOD go_toolbar->set_registered_events
               EXPORTING
                  events = gi_events.
    Create event handlers
           CREATE OBJECT go_event_handler.
           SET HANDLER go_event_handler->on_function_selected
             FOR go_toolbar.
           SET HANDLER go_event_handler->on_dropdown_clicked
              FOR go_toolbar.
         ENDIF.
       ENDMODULE.                 " STATUS_0100  OUTPUT
    http://www.erpgenie.com/abap/controls/toolbar.htm#Simple%20example
    http://help.sap.com/saphelp_nw04/helpdata/EN/42/d2ab343e416635e10000000a1553f6/content.htm
    help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITOOLBAR/BCCITOOLBAR.pdf
    Regards,
    Jagadish

  • ABAP Query - Application toolbar

    Hello
    Does anyone know how and if you can add your own custom push button to the "Application toolbar" in ABAP query?  i.e. once a query has run, can SAP display a user defined button on the Application Toolbar.
    Many thanks
    Peter

    I would say no,  If you need to do something like that, you will have to write a custom program using the ALV technology, then you can change the toolbar as needed.  ABAP Query is a pretty generic tool.
    Regards,
    Rich Heilman

  • Example: Customized Segmented ToolBar Buttons

    Hi,
    I have some mistake when I tried the example [Customized Segmented ToolBar Buttons|http://fxexperience.com/2012/02/customized-segmented-toolbar-buttons/] from Richard Bair.
    My css
    #background {
        -light-black: rgb(74, 75, 78);
        -dark-highlight: rgb(87, 89, 92);
        -dark-black: rgb(39, 40, 40);
        -darkest-black: rgb(5, 5, 5);
        -mid-gray: rgb(216, 222, 227);
        -fx-background-color: -mid-gray;
    .segmented-button-bar .button {
        -fx-background-color:
            -darkest-black,
            -dark-highlight,
            linear-gradient(to bottom, -light-black 2%, -dark-black 98%);
        -fx-background-insets: 0, 1 1 1 0, 2 1 1 1;
        -fx-background-radius: 0;
        -fx-padding: 0.4em 1.833333em 0.4em 1.833333em;
    .segmented-button-bar .button.first {
        -fx-background-insets: 0, 1, 2 1 1 1;
        -fx-background-radius: 3 0 0 3, 2 0 0 2, 2 0 0 2;
    .segmented-button-bar .button.last {
        -fx-background-insets: 0, 1 1 1 0, 2 1 1 1;
        -fx-background-radius: 0 3 3 0, 0 2 2 0, 0 2 2 0;
    .segmented-button-bar .button:pressed {
        -fx-background-color:
            -darkest-black,
            rgb(55, 57, 58),
            linear-gradient(to top, -light-black 2%, -dark-black 98%);
    }My fxml
    <BorderPane
        fx:controller="de.pro.typwriter.welcome.WelcomeActivity"
        xmlns:fx="http://javafx.com/fxml">
        <top>
            <HBox alignment="top_right" styleClass="segmented-button-bar">
                <children>
                    <Button text="About" onAction="#onActionGoToAbout" styleClass="first" />
                    <Button text="Help" onAction="#onActionGoToHelp" styleClass="last" />
                </children>
            </HBox>
        </top>
    </BorderPane>When I have the links styleClass="first" and styleClass="last" in the css-file this exception is thrown:
    SEVERE: javafx.scene.control.Control impl_processCSS The -fx-skin property has not been defined in CSS for Button@100bac2[styleClass=first]
    SEVERE: javafx.scene.control.Control impl_processCSS The -fx-skin property has not been defined in CSS for Button@e51b2c[styleClass=last]After removing the links in the buttons the following exception is thrown:
    WARNING: com.sun.javafx.css.StyleHelper lookup caught:
    java.lang.ClassCastException: java.lang.String cannot be cast to javafx.scene.paint.Paint
         at com.sun.javafx.css.converters.PaintConverter$SequenceConverter.convert(Unknown Source)
         at com.sun.javafx.css.converters.PaintConverter$SequenceConverter.convert(Unknown Source)
         at com.sun.javafx.css.Value.convert(Unknown Source)
         at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
         at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
         at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
         at javafx.scene.Node.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.control.Control.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Node.processCSS(Unknown Source)
         at javafx.scene.Scene.doCSSPass(Unknown Source)
         at javafx.scene.Scene.preferredSize(Unknown Source)
         at javafx.scene.Scene.impl_preferredSize(Unknown Source)
         at javafx.stage.Window.adjustSize(Unknown Source)
         at javafx.stage.Window.access$700(Unknown Source)
         at javafx.stage.Window$13.invalidated(Unknown Source)
         at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
         at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
         at javafx.stage.Window.setShowing(Unknown Source)
         at javafx.stage.Window.show(Unknown Source)
         at javafx.stage.Stage.show(Unknown Source)
         at de.pro.typwriter.manager.TypWriterManager.initApplication(TypWriterManager.java:122)
         at de.pro.typwriter.TypWriter.start(TypWriter.java:34)
         at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
         at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
         at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
         at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:662)
    WARNING: com.sun.javafx.css.StyleHelper lookup styleable = 'artificial' StyleableProperty {property: -fx-background-color, converter: Paint.SequenceConverter, initialValue: <Value>
      <value values="1">
        <Value>
          <value>Color[red=0,green=0,blue=0,opacity=1.0]</value>
          <converter>null</converter>
        </Value>
      </value>
      <converter>Paint.SequenceConverter</converter>
    </Value>
    WARNING: com.sun.javafx.css.StyleHelper lookup resolved = <Value>
      <value values="3">
        <Value lookup="true">
          <value>-darkest-black</value>
          <converter>null</converter>
        </Value>
        <Value lookup="true">
          <value>-dark-highlight</value>
          <converter>null</converter>
        </Value>
        <Value>
          <value values="7">
            <Value>
              <value>0.0%</value>
              <converter>null</converter>
            </Value>
            <Value>
              <value>0.0%</value>
              <converter>null</converter>
            </Value>
            <Value>
              <value>0.0%</value>
              <converter>null</converter>
            </Value>
            <Value>
              <value>100.0%</value>
              <converter>null</converter>
            </Value>
            <Value>
              <value>NO_CYCLE</value>
              <converter>null</converter>
            </Value>
            <Value>
              <value values="2">
                <Value>
                  <value>2.0%</value>
                  <converter>null</converter>
                </Value>
                <Value lookup="true">
                  <value>-light-black</value>
                  <converter>null</converter>
                </Value>
              </value>
              <converter>StopConverter</converter>
            </Value>
            <Value>
              <value values="2">
                <Value>
                  <value>98.0%</value>
                  <converter>null</converter>
                </Value>
                <Value lookup="true">
                  <value>-dark-black</value>
                  <converter>null</converter>
                </Value>
              </value>
              <converter>StopConverter</converter>
            </Value>
          </value>
          <converter>LinearGradientConverter</converter>
        </Value>
      </value>
      <converter>Paint.SequenceConverter</converter>
    </Value>
    WARNING: com.sun.javafx.css.StyleHelper lookup node = ButtonSkin[id=null, styleClass=button]Any idea?
    NetBeans 7.1, Windows XP, JavaFX 2.0.2

    I haven't tried the code locally, but I'm sure that this is due to Richard building his demo with the developer preview JavaFX 2.1, which features numerous improvements to FXML. I note you're using the JavaFX 2.0.2 GA release. If you are in a developer environment (i.e. you aren't deploying to end users), you may want to consider upgrading to JavaFX 2.1 Developer Preview builds. You can go here to download the builds (and note that the builds are updated weekly):
    http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html
    -- Jonathan

  • Adding Button on application toolbar on ABAP List display screen....

    Hello Gurus,
    I copied SAP program 'RFBUEB00' into custom program. When I execute the custom report, I see the data lijne by line in ABAP list. I see a deafult 'Select' button on application toolbar.
    If I want to add additional custom button on application toolbar on ABAP list display screen, how can I do it ? Please help.
    Regards,
    Jainam.
    Edited by: Jainam Shah on Oct 27, 2009 5:44 PM

    >
    Jainam Shah wrote:
    > In my case it just rights the data in ABAP screen as follows. I can't use ALV grid and stuff because its on older version.
    >
    >
    FORM LISTE_SCHREIBEN.
    >
    >   check = '@T9@'.
    >
    >   FORMAT COLOR COL_KEY INTENSIFIED OFF.
    >   WRITE: / SY-VLINE,
    >            check,
    >            BKPF-BUKRS,
    >            BKPF-BELNR,
    >            BKPF-GJAHR.
    >   FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    >   WRITE:   BKPF-BLART,
    >        (8) BKPF-BLDAT DD/MM/YY,
    >        (8) BKPF-BUDAT DD/MM/YY,
    >            BKPF-WAERS,
    >            BKPF-XBLNR,
    >         80 SY-VLINE.
    >   XAUSGABE = 'X'.
    >   HIDE: BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR, BKPF-BSTAT, XAUSGABE.
    >   IF BKPF-BKTXT NE SPACE.
    >     FORMAT COLOR COL_KEY INTENSIFIED OFF.
    >     WRITE: / SY-VLINE, CHAR4 UNDER BKPF-GJAHR.
    >     FORMAT COLOR COL_NORMAL INTENSIFIED.
    >     WRITE:   BKPF-BKTXT UNDER BKPF-BLART,
    >              80 SY-VLINE.
    >     HIDE: BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR, BKPF-BSTAT, XAUSGABE.
    >   ENDIF.
    > ENDFORM.
    >
    >
    > I have to select multiple lines and proces them. For one line I know I can use AT-LINE-SELECTION but this is multiple lines...
    What is your SAP system version?
    It seems to be displayed only in ALV. Well, if you can make it to display in LIST ... you can go with set pf-status.
    good luck

  • Displaying a Push button in the application toolbar for an ALV report

    Hello everyone,
    Query:
    Is it possible to display a custom push button in the application tool bar while displaying an ALV report(1st one)?
    On pressing this custom push button will I be able to display another ALV report(2nd one) based on the selection made on the current ALV report(1st one)?

    Yes u can have pushbutton on application toolbar.
    You just have to use the new pf status in your report program.
    You should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 >Programming SubObjects> Gui Status.
    Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.
    Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
    Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality.
    Have a look at below code for using the new status.
    TYPE-POOLS: slis.
    DATA: i_qmel LIKE qmel OCCURS 0.
    data v_repid type repid.
    SELECT * FROM qmel INTO TABLE i_qmel.
    v_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = v_repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    i_structure_name = 'QMEL'
    TABLES
    t_outtab = i_qmel
    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.
    form set_pf_status using rt_extab type slis_t_extab.
    set pf-status 'TEST'.
    endform.
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
    data lv_ucomm type sy-ucomm.
    lv_ucomm
    = sy-ucomm.
    CASE lv_ucomm.
    WHEN 'BUTTON'. "Double Click line Item
    **Write ur functinality here
    endcase.
    endform.
    Also have a look at below links.
    http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm
    ALV report
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Va01 application toolbar push button

    gurus
    When ever we go into va01 screen we will see in the application toolbar the following buttons by default .
    Display document flow
    status overview
    Display sales summary
    Display sold to party
    Header output overview
    List of sales orders
    Now i want to add one more button here , and handle that according to that as per my requirement.
    tell me how to add the button there.
    another question is that in sales oreder ie in va01 i seen someone added the truck button and when ever we press it we can see another sub screen. how to find out where exactly he added this button i mean in which application toolbar and where he has written the code.
    i debugged but not getting idea.
    i started debugging and pressed on the trcuk button and gone to debugger screen , but i am searching for pf-status but i am not able to .
    tell me how to do this

    Hi,
    Check the following exits:
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    Also refer Want to add a button to the application toolbar

  • Multiple pushbuttons on application toolbar not fitting

    Hi ppl,
    I have a created a custom transaction wherein I need to display about 18 pushbuttons on the application toolbar.
    But, the problem is that all of these do not fit on the screen so I can see only about 10 buttons in my transaction (the last button is not even displayed completely).
    Please let me know if I can create a multi line application toolbar or is there any other solution for this?
    Regards.

    Hi ppl,
    I had a custom screen designed for my transaction.
    And I was able to display around 10 buttons on the application toolbar. No issues with that.
    Now, I have placed 9 pushbuttons on the application toolbar and the remaining are designed in the screen area.
    Thank you all for the quick and helpful replies.
    Regards.

  • Pushbutton on application toolbar

    Hi,
    How to write code for pushbutton on application toolbar in a normal report program and functionality on that?
    Basic question. Please search before posting such basic questions
    Edited by: kishan P on Sep 2, 2010 3:09 PM

    Hi Chandrka,
    To create and appear push button in the screen you need to create a Push button.
    go to start of selection .
    add syntax.
    Set PF STATUS 'cutom'.  <-- Double click on the custom it will take you to se41 and add a button in application toolbar
    and write code in At-user command and handle it.
    Prabhudas

  • Making buttons in application toolbar dynamic....

    Hello,
    I have a application tool bar with 8 icon buttons defined. Now I have a custom configuration table where I check what buttons in application toolbar should be seen so that user can select which button he wants to see and which not anytime he wishes.
    My question is how can  I make buttons in application toolbar dynamic ?
    Please guide.
    Regards,
    Rajesh.

    This is sample logic, but you can adapt it to you needs
    DATA: excl_tab   TYPE sy-ucomm OCCURS 0 WITH HEADER LINE.
      AUTHORITY-CHECK OBJECT 'ZREO'  ID 'ACTVT' FIELD c_print.
      IF sy-subrc NE 0.
        APPEND 'PRIN' TO excl_tab.
      ENDIF.
      IF ok_0010 = 'DISP' OR ok_0010 = 'DELE'.
        APPEND 'SAVE' TO excl_tab.
      ENDIF.
      IF ok_0010 <> 'DELE'.
        APPEND 'DELE' TO excl_tab.
      ENDIF.
      SET PF-STATUS 'STAT_100' EXCLUDING excl_tab.

Maybe you are looking for