Skip to Content
Former Member
Dec 10, 2008 at 10:48 AM

Workflow Binding Problem


Hi All,

I have to customize standard Leave Application workflow WS12300111. for that i have copied this workflow into new Z-workflow. Actually i have to fetch some data from custom infotype before sending this leave to approver.

Now this WS12300111 is based on Class(CL_PT_REQ_WF_ATTRIBS) not on BO and to fetch custom Infotype data I have created custom BO and written method inside this BO.

The problem i am facing is i need to export a parameter from workflow container to my BO's method container and data type of that element is of Table Type (PTREQ_ITEMS_WF_TAB_FLAT) and in method it is not allowing me to create elements with reference to this Table type (there is no Option to create element using ABAP Dictionary type As it is in Workflow container). If i define my method element using Line type if this PTREQ_ITEMS_WF_TAB_FLAT then it allows me to create that element (B'coz line types are basically structures) But it gives me Datatype mismatch error in Binding from Task to Method...

So is there any way to achieve this?? or should I create a Z-Class as subtype of standard Class CL_PT_REQ_WF_ATTRIBS and then write a new Method in this subtype Z-class to read custom infotype. Is this the way to achieve the delegation functionality of BO in Class.