Skip to Content
0
Former Member
Jul 17, 2008 at 07:54 AM

Error ! No field defined for function Code in MENU EXIT

34 Views

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

..