How to manage displaying  buttons in appl toolbar in trans. XK02 - vendor m

Hi,
how can I manage displaying customer buttons in appl. toolbar in trans. XK02 - Vendor master data. I create new screen and I would like create button on first standard screen but on the customer - new screen i would like to have another button. I would change button on toolbar but use only one pf-status. How to dynamically change button in toolbar?
Thanks.

Hi:
Could you plz take the reference from
http://help.sap.com/saphelp_erp2005/helpdata/en/11/ba74412cba127de10000000a155106/content.htm
Regards
Shashi

Similar Messages

  • 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

  • How to disable the button in application toolbar in report pgm

    Can anyone help with How to disable the button in application toolbar in report pgm

    Hi,
    You can use it_excluding to disable button on the tool bar.You have to find the function code for the required button and append that function code to the it_excluding .The optional IMPORTING parameter IT_EXCLUDING is an internal table. It is only needed if the caller uses the list tool standard interface but wants to deactivate interface functions which he or she does not need.You can have your defined pf-status using I_CALLBACK_PF_STATUS_SET.
    SAMPLE PROGRAM
    tables spfli.
    type-pools: slis.
    DATA W_FCODE TYPE SLIS_EXTAB-FCODE.
    data: t_spfli TYPE SPFLI OCCURS 0 WITH HEADER LINE.
    select * from spfli into table t_spfli.
    data : t_excluding TYPE SLIS_T_EXTAB .
    W_fcode = '&OUP'.
    append w_fcode to t_excluding.
    W_fcode = '&ODN'.
    append w_fcode to t_excluding.
    call function 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_STRUCTURE_NAME = 'SPFLI'
    IS_LAYOUT =
    IT_FIELDCAT =
    IT_EXCLUDING = T_EXCLUDING
    tables
    t_outtab = T_SPFLI
    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.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm
    Regards,
    Priyanka.

  • How to let the button in the toolbar more distinct when its be selected?

    hi.
    How to let the button in the toolbar more conspicuous(distinct) when its be selected?

    Chnge it's backgroung color, it's border, it't icon if has one.... Coice the way you more like.
    Abraham.

  • How to manage liked button?

    Hi,
    i saw that i can manage linked button for BP or items etc... but i don't know how to manage linked button in a user form for a user field.
    Thanks
    Valentina Mioli

    Hi Valentina,
    1) Add a edittext and a linkedbutton to your user form.
    2) Link the button to the edittext.
    3) Set the EditText.LinkedObject to to appropiate object (i.e. BusinessPartners is 2)
    4) Fill your edittext with the correct value (i.e. 'C1000')
    The linkedbutton will be clickable and you're set!
    For a matrix just add a column of the type linkedbutton and set the Linkedobject to the correct object.
    A full list of objects and more information and samples can be found in your Help Files (Objects: UI API > Reference > Overview > Enumerations > BoLinkedObject Enumeration)
    Hope it helps,
    Rowdy

  • How to delete hidden buttons from the toolbar

    I have too many hidden buttons in my toolbar.How do I remove some?I cannot drag them back into Customize box because when I open Customize,I cannot access the hidden buttons any more because their little symbol '''>>''' disappears from the toolbar as soon as I open Customize box..I want to get rid off the following ten hidden toolbar buttons:"how>do>I>show>a>
    printer>icon>in>the>toolbar".Thanks.I have Windows 7 .I am a beginner.

    Do you mean Bookmarks or Bookmarks folders on the Bookmarks toolbar?
    You can remove bookmarks in the Bookmarks Manager or you can right-click a bookmark on the toolbar and choose Delete.
    See also http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox

  • How to create multiple buttons in ALV Toolbar in Webdynpro ABAP

    Hi all,
    I am trying to create multiple buttons in Webdynpro  ALV toolbar, please go through the code.
    What happening is, second button is replacing the first one.
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
       lo_cmp_usage =   wd_this->wd_cpuse_alv_table( ).
       IF lo_cmp_usage->has_active_component( ) IS INITIAL.
         lo_cmp_usage->create_component( ).
       ENDIF.
       DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
       lo_interfacecontroller =   wd_this->wd_cpifc_alv_table( ).
        DATA lv_value TYPE REF TO cl_salv_wd_config_table.
       lv_value = lo_interfacecontroller->get_model(
       DATA lr_buttonui1 TYPE REF TO cl_salv_wd_fe_button.
       DATA lr_buttonui2 TYPE REF TO cl_salv_wd_fe_button.
       DATA button1 TYPE REF TO cl_salv_wd_function.
       DATA button2 TYPE REF TO cl_salv_wd_function.
    **First button
       CREATE OBJECT lr_buttonui1.
       lr_buttonui1->set_text('Button')."setting the text of the button on alv toolbar
       button1 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON')."creating the function for alv button
       button1->set_editor( lr_buttonui1 ).
    **Second button
       CREATE OBJECT lr_buttonui2.
         lr_buttonui2->set_text('Button1')."setting the text of the button on alv toolbar
       button2 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON' )."creating the function for alv button
       button2->set_editor( lr_buttonui2 ).
    How can I overcome this??
    Thanks
    Eshwar

    Hi Eshwar,
    The button Ids are same for both the buttons in your code. You need to change it as BUTTON1, BUTTON2.
    **First button
       CREATE OBJECT lr_buttonui1.
       lr_buttonui1->set_text('Button')."setting the text of the button on alv toolbar
       button1 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON1')."creating the function for alv button
       button1->set_editor( lr_buttonui1 ).
    **Second button
       CREATE OBJECT lr_buttonui2.
         lr_buttonui2->set_text('Button1')."setting the text of the button on alv toolbar
       button2 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON2' )."creating the function for alv button
       button2->set_editor( lr_buttonui2 ).

  • How to add a button to the toolbar of standard transaction

    hi friends
    currently i am working in IS-OIL(DS)-TSW module, in which we need to add a button to the toolbar of standard transaction(O4nm)
    can anybody help me how to proceed with this
    with regards
    s.janagar

    Hi,
    To be able to add a button to the toolbar of a standard transaction, you can use GuiXT which is a bundled solution within SAP R/3 or Netweaver.  With GuiXT, you can create your own pushbuttons within an R/3 screen or within the toolbar. You can make both the menu functions and the navigation to other transactions directly accessible with your own pushbuttons along with a new icon that you wanted to assign to the pushbuttons.
    Also, you can customize the pushbutton's size effortlessly.  And in your situation of adding it to the toolbar, GuiXT can help to set your pushbuttons automatically to fit onto the toolbar with its designer tool.
    For more information about front end changes, you can view more information about GuiXT at http://www.guixt.com/site/solutions.php
    Thank you and hope this helps!

  • How to add a button to the toolbar in transaction MIRO

    Hi, I wanna know if some1 could tell me how can I add a custom button in the standard toolbar of transaction MIRO.
    The client have the lastest version of SAP so I have enhancement point to add the functionality of the button, but how can I add the button without registering the object in the OSS.
    Thx.

    Hi Siva,
    Create one custom program Eg:zxyz activate it. Now open se80 give program name:SAPMV50A and open gui status.
    In GUI Status right click on 'W0' copy it to custom 'ZW0' and the custom program name which created first.
    Now goto your custom program and write
    double click on 'ZW0' and create your custom button in application toolbar.
    activate it and activate your program.
    Now come to stander program SAPMV50A open screen 1000.
    in moduel  'initialisieren' double click on perform cua_setzen.
    again double click on module initialisieren and by using enhancement framwork functionality implement the below logic.
    Finally you will get the button in application toolbar.
    Reward if it is help full.
    Regards,
    Quddus.

  • How to add display button(ICON) on standard report screen?

    Hi,
    I have to add display button after the excute button on the standard selection screen of the report.
    could you please guid me how to do that i was trying with below but it does not reflect.
    TABLES:  sscrfields.
    TYPE-POOLS: slis, icon.
    INITIALIZATION.
    Add display button to selection screen
      functxt-icon_id   = ICON_DISPLAY.
      functxt-quickinfo = text-007.
      sscrfields-functxt_01 = functxt.
    Thanks,
    Rajesh
    Edited by: Rajesh Gupta on Nov 16, 2010 3:28 PM

    Hi
    TABLES: sscrfields.
    TYPE-POOLS: slis, icon.
    PARAMETERS: p_bukrs LIKE t001-bukrs.
    SELECTION-SCREEN FUNCTION KEY 1.
    INITIALIZATION.
    * Add display button to selection screen
      sscrfields-functxt_01 = icon_display.
    In selection-screen you need to active the button by statament SELECTION-SCREEN FUNCTION KEY
    Max

  • How to hide 'layout button' on ALV toolbar

    Hi,
    I have an ALV and it has standard toolbar, now i want to hide 'Layout button' from the toolbar based on specific condition e.g when flag = 1.
    How to do that.
    Thanks,

    If you are using the REUSE function, you can use the "EXCLUDING" parameter, and pass the FCODE for "Change Layout" to this table.  This will remove the icon from the toolbar.  Here is an example.
    REPORT rich_0001 .
    * Global ALV Data Declarations
    TYPE-POOLS: slis.
    * Internal Tables
    DATA: BEGIN OF ialv OCCURS 0,
          test1(10) TYPE c,
          test2(10) TYPE c,
          END OF ialv.
    DATA: xfc TYPE slis_fieldcat_alv.
    DATA: ifc  TYPE slis_t_fieldcat_alv.
    DATA: iexcluding TYPE  slis_t_extab.
    DATA: xexcluding LIKE LINE OF iexcluding.
    PARAMETERS: p_hide TYPE c DEFAULT 'X'.
    START-OF-SELECTION.
      REFRESH iexcluding.
    * If the user wants to hide the change layout icon, then add to IEXCUDING
      IF p_hide = 'X'.
        xexcluding-fcode = '&OL0'.
        APPEND xexcluding TO iexcluding.
      ENDIF.
      REFRESH ifc.
      xfc-reptext_ddic = 'Test1'.
      xfc-fieldname    = 'TEST1'.
      xfc-outputlen    = '10'.
      APPEND xfc TO ifc.
      xfc-reptext_ddic = 'Test2'.
      xfc-fieldname    = 'TEST2'.
      xfc-outputlen    = '10'.
      APPEND xfc TO ifc.
    * Call ABAP List Viewer (ALV)
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_excluding = iexcluding
          it_fieldcat  = ifc
        TABLES
          t_outtab     = ialv.
    Regards,
    Rich Heilman

  • How to add download button to safari toolbar?

    Does anybody know how to add the download button to safari toolbar?

    Here are the steps you've been given in picture form:
    Do View menu > Customize ToolBar:
    Doing so brings up this:
    Find the Downloads icon (in the second row in the image) and drag it to the toolbar.

  • How do I add buttons to the toolbar in Reader?

    En Adobe Reader, ¿Como puedo agregar botones a la barra de herramientas? Ya que pierdo mucho tiempo utilizando el botón derecho del mause y buscar los botones en las ventanas emergentes.
    Muchas gracias

    Hi richarddaniel1111,
    To add buttons to the toolbar, do this:
    Choose View > Show/Hide > Toolbar items.
    Choose an option from the submenu (File, Edit, Comment, and so on).
    Choose the tool that you want to add to the toolbar.
    Hope that helps!
    Best,
    Sara

  • How to manage multiple users/devices/Apple IDs on a single computer

    I got my 8 year old an iPad mini for Christmas and I'm about to set it up but I need some advice on using multiple IDs on one computer. I have an iPhone 4s. I assume I will need another Apple ID for the iPad mini so she can use Facetime. How do you manage two devices with different IDs on one computer? Will my movies and music be available for the iPad mini ID? What happens when I plug the iPad into my computer? Do my iPhone apps on my account disappear? Do I need to log out of my iTunes store account? Is their a danger in mixing the two accounts? I was told to be careful if you plug another iPhone into your computer because it can wipe your phone and replace it with another users info if you don't log out/in correctly. It's very confusing so if anyone could give me some advice on how to set this up and manage two IDs and devices on one computer it would be helpful. Thanks:)

    This should be of some help.
    How to use multiple iPhone, iPad, or iPod devices with one computer
    Your daughter is too young to have an Apple ID because the minimum age is 13 years old. You can use her email address for FaceTime and Messages. You add the address as the contact address when you activate both of those apps. But both apps will still have to be tied to your Apple ID.
    I was managing 5 different devices with one iTunes library and all devices had their own unique content on them. It is not that difficult to manage.
    there is lots and lots of information out there on how to do this. Check some of these out for more information.
    https://www.google.com/search?q=managing%20multiple%20devices%20with%20one%20iTu nes%20library
    This will help with FaceTime and Messages.
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • How to Deactivate the Button in Application Toolbar

    Dear ABAPers,
                 I would like to deactivate the Release button in CO01 Transaction.How to do this.Please Help me to solve this problem.
    Thanks & Regards,
    Ashok.

    Hi,
    You can do it 2 ways,
    One is
    Code a Function code for the button in the Application toolbar that you want to disable.
    For example, I am trying to disable the SAVE button on the Application toolbar. The Function Code that I have coded is 'SAVE'.
    module STATUS_0100 output.
         APPEND 'SAVE' TO T_PFSTATUS.
      SET PF-STATUS 'STATUS' EXCLUDING T_PFSTATUS.
    endmodule.                 " STATUS_0100  OUTPUT
    The second way is to create a transaction variant using SHD0
    Give the Transaction code(ZTRAN) for which you want to create a variant -> name of some variant (ZVAR) -> create -> takes you to your transaction -> enter -> Menu Functions -> Double click on the button that you want to deactivate -> it turns yellow -> Click on Exit and Save -> Save and go back -> You can see a screen variant created (ZVAR_0100)
    Now Goto -> Create variant transaction -> Give your transaction variant name (ZVAR) -> Select Transaction with variant -> Takes you to SE93 transaction -> The transaction variant name appears -> save
    Now your new transaction is ZVAR -> Execute it and you will find the button deactivated
    Check this for verifications
    [http://help.sap.com/saphelp_nw70/helpdata/EN/43/132f9803d76f40e10000000a422035/content.htm]

Maybe you are looking for

  • Basic excise duty calculated in duty free deemed export

    Hi Experts, We are facing an issue where system calculates basic excise duty in case of deemed export(duty free) . In some invoices it calculates basic excise duty though it should not calculate as it is duty free. Our scenario is like this:- At sale

  • HT6114 Can't install OS X 10.9.2 Mavericks update

    I need to install an OS X Mavericks 10.9.2 update on my new MacBook Pro. It took almost 24 hours and then, with just a couple of hours to go, it said "An error has occurred. Didn't get a response from the Apple Software Update Server when downloading

  • IMac 600mhz will not sleep, nor allow dbl-click open

    I've got a stubborn little slot-loading iMac 600mhz here, running OS 9.2.1. It arrived from my friend with what seemed to be a dead PRAM battery and these two issues: 1. it will not go to sleep automatically, no matter how the energy saver control pa

  • How to remove values data points from Apex3 Flash Chart

    Hi I am using a Apex 3.2 and I have to put Flash Charts in my application. But since the charts have are smaller in size, I do not want to have the data points coming up in the chart. I have planned to show them using hints. But unfortunately, I am n

  • Question mark in folder

    I have question mark in a folder when i turn on my computer this morning. It was still fine last night. I tried few of what others people do on website but it doesnt work. Can anyway I van fix that?