Prerequisites
This description assumes that you are creating your new ABAP program in the Object Navigator. It is also based on the most general case, and you can use it even if there is not yet a Programs node in your object list.
You can also use the Create function from the context menu of the object node. See also
Procedure
(Other object). In the Object Selection dialog box, chose Program.
Remember that all programs in the customer namespace must begin with Y or Z.
. The Create Program dialog box appears.

to confirm your entries.
to confirm your entries. Another dialog box appears in which you must set other program attributes.
For details of what each attribute means, refer to
Maintaining Program Attributes.
Save.The Create Object Catalog Entry dialog box appears.
Assign a development class to the program.
to confirm your entries. The program is added to the object list of the relevant development class and displayed under the Programs object node. The system starts the ABAP Editor and opens the program in change mode.
Result
The program has been created in the R/3 Repository, and its inactive version is displayed in the ABAP Editor. You have assigned a development class, and it is thus attached to the transport and correction system.

You can also create programs from the initial screen of the ABAP Editor (SE38).