I_PrelimBillingDocument

DDL: I_PRELIMBILLINGDOCUMENT Type: view BASIC

Preliminary Billing Document

I_PrelimBillingDocument is a Basic CDS View (Dimension) that provides data about "Preliminary Billing Document" in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentBasic) and exposes 134 fields with key field PrelimBillingDocument. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocumentBasic BillingDocument from

Associations (6)

CardinalityTargetAliasCondition
[0..*] I_PrelimBillingDocumentItem _Item $projection.PrelimBillingDocument = _Item.PrelimBillingDocument
[1..*] I_PrelimBillingDocPartner _Partner $projection.PrelimBillingDocument = _Partner.PrelimBillingDocument
[0..*] I_PrelimBillingDocPrcgElmnt _PricingElement $projection.PrelimBillingDocument = _PricingElement.PrelimBillingDocument
[1..1] I_PrelimBillgDocEnhancedFields _EnhancedFields $projection.PrelimBillingDocument = _EnhancedFields.PrelimBillingDocument
[0..1] I_PrelimBillgDocApprovalReason _PrelimBillgDocApprovalReason $projection.PrelimBillgDocApprovalReason = _PrelimBillgDocApprovalReason.PrelimBillgDocApprovalReason
[0..1] E_BillingDocument _Extension $projection.PrelimBillingDocument = _Extension.BillingDocument

Annotations (17)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.representativeKey PrelimBillingDocument view
ObjectModel.compositionRoot true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName ISDPREBILDOC view
AbapCatalog.preserveKey true view
EndUserText.label Preliminary Billing Document view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view

Fields (134)

