you can crete Transaction code in Transaction SE93.
To create a transaction code:
Enter a transaction code (up to 20 characters).
A dialog box appears. Enter a short text and choose the transaction type.
The transaction type can be as follows:
In a report transaction, you use a transaction code to start an executable program (type 1). An executable program usually has three steps - data entry (selection screen), data processing (often using a logical database ), and data output (list).
To create a report transaction, use the Transaction Maintenance transaction (SE93). Once you have entered a transaction code and short description, choose transaction type Program and selection screen (report transaction).
When you define a report transaction, you can specify the selection screen and variant with which you want it to start.
You can also protect the report transaction against unauthorized use. To do this, enter the name of an authorization object in the corresponding field.
In a dialog transaction, the flow of the program is determined by a sequence of screens. The screens that are called within a transaction should belong to a single ABAP program, usually a module pool (type M program).
To create a dialog transaction, use the Transaction Maintenance transaction (SE93). Once you have entered a transaction code and short description, choose transaction type Program and screen (dialog transaction).
You can create transaction codes for Custom query;s created using SQVI also
Thanks & Regards
First Go to Trxn code and in Menu System Status Identify the Program Name for which you are Creating Z Trxn code.
Then Go to SE93 Trxn code Give Z Trxn Code then click on Create Button. Then Insert the Program Name, Screen Name and Save.
You can Find the Trxn code along with Program NAme & Screen Name in SM01 Trxn code also. Just give Trxn code and enter then it will show all the aforesaid.