2009 Dec 17 5:34 AM
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
2009 Dec 17 6:22 AM
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.
2009 Dec 17 5:49 AM
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.
2009 Dec 17 5:59 AM
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
2009 Dec 17 6:01 AM
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
2009 Dec 17 6:13 AM
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
2009 Dec 17 6:22 AM
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.
2009 Dec 17 11:00 AM
Use transaction SE43 to customize your own menu. Then assign to the users or calls like a transaction
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |