2008 Jun 10 6:15 AM
HI,
I want to add a menu option in MD04 transaction under navigation profile in environment.Can anyone suggest as to how to proceed through this.And also i have to attach a tcode for this menu option that i have added.
Useful answers will surely be rewarded.
Regards,
Sowmya.
2008 Jun 10 6:20 AM
Hi Sowmya,
For this u need to write a MENU exit.
Please check wheather u have menu exit for Transaction MD04 or not.
Best regards,
raam
2008 Jun 10 6:29 AM
I know that i need to use a menu exit.But when i try to find the exits for this transaction i can find two enhacements:
LMDR2001 and LMDZU001 .In LMDZU001 i can find two function codes:
Program name Code
SAPLMDZU +CU1
SAPLMDZU +CU2
I need to know how to add the menu option in this and how to find which is the appropriate location to do it.
Please provide some help on this.
Regards,
Sowmya.
2008 Jun 10 6:55 AM
Hi,
Goto SMOD Transaction.
give the name LMDZU001 and select Components radiobutton.
u will get the function code
SAPLMDZU +CU1
SAPLMDZU +CU2
Double click on the SAPLMDZU u can see the Interface Objects.
In the Interface Objects
u have Menu Bars
Dropdown the Menu Bars u find a blank line
Now double click on The Blank line.
u get Display Menu Bar Screen
Dropdown the Menu Bar and in that u can Find Environment
Double click on the Environment,
U can find
+CU1 User-defined 1
+CU2 User-defined 2
These are user defined options
implement a project for enhancement LMDZU001 in CMOD.
and use the function exit to implement teh code and menu exit to add the fields in menu
Function exit EXIT_SAPLMDZU_001
EXIT_SAPLMDZU_002
EXIT_SAPLMDZU_003
Menu exit SAPLMDZU +CU1
SAPLMDZU +CU2
Best regards,
raam