---
# API: Purchasing Source (A2X)
# File: API_PURCHASING_SOURCE_SRV.md
# Version: 1.0.0
# Status: ACTIVE
# Protocol: OData V2
# Source URL: https://api.sap.com/api/API_PURCHASING_SOURCE_SRV/overview
# Generated: 2026-07-23 14:17:02
---

# Purchasing Source / 采购源 API

> **API 版本:** 1.0.0 | **状态:** ACTIVE | **协议:** OData V2  
> **技术名称:** `API_PURCHASING_SOURCE_SRV`  
> **服务根路径:** `/sap/opu/odata/sap/API_PURCHASING_SOURCE_SRV`  
> **SAP 通信场景:** `SAP_COM_0045`

## 概述 / Overview

该服务支持对采购源主数据进行读取操作。采购源定义了物料与供应商之间的采购关系及其有效期。

This synchronous inbound OData V2 service provides read access to Purchasing Source master data, defining procurement relationships between materials and suppliers with validity periods.

**API 业务加速器中心:** [https://api.sap.com/api/API_PURCHASING_SOURCE_SRV/overview](https://api.sap.com/api/API_PURCHASING_SOURCE_SRV/overview)

---

## 实体列表 / Entity List

| # | 实体名称 | 描述 (EN) | 描述 (CN) | 主键 |
|---|----------|-----------|-----------|------|
| 1 | `A_PurchasingSource` | Purchasing Source | 采购源 | `PurchasingSource` |

---

## 1. A_PurchasingSource — 采购源

**实体集合路径:** `A_PurchasingSource`  
**主键 (Key):** `PurchasingSource` (CHAR 10)  
**ETag:** 不支持

### 字段列表 / Field List

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `PurchasingSource` | String | 10 | Purchasing Source | 采购源 (主键) |
| `Material` | String | 40 | Material Number | 物料编号 |
| `Plant` | String | 4 | Plant | 工厂 |
| `Supplier` | String | 10 | Supplier Account Number | 供应商账户号 |
| `PurchasingSourceType` | String | 1 | Source Type (1=Contract, 2=Info Record) | 采购源类型 |
| `ValidFrom` | DateTime | - | Validity Start Date | 有效期起始日期 |
| `ValidTo` | DateTime | - | Validity End Date | 有效期截止日期 |
| `PurchasingOrganization` | String | 4 | Purchasing Organization | 采购组织 |
| `SupplierMaterialGroup` | String | 10 | Material Group | 物料组 |
| `MinimumLotSize` | Decimal | - | Minimum Lot Size | 最小批量 |
| `MaximumLotSize` | Decimal | - | Maximum Lot Size | 最大批量 |
| `RoundingQuantity` | Decimal | - | Rounding Quantity | 取整数量 |
| `StandardQuantity` | Decimal | - | Standard Lot Size | 标准批量 |
| `PlannedDeliveryDuration` | Decimal | - | Planned Delivery Days | 计划交货天数 |
| `SupplierMaterialNumber` | String | 35 | Material Number at Supplier | 供应商物料号 |
| `IsQuotaArrangementUsed` | Boolean | - | Quota Arrangement Used | 配额安排使用标识 |
| `IsDeleted` | Boolean | - | Deletion Indicator | 删除标识 |
| `IsBlocked` | Boolean | - | Blocking Indicator | 冻结标识 |
| `CreatedByUser` | String | 12 | Created By | 创建人 |
| `CreationDate` | DateTime | - | Creation Date | 创建日期 |
| `LastChangeDate` | DateTime | - | Last Change Date | 最后更改日期 |

### 导航属性 / Navigation Properties

| 属性名 | 目标实体 | 基数 | 描述 |
|--------|----------|------|------|
| `to_Supplier` | A_Supplier | 0..1 | 供应商 |
| `to_Material` | A_Material | 0..1 | 物料 |

---

## 示例请求 / Sample Requests

### 获取所有采购源

```http
GET /sap/opu/odata/sap/API_PURCHASING_SOURCE_SRV/A_PurchasingSource
Accept: application/json
```

### 按主键获取单个采购源

```http
GET /sap/opu/odata/sap/API_PURCHASING_SOURCE_SRV/A_PurchasingSource(PurchasingSource='PS00000001')
Accept: application/json
```
