This repository provides Postman collections with example SAP Business ByDesign web service requests and can be used to get insights how to integrate and extend SAP Business ByDesign.
SAP Business ByDesign is a cloud ERP solution for small and mid-market companies. SAP Business ByDesign (ByD) is designed as open business process platform and provides a comprehensive portfolio of APIs and integration capabilities. You find an overview of all ByD APIs in the SAP Community blog post SAP Business ByDesign - API Overview. The Postman collections of this repository illustrate hands-on how to access master data, business documents and analytical data in context of ByD business processes with a focus on ByD OData APIs. Check my blog post SAP Business ByDesign – OData API Examples for comments and questions regarding this repository.
The repository is structured in API sample packages. Each package contains Postman collections, a Postman environment and ByD Custom OData Services required to run the OData requests of the Postman collections. You find the sample ByD Custom OData Services in folder "Custom OData Services" and the Postman collections and environments in folder "Postman". Postman collections and environments that belong together have the same name. The ByD Custom OData Services are used by multiple Postman collections; you find a list of required ByD Custom OData Services in the description of each Postman collection.
This repository contains the following API sample packages:
- Analytics: Access ByD built-in analytics incl. KPIs, reports and data sources
- Master Data: Access ByD master data objects using APIs
- Organizational Structure
- Material
- Service Product
- Sales Price
- Business Partner
- Customer
- Supplier
- Employee and Position
- Code lists
- Reference Scenarios: Run ByD business processes using APIs to get insights how to create, change and read involved business documents and how to create business document relationships to achieve a meaningful document flow
- Lead to opportunity to quote
- Order to cash for services
- Procure to pay for services
- Field service and repair
- Procure to stock
- Sell from stock
- Drop shipment
- Make to stock
- Clear due items using bank statements
- Projects: Create, change and read cost collecting projects and customer projects
- Cost collection project with task hierarchy
- Cost collecting project with project team and work
- Customer project with planning data
- Sell project-based services (sales order > project > project time recordings)
- Sales and Commerce Scenarios: Run ByD sales and commerce processes using APIs to get insights how to create, change and read involved business documents and how to create business document relationships to achieve a meaningful document flow.
- Sell from stock with external payment
- Create customer invoices with external payment
- Customer return to stock
- Pre-confirm payments using clearing house statements
- Confirm payments using bank statements
- Create sales orders using a nested create, batch and node-by-node
- Create sales orders with attachments
- Create sales orders with externally provided prices, discounts and surcharges
- Internal Logistics: Run internal logistical processes using APIs
- Goods movement
- New Business: Run processes to generate new business such as leads, opportunities and quotes
- Create Sales Quote with net price components
Please check the description of the respective Postman collection for more information.
Users must be familiar with SAP Business ByDesign, and with Postman.
Users must have an SAP Business ByDesign license. This is a paid product, no trial version is available at this time.
- Install Postman API Development Environment
- Download the example ByD Custom OData Services, Postman collections and Postman environments from GitHub as zip-file
All sample Postman collections are tailored to run on SAP Business ByDesign Partner Demo Tenants (reference systems) with preconfigured and loaded sample data provided by SAP.
Nevertheless you can use the Postman collections and sample Custom OData Services in other ByD systems as well, if you adopt Postman environment variables and Postman requests according the business configuration and master data of your ByD system.
Steps to setup and run the API sample requests:
- SAP Business ByDesign: Open ByD work center view "Application and User Management - OData Services" and upload the Custom OData Services from folder "Custom OData Services".
- Postman: Open the desktop app Postman and import the Postman collections and Postman environments from folder "Postman". As result you should have a number of collections and environments uploaded to Postman. The environments contain test data and system access information. The collections contain multiple folders and sub-folders, each with a sequence of web service requests and scripts that run before and after the web service request. Each environment belongs to a collection (you can easily identify the collections and environments that belong together by their names).
- SAP Business ByDesign: Check the ByD business configuration and configure ByD web services. You find instructions how to configure ByD in the description of each Postman collection.
- Postman: Open the Postman environment and maintain the variables
- TenantHostname (for example my123456.sapbydesign.com)
- User and Password (enter a business user with access to all work center views listed in the description of the Postman collection)
- CommunicationUser and CommunicationUserPW (enter the communication user used for the communication arrangements created as described in the description of the Postman collection)
- Postman: Open the Postman Runner. The runner is used to automatically run a sequence of OData requests.
- Postman Runner:
- Select the collection and the folder of your choice
- Select the environment that belongs to the collection
- Select the check boxes “Keep variable values” and “Run collection without using stored cookies”
- Click on “Run …”
- Make sure you always choose collections and environments that belong together – otherwise it does not work!
- The run protocol provides you with test results and document IDs that you can use to find the corresponding objects in the ByD UI
- Postman: Alternatively to the Postman Runner you can run the OData requests manually as well:
- Open the Postman collection folder of your choice
- Select the Postman environment (Make sure you always choose collections and environments that belong together)
- Select the request and click “Send”
- Select the next request and click “Send”
- … (always keep the order of the OData requests and do not skip any OData request)
This repository is provided "as-is"; no support is available.
Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.