cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Binding Problem

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

vijy_mukunthan
Active Contributor
0 Kudos

Hi michell ongota

What your are trying to achieve with custom infotype. As far as i concern you can use employeet business object to get all the details. customize this busniess object and write your logic here or you can customize the class which you have mentioned. There is nothing like delegation for class. But i dont know in which method u will write the code. Since the leave request going to apply from portal dont do any customization of this class. Try to use the business object EMPLOYEET. I have done leave request workflows i never done any thing in this class.

Regards

vijay

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

There is GUID for identifying the particular instance of the workflow. if you see the container it will show you the GUID. so in ur Z BO you can pass this GUID and there are standard methods available to read leave data eg. personnel number, dates , etc. So u can code in you z bo methods to fetch the data and use it in your workflow.

BR,

Prashant Singhal.