Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Add a Button on te selection screen

Former Member
0 Likes
454

Hi

I want to add on button on the selection screen of a report besides the Execute(F8) button.

This button would give the no. of entries in a report as a pop-up as it does in se16 (Number of Entries).

Ho do I do this?

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
419

Hi

Check this link

Pushbuttons in the Application Toolbar

Regards and i do need some points plz

Nishant

Read only

0 Likes
419

o the link.....

Hi,

http://www.sapdevelopment.co.uk/reporting/selscr/buthome.htm

Hope this helps.

Reward if helpful.

Read only

Former Member
0 Likes
419

Hope this helps


SELECTION-SCREEN PUSHBUTTON 45(40) pb_1 USER-COMMAND pb01.


INITIALIZATION.
  pb_1 = 'Text on Button'.


*---------------------------------------------------- Push Button
AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
    WHEN 'PB01'.
      dow1 = sy-fdayw.    " today's day of week
      today = p1end.
      PERFORM get_dow         USING p1end dow1.
      PERFORM force_to_friday USING p1end dow1.
      WHILE p1end+4(2) NE today+4(2).
        IF p1end+4(2) GT today+4(2).
          p1end = p1end - 7.
        ELSE.
          p1end = p1end + 7.
        ENDIF.
      ENDWHILE.
      PERFORM set_dates_for_current_month.
      begin_of_period = p1start - 1.
    WHEN 'PB02'.
      dow1 = sy-fdayw.    " today's day of week
      today = p6end.
      PERFORM get_dow         USING p6end dow1.
      PERFORM force_to_friday USING p6end dow1.
      PERFORM set_dates_for_given_date.
      begin_of_period = p1start - 1.
  ENDCASE.