Skip to Content
avatar image
Former Member

How to trigger workflow from standard webdynpro application?

Hello Experts,

I am very new to workflow, I got a requirement to trigger workflow from standard webdynpro application.

Requirement is:

I need to create a button on the standard screen, by clicking the button i need a popup screen(custom). In the pop-up screen am using two fields and a button. On clicking that button, workflow needs to trigger (basically an email is sent to the higher authority/manager). The manager can either approve it or reject it. But i need to check the status and store the status in a Database Table basically a custom table.

Do we got any standard workflow to do this type of requirement or need to create a custom workflow for it??

Your Inputs are very much appreciated.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 18, 2014 at 01:35 AM

    This is a simple thing, I think you would have found it by now if you have searched SCN for this...

    1. Create a class implementing IF_WORKFLOW

    2. Define a Event

    3. In your workflow register this event as start event

    4. Trigger this event on your action method

    Standard workflows are for business processes, and I would suggest that you check with your WF consultant if a Workflow already exists for the process you are working on.

    About the status, you should be able to get status from task id. There are some standard Functions available like this one "SAP_WAPI_WORKITEMS_BY_TASK". You really don't have to save it into a database.



    Add comment
    10|10000 characters needed characters exceeded

    • SAP Workflow is difficult to do without training.  I highly suggest an SAP WF class if you are having trouble with this simple task of triggering a workflow event.  Triggering a WF event from WD4A should be no different than triggering in ABAP.

  • Aug 18, 2014 at 07:37 AM


    Check this document for reference: How to Trigger Workflow from Web Dynpro ABAP - Part 1

    This will help you!



    Add comment
    10|10000 characters needed characters exceeded