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.
- Open your Sales Orders Management project.
- Accept the Disclaimer if prompted.
-
Select the Sales Order Processing artifact.

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

- 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.
-
Select (+) icon after the trigger to add a step to the process.

-
Select Action followed by Browse All Actions.

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

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

-
A dialog opens to create a destination variable. Enter the following value and select Create.
Input Field Input Value Identifier ATPcheck 
-
Select the Inputs tab and configure the inputs section with the following fields
Form Input Fields Process Content Entry Material material Quantity quantity 
-
Select the Condition operator in the process editor and select Open Condition Editor to modify the condition.

-
Change the branch condition value to:
OverallStatus - is equal to - available
-
Apply the changes.
