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

Similar Messages

  • Pushbuttons on application toolbar of basic list 1

    Hi all,
    I want to do BDC for sales order creation  but before that my user want to validate item data based on some conditions (customised in system using user exit : idea is to avoid occureence of user exit by validating it on internal table level )
      So I will display the data in the list format and user will check it...and then execute BDC...for that I want some pushbuttons on application toolbar of basic list 1.....(not on selection screen)
    I am thinking of set pf-status...but how and where to set it?
    Any idea please........
    Thanks....

    Hi,
      You can place SET PF-STATUS just before the display list code.
    Regards,
    Sravanthi

  • Adding pushbutton in application toolbar of HR programs  using LDB

    Hi all!
    I have a requirement to add a pushbutton in the selection screen application tool bar for the HR programs when using LDB PNP.
    Normally when we are using LDB in our program we will get a extra button provided by SAP after the execyte button. When we are creating a new button for this by using the table fields sscrfields with the function key as 2.
    But, the statement "SELECTION SCREEN FUNCTION KEY 1" is not showing any pushbutton in the application toolbar.
    The same question is already posted in SDN but no reply.
    Please provide your suggestion.
    Thanks,
    Rajan U

    Hi all!
    I have a requirement to add a pushbutton in the selection screen application tool bar for the HR programs when using LDB PNP.
    Normally when we are using LDB in our program we will get a extra button provided by SAP after the execyte button. When we are creating a new button for this by using the table fields sscrfields with the function key as 2.
    But, the statement "SELECTION SCREEN FUNCTION KEY 1" is not showing any pushbutton in the application toolbar.
    The same question is already posted in SDN but no reply.
    Please provide your suggestion.
    Ive found this keyword: SELECTION-SCREEN FUNCTION KEY n [ldb_additions].  Will this be useful??
    Thanks,
    Rajan U

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

  • Pushbuttons on application toolbar in selection screen

    Hi,
    I have created 2 pushbuttons in the application tool bar of selection screen using pf-status.But the other icons in the standard toolbar were grayed out because of this.can anyone tell me why this is happening.

    Hi
    you need to define those other elements of the menubar in the PF-STATUS for example for back write -
    > BACK
    for cancel----->CANCEL for save
    use these predefined function codes
    PRI
    List
    CTRL-P
    Print displayed list
    %EX
    List
    Shift-F3
    Exit processing
    PICK
    Edit
    F2
    Event AT LINE-SELECTION
    RW
    Edit
    F12 , ESC
    Cancel processing
    %SC
    Edit
    CTRL-F
    Find
    %SC+
    Edit
    CTRL-G
    Find next
    BACK
    Goto
    F3
    Back one level
    P--
    CTRL-PgUp
    Scroll to first window page
    P-
    PgUp
    Scroll to previous window page
    P+
    PgDn
    Scroll to next window page
    P++
    Ctrl-PgDn
    Scroll to last window page
    Regards
    Pavan
    Edited by: Pavan Bhamidipati on Jul 11, 2008 6:40 AM

  • 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

  • Changing of Application ToolBar pushbutton  base on the tab.

    Hi,
    I have a tabstrip with 2 tab. When the user come to the first screen ( 1st tab) the application toolbar will show 3 pushbutton, when the user select 2nd tab, the application toolbar must change to 2 pushbutton. 
    When the user click back on the 1st tab, it will show the 3 pushbutton again in the application toolbar. How to achieve that?
    Regards,
    Rayden

    Hi Rayden ,
    I am giving you an idea, just try this, in the mean time I will prepare a code for you and 'll post. What I understood is you want to display 3 Buttons in the application tool bar for the Tab 1 and 2 for the Tab 2.
    Just declare an internal table with type sy-ucomm.
    <b>Data:itab type standard table of sy-ucomm.</b>
    Now you 'll be having one screen say 1001 in which two subscreens 0101 and 0102. For the screen 1001 create all the 5 (3+2) buttons.
    Say you have a button called SAVE and function code is SAVE also.
    <b>Append save to itab.</b>
    Now when user will select the tab1 check the ok_code and in the PBO section for the screen 1001 you have to set the PF status as below.
    In that case suppose you don't want to display the SAVE button so what you have to do is
    <b>set pf-status 'PF_1001' excluding itab.</b>
    So you have to just write a logic to handle this scenario with tab2 also.
    Hope this would help you.
    Cheers
    Somnath

  • How many pushbuttons u can create in application toolbar in selection scree

    Hi
    How many pushbuttons u can create in application toolbar in selection screen? 
    Thank You

    Hi,
    Use SET PF-STATUS 'ZABC'.
    Double click on it.
    It will display Application toolbar. Create the buttons.
    I think the limitation is bcz of the LABEL of button, if you create buttons with a Single TEXT, then you would be able to create many buttons, including toggle button. The Toggle button would switch the buttons.
    i.e say initially 10 buttons are displayed along with toggle button. You click the toggle button , then remaining 10 buttons are displayed.
    Best regards,
    Prashant

  • How to call report by click application toolbar button?

    I need to know the way to call a report by click a button in application toolbar?
    BR,
    Ali
    Moderator message: next time, please (re)search yourself instead of asking basic questions.
    Edited by: Thomas Zloch on Aug 31, 2010 11:44 AM

    Hi Ali,
    Selection-screen function key is used to add push buttons on application tool bar.
    Syntax:
    selection-screen functuin key<num>
    Where num is ranging from 1 to 5.
    whenever application toolbat components are added using above statement,tables are defined in the structure "SSCRFIELDS" as "Functxt_01","Functxt_02","Functxt_03","Functxt_04","Functxt_05" for the related function key numbers.
    eg:
    Tables SSCRFIELDS.
    Selection-Screen pushbutton/10(10 lb1 user-command pb1.
    Selectiong-Screen Function key1.
    Selectiong-Screen Function key2.
    Selectiong-Screen Function key3.
    Selectiong-Screen Function key4.
    Selectiong-Screen Function key5.
    Initialization.
    sscrfields-Functxt_01 = 'first".
    sscrfields-Functxt_01 = 'fifth".
    At Selection-Screen.
    case sy-ucomm.
    When 'first'.
    Sumbit zreport.
    endcase.
    Hope it solves your problem.
    Regards,
    Amarnath S

  • Disable selection screen application toolbar button

    Hi All,
    Could you please let me know how to hide or disable application toolbar pushbuttons in the selection screen default screen 1000??
    Thanks & regards,
    Santhosh

    Hi,
    Try this way.
    "Create table for function codes
    DATA: it_exclude TYPE TABLE OF sy-ucomm.
    PARAMETERS: r1 RADIOBUTTON GROUP gr1 USER-COMMAND uco1,
                r2 RADIOBUTTON GROUP gr1.
    INITIALIZATION.
      "Create two buttons with function codes FCODE1 and FCODE2.
      SET PF-STATUS 'MY_GUI'.
    AT SELECTION-SCREEN OUTPUT.
      IF r1 = 'X'.
        APPEND 'FCODE1' TO it_exclude.
        CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
          EXPORTING
            p_status  = 'MY_GUI'
          TABLES
            p_exclude = it_exclude.
      ELSE.
        REFRESH it_exclude.
      ENDIF.
    Thanks
    Venkat.O

  • Creating a push button in the application toolbar-----vvvv urgent...

    Hi,
    I have already created in the program.
    The addl. requirement is to create a pushbutton after displaying the output .
    Can anybody tell the procedure on how to create a pushbutton in the application toolbar.
    Plz send the relevant code also to download the output in to the excel sheet.
    Regards,
    Sree
    Edited by: sree on Feb 18, 2008 10:09 AM
    Edited by: sree on Feb 18, 2008 10:13 AM

    Sree,
      If you are using ALV report:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
             EXPORTING
                  i_callback_program       = ws_repid
                  i_callback_pf_status_set = 'GUI_STAT1'
                  i_callback_user_command  = 'STAT'
                  is_layout                = gs_layout
                  it_fieldcat              = i_fieldcat[]
                  it_sort                  = wa_sort1
             TABLES
                  t_outtab                 = i_zaw_pol_plan.
    *--Setting Status of output screen
    FORM gui_stat1 USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'STANDARD1' EXCLUDING rt_extab.
      SET TITLEBAR text-005.
    ENDFORM.
    Double click on status 'STANDARD1'.
    Expand the Application toolbar-->press ctrl+f1 for change mode -
    >add your  buutton name --> double click on name add text name button icon  --> save it.
    In classiccal report also Add set pf status
    same like above

  • Module-Pool application toolbar

    Respected SAP guru,
      I like to know how Application Toolbar button should be disabled or enabled in Module-Pool Programming plz, explain with example.
    Sincerly,
    sandeep

    As mentioned in the Thread, use the Syntax
    SET Pf-STATUS 'STATUS' excluding itab
    Example:
    data: BEGIN OF MTAB_UCOMM_EXCLUDE OCCURS 0,
            VALUE(4) TYPE C,
          END OF MTAB_UCOMM.
    AT USER-COMMAND.
      PERFORM SET_PF_STATUS. ...
    FORM SET_PF_STATUS *
    Set up the menus/buttons for the report *
    FORM SET_PF_STATUS.
      CLEAR MTAB_UCOMM_EXCLUDE.
      REFRESH MTAB_UCOMM_EXCLUDE.
      CASE MI_CURRENT_PAGE.
        WHEN 1.
    *-- Do not want any pushbuttons that point to items to the right
    *-- since the list is at its rightmost position
        MTAB_UCOMM_EXCLUDE-UCOMM = 'FRST'.
        APPEND MTAB_UCOMM_EXCLUDE.
        MTAB_UCOMM_EXCLUDE-UCOMM = 'PREV'.
        APPEND MTAB_UCOMM_EXCLUDE.
      WHEN MI_TOTAL_PAGES.
    *-- Do not want any pushbuttons that point to items to the left
    *-- since the list is at its leftmost position
        MTAB_UCOMM_EXCLUDE-UCOMM = 'LAST'.
        APPEND MTAB_UCOMM_EXCLUDE.
        MTAB_UCOMM_EXCLUDE-UCOMM = 'NEXT'.
        APPEND MTAB_UCOMM_EXCLUDE.
      WHEN OTHERS.
    *-- Want all pushbuttons to appear on any other page
      ENDCASE.
      SET PF-STATUS 'MAIN' EXCLUDING MTAB_UCOMM_EXCLUDE.
    ENDFORM. " SET_PF_STATUS
    Hope this helps
    Vinodh Balakrishnan

  • Status without application toolbar?

    Hi all. Is anybody know if it's possible to set status without application toolbar? I meen if I use status without any buttons on application toolbar, there is a blank line on the screen in place of it. How can i remove it?

    If you are using module pool then you can use a opup screen or subscreen for this purpose.
    For creating buttons on the selection screen without using application toolbar,you can have a look at the following code :
    REPORT demo_sel_screen_pushbutton.
    TABLES sscrfields.
    DATA flag(1) TYPE c.
    SELECTION-SCREEN:
      BEGIN OF SCREEN 500 AS WINDOW TITLE tit,
        BEGIN OF LINE,
          PUSHBUTTON 2(10) but1 USER-COMMAND cli1,
          PUSHBUTTON 12(10) text-020 USER-COMMAND cli2,
        END OF LINE,
        BEGIN OF LINE,
          PUSHBUTTON 2(10) but3 USER-COMMAND cli3,
          PUSHBUTTON 12(10) text-040 USER-COMMAND cli4,
        END OF LINE,
      END OF SCREEN 500.
    AT SELECTION-SCREEN.
      MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.
      CASE sscrfields-ucomm.
        WHEN 'CLI1'.
          flag = '1'.
        WHEN 'CLI2'.
          flag = '2'.
        WHEN 'CLI3'.
          flag = '3'.
        WHEN 'CLI4'.
          flag = '4'.
      ENDCASE.
    START-OF-SELECTION.
      tit  = 'Four Buttons'.
      but1 = 'Button 1'.
      but3 = 'Button 3'.
      CALL SELECTION-SCREEN 500 STARTING AT 10 10.
      CASE flag.
        WHEN '1'.
          WRITE / 'Button 1 was clicked'.
        WHEN '2'.
          WRITE / 'Button 2 was clicked'.
        WHEN '3'.
          WRITE / 'Button 3 was clicked'.
        WHEN '4'.
          WRITE / 'Button 4 was clicked'.
        WHEN OTHERS.
          WRITE / 'No Button was clicked'.
      ENDCASE.

  • Menu bar and application toolbar

    is there a way to change item text on menu bar and application toolbar  eg in business partner overview(T-Code fmcacov) i want to change text 'Business Partner" to "tax Payer" on both menu bar an application toolbar. i have tried the norma way of going to change the screen but when i am on the GUI status its not going to change mode even sfter entering the access key

    Hi ,
    Open the program and click on GOTO=>ATTRIBUTES.
    Change the text to the heading which you want.
    SAVE & ACTIVATE.
    Regarding opening in change mode, the steps you have carried out are correct.
    You need to comment the existing gui-status by placing cursor on that line & click delete.
    Then click on INsert button and add new gui-status.
    Best regards,
    Prashant

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

Maybe you are looking for

  • Error 2 when installing Fireworks CS4 Trial?

    Hey, I keep getting the Error: Error 2 when ever I try to install Fireworks CS4 Trial, downloaded from Adobe. Installing: Adobe Fireworks CS4 Adobe Exstention Manager CS4 After its pretty much done, it say's finished but with Error's, hit view info,

  • I i want to run many-to-one replication scenario

    Hi, i want to run many-to-one replication scenario and for that i have created two tables and inserted values on source db and one table on target db in which i want consolidated data from those two tables. Below are the table details, Source DB, CRE

  • Windows Authentication with jCIFS

    Hello, I am new to jCIFS and willing to know as to how I can use windows authentication using jCIFS or any other tool/framework. I ran through the link - [http://jcifs.samba.org/src/docs/ntlmhttpauth.html] and developed a small web application (deplo

  • Annoyance:  Downloading Recently Purchased Music

    On my shiny new iPhone 6 with IOS 8, i want to only download music that I recently purchased manually.  So I open iTunes on the phone, tap More->Purchases->Recent Purchases...Beautiful. I start selecting which songs to download from the cloud, and BA

  • Airport Express does not see SSID.

    Odd problem.  I am trying to configure an Airport Express to stream music.  I am using a D-Link DGL-4500 wireless router on a mixed 802.11n and 802.11g network.  SSID is set to broadcast.  Security is WPA2-Personal.  Network has worked fine for years