0% found this document useful (0 votes)
12 views

Workflow Form

workflow-Form
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Workflow Form

workflow-Form
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Step Type : Form : This step is used to customised the approval screen

i.e. if the customer doesn’t want the standard screen then the approval
screen can be developed by using Form.

Firstly we need to created the table/ structure with fields which I want to display in Form.

Now create the worklfow and First Save it.


Next step would be to create the container element with the same structure/table which we created in
SE11
Now RC on the branch and select the Form step.
Give any name in Step Name and choose WF-Initiator in Agents tab for Expression dropdown.

Now choose create button to create the form. The wizard will get open.
Select Continue

Select the structure which is coming from workflow container


Complete the wizard

The form step will get created as shown below.


Now go to form step and select the change icon as shown below.

The screen painter will get open where we can design our approval screen. All the fields of the structure
will get displayed in the screen. We can adjust the alignment of all those fields.
Now use push button to create one Approve button and assign the function code to the same.

Also select the Input field checkbox of the Sales document field.
Now Save the Form .

And activate it.


Go to Flow logic to write the code in Export_data subroutine.

DC Export_data subroutine.
Write the code as shown below. The below code is responsible to take the values from screen and save
it into database.

Click on Save and activate and go back and click on Enter ( Green mark)
Now save the workflow and activate it. Test the worklfow.

Once executed the workitem gets generated and gets placed in inbox (SBWP) of the user.
Select the Change Form workitem and DC on it. The Form will get open where we can provide sales
order number.

Now once Approve button is clicked , the corresponding value gets saved into database.

You might also like