Skip to Content
0
Former Member
Jun 06, 2008 at 01:24 AM

Anyway to change the req.status container in wf?

98 Views

Dear all workflow expert,

Anyone knows how to change the req.status so that i can do a 2 level approval or anyone can suggest me a way to do it apart from what i did below?

Thanks

Regards,

Bryan

**************************************************************************************************************

I am in trying to customize the the standard leave request WF 12300111 to a 2 level approval and therefore i copy this wf out to customize it. I created one of the step to change the Req.status container back to the status "SENT" so that the second approval can approve it.

What i do was i bind the Req.status to a container i created in a task (cus_req_sta) and the task is tie to my customize BOR object. Then i bind this cus_req_sta to my method parameter in the BOR object and i have the follwing code in my bor method.

BEGIN_METHOD ZLEVREQ CHANGING CONTAINER.

DATA:

LEAVESTA TYPE PTREQ_HEADER-STATUS.

V_LEAVESTA TYPE PTREQ_HEADER-STATUS.

SWC_GET_ELEMENT CONTAINER 'cus_req_sta' V_LEAVESTA

V_LEAVESTA = 'SENT'.

SWC_SET_ELEMENT CONTAINER 'cus_req_sta' V_LEAVESTA

END_METHOD.

After i change the value in the method, i bind it back from the method to my task and then from task to the workflow. Everything is fine untill the step to pass the value (sent) from task to workflow. It seems that it does not allow me to pass back the value to Req.status container in the workflow. The Req.status does not updated at all.

The req.status parameter setting is set to import and export when i browse it in the main screen (before entering to the workflow builder). However when i am doing the binding for task back to the workflow (after i drag and drop the req.status and double click on it), it shows the check box for import and export parameter settings is not check.

Anyone have idea? Please help me.....Points will be rewards.....Thanks

Regards,

Bryan