‎2007 Dec 22 9:52 AM
Hi,
I want to create user-exits in my custom program just like provided in SAP std programs to facilitate the clients to modify my custom program according to their requirements.
can u plz suggest me how to create enhancements/user-exits in Custom programs.
Plz help its urgent...
‎2007 Dec 22 11:20 AM
hi,
Create user Exits in custom programs
Example to create customer exits.
Write in your custom program
data: v_date type d.
CALL CUSTOMER-FUNCTION '001'
EXPORTING
DATE = v_date
IMPORTING
date_e = v_date.
Give whatever import and export parameters you want
Double click on this and it will give you a pop up to create funtion module doesn't not exits and do you want to continue
like EXIT_PROGRAMNAME_001. Click on Yes, This will give you pop up to create function module, give the funtion group and short text
Another informaiton pop you will get that the function module is sap reserved.. hit enter.
Then create the funtion module with desired imports and export parameters and Include will be already added in source code.
Now create the SAP Enhancement using tcode SMOD.
Enter enhancement name (eg. ZTESTECR) and click on create. Enter text, then click on components,
in the components add the function module EXIT_PROGRAMNAME_001 and save
Now for the project management of enhancements create project using tcode CMOD.
Enter project name (eg. ZTESTPJ) Click on create, then click on Enhancement assingment (eg. ZTESTECR) Then click on components and activate
The customer exit you have created in the program is now activated as well.
Similarly you can create more in same program and create funtion modules and add them in the enhancements.
award points if helpful.