I_CustMgmtPartner

DDL: I_CUSTMGMTPARTNER Type: view BASIC

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

CategoryCommon CDS Views for Service
StatusReleased
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.

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
crms4d_partner crms4d_partner from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;