C_CrdtMAcctRelationshipTP
Cred. Mgmt Account Relationship
C_CrdtMAcctRelationshipTP is a Consumption CDS View that provides data about "Cred. Mgmt Account Relationship" in SAP S/4HANA. It reads from 1 data source (R_CrdtMAcctRelationshipTP) and exposes 17 fields with key fields CrdtMgmtBPHierarchyNode, BusinessPartner, CreditSegment.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_CrdtMAcctRelationshipTP | R_CrdtMAcctRelationshipTP | projection |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Cred. Mgmt Account Relationship | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.query.implementedBy | ABAP:CL_UKM_RELATIONSHIP_VE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.allowExtensions | true | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CrdtMgmtBPHierarchyNode | CrdtMgmtBPHierarchyNode | ||
| KEY | BusinessPartner | BusinessPartner | ||
| KEY | CreditSegment | CreditSegment | ||
| ActiveBusinessPartner | ActiveBusinessPartner | |||
| CrdtMHigherLevelBusPartner | CrdtMHigherLevelBusPartner | |||
| BusinessPartnerIsSelected | BusinessPartnerIsSelected | |||
| CrdtMgmtBPHierarchyParentNode | CrdtMgmtBPHierarchyParentNode | |||
| HierarchyLevel | HierarchyLevel | |||
| HierarchyDrillState | HierarchyDrillState | |||
| HierarchyNodeTreeSize | HierarchyNodeTreeSize | |||
| HierarchyNodeIsCycleEndPoint | HierarchyNodeIsCycleEndPoint | |||
| CreditRiskClass | _CrdtMBusinessPartner | CreditRiskClass | ||
| BusinessPartnerFullName | ||||
| Country | ||||
| CityName | ||||
| CreditWorthinessScoreValue | _CrdtMBusinessPartner | CreditWorthinessScoreValue | ||
| _BusinessPartner | _BusinessPartner |
@EndUserText.label: 'Cred. Mgmt Account Relationship'
@ObjectModel: { usageType: { serviceQuality: #X,
sizeCategory: #L,
dataClass: #MASTER
},
query: { implementedBy: 'ABAP:CL_UKM_RELATIONSHIP_VE' }
}
@OData:{ hierarchy: {recursiveHierarchy: [{
elementWithHierarchy: 'ActiveBusinessPartner',
externalKeyElement: 'CrdtMgmtBPHierarchyNode',
nodeElement: 'CrdtMgmtBPHierarchyNode',
parentNodeElement: 'CrdtMgmtBPHierarchyParentNode',
drillStateElement: 'HierarchyDrillState',
distanceFromRootElement: 'HierarchyLevel'
//descendantCountElement: 'HierarchyNodeTreeSize' //Causes sever issues for expanding node when not calculated correctly
//This annotaion switches the TreeTable into "FullLoad" mode,
//thus activating a special (demanding) contract with the underlying service
//preorderRankElement: '' //Subtree with (selected) BusinessPartner as left-most subtree
}]
}
}
@VDM: {
viewType: #CONSUMPTION,
usage.type: [ #TRANSACTIONAL_PROCESSING_SERVICE]
}
@AccessControl: {authorizationCheck: #CHECK } //Authority checks in ABAP, DCL present but effects nothing
@Metadata:{ allowExtensions: true }
//define view entity C_CrdtMAcctRelationshipTP
define root view entity C_CrdtMAcctRelationshipTP
as projection on R_CrdtMAcctRelationshipTP as _CrdtMAcctRelationshipTP
{
key CrdtMgmtBPHierarchyNode,
key BusinessPartner, //BO Root
key CreditSegment,
@ObjectModel: { text.element: ['BusinessPartnerFullName'] }
//Use value help for Bp in Credit Mgmt as soon as available
@Consumption: { semanticObject: 'BusinessPartner',
valueHelpDefinition: [{ entity:{ name: 'I_BusinessPartnerVH',
element: 'BusinessPartner' } }]
}
ActiveBusinessPartner, //BP who's address and risk class we display
CrdtMHigherLevelBusPartner, //parent in the hierarchy; empty in root
BusinessPartnerIsSelected,
CrdtMgmtBPHierarchyParentNode,
HierarchyLevel,
HierarchyDrillState,
HierarchyNodeTreeSize,
HierarchyNodeIsCycleEndPoint,
_CrdtMBusinessPartner.CreditRiskClass,
_CrdtMBusinessPartner._BusinessPartner.BusinessPartnerFullName,
_CrdtMBusinessPartner._BusinessPartner._CurrentDefaultAddress._Address.Country,
_CrdtMBusinessPartner._BusinessPartner._CurrentDefaultAddress._Address.CityName,
_CrdtMBusinessPartner.CreditWorthinessScoreValue,
//Expose associations
@ObjectModel.sort.enabled: false
@ObjectModel.filter.enabled: false
_BusinessPartner //for dummy-DCL
// @ObjectModel.sort.enabled: false
// @ObjectModel.filter.enabled: false
// _CreditMgmtAccountTP : redirected to parent C_CreditMgmtAccountTP //worked fine but caused ATC issues
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ADDRESS",
"I_BPCURRENTDEFAULTADDRESS",
"I_BUSINESSPARTNER",
"I_CRDTMBUSINESSPARTNER",
"R_CRDTMACCTRELATIONSHIPTP"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER"
],
"BASE":
[
"R_CRDTMACCTRELATIONSHIPTP"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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