SWO1创建了自定义对象以及方法,debug方法如下:
You can separately test BO and Task . And for debugging a Task, via foreground you can achieve.
-
BO --> In SWO1 T.code you can debug and check like normal Programs
-
Any Task including workflow you can Test in T.code SWUS
-
To Debug a Background Task,
a) Go to the Method of that Task in SWO1
b) Make it as a Dialog Method
c) In the Method give the Break-point (Hard code) in the method
d) In the Task call it as a foreground Method and give you’re user id in the agent assignment.
e) And execute the workflow, once that Task executed it will come to your inbox
f) Once you open, the Workitem it will go the exactly place of the break-point.
g) Then like normal ABAP Program you can Debug.