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

Error ! No field defined for function Code in MENU EXIT

Former Member
0 Likes
307

Hello All,

I've created a project in CMOD for the MENU EXIT for handling one menu item in the SAP Standard Menu Bar .

i.e under the HELP MENU Item I've included one more sub menu item.

I've activated the project and I'm able to se the newly added Sub-Menu Item in the activated mode.

But when I press the newly created Sub Menu Item I'm getting a Message in the Status Bar saying :

No field defined for the function code

The Help of it says :


Message no. 00125

Diagnosis
The function code field (OK code field) has not been defined on this screen. If the user selects an application function (not a system function), the system usually provides it in the function code field (OK code field) as well as in SY-UCOMM. This is no longer possible.

System Response
The system is unable to inform the application of the current function code. The application should not use field SY_COMM. This field always contains the code of the last function chosen, which is not always identical to the application-relevant code.

Procedure
You should always define a field for the function code on every screen. The Screen Painter always proposes such a field (OK category), you only need to assign a name and include the definition in the ABAP program.

Please let me know what shud be done ?

Regards,

Deepu.K

..

1 REPLY 1
Read only

Former Member
0 Likes
271

Don't use this scanrio ! Instead got Access Key and chamged the Std. Program.