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

ok-code

Former Member
0 Likes
715

Hello!

my program says:

save_ok = ok_code.

CLEAR ok_code.

CASE save_ok.

WHEN 'BACK'.

LEAVE PROGRAM.

..etc..

save_ok is not accessible. What's a problem? I defined everywhere and in dynpro too.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
672

Hi,

if u r not getting value into save_okcode even if u hav declared it.

check whether u declared ok_code in

SCREEN

ELEMENT LIST .

6 REPLIES 6
Read only

JozsefSzikszai
Active Contributor
0 Likes
672

hi Andrei,

I am not sure what you mean by 'everywhere', but save_ok should be defined as global parameter.

hope this helps

ec

Read only

0 Likes
672

In ***TOP Module I have:

data: ok_code like sy-ucomm,

save_ok like ok_code.

And in dynpro I have it too

Read only

0 Likes
672

in the top declare...

data: save_ok like sy-ucomm.

try if it works....

other wise make use of sy-ucomm in place of ok_code.That is always advisable...

Reward points if useful...

Read only

Former Member
0 Likes
672

Hi

declare ok_code = sy-ucomm.

check it

Read only

Former Member
0 Likes
673

Hi,

if u r not getting value into save_okcode even if u hav declared it.

check whether u declared ok_code in

SCREEN

ELEMENT LIST .

Read only

0 Likes
672

Ok Thanks I Have it!!!