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

SLIN - GUI Status cannot be checked statically for my_module:pool??

Former Member
0 Likes
1,145

Hi Experts,

Am executing the SLIN for my_module_pool_prog. So, I got 1 message,

Pls. let me know that,

1 - Wht is the meaning of the following statement

2 - How to fix it?

GUI Status cannot be checked statically.

SET PF-STATUS wa_con_pf1.

(You can hide the message using "#EC *)

My code in PBO is,

If xxxxx = Y.

SET PF-STATUS wa_con_pf1.

endif.

Am guessing, its coz of, writuing the SET PF-STATUS wa_con_pf1 statement in IF condition!!!!!!

thanq

thanq

Edited by: Srinivas on Apr 4, 2008 4:55 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,112

Yes, the message is self explanatory GUI Status cannot be checked statically.

As it is in if condition, compiler don't know what will be the value for PF-status at run time. And PF-status needs to be determined statically(at compile time).

Following will hide the message:

If xxxxx = Y.
SET PF-STATUS wa_con_pf1. "#EC *
endif.

Not sure about the effect of "#EC. I guess , it says skip this statement while Extended Check.

G@urav.

7 REPLIES 7
Read only

Former Member
0 Likes
1,112

Hi,

Yes, the message that you are getting because of SET PF-STATUS in IF Statement.

Even i got same message when i used message Statement in If Statement.

Read only

Former Member
0 Likes
1,113

Yes, the message is self explanatory GUI Status cannot be checked statically.

As it is in if condition, compiler don't know what will be the value for PF-status at run time. And PF-status needs to be determined statically(at compile time).

Following will hide the message:

If xxxxx = Y.
SET PF-STATUS wa_con_pf1. "#EC *
endif.

Not sure about the effect of "#EC. I guess , it says skip this statement while Extended Check.

G@urav.

Read only

0 Likes
1,112

thanq

I guessed the same.

bt, now, I took out the IF statement, but, still, am getting the same message in SLIN???????????

thanq

Read only

0 Likes
1,112

I tried,

data var like sy-pfkey value 'ABC'.

set PF-STATUS var.

It did not came in SLIN.

How are you doing it?

G@urav.

Read only

0 Likes
1,112

thanq

my code is as follows,

IF wa_load_constants IS INITIAL.

PERFORM load_constants.

PERFORM prepare_list_box_for_field1.

* SET PF-STATUS wa_my_menu_created_from_se41.-----> previous, its there, later commented

wa_load_constants = 'X'.

ENDIF.

SET PF-STATUS wa_my_menu_created_from_se41.

thanq

Read only

0 Likes
1,112

Is wa_my_menu_created_from_se41 data declaration similar to sy-pfkey?

G@urav

Read only

0 Likes
1,112

thanq.

this MENU is created from se41, activated and used here.

thaq