2007 Nov 17 5:52 AM
Hi ,
The requirement is to add the some functions on selection screen MENU tool bar for that i added the SET PF-Status ' ' in AT SELECTION-SCREEN OUTPUT now that menu are working but Standard functionality is not working please any one suggest me on which event i need to use for working both functions.
thanks,
Hari
Message was edited by:
peeleti Harinath
Hi ,
The requirement is to add the some functions on selection screen MENU tool bar for that i added the SET PF-Status ' ' in AT SELECTION-SCREEN OUTPUT now that menu are working but Standard functionality is not working please any one suggest me on which event i need to use for working both functions.
thanks,
Hari
Message was edited by:
peeleti Harinath
2007 Nov 17 5:54 AM
2007 Nov 17 5:55 AM
2007 Nov 17 5:55 AM
You need to use the
tables: sscrfields
SELECTION-SCREEN : FUNCTION KEY 1. " < To create one key
inilization.
MOVE TEXT-001 TO SSCRFIELDS-FUNCTXT_01.
at selection-screen.
case sy-ucomm.
when 'FC01'.
endcase.
check out the online help for more information..
Regards,
Naimesh Patel
2007 Nov 17 6:05 AM
2007 Nov 17 6:06 AM
HI
with out PF status you can create buttons on the selection screen
It can create max 5 buttoms (see the structure SSCRFIELDS).
TABLES SSCRFIELDS.
SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN FUNCTION KEY N.
SELECTION-SCREEN FUNCTION KEY 5.
INITIALIZATION.
MOVE: 'My button 1' TO SSCRFIELDS-FUNCTXT_01,
...........................................,
'My button 5' TO SSCRFIELDS-FUNCTXT_05.
AT SELECTION-SCREEN.
CASE SSCRFIELDS-UCOMM.
WHEN 'FC01'.
...................
WHEN 'FC05'.
ENDCASE.<b>reward if usefull</b>
2007 Nov 17 6:14 AM
I want add the functions in Menu tool bar not in application tool bal
2007 Nov 17 6:14 AM
HI
if you had any doubt execute this small program and see how it will be
*&---------------------------------------------------------------------*
*& Report ZSSCRAPPBUT *
*& *
*&---------------------------------------------------------------------*
*& Adds buttons to application toolbar of selection screen. *
*&---------------------------------------------------------------------*
REPORT zsscrappbut NO STANDARD PAGE HEADING.
TABLES: t030, skat, sscrfields.
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
TITLE text-001.
SELECT-OPTIONS: p_ktopl FOR t030-ktopl,
p_komok FOR t030-komok,
p_ktosl FOR t030-ktosl.
SELECTION-SCREEN SKIP.
* Add button to application toolbar
SELECTION-SCREEN FUNCTION KEY 1. "Will have a function code of 'FC01'
SELECTION-SCREEN FUNCTION KEY 2. "Will have a function code of 'FC02'
* .....
SELECTION-SCREEN END OF BLOCK block1.
************************************************************************
*INITIALIZATION.
INITIALIZATION.
* Add displayed text string to buttons
MOVE 'Application button' to SSCRFIELDS-FUNCTXT_01.
MOVE 'Excecute report ????' to SSCRFIELDS-FUNCTXT_02.
* .....
************************************************************************
*AT SELECTION-SCREEN.
AT SELECTION-SCREEN.
if sscrfields-ucomm = 'FC01'.
break-point.
elseif sscrfields-ucomm = 'FC02'.
break-point.
endif.
2007 Nov 17 6:14 AM
Hi Peeleti,
Use SET PF-Status after AT SELECTION-SCREEN and then AT USER-COMMAND. Then you can go for start of selection event... It will work....
Cheers,
Sagun desai...
2007 Nov 17 6:33 AM
Hi Sagun desai..
Could you send the example please........................
2007 Nov 17 6:36 AM
check out this one.
SELECTION-SCREEN BEGIN OF BLOCK BLK_001.
parameters: p_lifnr type lfa1-lifnr.
SELECTION-SCREEN END OF BLOCK BLK_001.
AT SELECTION-SCREEN OUTPUT.
SET PF-STATUS 'PFST'. " < create a PF-status with requried buttons
AT SELECTION-SCREEN.
CASE SY-UCOMM.
WHEN 'MENU1'.
message i398(00) with 'it is working'.
ENDCASE.Regards,
Naimesh Patel
2007 Nov 17 6:55 AM
Hi Patel ,
In this way it's work but the thing is standard functionality is not workin when i used this way
Thanks,
Hari
2007 Nov 17 6:56 AM
Hi Patel ,
In this way it's work but the thing is standard functionality is not workin when i used this way
Thanks,
Hari
2007 Nov 17 6:58 AM
You need to put those buttons also in the PF-Status.
If possible please use the SELECTOIN-SCREEN FUCTION KEY 1 syntax to create a button on the screen. Becuase it will take care for all of this stuff.
Regards,
Naimesh Patel
2007 Nov 17 7:18 AM
HI
do one thing , specify the standard screen functionalities in the PF-STATUS
like SAVE , BACK ,EXIT so that they can also apear in your screen
<b>bacause if you want to set the PF-SATUS then that wil apply your new screen there</b>
so do like this , insert standard functionalities in ur PF-STATUS
<b>Reward if usefull</b>
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |