转 Using the step "Form" (Detailed example)

Using the step "Form" in workflow

By Sai Kumar B, Enteg Infotech, From link.

In the need of input from the user other than mere clicking of accept and reject actions, we can use the Form Step in workflow. The form step presents the user a form (User interface) thus by enabling the workflow developer to capture the required input from the user. The form used here is just like classic Dynpro screen, which can be designed in Screen Painter (SE51).

To Begin with lets start with Workflow builder, SWDD. In this tutorial I was just showing how to include a form step inside a workflow.

转 Using the step "Form" (Detailed example)

  1. Right click on the activity and select create.
    转 Using the step "Form" (Detailed example)
  2. Select the form step type.
  3. In the next screen provide Step Name and agent assignment
  4. Select the form type and action
  5. Then click on Create (Before clicking on Create make sure that you have declared a structure in container which can be used as the structure for the form / Screen you are going to include.
    转 Using the step "Form" (Detailed example)
  6. If you have not created the structure, you can do so by double clicking the container.
    转 Using the step "Form" (Detailed example)
  7. Then give name for the container element and type of the element, and if you are using this structure for changing of some values be sure to check export and import check boxes in properties tab.
    转 Using the step "Form" (Detailed example)
  8. Coming back to the form step click on the create button.
    转 Using the step "Form" (Detailed example)
  9. This will start a wizard, Click on continue
    转 Using the step "Form" (Detailed example)
  10. Give your form a name and select the structure for which you are building the form .
  11. And click on continue.
    转 Using the step "Form" (Detailed example)
  12. Then click on complete
    转 Using the step "Form" (Detailed example)
  13. Save the object
    转 Using the step "Form" (Detailed example)
  14. Now you can change the form as per your need. You can use the form as it is, as the logic will be handled automatically. The changes that were made in the form at runtime will directly reflected in the container element. If you need more complex logic you can modify the form as per your requirements by clicking on change button.
    转 Using the step "Form" (Detailed example)
  15. This will open the form in screen painter to modify the form, make necessary changes in layout.
    转 Using the step "Form" (Detailed example)
  16. If you need to change the flow logic you can go there by clicking on flow logic, where you can change the flow logic.
    转 Using the step "Form" (Detailed example)
  17. If you want to control the data in PBO and PAI level you can double click the module to be navigated to the function modules generated by sap system. Even though SAP recommends not to change the modules you can change them with due caution to meet your requirements.
    转 Using the step "Form" (Detailed example)
    转 Using the step "Form" (Detailed example)
    转 Using the step "Form" (Detailed example)

Finally activate everything and test.

你可能感兴趣的:(workflow,form,step)