‎2007 May 28 2:32 PM
Hi all,
I need to create a push button in menu bar in report output.
The report output is a normal output not a alv. and i need a button in menu bar or application tool bar of a output, and when I click on this some action has to be performed.
What code i can use for this.
Thanks
Saravana
‎2007 May 29 4:24 AM
hi,
I think its better if use pf-status....there in Function keys u can cretae ur Button.
with regards,
madhuri.
‎2007 May 28 2:36 PM
HI,
u can create it in use
1)use set pf-status 'MYMENU'.
double click on MYMENU there u can create ur menu
2)see this program
REPORT ZPROG1.
TABLES:SSCRFIELDS.
SELECTION-SCREEN PUSHBUTTON /10(4) MYBUTTON USER-COMMAND ABCD.
INITIALIZATION.
MYBUTTON = 'BACK'.
AT SELECTION-SCREEN.
IF SSCRFIELDS-UCOMM = 'ABCD'.
SET SCREEN 0.
ENDIF.
rgds,
bharat.
‎2007 May 28 2:41 PM
‎2007 May 28 2:47 PM
Hi,
refer to the following link:
[Removed by the moderator.]
Hope this helps.
Reward if helpful.
Regards,
Sipra
‎2007 May 29 4:24 AM
hi,
I think its better if use pf-status....there in Function keys u can cretae ur Button.
with regards,
madhuri.
‎2007 May 29 4:59 AM
you have to use set pf-status...
first use
set pf-status 'ZSPD'.<before write statement>
now dbl click on that it will go to se41 in application toolbar area just assign the name and fn code for the buttons activate it.
for hndling the fn code. you have to use at user-command event.
at user-command.
case sy-ucomm.
when '<your fn code in CAPS>'.
<do some processing>.
endcase.
regards
shiba dutta
‎2007 May 29 5:43 AM
hi,
in report prgm give stmt as
set pf-status 'menu1' -> double click on meu1 -> give report prgm name -> select menu bar radio button -> click on + symbol for expanding -> select required buttons in standard tool bar application tool bar -> give function code for all buttons -> activate -> back.
in report prgm.
at selection-screen.
case sy-ucomm.
when 'back'.
leave to screen 0.
..........
..........
endcase.
if helpful reward some points.
with regards,
suresh babu aluri.