‎2008 Apr 04 9:53 PM
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
‎2008 Apr 05 3:15 AM
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.
‎2008 Apr 04 11:17 PM
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.
‎2008 Apr 05 3:15 AM
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.
‎2008 Apr 07 5:15 PM
thanq
I guessed the same.
bt, now, I took out the IF statement, but, still, am getting the same message in SLIN???????????
thanq
‎2008 Apr 07 6:02 PM
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.
‎2008 Apr 07 7:06 PM
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
‎2008 Apr 07 7:30 PM
Is wa_my_menu_created_from_se41 data declaration similar to sy-pfkey?
G@urav
‎2008 Apr 07 8:13 PM
thanq.
this MENU is created from se41, activated and used here.
thaq