Modify Form

Modify Form

In this scenario, the request form is used as a trigger. Once a purchase requisition is created through the request form, the approval process will start. You will modify the form’s look by using a table view and also provide dropdown menus with pre-populated data to choose from.

Modify the Request Form

  1. Make sure that you are in the Process Overview

  2. Choose the three dots on the form of your trigger

  3. Select Open Editor

    Process

    You are now in the Forms Editor, where you can design and modify the layout and input fields. On the left side of the canvas, you’ll find various options to choose from, such as text fields, numeric fields, and tables.

  4. Select the three dots on the Description field and choose Delete.

    Forms
  5. Similarly, delete the following entries as well:

    • Manager Email
    • Material
    • Quantity
    • Plant
    • Delivery Date
  6. Add a Dropdown field beneath Item Details.

    • You have the option to add fields by selecting the field, or by dragging and dropping the field into position.
  7. Add the name Select Cost Center and select the Required checkbox on the right.

    Create
  8. Choose the Data Source option in the Data to display section, then select the Browse library button.

    Library
    .

    You will prepopulate the dropdown field through an action, so users can select the options available in the SAP S/4HANA System. While it’s possible to enter values manually, in this instance, we prefer to retrieve existing data from the system for the dropdown selection.

    Actions are a concept of how we can easily maintain APIs within SAP Build Process Automation that allow the process to connect and communicate with the other systems, e.g. retrieve and post data from SAP S4/HANA System.

  9. Once in the library, select the action Reads all available cost centers by selecting Add.

    Library
  10. Choose Create Destination Variable from the Destination Variable dropdown menu.

    create
  11. Provide the following information to the Destination Variable

    • Identifier: CostCenter
    • Description: Destination Variable for Cost Center
  12. Select Create

    Destination
  13. Select CostCenter from the Destination Variable dropdown menu.

  14. Under Available Data, type CostCenter then select the Cost Center string option.

  15. Select Save

    Available

Create Table View

You will now create a table view for the input fields and also pre-populate them using the same action.

  1. Drag and drop a new Table field to the Form. Name it Line Items.

    Line
  2. Select the plus icon within the newly created Line Items table, then choose the Dropdown option.

  3. Insert the Name Material and select required.

    add
  4. Navigate to Data Source and choose Browse Library.

    Browse
  5. Once in the library, select the action Reads all product materials. by selecting Add.

    add
  • We will now create another destination variable.
  1. In the Destination Variable dropdown menu, select Create Destination Variable and enter the following details:

    • Identifier: MaterialCodes
    • Description: Destination Variable for Material Codes

    MaterialCodes
  2. Select Create

  3. Select the MaterialCodes option from the Destination Variable dropdown menu.

  4. Under Available Data, type Material then select the Customer Material string option.

  5. Select Save

    Available
  6. Select the plus icon, and add another Dropdown input field. Name it Plant, and make it a Required field.

  7. Under Data Source, select from library. Select the Action Reads all Product materials by selecting Add.

  8. Under Destination Variable, select MaterialCodes.

  9. For Available Data, type Plant and select Plant string. Select Save

    Plant
  10. Create another Line Item by selecting the plus icon next to the Plant input field…

  11. Select Dropdown as the field type. Name it Base Unit, and make it a required field.

  12. Fill in the following values for the Manual option, then select Save.

  • PC

  • KG

  • EA

    Base
  1. Add another field into the table by selecting the plus icon next to the Base Unit input field.

  2. Select Text as the field type. Name it Quantity, make it a required field then select Save.

    Quantity
  3. Drag and drop another Dropdown field below the table. Name it Company Code, and make it a required field.

  4. Under Data Source, select from library. Select the Action Reads all available cost centers by selecting Add.

  5. Select the CostCenter option from the Destination Variable dropdown menu.

  6. Under Available Data, type Company and select the Company Code string option.

  7. Select Save

    Create
  8. Create a new Text field and call it Purchasing Organization and select the Required checkbox on the right.

    Create
  9. Create a new Text field and call it Purchasing Group and select the Required checkbox on the right.

    Create
  10. Save your work by selecting the Save button in the top right corner. You are done with the layout and input fields of the approval form.