KeyFieldSource TableSource FieldDescription
KEY PrelimBillingDocument
SDDocumentCategory SDDocumentCategory
BillingDocumentCategory BillingDocumentCategory
BillingDocumentType BillingDocumentType
CreatedByUser CreatedByUser
CreationDate CreationDate
CreationTime CreationTime
LastChangeDate LastChangeDate
LastChangeDateTime LastChangeDateTime
LogicalSystem LogicalSystem
SalesOrganization SalesOrganization
DistributionChannel DistributionChannel
Division Division
BillingDocumentDate I_BillingDocumentBasic BillingDocumentDate
BillingDocCombinationCriteria I_BillingDocumentBasic BillingDocCombinationCriteria
TotalNetAmount TotalNetAmount
TransactionCurrency TransactionCurrency
StatisticsCurrency StatisticsCurrency
TotalTaxAmount TotalTaxAmount
CustomerPriceGroup CustomerPriceGroup
PriceListType PriceListType
TaxDepartureCountry TaxDepartureCountry
VATRegistration VATRegistration
VATRegistrationOrigin VATRegistrationOrigin
VATRegistrationCountry VATRegistrationCountry
HierarchyTypePricing HierarchyTypePricing
CustomerTaxClassification1 CustomerTaxClassification1
CustomerTaxClassification2 CustomerTaxClassification2
CustomerTaxClassification3 CustomerTaxClassification3
CustomerTaxClassification4 CustomerTaxClassification4
CustomerTaxClassification5 CustomerTaxClassification5
CustomerTaxClassification6 CustomerTaxClassification6
CustomerTaxClassification7 CustomerTaxClassification7
CustomerTaxClassification8 CustomerTaxClassification8
CustomerTaxClassification9 CustomerTaxClassification9
IsEUTriangularDeal IsEUTriangularDeal
SDPricingProcedure SDPricingProcedure
ShippingCondition ShippingCondition
IncotermsVersion IncotermsVersion
IncotermsClassification IncotermsClassification
IncotermsTransferLocation IncotermsTransferLocation
IncotermsLocation1 IncotermsLocation1
IncotermsLocation2 IncotermsLocation2
PayerParty PayerParty
ContractAccount ContractAccount
CustomerPaymentTerms CustomerPaymentTerms
PaymentMethod PaymentMethod
PaymentReference PaymentReference
FixedValueDate FixedValueDate
AdditionalValueDays AdditionalValueDays
SEPAMandate SEPAMandate
CompanyCode CompanyCode
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup
AccountingExchangeRateIsSet AccountingExchangeRateIsSet
AccountingExchangeRate AccountingExchangeRate
ExchangeRateDate ExchangeRateDate
ExchangeRateType ExchangeRateType
DocumentReferenceID DocumentReferenceID
AssignmentReference AssignmentReference
DunningArea DunningArea
DunningBlockingReason DunningBlockingReason
DunningKey DunningKey
IsRelevantForAccrual IsRelevantForAccrual
InvoiceListType InvoiceListType
InvoiceListBillingDate InvoiceListBillingDate
SoldToParty SoldToParty
PartnerCompany PartnerCompany
PurchaseOrderByCustomer PurchaseOrderByCustomer
CustomerGroup CustomerGroup
Country Country
CityCode CityCode
SalesDistrict SalesDistrict
Region Region
County County
CreditControlArea CreditControlArea
CustomerRebateAgreement CustomerRebateAgreement
PricingDocument PricingDocument
OverallSDProcessStatus OverallSDProcessStatus
BillingIssueType BillingIssueType
OvrlItmGeneralIncompletionSts OvrlItmGeneralIncompletionSts
OverallPricingIncompletionSts OverallPricingIncompletionSts
PrelimBillingDocumentStatus PrelimBillingDocumentStatus
BillgProcDocApprovalStatus I_BillingDocumentBasic BillgProcDocApprovalStatus
PrelimBillgDocApprovalReason I_BillingDocumentBasic BillgProcDocApprovalReason
_Item _Item
_Partner _Partner
_PricingElement _PricingElement
_SDDocumentCategory _SDDocumentCategory
_BillingDocumentCategory _BillingDocumentCategory
_BillingDocumentType _BillingDocumentType
_CreatedByUser _CreatedByUser
_LogicalSystem _LogicalSystem
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_TransactionCurrency _TransactionCurrency
_StatisticsCurrency _StatisticsCurrency
_CustomerPriceGroup _CustomerPriceGroup
_PriceListType _PriceListType
_TaxDepartureCountry _TaxDepartureCountry
_VATRegistrationOrigin _VATRegistrationOrigin
_VATRegistrationCountry _VATRegistrationCountry
_SDPricingProcedure _SDPricingProcedure
_ShippingCondition _ShippingCondition
_IncotermsClassification _IncotermsClassification
_IncotermsVersion _IncotermsVersion
_PayerParty _PayerParty
_CustomerPaymentTerms _CustomerPaymentTerms
_PaymentMethod _PaymentMethod
_CompanyCode _CompanyCode
_CustomerAccountAssgmtGroup _CustomerAccountAssgmtGroup
_ExchangeRateType _ExchangeRateType
_DunningArea _DunningArea
_DunningBlockingReason _DunningBlockingReason
_DunningKey _DunningKey
_InvoiceListType _InvoiceListType
_SoldToParty _SoldToParty
_CustomerGroup _CustomerGroup
_Country _Country
_CityCode _CityCode
_SalesDistrict _SalesDistrict
_Region _Region
_County _County
_County_2 _County_2
_CreditControlArea _CreditControlArea
_OverallSDProcessStatus _OverallSDProcessStatus
_BillingIssueType _BillingIssueType
_OvrlItmGeneralIncompletionSts _OvrlItmGeneralIncompletionSts
_OverallPricingIncompletionSts _OverallPricingIncompletionSts
_PrelimBillingDocumentStatus _PrelimBillingDocumentStatus
_BillgProcDocApprovalStatus _BillgProcDocApprovalStatus
_PrelimBillgDocApprovalReason _PrelimBillgDocApprovalReason
_EnhancedFields _EnhancedFields
_CreditControlAreaText _CreditControlAreaText
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.representativeKey: 'PrelimBillingDocument'
@ObjectModel.compositionRoot: true
@ObjectModel.modelingPattern:         #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [ #ANALYTICAL_DIMENSION,
                                      #CDS_MODELING_DATA_SOURCE,
                                      #CDS_MODELING_ASSOCIATION_TARGET,
                                      #SQL_DATA_SOURCE,
                                      #EXTRACTION_DATA_SOURCE ]
