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

SET PF-STATUS

Former Member
0 Likes
2,754

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,297

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

7 REPLIES 7
Read only

Sm1tje
Active Contributor
0 Likes
2,297

use the excluding tab statement.

Read only

Former Member
0 Likes
2,298

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

Read only

Former Member
0 Likes
2,297

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

Read only

0 Likes
2,297

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.

Read only

0 Likes
2,297

'FCT CODE U WANT TO REMOVE'

what is this .from where i can i refer. plz help me out.

Read only

0 Likes
2,297

Check the F1 help button . There u will get the example how to exclude the buttons

set pf-status excluding int .

Read only

0 Likes
2,297

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