cancel
Showing results for 
Search instead for 
Did you mean: 

SRM - BADI debug

Former Member
0 Kudos

Hi gurus,

how can I debug a SRM BADI setting an external break-point? It seems impossible!

I'am not an expert ...

- I have set the parameter in SICF sap\bc\gui\sap\its ... ~GENERATEDYNPRO 1 ...

- I have set in utilities, settings, debugging, external debugging, in the field USER the name of the user I am using to approve the shopping cart

- I have set the break point in the BADI

But it does not stop!

Thanks a lot

Guido

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Which SRM version are you using ?

<b>Yes... For Approve functionality...the BADI does not get called.. as the process is executed in the background...</b>

Try putting break-point in all Active Customer Implementations, and check again...

Regards

- Atul

Former Member
0 Kudos

Hi Guido,

sometimes its not clear, which user really calls the function.

Therefore it might be the problem, that SRM in your case uses the system user within this Badi (WF-Batch for example).

It might be helpful (as Atul mentioned before) to set a "hard" breakpoint within the BAdi coding.

Best possibility from my point of view:

Set an endless "loop" within your active implementation, for example:

DATA: debug type c.

While debug is initial.

endwhile.

Now start your transaction and check via SM50 if you can find the "endless" process.

Just mark it and debug it directly from SM50.

Best regards

Andreas

Former Member
0 Kudos

SRM is 4.00.

BADI is BBP_CREATE_REQ_BACK

An hard BREAK-POINT (as command) does not work.

I have tryed with an endless loop, by I'am not able to catch it by by SM50 because the system dumps. I think bacause of the user WF-BATCH that is not a dialog user. This is the dump:

23.11.2007 14:50:05 srm-svil WF-BATCH SYSTEM_CANCELED

23.11.2007 14:50:04 srm-svil WF-BATCH RFC_DEBUGGING_NO_DIALOG_USER

Do you have any other suggestion?

Thanks in advance a lot for the ready and clear answer.

Guido

pvanhoove
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Don't try externall debugging with this badi, you can do it easier from webgui:

Create a shopping cart, don't approve it. Set a session break point in your badi and call the function BBP_REQREQ_TRANSFER with the shopping cart ID or BBP_PD_SC_TRANSFER with its guid.

BBP_PD_SC_TRANSFER is the function called in the backround when a shopping cart get approved.

Rgds,

Pierre

Former Member
0 Kudos

GREAT!

I'm debugging!

Thanks a lot

Guido

Answers (0)