2015 Feb 19 6:58 AM
Hi Gurus,
I have a BAdI that is not triggering while creating the Shopping cart in SRM. It is triggering at the time of back ground job.
After creating the Shopping cart one background job for every 5 min. is running to create Purchase requsition.
so i kept error message in BAdI and i am executing the program(Not Job) but the break-point for that BAdI is not triggering.
Could you please help me how to trigger debugging for that BAdI.
Thnaks in Advance.
Regards,
Sai rama
2015 Feb 19 8:39 AM
Hi,
Try with the endless loop in your method to get into debugging something like the below.
1. Paste the below code in your method. But after your debugging, please remove this code. This code should not be transported.
DATA: LV_EXIT TYPE C.
DO.
IF LV_EXIT = 'X'. """Once you reached to debugging using below step, you need to update the LV_EXIT value as 'X' to come out of the loop
EXIT
ENDIF.
ENDDO.
2. Create a shopping cart. then goto SM50. Select your class/method name. menu: Administration -> Program -> Debugging.
You will get into debugging mode.
3. After completed your debugging, please delete the above code.
Hi,
Try with the endless loop in your method to get into debugging something like the below.
1. Paste the below code in your method. But after your debugging, please remove this code. This code should not be transported.
DATA: LV_EXIT TYPE C.
DO.
IF LV_EXIT = 'X'. """Once you reached to debugging using below step, you need to update the LV_EXIT value as 'X' to come out of the loop
EXIT
ENDIF.
ENDDO.
2. Create a shopping cart. then goto SM50. Select your class/method name. menu: Administration -> Program -> Debugging.
You will get into debugging mode.
3. After completed your debugging, please delete the above code.
2015 Feb 19 8:39 AM
Hi,
Try with the endless loop in your method to get into debugging something like the below.
1. Paste the below code in your method. But after your debugging, please remove this code. This code should not be transported.
DATA: LV_EXIT TYPE C.
DO.
IF LV_EXIT = 'X'. """Once you reached to debugging using below step, you need to update the LV_EXIT value as 'X' to come out of the loop
EXIT
ENDIF.
ENDDO.
2. Create a shopping cart. then goto SM50. Select your class/method name. menu: Administration -> Program -> Debugging.
You will get into debugging mode.
3. After completed your debugging, please delete the above code.
2015 Feb 19 8:49 AM
Hi,
Put the following code in the very first line of your code.
1.DO.
2.ENDDO.
3. Your Code
Debugger will be stopped at line 1 when you create a shopping cart.
Goto SM50 , select your process and click on Administration->Program->Debugging which will take you to line no. 1.
Put the cursor on line 3 and press SHIFT+F12 to jump to that statement.
This is the process for stopping debugger in background jobs.
After debugging, remove the above two lines.
Thanks & Regards
Richa
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |