I_CustMgmtPartner
Customer Management Partner
I_CustMgmtPartner is a Basic CDS View that provides data about "Customer Management Partner" in SAP S/4HANA. It reads from 1 data source (crms4d_partner) and exposes 15 fields with key fields CustMgmtObjectType, CustMgmtDocument, CustMgmtDocumentItem, CustMgmtPartnerFunction, CustMgmtPartner. It has 3 associations to related views.
SAP Help Documentation
| Category | Common CDS Views for Service |
|---|---|
| Status | Released |
Purpose
This CDS view is used to provide partner data for all relevant OneOrder business objects. When the transaction ID is passed, it returns the partners stored at the header level of the transaction. When a transaction ID and an item number is passed, it returns the partners stored at header and the relevant item level. If the partners are inherited from the header, the CDS view will always only pass the partners at the header level.
Prerequisites
Authorizations Users who want to use this CDS view need to access it via another CDS view (privileged mode).
Structure
Important Fields Important fields in this view include the following: Field Name Description CustMgmtObjectType Business Transaction Category CustMgmtDocument Transaction ID CustMgmtDocumentItem Shortened Item Number in Document CustMgmtPartnerFunction Partner Function CustMgmtPartner Partner Number CustMgmtPartnerNumberType Partner Number Type
Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode.
This CDS view is used to provide partner data for all relevant OneOrder business objects. When the transaction ID is passed, it returns the partners stored at the header level of the transaction. When a transaction ID and an item number is passed, it returns the partners stored at header and the relevant item level. If the partners are inherited from the header, the CDS view will always only pass the partners at the header level.
Prerequisites
Authorizations Users who want to use this CDS view need to access it via another CDS view (privileged mode).
Structure
Important Fields Important fields in this view include the following: Field Name Description CustMgmtObjectType Business Transaction Category CustMgmtDocument Transaction ID CustMgmtDocumentItem Shortened Item Number in Document CustMgmtPartnerFunction Partner Function CustMgmtPartner Partner Number CustMgmtPartnerNumberType Partner Number Type
Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| crms4d_partner | crms4d_partner | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BusinessObjType | _CustMgmtObjectType | $projection.CustMgmtObjectType = _CustMgmtObjectType.BusinessObjectType |
| [0..*] | I_CustMgmtPartnerFuncText | _PartnerFunction | $projection.CustMgmtPartnerFunction = _PartnerFunction.PartnerFunction |
| [0..1] | I_BusinessPartner | _BusinessPartner | $projection.CustMgmtBusinessPartner = _BusinessPartner.BusinessPartner |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Customer Management Partner | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AbapCatalog.sqlViewName | ICUSTMGMTPARTNER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.sapObjectNodeType.name | ServiceDocumentPartner | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustMgmtObjectType | objtype_h | Trans. Cat. | |
| KEY | CustMgmtDocument | object_id | Transaction ID | |
| KEY | CustMgmtDocumentItem | number_int | Item Number in Doc. | |
| KEY | CustMgmtPartnerFunction | partner_fct | Partner Function | |
| KEY | CustMgmtPartner | partner_no | Partner Number | |
| KEY | CustMgmtPartnerNumberType | no_type | Internal No. Typ | |
| CustMgmtPartFunctionCategory | partner_pft | Function Category | ||
| CustMgmtBusinessPartner | partner_id | Partner ID | ||
| CustMgmtPartnerIsMainPartner | mainpartner | Main Partner | ||
| AddressID | addr_nr | Address Number | ||
| AddressPersonID | addr_np | Person Number | ||
| AddressObjectType | addr_type | Address Type | ||
| _CustMgmtObjectType | _CustMgmtObjectType | |||
| _PartnerFunction | _PartnerFunction | |||
| _BusinessPartner | _BusinessPartner |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_CustMgmtPartner.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW I_CustMgmtPartner AS
SELECT
objtype_h AS CustMgmtObjectType,
object_id AS CustMgmtDocument,
number_int AS CustMgmtDocumentItem,
partner_fct AS CustMgmtPartnerFunction,
partner_no AS CustMgmtPartner,
no_type AS CustMgmtPartnerNumberType,
partner_pft AS CustMgmtPartFunctionCategory,
partner_id AS CustMgmtBusinessPartner,
mainpartner AS CustMgmtPartnerIsMainPartner,
addr_nr AS AddressID,
addr_np AS AddressPersonID,
addr_type AS AddressObjectType
FROM crms4d_partner
LEFT OUTER JOIN I_BusinessObjType AS _CustMgmtObjectType ON CustMgmtObjectType = _CustMgmtObjectType.BusinessObjectType -- association [1..1]
LEFT OUTER JOIN I_CustMgmtPartnerFuncText AS _PartnerFunction ON CustMgmtPartnerFunction = _PartnerFunction.PartnerFunction -- association [0..*]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON CustMgmtBusinessPartner = _BusinessPartner.BusinessPartner -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA