Application Development 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: 

regading ok_code in dialog programming?

Former Member
0 Kudos
162

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.

3 REPLIES 3

Former Member
0 Kudos
107

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.

Former Member
0 Kudos
107

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.

Former Member
0 Kudos
107

Hi Tumma,

Use clear ok_code.

Regards,

Charumathi.B