cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug SRM code when data coming from BC connector

Former Member
0 Kudos

Hi Friends,

Can anybody tell me

I have requirement, data coming from BC connector to SRM. I need to debug how my function module getting executed with that data. Whenever data hits my function module it should get stopped execution.

is it possible to do that. if so can you please let me know.

Thanks,

Ramana.

Accepted Solutions (0)

Answers (2)

Answers (2)

pvanhoove
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

There are several way to do this:

- introduce an endless loop in the FM called by the BC then catch and debug the process in SM50 (not my prefered)

- Generate test data for your FM when it is called (very usefull)

--> Your FM does have many import and table parameters: introduce the automatic test data generation like in note 539978

--> Your FM does have simple and a few import paramaters : insert some coding at beginning of the FM that will save the import data in a specific table and exit.

Then call your FM in test mode with this data.

Rgds,

Pierre

Former Member
0 Kudos

Hi

Incase you debugging locallyin the system, Try to put the key word at the first executable line after Function module declaration inside the Source code tab in your custom function module.

<b>BREAK-POINT.</b>

It will then surely stop in your function module.

Regards

- Atul