‎2014 Aug 04 4:42 PM
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?
‎2014 Aug 04 4:57 PM
‎2014 Aug 04 5:34 PM
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
‎2014 Aug 04 6:35 PM
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.