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
1,249

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,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,131

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.

10 REPLIES 10
Read only

Former Member
0 Likes
1,131

Create a project for the enhancement and activate and place a breakpoint in the exit and run the transaction.

Read only

0 Likes
1,131

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.

Read only

0 Likes
1,131

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?

Read only

Former Member
0 Likes
1,131

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.

Read only

0 Likes
1,131

thnx srinivas,

it absolutely makes sense. i believe the program i shd look into is <b>"SAPLCORU"</b>. Is'nt it?

thnx.

Read only

0 Likes
1,131

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.

Read only

0 Likes
1,131

No, that is not yeilding any result. I looked for CALL CUSTOMER FUNCTION in program SAPLCORU and didn't find any calls.

Read only

0 Likes
1,131

i'm sorry. it's <b>"LCORUF3S"</b>.

Read only

Former Member
0 Likes
1,132

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.

Read only

0 Likes
1,131

THNX A LOT.