|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Executing the user-decision step programmatically (SAP Business Workflow)
To execute the "User Decision" step programmatically instead of
manually executing the work item.
create a sample workflow definition with a simple "User Decision" step
as shown below:
workflow would look like:
execute the workflow definition and the following work item would appear in your
make any decision and click on "Cancel and keep work item in inbox".
retrieve the work item id for the above work item using the transaction SWIA.
use the function module SAP_WAPI_DECISION_COMPLETE to execute the User-decision
is the sample code:
important parameters to be entered are workitem_id and decision_key. Enter the
decision values as '0001' for 'Approved', '0002' for 'Send for corrections' and
'0003' for 'Reject'.
executing the above program, the work item would be executed with the option
provided and the status would be set to "COMPLETED".
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards