‎2008 May 21 9:16 AM
hii all,
i had a requirement to hide some buttons in application tool bar , in the output screen. plz give me some sollution, its urgent.
points will be rewarded.
thanks in advance.
‎2008 May 21 9:19 AM
Hi,
U can use
ur PF-status to enable those buttons which u want.
use the excluding tab statement
DATA: FUNCTION(10) TYPE C VALUE '<FCT CODE U WANT TO REMOVE>'.
SET PF-STATUS 'STATUS' EXCLUDING FUNCTION.
The addition EXCLUDING can be used to deactivate functions of the set GUI status. An inactive function cannot be selected in the user interface. For fcode, either a character-type data object or an internal table with a flat character-type data type can be specified. The functions, whose function codes are contained in the field or in the rows of the internal table, are deactivated. Only one function code can be specified for each row of the table. The codes are not case-sensitive. Function codes specified in fcode, for which there is no function in the GUI status, are ignored.
Regards,
Jagadish
‎2008 May 21 9:18 AM
‎2008 May 21 9:19 AM
Hi,
U can use
ur PF-status to enable those buttons which u want.
use the excluding tab statement
DATA: FUNCTION(10) TYPE C VALUE '<FCT CODE U WANT TO REMOVE>'.
SET PF-STATUS 'STATUS' EXCLUDING FUNCTION.
The addition EXCLUDING can be used to deactivate functions of the set GUI status. An inactive function cannot be selected in the user interface. For fcode, either a character-type data object or an internal table with a flat character-type data type can be specified. The functions, whose function codes are contained in the field or in the rows of the internal table, are deactivated. Only one function code can be specified for each row of the table. The codes are not case-sensitive. Function codes specified in fcode, for which there is no function in the GUI status, are ignored.
Regards,
Jagadish
‎2008 May 21 9:20 AM
hi,
Use EXCLUDING statement in the below mentioned fashion. FTABEXL is the internal table with function codes of the buttons that you want to exclude
SET PF-STATUS XSTATUS EXCLUDING FTABEXL. .
Regards,
Santosh
‎2008 May 21 9:29 AM
hii,
thanks all. will u give me some informatn regarding it.
have to declare buttons in an internal table.
TYPES : BEGIN OF lT_PF,
l_mail type mail recipient,
l_abc type abc analysis,
l_graph type graphic,
END of lt_pf.
DATA : it_status type table of lt_pf.
but it's not acceptg.
how to declare buttons in an internal table.
‎2008 May 21 10:49 AM
'FCT CODE U WANT TO REMOVE'
what is this .from where i can i refer. plz help me out.
‎2008 May 21 10:52 AM
Check the F1 help button . There u will get the example how to exclude the buttons
set pf-status excluding int .
‎2008 Jun 04 12:54 PM
Hi,
In maintain status window where you can see your buttons, navigate from "GOTO"-> Attributes -> Pushbutton assignment.( do this in change mode )
there n the popup for Application toolbar attributes, pls select the " Display All " radio button. With this you would be able to gray out your buttons using SET PF status.
Pls note : you may do only one of either gray out or hide using this technique.
set Pf-STATUS 'NAME' excluding F/Itab.
for example :
types : begin of ty_data,
func(10) type c,
end of ty_data.
data : it_func type standard table of ty_data,
wa_func type ty_data..
START-OF-SELECTION.
wa_func-func = 'SAVE'.
append wa_func to it_func.
wa_func-func = 'BACK'.
append wa_func to it_func.
SET PF-STATUS 'ZTEST' EXCLUDING it_func.
***so by this u can deactivtae 'SAVE and 'BACK ' using **internal table.
Edited by: Darshana Dange on Jun 4, 2008 2:07 PM
Edited by: Darshana Dange on Jun 4, 2008 2:09 PM