‎2010 May 20 7:33 AM
HI,
I have created Screen 100 and also creted screen 120.
now i have declared a one function key say Excute on Application Tool bar.
when ever i excute the screen 100 and i have to show some data in Screen 120.
my issue was the function key Excute will also appears in Screen 120.
i don't want the function key in screen 120.
how to resolve it.
thanks
varma
‎2010 May 20 7:37 AM
Use excluding option in pf-status of screen 120.
SET PF-STATUS 'your status' EXCLUDING 'your fcode' .
‎2010 May 20 7:39 AM
Hi,
U have to write code under PAI.
Eg:
module user_command_0100 input.
clear : okcode.
case main_okcode.
when 'Your Fucntion key'.
write your code...
endform.
module user_command_0120 input.
clear : okcode.
case main_okcode.
when 'Your Fucntion key'.
write your code...
endform.
‎2010 May 20 7:53 AM
HI,
Solution1:-
Create and call different PF-STATUS and call in PBO.
for ex:-
For screen 100 create PF Satus 'PF100' with execute button and
For screen 200 create PF stats 'PF200'. with out execute buttion
screen 100:-
-
PROCESS BEFORE OUTPUT.
MODULE status_100
MODULE status_9000 OUTPUT.
SET PF-STATUS 'PF100'.
endmodule.
screen 200:-
-
PROCESS BEFORE OUTPUT.
MODULE status_200
MODULE status_9000 OUTPUT.
SET PF-STATUS 'PF200'.
endmodule.
thanks
Sudheer
‎2010 May 20 7:57 AM
Hi,
You can achieve that.
First you declare an internal table say I_EXLCUDE like below.
begin of i_exclude,
ucomm type sy-ucomm,
end of i_exclude.
Then when calling the PF status for your screen 120. Do like this.
In the PBO for the screen 120. Enter the below codes.
refresh i_exclude.
i_exclude-ucomm = < Here your FCODE for your function key >
append i_exlcude.
SET PF-STATUS <your status name> EXCLUDING i_exclude.
Regards,
Smart
‎2010 May 20 8:01 AM
BEGIN OF g_t_fcode OCCURS 0 ,
fcode LIKE sy-ucomm ,
END OF g_t_fcode ,
screen 0100
-
PROCESS BEFORE OUTPUT.
MODULE status_0100.
MODULE status_0100 OUTPUT.
REFRESH g_t_fcode.
SET PF-STATUS 'PF100' EXCLUDING g_t_fcode.
end module.
screen 120
-
PROCESS BEFORE OUTPUT.
MODULE status_header_0200.
MODULE status_0200 OUTPUT.
refresh: g_t_fcode .
g_t_fcode -fcode = 'EXEC'.
append g_t_fcode.
SET PF-STATUS 'PF100' EXCLUDING g_t_fcode.
end module.