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 problem

hassimkhan
Explorer
0 Likes
1,460

Hello experts,

Am doing module pool programming and i've created several screen with push button on each screen. The first screen push button work fine, but the second screen push button doesnt work at all.

I've declared my ok code as global variable type sy-ucomm.

I've even clear the ok_code before case ok_code on the second screen pai but still no luck...

Any possible solution?

3 REPLIES 3
Read only

Lakshmipathi
Active Contributor
0 Likes
1,004

Please try to post in the right forum to get the right inputs.  Posted in a functional forum and expecting technical inputs is not possible.  Hence, moved from SAP ERP Sales and Distribution (SAP SD) to ABAP Development

G. Lakshmipathi

Read only

0 Likes
1,004

Hi Hassim,

In your case you have used ok_code type sy-ucomm..

Try the below code.

DATA ok_code type sy-ucomm.

case ok_code.

When 'FCODE'.

clear ok_code.

move ok_code to sy-ucomm.

"Process your data or select query.

Endcase.

So that it will clear ok_code and sy-ucomm and in next screen onward it will work fine.

Thanks,

Ramesh

Read only

VenkatRamesh_V
Active Contributor
0 Likes
1,004

Hi Hassim,

add the OK_Code in the Element list for second screen. in SE 51

OR

use sy-ucomm. in Abap Editor.

Regards,

Venkat.