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

Problem with PF-STATUS in the INITIALIZATION event

Former Member
0 Likes
1,392

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!!

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!!

6 REPLIES 6
Read only

Former Member
0 Likes
1,131

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

Read only

MarcinPciak
Active Contributor
0 Likes
1,131

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

Read only

Former Member
0 Likes
1,131

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é

Read only

Former Member
0 Likes
1,131

This buttons are in the gui status of the selection screen not in an ALV.

I tried all your suggestions, none of them worked

Read only

0 Likes
1,131

- 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

Read only

0 Likes
1,131

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