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

how we can add the 2 buttons on the alv out screen.

I have a requirement, i want to add two buttons on the application bar on the ALV report out.

with the use of grid functional module.

for example: i want to buttons details and balance on the ALV output screen. if i click on detail it will display the details and if i click on balance it will show the balance data in report.

and if i use the back and exit that time it will come out the selection screen.

please send me any exiting report its very urgent.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 06:07 AM

    go to SE41(menu painter)

    and create your menu

    click STATUS

    then write

    program: saplslvc_fullscreen

    status: STANDARD_FULLSCREEN

    and then give your program and status.

    then in user command in eventcatalog set pf-status 'YOUR STATUS'

    there in application tool bar you can create your menu by just writing the name at the correct place and double clicking it.

    dont forget to activate your menu.

    your query is resolved.

    <REMOVED BY MODERATOR>

    kushagra

    Edited by: Alvaro Tejada Galindo on Jul 25, 2008 10:32 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 06:07 AM

    Hi,

    Use LEAVE TO SCREEN <selection screen screen number> If u want to come back to selection screen

    Use LEAVE PROGRAM to come out of the program

    <REMOVED BY MODERATOR>

    Regards

    Raj

    Edited by: Alvaro Tejada Galindo on Jul 25, 2008 10:32 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 06:10 AM

    Hi Vipin,

    Just go thru report BCALV_TEST_GRID_LAYOUT.

    U have to use following parameters of REUSE_ALV_GRID_DISPLAY

    i_callback_program

    i_callback_pf_status_set

    i_callback_user_command

    Regards,

    Vaibhav Modi.

    <REMOVED BY MODERATOR>

    Edited by: Alvaro Tejada Galindo on Jul 25, 2008 10:33 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 06:11 AM

    Hi frnd,

    To add additional button in the application toolbar,

    First copy the std toolbar from std sap program,

    In se 41 give

    program name = SAPLKKBL

    copy staus.

    • Use own status (Copy STANDARD from SAPLKKBL)

    SET PF-STATUS 'STANDARD_NEW' .(in this new user defined status add ur buttons)

    steps:

    &----


    • then in the ''REUSE_ALV_GRID_DISPLAY' function module

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    i_callback_program = gv_repid

    i_callback_user_command = EVENT_USER_COMMAND

    i_callback_pf_status_set = EVENT_SET_STATUS_01

    i_grid_title = gc_tit

    is_layout = gt_layout

    it_fieldcat = gt_fieldcat[]

    TABLES

    t_outtab = gt_lfa1

    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 event_set_status_01 USING lt_excl TYPE slis_t_extab.

    • Use own status (Copy STANDARD from SAPLKKBL)

    SET PF-STATUS 'STANDARD' .

    ENDFORM. "EVENT_SET_STATUS_01

    &----


    *& Form Name: event_user_command *

    *& Form Desc: For Handling USER_COMMAND *

    &----


    FORM event_user_command USING

    if_ucomm TYPE sy-ucomm

    is_selfield TYPE slis_selfield.

    CASE if_ucomm.

    WHEN 'PRINT'.

    endcase.

    endform

    &----


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 11, 2008 at 06:33 AM

    hi,

    go to se41 transaction,give the program name SAPLSALV

    and status name 'standard' .

    go to change mode

    then click on application toolbar,and add your button as required

    then define in your zp

    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.