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.
-
Right click on the activity and select create.
-
Select the form step type.
-
In the next screen provide Step Name and agent assignment
-
Select the form type and action
- 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.
- If you have not created the structure, you can do so by double clicking the container.
- 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.
- Coming back to the form step click on the create button.
- This will start a wizard, Click on continue
- Give your form a name and select the structure for which you are building the form .
- And click on continue.
- Then click on complete
- Save the object
- 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.
- This will open the form in screen painter to modify the form, make necessary changes in layout.
- If you need to change the flow logic you can go there by clicking on flow logic, where you can change the flow logic.
- 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.
Finally activate everything and test.