Adding a button to standard  bar

hi all,
iwant to add buttons to the tool bar can anybody plz help me out.
THANKS
ANUPAMA
Edited by: deep kammula on Apr 14, 2008 3:43 PM

In that case you better make use of the ALV grids, see the example below...
Example report(type - ALV(ABAP list viewer))
REPORT Z_ALV_SIMPLE_EXAMPLE_WITH_ITAB .
*Simple example to use ALV and to define the ALV data in an internal
*table
*data definition
tables:
marav. "Table MARA and table MAKT
Data to be displayed in ALV
Using the following syntax, REUSE_ALV_FIELDCATALOG_MERGE can auto-
matically determine the fieldstructure from this source program
Data:
begin of imat occurs 100,
matnr like marav-matnr, "Material number
maktx like marav-maktx, "Material short text
matkl like marav-matkl, "Material group (so you can test to make
                        " intermediate sums)
ntgew like marav-ntgew, "Net weight, numeric field (so you can test to
                        "make sums)
gewei like marav-gewei, "weight unit (just to be complete)
end of imat.
Other data needed
field to store report name
data i_repid like sy-repid.
field to check table length
data i_lines like sy-tabix.
Data for ALV display
TYPE-POOLS: SLIS.
data int_fcat type SLIS_T_FIELDCAT_ALV.
select-options:
s_matnr for marav-matnr matchcode object MAT1.
start-of-selection.
read data into table imat
  select * from marav
  into corresponding fields of table imat
  where
  matnr in s_matnr.
Check if material was found
  clear i_lines.
  describe table imat lines i_lines.
  if i_lines lt 1.
  Using hardcoded write here for easy upload
    write: /
    'No materials found.'.
    exit.
  endif.
end-of-selection.
To use ALV, we need a DDIC-structure or a thing called Fieldcatalogue.
The fieldcatalouge can be generated by FUNCTION
'REUSE_ALV_FIELDCATALOG_MERGE' from an internal table from any
report source, including this report.
Store report name
  i_repid = sy-repid.
Create Fieldcatalogue from internal table
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
            I_PROGRAM_NAME         = i_repid
            I_INTERNAL_TABNAME     = 'IMAT'  "capital letters!
            I_INCLNAME             = i_repid
       CHANGING
            CT_FIELDCAT            = int_fcat
       EXCEPTIONS
            INCONSISTENT_INTERFACE = 1
            PROGRAM_ERROR          = 2
            OTHERS                 = 3.
*explanations:
   I_PROGRAM_NAME is the program which calls this function
   I_INTERNAL_TABNAME is the name of the internal table which you want
                      to display in ALV
   I_INCLNAME is the ABAP-source where the internal table is defined
              (DATA....)
     CT_FIELDCAT contains the Fieldcatalouge that we need later for
     ALV display
  IF SY-SUBRC <> 0.
    write: /
    'Returncode',
    sy-subrc,
    'from FUNCTION REUSE_ALV_FIELDCATALOG_MERGE'.
  ENDIF.
*This was the fieldcatlogue
Call for ALV list display
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
            I_CALLBACK_PROGRAM = i_repid
            IT_FIELDCAT        = int_fcat
       TABLES
            T_OUTTAB           = imat
       EXCEPTIONS
            PROGRAM_ERROR      = 1
            OTHERS             = 2.
*explanations:
   I_CALLBACK_PROGRAM is the program which calls this function
   IT_FIELDCAT (just made by REUSE_ALV_FIELDCATALOG_MERGE) contains
                now the data definition needed for display
   I_SAVE allows the user to save his own layouts
     T_OUTTAB contains the data to be displayed in ALV
  IF SY-SUBRC <> 0.
    write: /
    'Returncode',
    sy-subrc,
    'from FUNCTION REUSE_ALV_LIST_DISPLAY'.
  ENDIF.

