A_PreliminaryBillingDocument

DDL: A_PRELIMINARYBILLINGDOCUMENT Type: view_entity CONSUMPTION Package: ODATA_SD_BIL_PBD_API

Header

A_PreliminaryBillingDocument is a Consumption CDS View that provides data about "Header" in SAP S/4HANA. It reads from 1 data source (R_PrelimBillingDocumentTP) and exposes 85 fields with key field PrelimBillingDocument. It is exposed through 1 OData service (API_PRELIMINARYBILLINGDOCUMENT). Part of development package ODATA_SD_BIL_PBD_API.

Data Sources (1)

SourceAliasJoin Type
R_PrelimBillingDocumentTP R_PrelimBillingDocumentTP projection

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Header view
Metadata.ignorePropagatedAnnotations true view
OData.entityType.name PreliminaryBillingDocument_Type view
ObjectModel.modelingPattern #TRANSACTIONAL_QUERY view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #CONSUMPTION view

OData Services (1)

ServiceBindingVersionContractRelease
API_PRELIMINARYBILLINGDOCUMENT API_PRELIMINARYBILLINGDOCUMENT V4 C2 C1

Fields (85)

KeyFieldSource TableSource FieldDescription
KEY PrelimBillingDocument PrelimBillingDocument
SDDocumentCategory SDDocumentCategory Document Cat.
BillingDocumentCategory BillingDocumentCategory BillingCategory
BillingDocumentType BillingDocumentType Billing Type
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
LastChangeDate LastChangeDate Time Stamp
LastChangeDateTime LastChangeDateTime Timestamp
CreationDateTime BillingDocCreationDateTime
LogicalSystem LogicalSystem Logical System
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
BillingDocumentDate BillingDocumentDate Billing Date
BillingDocCombinationCriteria BillingDocCombinationCriteria
TotalTaxAmount TotalTaxAmount Tax Amount
TotalNetAmount TotalNetAmount Total Net Amount
TotalGrossAmount TotalGrossAmount Total Gross Amount
TransactionCurrency TransactionCurrency Transaction Currency
StatisticsCurrency StatisticsCurrency
CustomerPriceGroup CustomerPriceGroup CustPrice Group
PriceListType PriceListType Price List Tp.
TaxDepartureCountry TaxDepartureCountry Tx Dep Ctry/Reg
VATRegistration VATRegistration VAT Registration No.
VATRegistrationOrigin VATRegistrationOrigin OriginSlsTxNo.
VATRegistrationCountry VATRegistrationCountry CtryRgnSlsTxNo.
CustomerTaxClassification1 CustomerTaxClassification1
CustomerTaxClassification2 CustomerTaxClassification2
CustomerTaxClassification3 CustomerTaxClassification3
CustomerTaxClassification4 CustomerTaxClassification4
CustomerTaxClassification5 CustomerTaxClassification5
CustomerTaxClassification6 CustomerTaxClassification6
CustomerTaxClassification7 CustomerTaxClassification7
CustomerTaxClassification8 CustomerTaxClassification8
CustomerTaxClassification9 CustomerTaxClassification9
IsEUTriangularDeal IsEUTriangularDeal Is EU Triangular Deal
SDPricingProcedure SDPricingProcedure Pric. Procedure
ShippingCondition ShippingCondition Shipping Conditions
IncotermsVersion IncotermsVersion Inco. Version
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsLocation2 IncotermsLocation2 Inco. Location2
PayerParty PayerParty Payer
ContractAccount ContractAccount Contract Acct
CustomerPaymentTerms CustomerPaymentTerms Pyt Terms
PaymentMethod PaymentMethod Pymt Meth.
PaymentReference PaymentReference Payment Reference
FixedValueDate FixedValueDate Fixed Val. Date
AdditionalValueDays AdditionalValueDays Add. Value Days
SEPAMandate SEPAMandate SEPA Mandate
CompanyCode CompanyCode Receiver Company Code
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup AccAssmtGrpCust
AccountingExchangeRateIsSet AccountingExchangeRateIsSet
AbsltAccountingExchangeRate AbsltAccountingExchangeRate
AcctgExchangeRateIsIndrctQtan AcctgExchangeRateIsIndrctQtan
ExchangeRateDate ExchangeRateDate Translatn Date
ExchangeRateType ExchangeRateType Exch. Rate Type
DocumentReferenceID DocumentReferenceID Reference
AssignmentReference AssignmentReference Assignment Reference
DunningArea DunningArea Dunning Area
DunningBlockingReason DunningBlockingReason Set Dunning Block
DunningKey DunningKey Dunning Key
SoldToParty SoldToParty Sold-to Party
PartnerCompany PartnerCompany Trading Partner
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
CustomerGroup CustomerGroup Customer Group
Country Country Venue: Ctry/Reg
CityCode CityCode IATA: City
SalesDistrict SalesDistrict Sales District
Region Region Venue Region
County County Wyoming County
CreditControlArea CreditControlArea Credit Control Area
PricingDocument PricingDocument Document Condition
SAPObjectTypeInUppercase SAPObjectTypeInUppercase
PrcgDocumentHostObjectNodeID PrcgDocumentHostObjectNodeID
OverallSDProcessStatus OverallSDProcessStatus
BillingIssueType BillingIssueType
OvrlItmGeneralIncompletionSts OvrlItmGeneralIncompletionSts
OverallPricingIncompletionSts OverallPricingIncompletionSts
PrelimBillingDocumentStatus PrelimBillingDocumentStatus
PrelimBillgDocApprovalStatus PrelimBillgDocApprovalStatus
PrelimBillgDocApprovalReason PrelimBillgDocApprovalReason
IsRelevantForAccrual IsRelevantForAccrual Accruals

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 A_PreliminaryBillingDocument.
-- 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 A_PreliminaryBillingDocument AS
SELECT
  PrelimBillingDocument,
  SDDocumentCategory,
  BillingDocumentCategory,
  BillingDocumentType,
  CreatedByUser,
  CreationDate,
  CreationTime,
  LastChangeDate,
  LastChangeDateTime,
  BillingDocCreationDateTime AS CreationDateTime,
  LogicalSystem,
  SalesOrganization,
  DistributionChannel,
  Division,
  BillingDocumentDate,
  BillingDocCombinationCriteria,
  TotalTaxAmount,
  TotalNetAmount,
  TotalGrossAmount,
  TransactionCurrency,
  StatisticsCurrency,
  CustomerPriceGroup,
  PriceListType,
  TaxDepartureCountry,
  VATRegistration,
  VATRegistrationOrigin,
  VATRegistrationCountry,
  CustomerTaxClassification1,
  CustomerTaxClassification2,
  CustomerTaxClassification3,
  CustomerTaxClassification4,
  CustomerTaxClassification5,
  CustomerTaxClassification6,
  CustomerTaxClassification7,
  CustomerTaxClassification8,
  CustomerTaxClassification9,
  IsEUTriangularDeal,
  SDPricingProcedure,
  ShippingCondition,
  IncotermsVersion,
  IncotermsClassification,
  IncotermsTransferLocation,
  IncotermsLocation1,
  IncotermsLocation2,
  PayerParty,
  ContractAccount,
  CustomerPaymentTerms,
  PaymentMethod,
  PaymentReference,
  FixedValueDate,
  AdditionalValueDays,
  SEPAMandate,
  CompanyCode,
  CustomerAccountAssignmentGroup,
  AccountingExchangeRateIsSet,
  AbsltAccountingExchangeRate,
  AcctgExchangeRateIsIndrctQtan,
  ExchangeRateDate,
  ExchangeRateType,
  DocumentReferenceID,
  AssignmentReference,
  DunningArea,
  DunningBlockingReason,
  DunningKey,
  SoldToParty,
  PartnerCompany,
  PurchaseOrderByCustomer,
  CustomerGroup,
  Country,
  CityCode,
  SalesDistrict,
  Region,
  County,
  CreditControlArea,
  PricingDocument,
  SAPObjectTypeInUppercase,
  PrcgDocumentHostObjectNodeID,
  OverallSDProcessStatus,
  BillingIssueType,
  OvrlItmGeneralIncompletionSts,
  OverallPricingIncompletionSts,
  PrelimBillingDocumentStatus,
  PrelimBillgDocApprovalStatus,
  PrelimBillgDocApprovalReason,
  IsRelevantForAccrual
FROM R_PrelimBillingDocumentTP
;