‎2006 Sep 12 5:39 PM
Hi All
Plz can some one throw some light on user exits.How we create a project when we have to add some code in the defined user exits.Can someone please gave me step to step creation steps.Suppose i have to do changes in MV45AFZZ in that i add he code and activate it. And if i put the break point will it go in that Exit.
and another example is like:: IF there is FM and there is a Exit...'001'. in that we have include progam. I add some code in that include. and i activate the include. the changed in the code will reflect or i need to create a project and then activate it and then the changes will reflect.
Plz help on this.
Regards,
Manu
‎2006 Sep 12 5:49 PM
Hi
You're speaking about two different ways to manage the user-exit.
- MV45AFZZ: here you can find the older way to manage an exit,i.e. by FORM.
In this include there're all FORM exit called in strategic points of trx VA01/2/3.
So you don't need to active a project but only to change that include.
So you have to pick up the MODIFICATION KEY by registering that object in OSS (just as you change a std object) and after put your code into routine (FORM) you need to use.
- ...FM and there is a Exit...'001': just as you said this is a FM, to use it you have to create a project by trx CMOD, so you have to find the enhancement containing that element (user-exit) and create and active a project with that enhancement. So run SE37 insert your exit and dysplay the code: here you can see only one line like this: INCLUDE ZX........ do a double click on include name and the system'll create a new include. This include is custom so you don't need to register it.
In both case you can insert a break-point
Max
‎2006 Sep 12 5:48 PM
Hi Anu,
For the second example you must create a Project in transaction CMOD, there you select the Enhancement
number asociated to FM Exit...'001' and then you have to active the project. This makes that FM exit works.
To see the Enhancement that is asociated to Function Module, go to transaction SMOD and search for component name.
Regards,
Alejandro
‎2006 Sep 12 5:49 PM
Hi Anu,
Got to cmod transaction,
give the project name,
check components,
click change,
there you find no. of user exit FMs,
go to the relavent FM,
create the include,
activate the include,
when you come back to cmod transaction you can c tick mark(implemented).
so ur code will be implemented into the program.
-Anu
‎2006 Sep 12 5:49 PM
Hi
You're speaking about two different ways to manage the user-exit.
- MV45AFZZ: here you can find the older way to manage an exit,i.e. by FORM.
In this include there're all FORM exit called in strategic points of trx VA01/2/3.
So you don't need to active a project but only to change that include.
So you have to pick up the MODIFICATION KEY by registering that object in OSS (just as you change a std object) and after put your code into routine (FORM) you need to use.
- ...FM and there is a Exit...'001': just as you said this is a FM, to use it you have to create a project by trx CMOD, so you have to find the enhancement containing that element (user-exit) and create and active a project with that enhancement. So run SE37 insert your exit and dysplay the code: here you can see only one line like this: INCLUDE ZX........ do a double click on include name and the system'll create a new include. This include is custom so you don't need to register it.
In both case you can insert a break-point
Max
‎2006 Sep 12 5:54 PM
Hi max,
i am talking abt second example::i undesrtand wht u said. But some says if u have to do like this then u need to create a project and then activate it.
I was not clear for that part. I was knowing only the way u said. can u plz explain it a little more so that i can understand it fully.
Regards
manu
‎2006 Sep 12 6:04 PM
Hi
Yes it's so.
U have to create and active a project by CMOD, if you don't do it the system won't trigger the exit.
In this way u can develop an exit and active (or deactive) only when you really need it.
So run trx CMOD:
- 1) Find the enhancement;
- 2) Create a Z<PROJECT>
- 3) Assign your enhancement to the project
- 4) Go to components
- 5) Do a doubleclick on component you need to use: now you'll be in trx SE37
- 6) Do a doubleclick on include
- 7) Insert your code
- 😎 Active the project
So remember the system'll use the exit only if it's active, else it means it doesn't want to use it or to continue to use it.
Max