Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Business workplace function module

Former Member
0 Likes
608

Hi,

I am working on a program where it changes teh status of workitemid(field:wi_id table:y4ap_t01) from '20'(Resubmit) to '300'(Document deleted).

1.The program is working fine with changing the status in Y4AP_T01 AND Y4AP_T02 TO '300'.

when it changes the status to '300'(delete) it has to delete the record from businessworkplace<b>(Transaction:SBWP)</b>

(FOR this task tables that are user are <b>swwuserwi</b> and <b>swwihead</b>(where it deletes the record from swwuserwi by comparing workitemid and updates teh status as 'cancelled' in SWWIHEAD)

but this logic is not deleting teh record from businessworkplace.

<b>So can any one send me the function module that is used to delete the record from business workplace .</b>

Thanks in advance,

Vengal.

1 REPLY 1
Read only

Former Member
0 Likes
308

Hi,

You can´t actually delete a worktem from SBWP.

If a workitem is in progress, logically delete, or completed, it doesn´t show up in SBWP.

So you´ll have to search in that direction.

Check the function modules SWW_WI* of group SWWA, these are also used in SAP standard.

Piece of advise, don't do direct table updates on SAP Business Workflow tables, usually there are more tables used than you know.

Kind regards, Rob dielemans