‎2007 Apr 18 10:44 AM
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
‎2007 Apr 18 10:52 AM
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.
‎2007 Apr 18 10:58 AM
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
‎2007 Apr 18 11:01 AM
Hi,
You put the same code at AT SELECTION SCREEN OUTPUT...it will work out.
Thanks
Giridhar
‎2007 Apr 18 11:06 AM
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
‎2007 Apr 19 6:45 AM
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