on 11-23-2007 11:36 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.