C_CrdtMAcctRelationshipTP

DDL: C_CRDTMACCTRELATIONSHIPTP Type: view_entity CONSUMPTION Package: ODATA_CREDIT_MGMT_MASTER

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. It is exposed through 1 OData service (UI_CRDTMGMTACCOUNT_MANAGE). It is used in 1 Fiori application: Manage Credit Accounts. Part of development package ODATA_CREDIT_MGMT_MASTER.

Data Sources (1)

SourceAliasJoin Type
R_CrdtMAcctRelationshipTP R_CrdtMAcctRelationshipTP projection

Annotations (8)

NameValueLevelField
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

OData Services (1)

ServiceBindingVersionContractRelease
UI_CRDTMGMTACCOUNT_MANAGE UI_CRDTMGMTACCOUNT_MANAGE V2 C1 NOT_TO_BE_RELEASED_STABLE

Fiori Apps (1)

App IDApp NameTypeDescription
F4596 Manage Credit Accounts Transactional

Manage Credit Accounts

Business Role: Credit Controller

Use this app to display and update the credit data for business parters. Edit the credit data of business partners and update the scoring. On the global credit data page, you can see the credit profile for your business partners, as well as detailed information about blocked sales documents or credit limit requests. Find the credit exposure and credit limit utilization highlighted for each credit segment. Navigate to credit segment level to find further information about credit-relevant data, or details about the related sales documents.

Fields (17)

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


}