Application Development 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: 

Disabling Menu Item in Custom SM34 Transaction

Former Member
0 Kudos

All,

I have to make custom transaction of SM34 where i need to disable the menu item "Display>change" under the Menu "Table View" of " Display View 'Condition types': overview ".

Is there any suitable menu exit or enhancement point for this requirement? Is there any authorization object that can be used.or any otherway of accomplishing this?

Thanks

Deba

2 REPLIES 2

Former Member
0 Kudos

Hi,

Before you can add functionality to a SAP system, you need to be able to locate the appropriate user exits. SAP has provided around 2000 user exits.

1.Searching from transaction CMOD.

2.Searching from the Application Hierarchy

3. Making your own customized search

Keep in mind that you must first search for an enhancement. Once you find an enhancement, you can display its components -- the actual user exits. Then you need to include the enhancement containing the required user exit as a component in your own project.

Method #1: Using Transaction CMOD

- Transaction CMOD contains search functionality to help locate enhancements.

- Selecting the "Utilities -> SAP enhancements" menu path in transaction CMOD will take you to an enhancement selection screen .

- You can limit the search for enhancements based on:

Enhancement name

Development class

- After clicking on the u2018Executeu2019 pushbutton (or u2018F8u2019) on the selection screen, the system will display a listing of the development classes that contain enhancements

- If you have clicked on the u2018Display componentsu2019 pushbutton on the selection screen,the components of each enhancement will automatically be displayed.

Method #2: Using SAP Application Hierarchy

- Selecting the "Overview -> Applic. hierarchy -> SAP" menu path in the ABAP/4 Development Workbench will take you to a listing of all standard SAP applications and components .

- To locate a user exit for a particular application, follow these steps

from the SAP Application Hierarchy:

- Select the appropriate application by single clicking on it.

- Choose the "Edit Sel./desel. subtree" menu path.

- Click on the u2018Repository Infosys.u2019 pushbutton.

- This will take you to the ABAP/4 Repository Information System.

- Double click on the u2018Environmentu2019 branch.

- Double click on the u2018Customer enhancementu2019 branch.

- Double-click on the u2018Customer exitu2019 branch.

- This will take you to the customer exit (or enhancement) selection screen with the appropriate development class for the application selecting on the Application Hierarchy.

- Click on the u2018Executeu2019 pushbutton.

- This will take you to a listing of all enhancements that meet the selection criteria.

From this listing, you can display the components of each enhancement and the documentation. You will be taken automatically to transaction SMOD from the ABAP/4 Repository Information System.

Method #3: Writing a small report program

The details about projects, enhancements and components are contained in two SAP tables:

MODSAP: containing enhancement name, type of exit and component

MODACT: containing project name and enhancements

Thus by writing a report program to retrieve data from these two tables, you can customize your search requirements. Code for one such sample program is attached in annexure A and the corresponding transaction code to execute this program is YSMD .

Using this you can list all components that match a particular string like the program name or the function code as well as search for only one type of exit.

NOTE: SAPu2019s naming convention for user exits-

· Program/Function exits : EXIT_AAAAAAAA_nnn where

AAAAAAAA stands for the program name which contains the exit and

nnn is a SAP assigned number starting from 001

· Menu exits : AAAAAAAA+XXX where

AAAAAAAA stands for the program name which contains the exit and

+XXX is the name of the function code contained in the menu item

· Screen Exits : AAAAAAAA_nnnn_BBBBBBBB_CCCCCCCC_mmmm where

AAAAAAAA : calling program name

nnnn : calling screen number

BBBBBBBB : area

CCCCCCCC : called program name

mmmm : called screen number

For your reference.

May it helps you.

Regards.

DS.

Edited by: deepaks sharma on Jul 22, 2010 2:05 PM

Former Member
0 Kudos

I think you want to create a custom tcode where the SM34 will call with the disable functionality in the menu you mentioned in your post.

If so then you can go for a transaction variant (using SHD0 tcode) and create a custom transaction code with that transaction variant (By chosing the 4th radio button i.e. transaction with variant).

Here I got a step by step reference which you can go through...

[http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]

Hope it will help you

Regards

Shiba Prasad Dutta