cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Any clues??????

pokrakam
Active Contributor
0 Kudos

Sorry I haven't used your scenario before. I commented because I ended up reading the same question I couldn't answer for a second time, along with 20 others.

I usually use either events or the standard setup using WF_HANDCUST to send data back to the WF from a webservice. Does this not work for WD services? Other than what you've done looks right. Sorry I can't be of more help.

Cheers,

Mike

pokrakam
Active Contributor
0 Kudos

Sateesh,

You posted the same question yesterday, could you please close one of them. If you have more info then please add it to the same question rather than asking the same thing again.

The reason is simple: it gets confusing, more so when different people respond to different threads about the same q.

Cheers,

Mike

Former Member
0 Kudos

thanks mike,

i closed the yesterdays one..

can you please analyze where i might have went wrong.....

regards,

Sateesh.