@Analytics.dataCategory: #DIMENSION
@Analytics: {
    dataExtraction: {
        enabled: true,
        delta.changeDataCapture: {
            mapping:[
                {
                    table: 'vbrk', role: #MAIN,
                    viewElement: ['PrelimBillingDocument'],
                    tableElement: ['vbeln']
                }

            ]
        }
    }
 }
@VDM.viewType: #BASIC
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA'),
  privilegedAssociations: [ '_CreatedByUser', '_CreditControlAreaText' ]
}
@AbapCatalog: {
  compiler.compareFilter: true,
  sqlViewName: 'ISDPREBILDOC',
  preserveKey: true
}
@EndUserText.label: 'Preliminary Billing Document'
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
 
define view I_PrelimBillingDocument
  as select from I_BillingDocumentBasic as BillingDocument

  association [0..*] to I_PrelimBillingDocumentItem     as _Item                 on $projection.PrelimBillingDocument = _Item.PrelimBillingDocument
  association [1..*] to I_PrelimBillingDocPartner       as _Partner              on $projection.PrelimBillingDocument = _Partner.PrelimBillingDocument
  association [0..*] to I_PrelimBillingDocPrcgElmnt     as _PricingElement       on $projection.PrelimBillingDocument = _PricingElement.PrelimBillingDocument          
  association [1..1] to I_PrelimBillgDocEnhancedFields  as _EnhancedFields       on $projection.PrelimBillingDocument = _EnhancedFields.PrelimBillingDocument  
  
  association [0..1] to I_PrelimBillgDocApprovalReason  as _PrelimBillgDocApprovalReason 
                                                                                 on $projection.PrelimBillgDocApprovalReason = _PrelimBillgDocApprovalReason.PrelimBillgDocApprovalReason
                                                                                 
  //Extensibility

  association [0..1] to E_BillingDocument               as _Extension            on $projection.PrelimBillingDocument = _Extension.BillingDocument
                                                                                                                                                                   
