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
916

Hi Friends,

I have a function exit and Include file in it. I want to make some changes in the include file and debug it. How should I do it. If I set a break point in the include and run the function exit, it is not stopping in the include. Please help me how to do it.

Thanks

Veni.

11 REPLIES 11
Read only

sridhar_k1
Active Contributor
0 Likes
855

Create a project in Tx:CMOD and assign the enhancement of the function exit and activate the project.

Regards

Sridhar

Read only

0 Likes
855

Vani,

If you have already activated the project then put a break point at the statement the function exit is called...then you will whether the control is going there atleast or getting skipped.

Thanks,

Read only

Former Member
0 Likes
855

hi,

After placing the break point, u need to executre the transaction assoiated to this exit. Then it will stop when the corresponding event is triggered.

Sreedhar

Read only

Former Member
0 Likes
855

Hi,

First go to CMOD and crate the Project and then Assign the Enhancement to it . adn then implement the exit by double clicking the Function module, there you have to add the code inside the ZX*****include . and write the code. and activate the FM,and Project. and now keep a break point in the include code. and now run the Corresponding transaction.

Regards

vijay

Read only

Former Member
0 Likes
855

Hi Veni,

put tis code into ur INCLUDE program.

If sy-uname = <give ur user name>.

break-point.

endif.

- Selvapandian Arunachalam

Read only

Former Member
0 Likes
855

The information you provided is not sufficient to give you any reason why it is not stopping at the breakpoint. In all probability, your user exit is called in an update task and so it is not stopping at your breakpoint. Another reason could be that your user exit is an output related one like IDOC. Please let us know the user exit and the include so that we can give you a way to debug.

Read only

0 Likes
855

Hi Srinivas,

It is related to IDOC. EXIT_SAPLVMDE_003 is the exit and ZXLIDU17 is the Include. Please help me how to debug.

Thanks

Veni.

Read only

0 Likes
855

Vani,

The main program which is calling EXIT_SAPLVMDE_003, put a breakpoint at a statement before calling this exit. I dont know whether it is looking for some condition before calling this exit or not. So try a breakpoint before the exit and check whether the control is going till there. If the control goes inside, the it will surely pass through the include.

Thanks,

Read only

0 Likes
855

IDoc processing happens in a separate background process, so the processing won't stop for you to see it.

I've found that the best way to debug is to use the IDoc test environment (WE19), copy an existing IDoc (enter its number on the selection screen in the field "Existing IDoc"), and process your copy via "Inbound function module", in foreground. This should work, i.e. the processing will stop at your breakpoint, if I remember well (it's been some time since I've worked in this area).

Read only

0 Likes
855

Since this is an inbound IDOC, you have to use WE19 test tool to get into debugging. If it is outbound, then you can execute RSNAST00 for the specified output type and stop at the break point. Of course the output in this case should not be set up for immediate processing or repeat output should be allowed.

Read only

Former Member
0 Likes
855

Hi Veni,

Put a breakpoint somewhere in FM SD_IDOC_INPUT_PICKING, jst before routine 'perform sdpiid01_verarbeiten using idoc_nummer'. This routine call the user exit. In case of return <> 0, this routine will be skipped.

Also check if the user exit is activated(Just a thought)

Cheers,

Vikram

Pls reward for helpful replies!!