Function imports used in the basic OData sample service for SAP Gateway.
Function Import | Purpose |
---|---|
RegenerateAllData | Regenerate all EPM data used in this scenario (like transaction SEPM_DG). Regeneration will take place for all master data (Business Partners, Contact Persons and Products) as well as for all transactional data (Sales Orders, Sales Order Line Items). Use the import parameter NoOfSalesOrders to define how many Sales Order you want to generate (for example 20). The upper limit is 1000. |
SalesOrder_Cancel | Import parameter is unique ID of a sales order (SalesOrderID). This operation is used to cancel a sales order. Cancelation is only possible if the lifecycle status is 'In Progress' and the delivery status is 'Initial'. This operation sets the lifecycle status to 'Canceled'. |
SalesOrder_Confirm | Import parameter is unique ID of a sales order (SalesOrderID). This operation is used to confirm a sales order. Confirmation is only possible if the lifecycle status is 'New'. This operation sets the lifecycle status to 'In Progress'. |
SalesOrder_GoodsIssueCreated | Import parameter is unique ID of a sales order (SalesOrderID). This operation is used to set the delivery status to 'Delivered'. Delivery is only possible if the lifecycle status is 'In Progress' and the delivery status is 'Initial'. Delivery does not change the lifecycle status. |
SalesOrder_InvoiceCreated | Import parameter is unique ID of a sales order (SalesOrderID). This operation is used to set the billing status to 'Paid'. Invoicing is only possible if the lifecycle status is 'In Progress' and the billing status is 'Initial'. Invoicing sets the lifecycle status to 'Closed'. |
Example of a typical sales order process:
Step | Description | Lifecycle Status | Delivery Status | Billing Status |
---|---|---|---|---|
1 | Order Created | New | Initial | Initial |
2 | Function Import Confirm | In Progress | Initial | Initial |
3 | Function Import GoodsIssueCreated | In Progress | Delivered | Initial |
4 | Function Import InvoiceCreated | Closed | Delivered | Paid |