Show TOC

Sample Service - Basic: Function ImportsLocate this document in the navigation structure

Function imports used in the basic OData sample service for SAP Gateway.

The following function imports are used in the basic OData sample service for SAP Gateway:
Table 1: Overview of Function Imports
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'.
Note An error message is displayed if a sales order operation is not possible due to its current status.

Example of a typical sales order process:

Table 2: Sales Order Example
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
Note You can only cancel a sales order if the sales order has been confirmed and no delivery or invoicing has been triggered.