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

Custom Menu - How to create one

Former Member
0 Likes
4,542

Hello Guys,

I have around 20 custom tcodes and some standard tcodes. I want to create a menu or one tcode . When the user enters that tcode it should display all the tcodes and the user can select the tcode from that initial screen. I used to do it long back using a abap : write statement(tcode)> double click> call the custom tcode and use the hide command.

How to do it in latest ABAP. Any tools or any function modules are available . I saw the sap menu tree. What it is.

Please let me know. Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,549

Hi

Your code is correct till here. now u have to use an event called AT LINE-SELECTION.

like this.

AT LINE-SELECTION.
 CASE SY-LSIND.
    WHEN '1'.
        call transaction 'tcode'.
endcase.

6 REPLIES 6
Read only

Former Member
0 Likes
2,549

Hi

For this you can use Module pool programming (se80)

create a module pool program(eg." SAPM........." and create a screen in it.

In the screen , you can add pushbuttons for every t cade u want to execute.

In the user command , capture the function code assigned to corresponding button and then use

" CALL TRANSACTION <NAME OF THE T. CODE>

I hope it works out for you.

Read only

0 Likes
2,549

Thanks for the reply. I already did a ABAP program long back using just write and hide. Please see the code below

START-OF-SELECTION.

FORMAT COLOR COL_HEADING.

ULINE.

WRITE:/ '***********************The following are the transaction'.

WRITE:'codes in BPS ************************'.

FORMAT COLOR

COL_HEADING OFF.

ULINE.

SKIP .

FORMAT COLOR COL_HEADING.

ULINE.

WRITE:/ 'Please select the report/program by double clicking on the'.

WRITE:'line'.

ULINE.

FORMAT COLOR COL_HEADING OFF.

SKIP.

FORMAT COLOR COL_POSITIVE.

ULINE.

tcode = 'ZCUS1'.

WRITE:/ '1.Version Utility program - ZCUS1 .', 75 tcode.

HIDE tcode.

ULINE.

I want to find a any latest FM's or any other way I can acheive the above.

Thanks

Read only

Former Member
0 Likes
2,549

Hi,

First create a new screen and then a menu.

In SE41 menu painter add buttons and give them your own descriptions.

Assign each button to a function code.

In your program give link such as when user clicks on button1 transaction1 should be called.

Regards,

Subhashini

Read only

Nawanandana
Active Contributor
0 Likes
2,549

hi

Go to T-code SE43 or SE43N and create the area menu....... after that you can create the one transaction for the all.

Regard

nawa

Read only

Former Member
0 Likes
2,550

Hi

Your code is correct till here. now u have to use an event called AT LINE-SELECTION.

like this.

AT LINE-SELECTION.
 CASE SY-LSIND.
    WHEN '1'.
        call transaction 'tcode'.
endcase.

Read only

0 Likes
2,549

Use transaction SE43 to customize your own menu. Then assign to the users or calls like a transaction