---
# API: Storage Location Exclusion / 库位排除
# File: CE_STORAGELOCATIONEXCLUSION_0002.md
# Version: 2.0.0
# Status: ACTIVE
# Protocol: OData V4
# Source Service: /sap/opu/odata4/sap/ce_storagelocationexclusion/srvd_a2x/sap/storagelocationsubstitutionexclusion/0001/
# Generated: 2026-07-23 14:17:02
---

# Storage Location Exclusion / 库位排除 API

> **API 版本:** 2.0.0 | **状态:** ACTIVE | **协议:** OData V4  
> **技术名称:** `CE_STORAGELOCATIONEXCLUSION_0002`  
> **服务根路径:** `/sap/opu/odata4/sap/ce_storagelocationexclusion/srvd_a2x/sap/storagelocationsubstitutionexclusion/0001/`  
> **SAP 通信场景:** `SAP_COM_0009`

## 概述 / Overview

该服务用于管理库位替代流程中的库位排除规则。排除特定的工厂和存储库位组合，使其在库位替代过程中不被考虑。属于 aATP 位置替代排除框架。

This synchronous inbound OData V4 service manages storage location exclusion master data within the aATP Location Substitution Exclusion framework. Excluded locations will not be proposed as substitutes during the location substitution process.

**SAP 加速器中心:** `https://api.sap.com/api/CE_STORAGELOCATIONEXCLUSION_0002/overview`

---

## 实体列表 / Entity List

| # | 实体名称 | 描述 (EN) | 描述 (CN) | 主键 |
|---|----------|-----------|-----------|------|
| 1 | `A_StorageLocExclusion` | Storage Location Exclusion | 库位排除 | `Plant`, `StorageLocation`, `Material`, `ExcludedStorageLoc` |

---

## 1. A_StorageLocExclusion — 库位排除

**实体集合路径:** `A_StorageLocExclusion`  
**主键 (Key):** `Plant` (CHAR 4) + `StorageLocation` (CHAR 4) + `Material` (CHAR 40) + `ExcludedStorageLoc` (CHAR 4)  
**ETag:** 支持

### 字段列表 / Field List

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `Plant` | String | 4 | Plant | 工厂 (主键) |
| `StorageLocation` | String | 4 | Original Storage Location | 原始库位 (主键) |
| `ExcludedStorageLoc` | String | 4 | Excluded Storage Location | 排除库位 (主键) |
| `Material` | String | 40 | Material Number | 物料编号 (主键) |
| `ExclusionReason` | String | 2 | Exclusion Reason | 排除原因 |
| `ValidFrom` | DateTimeOffset | - | Validity Start Date | 有效期起始日期 |
| `ValidTo` | DateTimeOffset | - | Validity End Date | 有效期截止日期 |
| `IsActive` | Boolean | - | Active Status | 激活状态 |
| `CreationDate` | DateTime | - | Record Created On | 创建日期 |
| `CreatedByUser` | String | 12 | Created By | 创建人 |
| `LastChangeDate` | DateTime | - | Last Changed On | 最后更改日期 |
| `LastChangedByUser` | String | 12 | Last Changed By | 最后更改人 |

### 导航属性 / Navigation Properties

| 导航属性 | 关联实体 | 描述 (EN) | 描述 (CN) |
|----------|----------|-----------|-----------|
| `to_Material` | A_Product | Material master data | 物料主数据 |
| `to_Plant` | A_Plant | Plant master data | 工厂主数据 |

---

## 使用示例 / Usage Examples

### 读取库位排除 GET

```
GET /sap/opu/odata4/sap/ce_storagelocationexclusion/srvd_a2x/sap/storagelocationsubstitutionexclusion/0001/A_StorageLocExclusion
  ?$filter=Plant eq '\''PL01'\'' and StorageLocation eq '\''L001'\''
  &$format=json
```

### 创建库位排除 POST

```json
{
  "Plant": "PL01",
  "StorageLocation": "L001",
  "ExcludedStorageLoc": "L003",
  "Material": "M-100",
  "ExclusionReason": "01",
  "ValidFrom": "2026-01-01T00:00:00Z",
  "ValidTo": "2026-12-31T00:00:00Z",
  "IsActive": true
}
```
