10-06-2009 7:47 PM
Hi experts! i have this code...
TYPE-POOLS: slis.
data: w_excluding1 TYPE slis_t_extab.
INITIALIZATION.
break akramer.
CLEAR w_excluding1.
APPEND 'EJECUTAR' TO w_excluding1.
APPEND 'VISUALIZAR' TO w_excluding1.
SET PF-STATUS 'ZMMRDESP' EXCLUDING w_excluding1.
Those 2 buttons (EJECUTAR and VISUALIZAR) should disappear!!... it doesn´t happen, why?? help!!
10-06-2009 8:16 PM
Hi
while apping funcation code,Use like this
move 'EJECUTAR' to w_excluding1-function.
append w_excluding1.
SET PF-STATUS 'ZMMRDESP' EXCLUDING w_excluding1.
regards,
Raghu
10-06-2009 9:10 PM
I thnk you are mixing two things, namely exluding buttons from GUI status and exlcuding buttons from classical ALV.
The type you used for excluding table should not be slis_t_extab . You need function code line type, like this.
data: w_excluding1 TYPE TABLE OF sy-ucomm.
INITIALIZATION.
APPEND 'EJECUTAR' TO w_excluding1.
APPEND 'VISUALIZAR' TO w_excluding1.
"in PBO
PROCESS BEFORE OUTPUT.
SET PF-STATUS 'ZMMRDESP' EXCLUDING w_excluding1. "now set your GUI status excuding those two function codes
This will work.
Regards
Marcin
10-06-2009 9:33 PM
Hi AndresKramer ,
Try this :
data: w_excluding1 TYPE slis_extab,
w_excluding2 TYPE slis_t_extab.
w_excluding1 = 'EJECUTAR'.
APPEND w_excluding1 TO w_excluding2 .
w_excluding1 = 'VISUALIZAR'.
APPEND w_excluding1 TO w_excluding2 .
SET PF-STATUS 'ZMMRDESP' EXCLUDING w_excluding2.
Regards,
José
10-07-2009 12:47 PM
This buttons are in the gui status of the selection screen not in an ALV.
I tried all your suggestions, none of them worked
10-07-2009 12:57 PM
- is ZMMRDESP you custom GUI status?
- are EJECUTAR and VISUALIZAR function codes within this status?
- in PBO is table w_excluding2 not empty?
If so, it must work!
Regards
Marcin
10-07-2009 12:58 PM
Hi,
Check this link http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm
Demo Program --->demo_list_set_pf_status_1.
Regards,
Lakshman