I_SettlementUnitHeaderDetail

DDL: I_SETTLEMENTUNITHEADERDETAIL SQL: ISTLUNITHDRDET Type: view COMPOSITE

Interface for Settlement Unit Header Details

I_SettlementUnitHeaderDetail is a Composite CDS View that provides data about "Interface for Settlement Unit Header Details" in SAP S/4HANA. It reads from 6 data sources and exposes 38 fields with key field SettlementDocHeaderUUID. It has 4 associations to related views.

Data Sources (6)

SourceAliasJoin Type
I_SettlementDocumentHeader _SettlmtDocHead from
P_GenericDomainVH P_GenericDomainVH left_outer
P_GenericDomainVH P_GenericDomainVH left_outer
P_GenericDomainVH P_GenericDomainVH left_outer
P_GenericDomainVH P_GenericDomainVH left_outer
P_GenericDomainVH P_GenericDomainVH left_outer

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_ACMSettlementDocumentTypeTxt _DocType _DocType.ACMSettlementDocumentType = _SettlmtDocHead.ACMSettlementDocumentType and _DocType.Language = $session.system_language
[0..1] P_TradingContractCounterparty _CounterpartyPurchase _CounterpartyPurchase.Counterparty = _SettlmtDocHead.ReferenceVendor
[0..1] P_TradingContractCounterparty _CounterpartySales _CounterpartySales.Counterparty = _SettlmtDocHead.SoldToParty
[0..1] I_RegionText _RegionText _RegionText.Country = _SettlmtDocHead.CustomerCountryKey and _RegionText.Region = _SettlmtDocHead.Region and _RegionText.Language = $session.system_language

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ISTLUNITHDRDET view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.supportedCapabilities #CDS_MODELING_DATA_SOURCE view
ObjectModel.usageType.sizeCategory #XL view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Interface for Settlement Unit Header Details view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY SettlementDocHeaderUUID SettlementDocHeaderUUID
SettlmtDoc SettlmtDoc
SettlmtDocYear SettlmtDocYear
ContractApplicationDocument ContractApplicationDocument
SoldToParty SoldToParty
PayerParty PayerParty
BillToParty BillToParty
ReferenceVendor ReferenceVendor
ReferencePayer ReferencePayer
ACMSettlementDocumentType ACMSettlementDocumentType
ApplicationDocTypeDescription _DocType ApplicationDocTypeDescription
ACMReferenceSettlementCategory ACMReferenceSettlementCategory
DocumentCategoryText _SettlementCategory DomainText
CustomerCountryKey CustomerCountryKey
CompanyCountryName _CountryName DomainText
Region I_SettlementDocumentHeader Region
RegionName _RegionText RegionName
ABDNumber ABDNumber
Side Side
DocumentSide _Side DomainText
SettlementScenario SettlementScenario
SettlementScenarioName _SettlementScenarioName DomainText
SettlementPostingDate SettlementPostingDate
SettlementCurrency SettlementCurrency
ACMSettlementUnitNetAmount ACMSettlementUnitNetAmount
ACMSettlementNetOrderAmount ACMSettlementUnitNetAmount
ACMSettlementUnitGrossAmount ACMSettlementUnitGrossAmount
ThresholdPercentage ThresholdPercentage
ACMSettlementDPQSIndicatorText _DPQSInSettlement DomainText
DPQSinSettlementIndicator DPQSinSettlementIndicator
ACMSettlementUnitIsIgnoreDPQS ACMSettlementUnitIsIgnoreDPQS
ACMSettlmtIsFnlSeparateInvcFee ACMSettlmtIsFnlSeparateInvcFee
ContractApplicationUUID ContractApplicationUUID
ContractApplicationVersion ContractApplicationVersion
ApplItemCreatedOnDateTime ApplItemCreatedOnDateTime
PrepaymentStopIntrstDate PrepaymentStopIntrstDate
PrepaymentSuspendIntrstFromDte PrepaymentSuspendIntrstFromDte
PrepaymentSuspendIntrstToDte PrepaymentSuspendIntrstToDte
/*---------------------------------------------------------------------*
* Copyright  2012 SAP AG. All rights reserved                          *
*----------------------------------------------------------------------*
* CDS Name                : I_SettlementUnitHeaderDetail               *
* CDS Description         : Interface View For Settlement Unit Detail  *
*                           And Header Tab Triggered From Settlement   *
*                           Unit Tab                                   *
*---------------------------------------------------------------------*/
@AbapCatalog.sqlViewName: 'ISTLUNITHDRDET'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.supportedCapabilities: #CDS_MODELING_DATA_SOURCE
@ObjectModel.usageType.sizeCategory: #XL
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Interface for Settlement Unit Header Details'
define view I_SettlementUnitHeaderDetail
  as select from    I_SettlementDocumentHeader                                       as _SettlmtDocHead
    left outer join P_GenericDomainVH( p_domain_name: 'WLF_PR_SIDE')                 as _Side                   on _Side.DomainValue = _SettlmtDocHead.Side
    left outer join P_GenericDomainVH( p_domain_name: '/ACCGO/D_SETTL_CAT')          as _SettlementCategory     on _SettlementCategory.DomainValue = _SettlmtDocHead.ACMReferenceSettlementCategory
    left outer join P_GenericDomainVH( p_domain_name: 'LAND1')                       as _CountryName            on _CountryName.DomainValue = _SettlmtDocHead.CustomerCountryKey
    left outer join P_GenericDomainVH( p_domain_name: '/ACCGO/D_SETTL_SCENARIO')     as _SettlementScenarioName on _SettlementScenarioName.DomainValue = SettlementScenario
    left outer join P_GenericDomainVH( p_domain_name: '/ACCGO/D_DPQS_IN_SETTLEMENT') as _DPQSInSettlement       on _DPQSInSettlement.DomainValue = DPQSinSettlementIndicator
  association [0..1] to I_ACMSettlementDocumentTypeTxt as _DocType              on  _DocType.ACMSettlementDocumentType = _SettlmtDocHead.ACMSettlementDocumentType
                                                                                and _DocType.Language                  = $session.system_language
  association [0..1] to P_TradingContractCounterparty  as _CounterpartyPurchase on  _CounterpartyPurchase.Counterparty = _SettlmtDocHead.ReferenceVendor
  association [0..1] to P_TradingContractCounterparty  as _CounterpartySales    on  _CounterpartySales.Counterparty = _SettlmtDocHead.SoldToParty
  association [0..1] to I_RegionText                   as _RegionText           on  _RegionText.Country  = _SettlmtDocHead.CustomerCountryKey
                                                                                and _RegionText.Region   = _SettlmtDocHead.Region
                                                                                and _RegionText.Language = $session.system_language
{
  key SettlementDocHeaderUUID,
      SettlmtDoc,
      SettlmtDocYear,
      ContractApplicationDocument,
      SoldToParty,
      PayerParty,
      BillToParty,
      ReferenceVendor,
      ReferencePayer,

      case
        when ReferenceVendor is not initial
          then ReferenceVendor
        when SoldToParty is not initial
          then SoldToParty
        else ''
      end                                    as ACMSettlementDocReferenceParty,

      case
        when _CounterpartyPurchase.CounterpartyFullName is not initial
          then _CounterpartyPurchase.CounterpartyFullName
        when _CounterpartySales.CounterpartyFullName is not initial
          then _CounterpartySales.CounterpartyFullName
        else ''
      end                                    as CounterpartyFullName,

      ACMSettlementDocumentType,
      _DocType.ApplicationDocTypeDescription as ApplicationDocTypeDescription,
      ACMReferenceSettlementCategory,
      _SettlementCategory.DomainText         as DocumentCategoryText,
      CustomerCountryKey,
      _CountryName.DomainText                as CompanyCountryName,
      _SettlmtDocHead.Region                 as Region,
      _RegionText.RegionName                 as RegionName,
      ABDNumber,
      Side,
      _Side.DomainText                       as DocumentSide,
      SettlementScenario,
      _SettlementScenarioName.DomainText     as SettlementScenarioName,
      SettlementPostingDate,
      @Semantics.currencyCode: true
      SettlementCurrency,
      @Semantics.amount.currencyCode: 'SettlementCurrency'
      ACMSettlementUnitNetAmount,
      @Semantics.amount.currencyCode: 'SettlementCurrency'
      ACMSettlementUnitNetAmount             as ACMSettlementNetOrderAmount,
      @Semantics.amount.currencyCode: 'SettlementCurrency'
      ACMSettlementUnitGrossAmount,
      ThresholdPercentage,
      _DPQSInSettlement.DomainText           as ACMSettlementDPQSIndicatorText,
      DPQSinSettlementIndicator,
      ACMSettlementUnitIsIgnoreDPQS,
      ACMSettlmtIsFnlSeparateInvcFee,
      ContractApplicationUUID,
      ContractApplicationVersion,
      ApplItemCreatedOnDateTime,
      PrepaymentStopIntrstDate,
      PrepaymentSuspendIntrstFromDte,
      PrepaymentSuspendIntrstToDte

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACMSETTLEMENTDOCUMENTTYPETXT",
"I_REGIONTEXT",
"I_SETTLEMENTDOCUMENTHEADER",
"P_GENERICDOMAINVH",
"P_TRADINGCONTRACTCOUNTERPARTY"
],
"ASSOCIATED":
[
"I_ACMSETTLEMENTDOCUMENTTYPETXT",
"I_REGIONTEXT",
"P_TRADINGCONTRACTCOUNTERPARTY"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/