{
  key cast( BillingDocument as prelim_billing_document preserving type )  as PrelimBillingDocument,

      //category

      @ObjectModel.foreignKey.association: '_SDDocumentCategory'      
      SDDocumentCategory,
      @ObjectModel.foreignKey.association: '_BillingDocumentCategory'      
      BillingDocumentCategory,
      @ObjectModel.foreignKey.association: '_BillingDocumentType'      
      BillingDocumentType,

      //admin

      @Semantics.user.createdBy: true
      CreatedByUser,
      @Semantics.systemDate.createdAt: true
      CreationDate,
      @Semantics.systemTime.createdAt
      CreationTime,
      @Semantics.systemDate.lastChangedAt: true
      LastChangeDate,
      @Semantics.systemDateTime.lastChangedAt: true
      LastChangeDateTime,
      @ObjectModel.foreignKey.association: '_LogicalSystem'
      LogicalSystem,

      //org

      @ObjectModel.foreignKey.association: '_SalesOrganization'
      SalesOrganization,
      @ObjectModel.foreignKey.association: '_DistributionChannel'
      DistributionChannel,
      @ObjectModel.foreignKey.association: '_Division'
      Division,

      //billing

      BillingDocument.BillingDocumentDate,
      BillingDocument.BillingDocCombinationCriteria,

      //pricing

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      TotalNetAmount,
      @Semantics.currencyCode: true
      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      TransactionCurrency,
      @Semantics.currencyCode: true
      @ObjectModel.foreignKey.association: '_StatisticsCurrency'
      StatisticsCurrency,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      TotalTaxAmount,
      
      @ObjectModel.foreignKey.association: '_CustomerPriceGroup'
      CustomerPriceGroup,
      @ObjectModel.foreignKey.association: '_PriceListType'
      PriceListType,
      @ObjectModel.foreignKey.association: '_TaxDepartureCountry'
      TaxDepartureCountry,
      VATRegistration,
      @ObjectModel.foreignKey.association: '_VATRegistrationOrigin'
      VATRegistrationOrigin,
      @ObjectModel.foreignKey.association: '_VATRegistrationCountry'
      VATRegistrationCountry,
      HierarchyTypePricing,
      
      CustomerTaxClassification1,
      CustomerTaxClassification2,
      CustomerTaxClassification3,
      CustomerTaxClassification4,
      CustomerTaxClassification5,
      CustomerTaxClassification6,
      CustomerTaxClassification7,
      CustomerTaxClassification8,
      CustomerTaxClassification9,
      IsEUTriangularDeal,

      @ObjectModel.foreignKey.association: '_SDPricingProcedure'
      SDPricingProcedure,

      //shipping

      @ObjectModel.foreignKey.association: '_ShippingCondition'
      ShippingCondition,
      @ObjectModel.foreignKey.association: '_IncotermsVersion'
      IncotermsVersion,
      @ObjectModel.foreignKey.association: '_IncotermsClassification'
      IncotermsClassification,
      IncotermsTransferLocation,
      IncotermsLocation1,
      IncotermsLocation2,

      //payment

      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_Customer_VH',
                     element: 'Customer' }
        }]
      @ObjectModel.foreignKey.association: '_PayerParty'
      PayerParty,
      ContractAccount,
      @ObjectModel.foreignKey.association: '_CustomerPaymentTerms'
      CustomerPaymentTerms,
      @ObjectModel.foreignKey.association: '_PaymentMethod'
      PaymentMethod,
      PaymentReference,
      FixedValueDate,
      AdditionalValueDays,
      SEPAMandate,

      //accounting

      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_CompanyCodeStdVH',
                     element: 'CompanyCode' }
        }]
      @ObjectModel.foreignKey.association: '_CompanyCode'
      CompanyCode,
      @ObjectModel.foreignKey.association: '_CustomerAccountAssgmtGroup'
      CustomerAccountAssignmentGroup,
      AccountingExchangeRateIsSet,
      AccountingExchangeRate,      
      ExchangeRateDate,
      @ObjectModel.foreignKey.association: '_ExchangeRateType'
      ExchangeRateType,
      DocumentReferenceID,
      AssignmentReference,      
      @ObjectModel.foreignKey.association: '_DunningArea'
      DunningArea,
      @ObjectModel.foreignKey.association: '_DunningBlockingReason'
      DunningBlockingReason,
      @ObjectModel.foreignKey.association: '_DunningKey'
      DunningKey,
      IsRelevantForAccrual,      
      
      //billing document list

      @ObjectModel.foreignKey.association: '_InvoiceListType'
      InvoiceListType,
      InvoiceListBillingDate,
      
      //sales

      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_Customer_VH',
                     element: 'Customer' }
        }]
      @ObjectModel.foreignKey.association: '_SoldToParty'
      SoldToParty,
      PartnerCompany,
      PurchaseOrderByCustomer,
      @ObjectModel.foreignKey.association: '_CustomerGroup'
      CustomerGroup,
      @ObjectModel.foreignKey.association: '_Country'
      Country,
      @ObjectModel.foreignKey.association: '_CityCode'
      CityCode,
      @ObjectModel.foreignKey.association: '_SalesDistrict'
      SalesDistrict,
      @ObjectModel.foreignKey.association: '_Region'
      Region,
      @ObjectModel.foreignKey.association: '_County_2'
      County,
      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_CreditControlAreaStdVH',
                     element: 'CreditControlArea' }
        }]
      @ObjectModel.text.association: '_CreditControlAreaText'
      @ObjectModel.foreignKey.association: '_CreditControlArea'
      CreditControlArea,
      CustomerRebateAgreement,
      PricingDocument,

      //status

      @ObjectModel.foreignKey.association: '_OverallSDProcessStatus'
      OverallSDProcessStatus,
      @ObjectModel.foreignKey.association: '_BillingIssueType'
      BillingIssueType,
      @ObjectModel.foreignKey.association: '_OvrlItmGeneralIncompletionSts'      
      OvrlItmGeneralIncompletionSts,
      @ObjectModel.foreignKey.association: '_OverallPricingIncompletionSts'
      OverallPricingIncompletionSts,
      @ObjectModel.foreignKey.association: '_PrelimBillingDocumentStatus'      
      PrelimBillingDocumentStatus,      

      //Approval Management

      @ObjectModel.foreignKey.association: '_BillgProcDocApprovalStatus'          
      BillingDocument.BillgProcDocApprovalStatus,  
      @ObjectModel.foreignKey.association: '_PrelimBillgDocApprovalReason'
      BillingDocument.BillgProcDocApprovalReason as PrelimBillgDocApprovalReason,
        
      //association

      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _Item,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _Partner,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _PricingElement,
      _SDDocumentCategory,
      _BillingDocumentCategory,
      _BillingDocumentType,
      _CreatedByUser,
      _LogicalSystem,
      _SalesOrganization,
      _DistributionChannel,
      _Division,
      _TransactionCurrency,
      _StatisticsCurrency,
      _CustomerPriceGroup,
      _PriceListType,
      _TaxDepartureCountry,
      _VATRegistrationOrigin,
      _VATRegistrationCountry,
      _SDPricingProcedure,
      _ShippingCondition,
      _IncotermsClassification,
      _IncotermsVersion,
      _PayerParty,
      _CustomerPaymentTerms,
      _PaymentMethod,
      _CompanyCode,
      _CustomerAccountAssgmtGroup,
      _ExchangeRateType,
      _DunningArea,
      _DunningBlockingReason,
      _DunningKey,
      _InvoiceListType,            
      _SoldToParty,
      _CustomerGroup,
      _Country,
      _CityCode,
      _SalesDistrict,
      _Region,
      @API.element: { releaseState: #DEPRECATED, successor: '_County_2' }                              
      _County,
      _County_2,
      _CreditControlArea,
      _OverallSDProcessStatus,
      _BillingIssueType,
      _OvrlItmGeneralIncompletionSts,
      _OverallPricingIncompletionSts,
      _PrelimBillingDocumentStatus,
      _BillgProcDocApprovalStatus,
      _PrelimBillgDocApprovalReason,
      _EnhancedFields,
      
      @Consumption.hidden: true
      _CreditControlAreaText
}
where
  SDDocumentCategory = 'PBD'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENTBASIC"
],
"ASSOCIATED":
[
"E_BILLINGDOCUMENT",
"I_BILLINGDOCUMENTCATEGORY",
"I_BILLINGDOCUMENTTYPE",
"I_BILLINGISSUETYPE",
"I_CITYCODE",
"I_COMPANYCODE",
"I_COUNTRY",
"I_COUNTYCODE",
"I_CREDITCONTROLAREA",
"I_CREDITCONTROLAREATEXT",
"I_CURRENCY",
"I_CUSTOMER",
"I_CUSTOMERACCOUNTASSGMTGROUP",
"I_CUSTOMERGROUP",
"I_CUSTOMERPAYMENTTERMS",
"I_CUSTOMERPRICEGROUP",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_DUNNINGAREA",
"I_DUNNINGBLOCKINGREASONCODE",
"I_DUNNINGKEY",
"I_EXCHANGERATETYPE",
"I_INCOTERMSCLASSIFICATION",
"I_INCOTERMSVERSION",
"I_LOGICALSYSTEM",
"I_OVERALLPRCINCOMPLETIONSTS",
"I_OVERALLSDPROCESSSTATUS",
"I_OVRLITMGENINCOMPLETIONSTS",
"I_PAYMENTMETHOD",
"I_PRELIMBILLGDOCAPPROVALREASON",
"I_PRELIMBILLGDOCENHANCEDFIELDS",
"I_PRELIMBILLGDOCSTATUS",
"I_PRELIMBILLINGDOCPARTNER",
"I_PRELIMBILLINGDOCPRCGELMNT",
"I_PRELIMBILLINGDOCUMENTITEM",
"I_PRICELISTTYPE",
"I_REGION",
"I_SALESDISTRICT",
"I_SALESORGANIZATION",
"I_SDAPPROVALSTATUS",
"I_SDDOCUMENTCATEGORY",
"I_SHIPPINGCONDITION",
"I_SLSPRICINGPROCEDURE",
"I_TAXINGCOUNTY",
"I_USER",
"I_VATREGISTRATIONORIGIN"
],
"BASE":
[
"I_BILLINGDOCUMENTBASIC"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/