Quantcast
Channel: SCN : Discussion List - SAP Business Workflow
Viewing all articles
Browse latest Browse all 1026

Problem in Debugging a Method of Class in Class Based Workflow

$
0
0

Hello Experts,

 

I am new to classes and objects and also to class based workflow. Before this I have created workflows only using BOR.

 

I have a requirement of adding one more level in standard leave request workflow.

 

For that I made a copy of standard workflow template and also created a subclass of ZCL_PT_REQ_WF_ATTRIBS called ZCL_PT_REQ_WF_ATTRIBS_COPY (since ZCL_PT_REQ_WF_ATTRIBS was already created and used by other workflow templates and not allowing me to add my method).

 

Then I added my method in ZCL_PT_REQ_WF_ATTRIBS_COPY called REVERT_REQUEST_STATUS.

 

When I executed my workflow the method went into error raising exeption CX_SY_REF_IS_INITIA.

 

I tried to debug my method by adding an infinite do...enddo loop in my code, also tried function module K_PLAN_WAIT_FOR_DEBUGGING and K_PLAN_WAIT_FOR_DEBUGGING_CTRL, also tried following the instruction in SAP note 1782731 but with any of these methods I am unable to see my class method in SM50.

 

I checked SCN for similar threads but couldn't get the solution.

 

I checked WF-BATCH authorizations which seems to be correct since I am able to debug methods of BOR by creating infinite loop in my BOR method.

 

I certainly don't know where I am going wrong and why I am not able to see my class method in SM50.

 

Experts Please help.

 

Regards,

Shraddha.


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>