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

Time-oriented screen element disabling or making it invisible

Former Member
0 Likes
630

Hello,

I want to set invisible property of a screen element true, that is I do not want to see it after 2 minutes.

How can I do that?

Thanks.

Hello,

I want to set invisible property of a screen element true, that is I do not want to see it after 2 minutes.

How can I do that?

Thanks.

5 REPLIES 5
Read only

Former Member
0 Likes
608

Hi Deniz Toprak,

see this code for invisible a field ( This for half minute )

This code de active the field in half minute

PARAMETERS P_NAME.

DATA TIME TYPE SY-UZEIT.

DATA FLAG.

DATA DIFF TYPE I.

At selection-screen output.

IF FLAG IS INITIAL.

TIME = SY-UZEIT.

FLAG = 'X'.

ENDIF.

DIFF = SY-UZEIT - TIME.

IF DIFF > 30.

Loop at screen.

if screen-name cp 'P_NAME'.

screen-ACTIVE = 0.

modify screen.

ENDIF.

Endloop.

ENDIF.

<REMOVED BY MODERATOR>

Mahi.

Edited by: Alvaro Tejada Galindo on Feb 14, 2008 11:02 AM

Read only

0 Likes
608

Hi Maheswari Chegu,

Thanks.

My program is a module program, not a report.

Where should I put these code?

Thanks again.

deniz.

Read only

0 Likes
608

Hi,

W_F1 TYPE C.

module pbo .

IF W_f1 is not initial.

LOOP AT SCREEN.

if screen-name cp 'P_N1'.

screen-active = 0.

modify screen.

clear w_f1.

ENDIF.

ENDLOOP.

ENDIF.

module pai.

IF W_F1 IS initial.

wait up to 120 seconds.

W_F1 = 'X'.

ENDIF.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 14, 2008 11:02 AM

Read only

Former Member
0 Likes
608

try with Wait command.

wait UP TO 120 seconds.

Read only

Former Member
0 Likes
608

Hi,

parameters:

p_name(10) type c,

p_n1(10) type c.

DATA:

W_F1 TYPE C.

at selection-screen output.

IF W_f1 is not initial.

LOOP AT SCREEN.

if screen-name cp 'P_N1'.

screen-active = 0.

modify screen.

clear w_f1.

ENDIF.

ENDLOOP.

ENDIF.

at selection-screen.

IF W_F1 IS initial.

wait up to 120 seconds.

W_F1 = 'X'.

ENDIF.

for this we have to trigger some action on the screen

other wise it will remain as same.

hope it helps to u......