Uploading BOM Data by Using the Bill of Materials Import API

This procedure describes how you can use the Bill of Materials Import API to import BOM data in CSV format.

Prerequisites

Context

The Bill of Materials Import API is a REST API for importing BOM data in CSV format.

Procedure

  1. Save the BOM data in CSV format.
  2. Ensure that the BOM data meets the validation criteria as explained in Validation Criteria for CSV File-Based BOM Upload.
  3. Upload the BOM CSV data by using the POST /boms endpoint as shown in the following example:
    POST {{runtime_url}}/boms?realm=realm&externalSystemId=externalSystemId
    Request body {
    	Content-Type: multipart/form-data {
    		file=filename.csv;
    		type=text/csv
    		}
    	}
    
    Where:
    realm
    is the name of your realm.
    externalsystemID
    is the ERP system from where the data is imported.
    file
    is the name of the BOM file in CSV format.

    If the API call is successful, the BOM CSV file is uploaded to SAP Ariba Strategic Sourcing Suite. For a list of response codes that the Bill of materials import API returns, see Response Codes for the Bill of Materials Import API.

  4. Because a successful upload of the CSV file does not necessarily indicate successful import of BOM data from the CSV file, verify the BOM import status from the Start of the navigation pathAdministration Next navigation step Product Sourcing Manager Next navigation step  Import BOM End of the navigation path page of SAP Ariba Strategic Sourcing Suite.