Skip to Content
0
Former Member
Mar 27, 2007 at 02:01 PM

how to write the container back ????..probs with SAP_WAPI_WRITE_CONT...

53 Views

Hi experts,

I am using the custom leave approval workflow with UWL launching a web dynpro screen..

i am able to launch the approval dynpro screen for the approver from the UWL.

when the approvers approves or rejects on the dynpro screen

first iam updating the status in the SWXFORMABS table then

1) iam reading the task container by passing work item id. (using SAP_WAPI_READ_CONTAINER fun module).

2) i am modifying the contianer element (_WI_RESULT) with 'A' or 'R' status.

and then iam writing back the modified container using the SAP_WAPI_WRITE_CONTAINER fun. module.

3) then to complete the task i am using the SAP_WAPI_WORKITEM_COMPLETE fm.

<b>My problem is the write FM is not writing back the contianer and the workflow does not proceed further ???

When i debug also the return code of WRITE fm is zero and even in the workflow log it shows the SAP_WAPI_WRITE_CONTIANER sucessful and workitem complete is succesful but it shows the WIRESULT field as empty.</b>

what could be the problem.????

please hlp me...

helpful answers will be appreciated...

Message was edited by:

sateesh kumar