Similar Messages

  • Adding push buttons in standard ALV

    Hi ,
    Is there any possiblity to add custom push buttons to standard ALV in Webdynpro for ABAP.
    If so, please provide me the solution.
    Thanks in Advance.
    cheers,
    sravan.

    I got the answer .

  • Adding new button to Standard Page and Launching CP when clicked

    Hi,
    I have a requirement to add a new button to a standard OAF page and when it is clicked, I need to launch a Concurrent Program. Can you please let me know any links/pointers/documents where I can get the details as how this can be accomplished.
    TIA.

    anyone?

  • Adding a button to standard OWL

    Hello Gurus,
    How do we add a custom button to the Accounts OWL and act on click of it?
    I see that the UI is not extensible like that.
    The requirement is to select a number of customers from the list and click the button. The button click should call an action on the account business object.
    Can we add an embedded component below the list, add a button and on click of that, call action on the BO. How do we get the selected rows (customer IDs)?
    Any suggestions are appreciated.

    Hi Mahesh,
    the Account-BO is not an ESF2-Object. Therefore you won't have the possibility to add an action on Account-BO. The action-feature is only available on ESF2-Objects (like Service Request, Activity etc.). -> a Button in an EC would be an option, BUT I am not sure, if it is even possible to get the selected rows from the standard.
    A more heavy aproach would be to build your own Account OWL and show this instead of the standard OWL. This would have much more dev. effort, but provides you all freedom for custom action. But you would need to rebuild all the standard functionality (I guess you cannot rebuild everything there from PDI).
    Best regards
    Tom

  • Adding custom button in standard toolbar in ALV

    Hello All,
    I need to add a customized button called "Copy" on ALV. The following code is giving me few standard buttons like "Append" "Delete" "Insert" etc. So, how can I add "Copy" button besides one of these standard buttons.
    data: l_value type ref to cl_salv_wd_config_table.
    data: lr_table_settings type ref to if_salv_wd_table_settings.
    lr_table_settings ?= l_value.
    lr_table_settings->set_read_only( abap_false ).
    Appreciate help.
    Thks & Rgds,
    Hemal

    Create One method
    And inside that method write the below code
    (Here i  am creating delete button you can create any name button you want just replace the name
      DATA lV_EDITBTN TYPE REF TO cl_salv_wd_fe_button.
      DATA lr_buttonui TYPE REF TO cl_salv_wd_fe_button.
      CREATE OBJECT lr_buttonui.
      lr_buttonui->set_text( 'Details' ).
      lr_buttonui->set_tooltip(
      'Shows Detail Screen as per the View selected' ).
    Generating Function Object for Button.*
      DATA btn_button TYPE REF TO cl_salv_wd_function.
      btn_button = lo_value->if_salv_wd_function_settings~create_function(
                              id = 'DETAILS' ).
      btn_button->set_editor( lr_buttonui ).
      DATA lr_buttonui1 TYPE REF TO cl_salv_wd_fe_button.
    After that create another method  and make it as a event ( it means now it become event )
    select event ON FUNCTION FROM THE LIST
    Inside that event   write
    CASE LV_FCODE.
        WHEN 'DETAILS'.
           wd_this->fire_OP_TODEATILS_plg( ).
    endcase.
    May be it may help

  • Adding interactive buttons in Acrobat X Standard disables the Commenting and markup tools

    Why does adding interactive buttons to PDFs in Acrobat X Standard disable the Commenting and markup tools in the PDFs, but only when they are viewed in the Reader, not when opened in Acrobat?  When the buttons are removed, the Commenting and markup tools are re-enabled in Reader.
    Thank you.

    Which version of Reader are you testing with?

  • Adding button in standard screen

    Hi,
    I need to add a button in va01 t.code(Sales order)..When we click that button means it want to open a customized screen.How to add a customized screen in standard t.code..
    I am new to this exits.Can anyone help me how to do this.

    Hi Mahesh,
    For finding any exit for a standard t-code follow this way,
    1) Goto that screen where you need to add button( here VA01)
    2) Click System->Status
    3) There Double click the 'GUI Status' for that screen.
    In VA01 main screen it is A0. So double click that A0
    4) In the Application toolbar there is one exit for adding a button after the Copy button.
    You can insert your button details and give the Function code. Then in the user exit you can capture that function code and process accordingly.
    Though seems easy do it carefully with modification assistant on.
    Cheers,
    Kothand

  • How to hide buttons on standard FPM tool bar

    Hi,
    I have to hide two buttons on standard FPM tool bar....buttons are price simulation and useractions.
    Technical details are...
    FPM_OIF_COMPONENT and Configname is DPVMS_CC_VD
    When i start configuration and open view : Web Dynpro Built in...
    i can see..
    CNRVIEW
    ....TC MAIN AREA
    ......TOOLBAR TOP
    .......BUTTON CONTAINER
    i can't able to see button names existed here...
    Can anybody guide me how to get button names here ....i want to hide few buttons on button container...
    Thanks,
    Subba

    Hallo Subba,
    You should not be in Webdynpro build in.
    I might be wrong ! i think you have started the wda component configuration and not the FPM application configuration->Component configuration.
    In Se80,Navigate to your application,open the application node, select the application configuration,open it.
    From there select the component and go to component configuration->press display button would lead you to the FPM configuration editor.

  • Creating button in standard tool bar

    Hi gurus,
    I hve to create  button in standard tool bar along with the existing icons and buttons, plz help
    how to suppres the fields other than screen table methods?
    reward asure
    with regards,
    thambe

    hi,
    if u using ALV then go to SE41.
    Give SAPLKKBL as program name and STANDARD_FULLSCREEN as status....
    now click on Copy Status and in that give ur program and status name into To.....
    now in REUSE_ALV_GRID_DISPLAY
    FORM display_list.
      g_f_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = g_f_repid
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_STAT'
          it_fieldcat              = g_t_fieldcat[]
          it_events                = g_t_events[]
        TABLES
          t_outtab                 = g_t_itab
        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.
    ENDFORM. " display_list
    FORM set_stat USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZSTAT' EXCLUDING rt_extab.
    ENDFORM.                    "set_stat
    here my status name is ZSTAT which i gave in SE41...
    and in user_command form...
    FORM user_command USING u_comm LIKE sy-ucomm selfield TYPE slis_selfield.
      CASE u_comm.
        WHEN 'DET'.
        ........ur logic.........
      ENDCASE.
    ENDFORM.                    "user_command
    reward if usefull...

  • Creating buttons on title bar using alv

    hi all good morning,
    can any one help me in making a button on title bar of ALV report. Till now i have used only one function of ALV i,e REUSE_ALV_GRID_DISPLAY. it is showing proper out put but i want to make some action using my own button on the final ALV result displayed like save change etc.

    Hi,
    How to add button to ALV toolbar using REUSE_ALV_LIST_DISPLAY?
    In the program which calls ALV using REUSE_ALV_LIST_DISPLAY,
    I have to add a new button.
    I saw the demo program BCALV_GRID_08, which is written using ABAP-Controls.
    In that example, the button is added using TOOLBAR event of cl_gui_alv_grid.
    Could you help me to implement the same logic using REUSE_ALV_LIST_DISPLAY parameters.
    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 such as sorting/subtotaling etc...
    When you call 'REUSE_ALV_GRID_DISPLAY' make sure you pass it the new status name.
    an example of one of mine:
    call function 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = 'ZSDBOLST_REPORT'
    i_callback_pf_status_set = 'STANDARD' <----
    i_callback_user_command = 'USER_COMMAND'
    i_structure_name = 'I_BOLACT'
    i_grid_title = 'BOL Action Report'(031)
    is_layout = gs_layout
    it_fieldcat = gt_fieldcat[]
    i_save = 'A'
    is_variant = v_variant
    TABLES
    t_outtab = i_bolact
    EXCEPTIONS
    program_error = 1
    others = 2.
    I just tried the same procedure ,but my entire application toolbar disappeared and a lock icon appears next to the application toolbar in my copied pf-status.
    Could you advice what might have gone wrong ?
    As identified with the FM's help you can do the following.
    1). Using SE80 (I think) you can copy a GUI status from one program to another. It mentions which one in the FM's help.
    2). Create a form named like so:
    Code:
    Form Set_pf_status
    Notes: Called by FM REUSE_ALV_GRID_DISPLAY
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'.
    ENDFORM. "Set_pf_status
    In the above case the GUI status copied was named ZSTANDARD and adjusted accordingly, adding and removing the desired buttons. A button was added called '%DELETE'.
    3). Create the following report:
    Code:
    Form User_command
    Notes: Called by FM REUSE_ALV_GRID_DISPLAY
    Detects whether the icon/button for
    'Return Tag Deletion' has been pressed. If it has then
    detect whether any rows have been highlighted and then
    set the delete flag.
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    DATA: li_count TYPE I.
    IF r_ucomm EQ '%DELETE'.
    LOOP AT %g00 WHERE mark EQ 'X'.
    ADD 1 TO li_count.
    ENDLOOP.
    IF li_count GT 0.
    gc_delete_flag = 'X'.
    r_ucomm = '&F03'. "Back arraow
    ELSE.
    MESSAGE W000 WITH 'Please highlight the rows to be deleted!'.
    ENDIF.
    ENDIF.
    ENDFORM. "User_command
    As I've added an extra button to indicate which records should be deleted I need to identify a form to be called to process when this button is chosen.
    Then when you call the ALV function you to specify the following extra details:
    Code:
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting i_callback_program = gc_repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    i_grid_title = lc_grid_title
    is_layout = lc_layout
    it_fieldcat = gt_fieldcat
    it_sort = sort
    i_save = l_save
    is_reprep_id = l_bbs_id
    is_variant = l_variant
    tables t_outtab = %g00
    exceptions program_error = 1
    others = 2.
    The parameters in capitals are the extra ones that need to be added.
    Regards,
    Satish

  • How to create stacked bar and standard bar on same graph

    Can OBIEE can both Stacked and Standard bar graph on the same analysis by using Line-Bar graph type? For example, I have four measure: Target revenue, Revenue, Billed Quantity, and Target Quantity. I would like to create an analysis that includes all these four measure. On the same graph, I would like to use Stacked subtype for Target revenue and Revenue, use standard subtype for Billed quantity and use line for Target quantity. I tried, but could not find any way to put stacked subtype and standard subtype on the same graph. Do you know if this feature is available from OBIEE?

    I tried to do this and was a bit successful. I used the paint catalog. Created a a request with 6 columns assuming units and dollars be stacked and Year ago units to be a line:
    Brand Units Dollars 0 Year_Ago_units 1
    Added a new request (Combined with similar request and selected paint subject area): Now in this request my columns are:
    Brand 0 0 Year_Ago_Dollars Year_Ago_units 2
    Assuming Year_Ago_Dollars be standard in your case.
    Created a chart view with brand and 1 on x axis and Units, Dollars, Year_Ago_Dollars on y axis and line as Year_Ago_units.
    Now able to see what I am expecting. May be you need to tweak a bit more according to your requirement.
    Let me know if this is of any help!
    Thanks.
    Edited by: Venkata on Sep 30, 2010 12:11 PM

  • How to Print a interactive report without  action button and search bar

    Hello every one....
    I am working on printing an interactive report. If there are 20 columns in that report i need to select some columns for printing. For this purpose i used actions button which is in the search bar of the interactive report. But i do not want to get that Actions button and search bar to get printed in the printing page. Can any one give a solution to sort out my problem
    Thanks
    Manoj.

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you have updated with your profile with a real handle instead of "886412".
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    I am working on printing an interactive report. If there are 20 columns in that report i need to select some columns for printing. For this purpose i used actions button which is in the search bar of the interactive report. But i do not want to get that Actions button and search bar to get printed in the printing page. Can any one give a solution to sort out my problemSee +{message:id=2475831}+
    Always search the forum thoroughly before posting a question: 98% of questions (like this one) have been answered before.

  • Adding a button to results page of a test in Captivate 6...

    I'm working in Captivate 6 and I don't seem to be able to add a button to the results page of a test.  Adding a button is not an option.  I need to insert Javascript in the button in order to get back to our Learning Management system.  Please help!

    Welcome to the forum,
    Have a look at: http://blog.lilybiri.com/want-a-button-on-question-slide-in-captivate It also explores shape buttons on the score slide.
    Lilybiri

  • Adding a Button to a Form

    I am brand-new to Oracle Forms, but have experience in VB and PL/SQL. Anyway, I have created a sample form based of a simple view. It will run client-server and I can also run it (recompiled) via Forms Server on my Solaris-based 9iAS Apps Server.
    When I go to add a simple button to the form, I see 12 identical buttons stacked up and acting as 1 large button. Same thing for any inerface item. What is going on?
    Using Forms 6i by the way.

    Check the number of records displayed in the datablock that you're adding the button to. It's probably set to 12.

  • Help!!! How to implement a special useful button in tool bar?

    How to implement a special useful button in tool bar, when the button is clicked, then a menu shows under the button, just like the Internet Explorer's back button and forward button, there is a black arrow at the two buttons right, when click the black arrow, a menu shows under the back button or forward button, how to implement this in java?
    Please help!!!
    Thanks!!!

    Like an enhanced JComboBox?
    ;o)
    V.V.

Maybe you are looking for

  • Can't update my ipod touch because of error code 42408

    goes through the iTunes sync to point of sync start then error code -42408 appears and all stops. cannot sync please help!

  • Tax Calulator applet again pls help urgent

    why isn't it possible to pass a string and a double into GetResult below, i get a compilation error and right now i dunno how to proceed. GetRelief is supposed to calculate "relief" from textfields i/p and GetResult is suppose to calculate the "resul

  • OIM 11g - Default role does not exists

    Hey, the default role IDENTITY ORGANIZATION ADMINISTRATORS does not exists in my OIM (11.1.1.5.4) I need this role to assign an user privileges to create and manage organization. Any idea?

  • Premiere Pro CS6 not locating media?

    For the last couple of days, Premiere Pro on my laptop (15" Apple Retina MacBook Pro) has been having trouble locating media. When I open a project, the "Locating Media" diologe shows the progress bar start moving, then stop and not move again. When

  • 3rd party email will not work

    I have a 3rd party software that emails users on request. When we were using Office 2003 we did not have a problem. I am not sure that the issue is with the version of office, but I do know that there are many more security items in the newer version