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

okcode not getting populated

soumya_jose3
Active Contributor
0 Likes
901

Hi,

I have copied a standard module pool program to a Z program.

It is a tree display. In my Z program when I expand the parent node, child nodes are not coming. While debugging I saw that the okcode value is not getting populated while expanding the parent node. Whereas in the standard program it is coming as %_GC 102 18.

Any valuable suggestions would be appreciated.

Thanks & Regards,

Soumya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
637

Have you copied the menu list of standard to your z REPORT?

Have you created the GUI interface?

Regards,

madan.

3 REPLIES 3
Read only

Former Member
0 Likes
638

Have you copied the menu list of standard to your z REPORT?

Have you created the GUI interface?

Regards,

madan.

Read only

Former Member
0 Likes
637

Check whether the function-code is getting populated to system variable to sy-ucomm. If yes, then populate sy-ucomm to ok_code in your program or work with sy-ucomm instead of ok_code.

If you are not getting function-code in sy-ucomm, then probably you have not created or activated GUI status for the program.

Read only

Former Member
0 Likes
637

Please check if you have defined the OK_CODE in the Element List of the screen. One common mistake that most of us do...