User Decision - Action to Take
Breslavets, Sergey
Sergey.Breslavets at anheuser-busch.com
Tue Jan 28 11:28:48 EST 2003
Hi Namit,
if you're on 46, here's what you can do:
in the user-decision step use secondary method (after) to check the value of the
'_RETURN' container element.
If user selected "Cancel and Keep workitem in Inbox", then the '_RETURN' element
won't be available in the container, otherwise it will contain the id of the
option that user has selected (i.e. '0001', '0002', etc.)
here's the sample code for the secondary method:
----------------------------------------------------------------------------
....
DATA:
BEGIN OF WI_RETURN OCCURS 10,
WI_RETURN LIKE SWCONT-VALUE,
END OF WI_RETURN.
SWC_GET_ELEMENT CONTAINER '_RESULT' WI_RETURN.
IF SY-SUBRC NE 0.
*** -- User selected 'CANCEL AND KEEP WORKITEM IN THE INBOX'
*** -- here you can code your logic to process the exception
ELSE.
*** -- '_RETURN' contains the id of the option that user has selected
*** -- here you can code your logic to process the result
ENDIF.
....
-----------------------------------------------------------------------------
Let me know if you have questions.
Sergey
-----Original Message-----
From: Namit Bhargava [mailto:namit.bhargava at us.ibm.com]
Sent: Monday, January 27, 2003 5:26 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: User Decision - Action to Take
Hello:
I want to evaluate the action taken by the user in the decision step - if
he/she selects "Approve" or "Reject" - then I dont want to do anything -
however if his/her response is "Cancel & Keep WorkItem in Inbox" - then I
want to take some action. Please advise - any help will be appreciated.
I tried using the secondary method after workitem execution but could not
get the status of the user decision - I am using object FLOWITEM and Method
STATUS CHANGE.
Thanks
Namit Bhargava
IBM Business Consulting Services
More information about the SAP-WUG
mailing list