It is always said that testing workflow is a difficult job. It will more difficult when the WF task is a background task. Because only putting a breakpoint in the background task method will not go in debugging.
Debug in WF means we are debugging some code in the BO-method or Class-method that is assigned to some WF task.
You can follow the below steps to debug a background task.
- Put a break point inside your BO-method. (Write the sample code DO.. ENDDO to make it infinite loop so that an entry get created in SM50)
- Execute your WF.
- Go to SM50.
- Select the particular record.
(You can see the BO name as Report and WF-BATCH as User Name)
- Program/Session – Program – Debugging
- Assign LV_FLG = ‘X’ so that you can exit from the infinite loop.
Note: Basically the background task escapes all the break point.
Thanks for sharing this Information, Got to learn new things from your Blog on SAP SF.SAP SF
ReplyDeleteAwesome Post. Have been waiting for a long time. Thanks for sharing this info with us.
ReplyDeleteOracle Training in Chennai | Certification | Online Training Course | Oracle Training in Bangalore | Certification | Online Training Course | Oracle Training in Hyderabad | Certification | Online Training Course | Oracle Training in Online | Oracle Certification Online Training Course | Hadoop Training in Chennai | Certification | Big Data Online Training Course
nice................!
ReplyDeleteui path training
nice.............!
ReplyDeleteui path training