2008 Jun 16 6:53 AM
Hi frnds,
my problem is in my screen the ok_code is nt cleared.
In my screen 100 i declared the BACK ,EXIT and CANCEL. and then in de same screen i called a dialog screen103 and given BACK ,EXIT and CANCEL for the dialog screen.
Now the problem is wen i cancel that dialog box it is gng but when i operate BACK to screen 100 again the dialg box is cmg.
here ok_code is nt clear.
Can any one help how to clear the ok_code ........?
thanks in advance.
2008 Jun 16 7:02 AM
I usually don't use ok_code or any other variables.
i use directly sy-ucomm variable.
at pai i read sy-ucomm and analize what to do.
then after pai was processed in pbo in some module i clear sy-ucomm with command:
clear sy-ucomm.
2008 Jun 16 8:15 AM
hi,
use CASE and ENDCASE when you are playing with something depends on sy-ucomm or your okcode.
and clear okcode for each case.
for e.g.
case ok_code.
when 'CHANGE'.
.........
clear ok_CODE.
when 'DISPLAY'.
.........
clear ok_CODE.
endcase.
2008 Jun 16 8:19 AM