Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

User Exit

Former Member
0 Likes
569

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
542

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

5 REPLIES 5
Read only

alejandro_lpez
Contributor
0 Likes
542

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

Read only

Former Member
0 Likes
542

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

Read only

Former Member
0 Likes
543

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

Read only

0 Likes
542

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

Read only

0 Likes
542

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