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

Problem with user exit.

Former Member
0 Likes
985

Hi,

I have implemented a user exit EXIT_SAPLCOIH_002 in the development system. In the development system we have activated this exit and the include. In tetsing everything worked fine and the code in the include was getting executed.

Now we moved the transport to the test system. But here we found that the code in the include was not getting called. In test then we just activated the include and the exit (CNTRl+F3) inspite of the include and the exit showing as activated.. After activating the code in the include was executed and everything works fine in test.

Now my question is:

1) Will I face a similar problem in productionwhere the code in the exit, include will not be executed?

2) What steps should I take to prevent this?

Any helps would be appreciated.

Thanks in advance.

Mick.

7 REPLIES 7
Read only

karol_seman
Active Participant
0 Likes
898

Hi,

I was facing the same problem few days ago with exit EXIT_SAPLCOIH_032. So the answers are:

1. Yes, you will have the same problem

2. I didn't find any other solution how to do it. Vice versa in production system, activation of function module and include was not enough and I had to activate the function group too.

Regards,

Karol

P.S.: SAP recomendation is to not create new user exits any more, instead of that to use BADIs and enhancement potins ...

Read only

0 Likes
898

Thanks Karol.

I am on SAP 4.7. Is there any BADI available for TCode IW32 on click of release flag?

Also to clarify, I will face the same problem in production. But to avoid the problem I should move one more transport from development to test activating the include, exit and the function group for the exit? Please confirm.

Regards,

Mick

Read only

0 Likes
898

Hi Mick,

I am not sure about your second paragraph. How exactly you want to send activation in separaterd transport object? You mean to active exit in CMOD/SMOD ?

I didn't have this situation in my case, because the exit was active, but not implemented. So I just did implementation. The problem was, that the include with my code and exit function module were active (had active status) but still not performing. So I just simply pressed activation button of include, function module and function group (in last case right click on the function group in se80 and activation). This steps were done directly in the production system. Just to reactivate it in the production system because the whole problem looks like there is some kind of bug in SAP. The objects in the transports are not sent activated, just like a code and the activation is done automatically during transport in target system.

I don't know the list of BADIs that you can use because we are still mostly using user exits but if you try to use search in SDN maybe you will be lucky. The user exits after pressing release button are very often we have also a lot of code there (in user exit). But if you want to try to find something maybe this program will be useful for you

http://wiki.sdn.sap.com/wiki/display/Snippets/FindBADIandUserexitandBTE

Good luck,

Karol

Read only

0 Likes
898

I Just found following document, try to check out the exits.

http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf

Regards,

Karol

Read only

0 Likes
897

Thanks Karol for the prompt response.

In my case also the user exit is active, and I have just implemented the exit by writing code in the include and activating the include. After activating the include, the exit and the include were both active, but the code in the include was not getting called.

That means that like in your case, in production, I will again have to activate the include, the exit and the function group

Is my understanding correct?

Also what I meant in the first paragraph of my earlier message was that should I acivate the exit and the include again in development and then transport the request to test and then transport both the request to production. Hope I am clear.

Regards,

Mick

Read only

0 Likes
897

Hi Mick,

you are right.

You have exactly the same situation as I had. In that case I don't think that when you active the code again in development system that it will help. You just need to active it directly in production. The good thing is that once you active it in production and it is working in all other changes of the exit and next transports you don't have to active it in pproduction again.

Regards,

Karol

Read only

Former Member
0 Likes
897

Closing this thread