cancel
Showing results for 
Search instead for 
Did you mean: 

Debug customer exit code

Former Member
0 Kudos

Hi Gurus,

I am working on enhancement for Business Content Datasources. I wrote the code in the exit for populating the new fields.

Can anyone please provide me steps to debug the code in the exit.

Thanks,

Regards,

Aarthi

aarthi.sap@gmail.com

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Subray,

Can you please give me some more details. something like step by step process.

I am little bit confused of the steps to do.

thanks,

Regards,

aarthi

aarthi.sap@gmail.com

Former Member
0 Kudos

Hi Aarthi,

Please follow the following steps:

1. Go to your code in the user exit (CMOD->zproject->components->EXIT_SAPLRSAP_001 or EXIT_SAPLRSAP_002->your routine/code).

2. You might have declared some data (declarations part of the code). Before your first execution statement (ideally before the first select statement), put the line of code "break <user>. This way, it will stop for only the user mentioned here. Activate the code.

3. Go to RSA3 and load the data as you usually do. The extractor will automatically stop at your breakpoint. From there, you can use the controls in the debug mode.

Hope this helps.

Thanks and Regards

Subray Hegde

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Subray,

Thanks a lot for your replies.

I will follow your procedure and will post if i face any problem.

thanks,

Regards,

aarthi

aarthi.sap@gmail.com

Former Member
0 Kudos

Hi Aarthi,

if you want to debug your user exit code, you can put a hard break and debug it. After your declarations and before your first select, put a line as:

break <user>. Here, put your user id. Then go to RSA3 and do the extraction for this extractor. It will go in debug mode only for you. Make sure you remove this line of code before you move this code to QA. Hope this helps.

Thanks and Regards

Subray Hegde

former_member188975
Active Contributor
0 Kudos

Hi Aarthi,

You can place a break point in this code. Then in RSA3, try to execute the datasource in debug mode.

Hope this helps...