2. Action Project for ATP Check

2. Action Project for ATP Check

In this lesson, you will use the ATP_Check Action Project, which is already available in the lobby. This project leverages a service developed using ABAP to validate the availability of a requested material in the specified quantity. The service checks inventory and supply data and provides a response confirming whether the requested quantity can be fulfilled.

  1. Open your Sales Orders Management project.
  • Accept the Disclaimer if prompted.
  1. Select the Sales Order Processing artifact.

    2_1_openprocess

    The process begins with an API trigger, which will later be initiated by the application created using SAP Build Apps.

    2_1_process
  • In the following steps, we can check if the requested product is available in the specified quantity through an Action using a custom OData service developed in ABAP.
  1. Select (+) icon after the trigger to add a step to the process.

    2_1_addstep
  2. Select Action followed by Browse All Actions.

    2_AddActionProject
  3. In the Browse library page, find the Action project Add new entity to ATPCheck and select Add.

    2_2_atpcheck
  4. In the General tab, look for the Destination Variable and select + Create Destination Variable in the drop down.

    2_3_CreateDestinationVariable
  5. A dialog opens to create a destination variable. Enter the following value and select Create.

    Input Field Input Value
    Identifier ATPcheck

    ConfigureDestinationVariable
  6. Select the Inputs tab and configure the inputs section with the following fields

    Form Input Fields Process Content Entry
    Material material
    Quantity quantity

    Auto
  7. Select the Condition operator in the process editor and select Open Condition Editor to modify the condition.

    2_5_Condition
  8. Change the branch condition value to:

OverallStatus - is equal to - available

  1. Apply the changes.

    2_6_condition_modify