Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2008 at 11:17 AM

    HI

    In the PBO of your program you need to set PF status for additional buttons.

    Its like

    SET PF-STATUS 'STATUS-NAME'.

    double click on name and add additional buttons.

    Aditya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2008 at 11:40 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2008 at 10:59 AM

    hiii

    In the PBO of your program you need to set PF status for additional buttons.

    Its like

    SET PF-STATUS 'STATUS-xxxxx'.

    double click on name and add additional buttons

    reward if useful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2008 at 08:54 AM

    hi,

    In the PBO of your program set the pf status SET PF-STATUS 'STATUS100'.

    double click on the STATUS100 ,another window will be opened for maintaining status of the program.

    there you will have 3 options:

    1.Menu bar

    2.Application tool Bar

    3.Function keys.

    1.Menu bar is the one where u find file,edit etc .In the menu bar u can define ur desired menu.system and help are default in the menu bar.you can add any number of menu and sub menus to it.

    2.In the application tool bar,u can create any buttons for exit or back.just define the button and write the functionality of the button in the PAI of your program.

    3.The function keys are presnet for every output window(in disable mode),if you define the functionality,those keys will be activated.u have to write code for that in the PAI of your program.

    reward if helpful

    regards,

    sravanthi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2008 at 04:17 PM

    Hi Thambe,

    Go to the PBO module of your program and type the statement SET PF-STATUS 'XXXXX'.

    This will set the PF STATUS for the screen.In place of XXXX,you can give your name(Only UPPER CASE has to be used for the name) for the PF STATUS.

    Double click on that name and another window(Maintain PF Status window) would open .

    There you will have Menu Bar,Application Tool bar and Function Keys.

    Menu bar has SYSTEM ad HELP buttons as default and they cannot be hidden.You can add your own menu to it.This is also used to add a sub menu.You can add more than one sub menu.

    Application tool bar is for frequently used functions. Standard toolbar which is the same on every SAP screen contains a set of icons which are assigned to fixed function keys

    The user interface of a program is made up of its title and statuses and must be regenerated every time something new is added

    The function keys are used to add more keys to the tool bar.You have to write the code for these keys in the PAI modules of the screen.

    If the PF Status is not set for that screen,then the previous screen PF status is used.

    Reward if helpfull.

    Thanks,

    Kashyap Ivaturi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.