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

Selection-screen issue

Former Member
0 Likes
543

Hi Friends,

I am facing a strange situation.

PARAMETERS: a TYPE c RADIOBUTTON GROUP a,

b(10), "TYPE c DEFAULT 'FIRST',

e(10),

d TYPE c RADIOBUTTON GROUP a.

INITIALIZATION.

b = 'FIRST'.

AT SELECTION-SCREEN.

IF a = 'X'.

CLEAR:b,e.

MESSAGE e000(zv) with b e.

ENDIF.

In the above sample code ,my intention is to clear the value in parameter e while issuing an error message.But it is not hapening so.The selection-screen still contains the value previously entered,but the parameter b value is being cleared .

I have checked the documentation and it says that in case of error message selection-screen wil be restored.

But the strange thing is ,if I debug the execution,the value in parameter e is being cleared,even when I do nothing while debuuging.

Could any of u explain why this is happening?Also could u please tell me how I can acheive clearing the variable while issuing error message?

Thanx in advance.

--Harish.

Could you explain why

5 REPLIES 5
Read only

Former Member
0 Likes
524

PARAMETERS: a TYPE c RADIOBUTTON GROUP a,

b(10), "TYPE c DEFAULT 'FIRST',

e(10),

d TYPE c RADIOBUTTON GROUP a.

INITIALIZATION.

b = 'FIRST'.

AT SELECTION-SCREEN.

IF a = 'X'.

CLEAR:b.

MESSAGE e000(zv) with b e.

ENDIF.

AT SELECTION-SCREEN ON E.

IF a = 'X'.

CLEAR:e.

*MESSAGE e000(0) with b e.

ENDIF.

Read only

Former Member
0 Likes
524

Hi,

U can also use

AT SELECTION-SCREEN OUTPUT.

If a = 'X' and flag = 'X'.

Clear : b, e.

endif.

AT SELECTION-SCREEN.

If a = 'X'.

flag = 'X'.

message e000.

endif.

Regards,

Himanshu

Read only

Former Member
0 Likes
524

Hi,

You put the same code at AT SELECTION SCREEN OUTPUT...it will work out.

Thanks

Giridhar

Read only

Former Member
0 Likes
524

Hi Harish,

I got what your problem is...

use this code...THIS WILL Work.

PARAMETERS: A TYPE C RADIOBUTTON GROUP A,

B(10), "TYPE c DEFAULT 'FIRST',

E(10),

D TYPE C RADIOBUTTON GROUP A.

INITIALIZATION.

B = 'FIRST'.

AT SELECTION-SCREEN.

<b> LOOP AT SCREEN.</b>

IF A = 'X'.

CLEAR:B,E.

<b> MODIFY SCREEN.</b>

MESSAGE E000(ZV) WITH B E.

ENDIF.

<b> ENDLOOP.</b>

<b>Reward points if useful,</b>

Regards,

Tejas

Read only

Former Member
0 Likes
524

Thankyou guys for ur response.....But the issue is not resolved...

I have tried all the options(clearing parameters in AT SELECTION-SCREEN OUTPUT and even modifying screen (though I don't think we should modify screen in AT SELECTION_SCREEN instead of AT S.S OUTPUT.anyway I have tried both,but it didn't work))....still the second parameter is not being cleared....

BUT It is being cleared if i just enter n exit debugging mode...

Any help will be appreciated...

Thanks n regards,

Harish