‎2008 Mar 17 10:46 AM
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
‎2008 Mar 17 10:48 AM
Hi
Check this link
Pushbuttons in the Application Toolbar
Regards and i do need some points plz
Nishant
‎2008 Mar 17 10:49 AM
o the link.....
Hi,
http://www.sapdevelopment.co.uk/reporting/selscr/buthome.htm
Hope this helps.
Reward if helpful.
‎2008 Mar 17 10:49 AM
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.