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

Issue with module pool screen

Former Member
0 Likes
687

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

5 REPLIES 5
Read only

GauthamV
Active Contributor
0 Likes
650

Use excluding option in pf-status of screen 120.

SET PF-STATUS 'your status' EXCLUDING 'your fcode' .

Read only

Former Member
0 Likes
650

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.

Read only

Former Member
0 Likes
650

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

Read only

Former Member
0 Likes
650

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

Read only

Former Member
0 Likes
650

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.