‎2006 Aug 03 10:31 PM
Hi all,
Could you please let me know how can I test a user exit.
The user exit is on transaction <b>COR6.</b>
Exit is: <b>EXIT_SAPLCORU_001</b>
The include is: <b>ZXCOCU01</b>
Thanks much,
‎2006 Aug 03 11:20 PM
My mistake, I should use 'CALL CUSTOMER-FUNCTION' in the search criteria. It is being called from FORM CUA_DET_AND_SET, include LCORUF3S, line 579.
So I will put a break-point at the begining of this routine and do the debugging from there.
‎2006 Aug 03 10:35 PM
Create a project for the enhancement and activate and place a breakpoint in the exit and run the transaction.
‎2006 Aug 03 10:48 PM
Hi Sudhir,
I did the same process. there is a structure in the exit - <b>I_CAUFVD</b>. It's not getting filled. It's in the initial state, even if I enter values in the transaction 'COR6'. What could be the problem?
Thnx.
‎2006 Aug 03 11:00 PM
If you are able to step into the user exit code in debugging, then your activation and all worked. If the structure is not filled, then may be that is not the user exit you should be working with. It depends on where in the standard transaction, this structure is filled and where the user exit is called. If the user exit is called before the structure is filled, then you will not find any entries. Makes sense?
‎2006 Aug 03 11:04 PM
If you look at the documentation of this enhancement, you will realize that it is meant for hiding some functions in the menu. But it is supposed to pass you the header and operations. See where in the standard code, this user exit is called and see if the header values are there before the call by putting a breakpoint there.
‎2006 Aug 03 11:12 PM
thnx srinivas,
it absolutely makes sense. i believe the program i shd look into is <b>"SAPLCORU"</b>. Is'nt it?
thnx.
‎2006 Aug 03 11:13 PM
Easiest would be to do a where-used list of EXIT_SAPLCORU_001. That will put you in the program include from where it is called. Keep a break-point there and debug.
‎2006 Aug 03 11:16 PM
No, that is not yeilding any result. I looked for CALL CUSTOMER FUNCTION in program SAPLCORU and didn't find any calls.
‎2006 Aug 03 11:19 PM
‎2006 Aug 03 11:20 PM
My mistake, I should use 'CALL CUSTOMER-FUNCTION' in the search criteria. It is being called from FORM CUA_DET_AND_SET, include LCORUF3S, line 579.
So I will put a break-point at the begining of this routine and do the debugging from there.
‎2006 Aug 03 11:36 PM