Retrieving Workitem id
I have a scenario where I need to add an attachment to the workitem i.e suppose the document is with the user to either release or refuse.
If he refuses the document a pop up should appear in which he can enter the rejection reason.
I have modified the standard method 'RELEASE' of B.O. FIPP and used the function module SWL_WI_NOTE_CREATE inside it.
However this F.M. takes as input the workitem which should not be completed.
So how can i get thw workitem no. which is currently being executed to be passed to this F.M i.e the user gets a workitem for release and I need this workitem to be passed to the above F.M.