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: 

How to create Tcode for Area Menu

Former Member
0 Kudos

Hi,

My requirement is to create an Area Menu se43 and assign a Tcode for it.

I have tried all options with SE93 but not success. I could able to reach to transaction se43 by using the start object 'Transaction with parameters' in SE93, but my requirement is to directly diplay the area menu so that I can start the applications over there.

Can any one help me to solve this.

Regards,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You should create report with FM "'BMENU_START_BROWSER'". You can use this source code :

Report ZMENU_TCODE.

CALL FUNCTION 'BMENU_START_BROWSER'

EXPORTING

mode = 'D'

tree_id = 'ZMENU' "(name of your menu)

EXCEPTIONS

tree_does_not_exist = 1

no_authority = 2

OTHERS = 3

.

Then, you can create transaction with SE93 (Program and selection screen : ZMENU_TCODE).

Regards,

10 REPLIES 10

former_member404244
Active Contributor
0 Kudos

HI,

Creating your own SAP Customized Main Menu

You can add additional menu transaction in the SAP main menu without affecting the original SAP default area menu S000.

For example, you have created a transaction code called ( z123 - ABC Own Report ) and you want to insert it under Logistics. The specific user will be able to access ABC Own Report by clicking Logistics -> ABC Own Report.

Steps :-

Goto Transaction SE43 - Area Menu

Click the copy button. Copy from S000 to ZXXX

After copying, click Change (area menu ZXXX)

Double click on Logistics and add in your transaction code in the AreaMenu.

Remembers to Activate it.

Next Goto Transaction SU01 - Maintain users

Type in the user name and click the Defaults button

Type in the area menu (ZXXX) in the Start Menu field.

Click Save

The user will be able to see the additional transaction on the next logon.

Regards,

Nagaraj

0 Kudos

Hi,

This is a useful information but anyways it will not solve my requirement.

Thanks & Regards

0 Kudos

Hi Vijaya,

One more information that I would like to give you is... an area menu could be directly called as a transaction from the SAP Easy Access screen.

i.e if you have given YME1 as the name for your Area Menu, you could use the same in the SAP Easy Access menu as a transaction. You will not be able to use that with /nYME1 or /oYME1 from any other screen. That is the limitation of SAP.

You need not do any thing special for your area menu to act as a transaction.

Reward points if this helps,

Kiran

Former Member
0 Kudos

Create 'Transaction with parameters' and click the checkbox 'Skip initial screen'.

0 Kudos

Hi

I have tried this option but not success, could you please suggest me other options.

Regards,

Former Member
0 Kudos

Hi,

Go to SE43N --> Area menu name --> Click on chnage button --> Select Menu name > Edit> Insert Menu Entry --> Insert as Sub Node --> A Pop window will be displayed --> Enter Name of the TCode and add an entry.

Thanks,

Sriram Ponna.

0 Kudos

Hi

This is not my requirement. I have created the area menu, now I have to assgin this to Tcode so that I can display this area menu directly using Tcode without going to SE43.

Regards.

0 Kudos

Hi Vijay,

Area menu's do not work as per your requirement. They do not get displayed by triggering a transaction.

Area menu's are assigned to your profile. While creating your profile, any particular area menu can be restricted or allowed for ur access.

Once you go to your intial SAP screen you shall have area menu which is allowed to you. You can add your area menu to any of the existing nodes or the basic node of that initial screen.

Try seeing the name of the top node of the area menu of your initial screen and then extend that menu in SE43 and attach your created Area Menu. This might not be fulfilling your current requirement but might achieve your requirement upto some extent.

Reward points if this helps,

Kiran

Former Member
0 Kudos

Hi,

You should create report with FM "'BMENU_START_BROWSER'". You can use this source code :

Report ZMENU_TCODE.

CALL FUNCTION 'BMENU_START_BROWSER'

EXPORTING

mode = 'D'

tree_id = 'ZMENU' "(name of your menu)

EXCEPTIONS

tree_does_not_exist = 1

no_authority = 2

OTHERS = 3

.

Then, you can create transaction with SE93 (Program and selection screen : ZMENU_TCODE).

Regards,

0 Kudos

Thankyou sir, I have done as you said, It works when exceptions are commented when exceptions are un commented. T code runs to a show dump. Can u give an idea to resolve this problem.