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

# Coding / 编码 API

> **API 版本:** 1.0.0 | **状态:** ACTIVE | **协议:** OData V4  
> **技术名称:** `CODING`  
> **服务根路径:** `/sap/opu/odata4/sap/coding/srvd_a2x/sap/catalogtypecoding/0001/`  
> **SAP 通信场景:** `SAP_COM_0276`

## 概述 / Overview

该服务用于查询编码主数据，包括编码名称、编码目录类型等信息。

This service enables querying of coding master data, including coding names and coding catalog types.

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

---

## 实体列表 / Entity List

| # | 实体名称 | 描述 (EN) | 描述 (CN) | 主键 |
|---|----------|-----------|-----------|------|
| 1 | `A_Coding` | Coding | 编码 | `Coding` |

---

## 1. A_Coding — 编码

**实体集合路径:** `A_Coding`  
**主键 (Key):** `Coding` (CHAR 14)

### 字段列表 / Field List

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `Coding` | CHAR | 14 | Coding | 编码 |
| `CodingName` | CHAR | 40 | Coding Name | 编码名称 |
| `CodingCatalogType` | CHAR | 1 | Coding Catalog Type | 编码目录类型 |
| `CodingVersion` | CHAR | 3 | Coding Version | 编码版本 |
| `CodingGroup` | CHAR | 8 | Coding Group | 编码组 |
| `CodingStatusCode` | CHAR | 2 | Coding Status | 编码状态 |
| `ValidityStartDate` | DATN | 8 | Validity Start Date | 有效起始日期 |
| `ValidityEndDate` | DATN | 8 | Validity End Date | 有效截止日期 |
| `CreationDate` | DATN | 8 | Creation Date | 创建日期 |
| `LastChangeDate` | DATN | 8 | Last Change Date | 最后更改日期 |
| `Language` | LANG | 2 | Language | 语言 |
| `LongText` | CHAR | 200 | Long Text | 长文本 |

---

## 示例请求 / Sample Requests

### 读取所有编码

```http
GET /sap/opu/odata4/sap/coding/srvd_a2x/sap/catalogtypecoding/0001/A_Coding
Accept: application/json
```

### 按编码查询

```http
GET /sap/opu/odata4/sap/coding/srvd_a2x/sap/catalogtypecoding/0001/A_Coding('10000001')
Accept: application/json
```

### 按目录类型筛选

```http
GET /sap/opu/odata4/sap/coding/srvd_a2x/sap/catalogtypecoding/0001/A_Coding?$filter=CodingCatalogType eq 'A'
Accept: application/json
```
