Login Form

Best viewed in IE 7.0

ADVERTISEMENTS
ADVERTISEMENT

Creating workflow start transactions

  1. Create your object <object>using SWO1
    1. Add ‘instance-independent’ method CREATE.
      1. In your method call your dialog module to center the required data

      2. Return the key for your object in the dialog module

      3. swc_set_objectkey <object_key_var>

  2. Create workflow template using PFTC
    1. Add object <object> to the workflow container
    2. Create your single step task call the CREATE method
      1. Bind _WI_Object_Id from the task container to the workflow container <object>
      2. <object> now makes the workflow and instance dependent workflow

  3. Create a workflow start transaction using SWUG
    1. If you have not defined a namespace for your workflow start transactions then you can do it using transaction SWUT
    2. Enter your task type, task number and screen number and save
    3. Once you have created a transaction you can edit the code using the same transaction SWUG
      1. If you want to bypass the initial screen and simply start the workflow immediately then find the PBO module EXIT_PBO_END_<SCREEN_NO> and insert the following code in the generated perform EXIT_PBO_END_<SCREEN_NO>:
           PERFORM CHECK_OBLIGATORY.
           PERFORM START_WORKFLOW.
           leave to screen 0.

  4. Starting the workflow
    1. Run standard transaction SWUI, select your workflow and select START
    2. Run the transaction that you generated in step 3
    3. Run standard transaction SWUS to test your workflow
ADVERTISEMENT
Free software downloads