C_BG_SAFTSalesInvoiceHeader

DDL: C_BG_SAFTSALESINVOICEHEADER Type: view_entity CONSUMPTION Package: GLO_FIN_IS_SAFT_BG

Sales invoice header for BG SAFT

C_BG_SAFTSalesInvoiceHeader is a Consumption CDS View that provides data about "Sales invoice header for BG SAFT" in SAP S/4HANA. It reads from 2 data sources (I_BG_SAFTAccountMapping, P_BG_SAFTSALESINVOICEHEADER) and exposes 31 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, Ledger. Part of development package GLO_FIN_IS_SAFT_BG.

Data Sources (2)

SourceAliasJoin Type
I_BG_SAFTAccountMapping accmap inner
P_BG_SAFTSALESINVOICEHEADER P_BG_SAFTSALESINVOICEHEADER from

Parameters (3)

NameTypeDefault
P_AlternativeGLAccountIsUsed saft_bg_alt_gl_account_flag
P_UserSystemIdentifier sysid
P_VATRegistration stceg

Annotations (7)

NameValueLevelField
VDM.viewType #CONSUMPTION view
EndUserText.label Sales invoice header for BG SAFT view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger Header SourceLedger Source Ledger
KEY CompanyCode Header CompanyCode Receiver Company Code
KEY FiscalYear Header FiscalYear G/L Fiscal Year
KEY AccountingDocument Header AccountingDocument Journal Entry
KEY Ledger Header Ledger Ledger
AccountingDocumentItem Header AccountingDocumentItem Posting View Item
FiscalPeriod Header FiscalPeriod Tax period
PostingDate Header PostingDate Posting Date for GR
InvoiceDate Header InvoiceDate Run On
TaxReportingDate Header TaxReportingDate Tax Reporting Date
AccountingDocumentType Header AccountingDocumentType Journal Entry Type
AccountingDocCreatedByUser Header AccountingDocCreatedByUser User which created overhead document
Customer Header Customer Sold-to Party
CustomerStreetName Header CustomerStreetName
CustomerCityName Header CustomerCityName
CustomerPostalCode Header CustomerPostalCode
CustomerCountry Header CustomerCountry
Supplier Header Supplier Supplier
SupplierStreetName Header SupplierStreetName Arrival Street
SupplierCityName Header SupplierCityName Supplier City
SupplierPostalCode Header SupplierPostalCode Arrival Postal Code
SupplierCountry Header SupplierCountry
BG_SAFTInvoiceType Header BG_SAFTInvoiceType
CustomerTaxID5 Header CustomerTaxID5
SupplierTaxID5 Header SupplierTaxID5
BG_SAFTStandardAccount I_BG_SAFTAccountMapping BG_SAFTStandardAccount St. Account ID
BG_SAFTSystemID Header BG_SAFTSystemID
PaymentTermsName Header PaymentTermsName Description
SelfBillingValueItemDesc Header SelfBillingValueItemDesc
BusinessTransactionTypeName Header BusinessTransactionTypeName
AlternativeReferenceDocument Header AlternativeReferenceDocument Alternative Reference Document

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 C_BG_SAFTSalesInvoiceHeader.
-- 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.
-- Parameters: P_AlternativeGLAccountIsUsed : saft_bg_alt_gl_account_flag, P_UserSystemIdentifier : sysid, P_VATRegistration : stceg

CREATE VIEW C_BG_SAFTSalesInvoiceHeader AS
SELECT
  Header.SourceLedger AS SourceLedger,
  Header.CompanyCode AS CompanyCode,
  Header.FiscalYear AS FiscalYear,
  Header.AccountingDocument AS AccountingDocument,
  Header.Ledger AS Ledger,
  Header.AccountingDocumentItem AS AccountingDocumentItem,
  Header.FiscalPeriod AS FiscalPeriod,
  Header.PostingDate AS PostingDate,
  Header.InvoiceDate AS InvoiceDate,
  Header.TaxReportingDate AS TaxReportingDate,
  Header.AccountingDocumentType AS AccountingDocumentType,
  Header.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
  Header.Customer AS Customer,
  Header.CustomerStreetName AS CustomerStreetName,
  Header.CustomerCityName AS CustomerCityName,
  Header.CustomerPostalCode AS CustomerPostalCode,
  Header.CustomerCountry AS CustomerCountry,
  Header.Supplier AS Supplier,
  Header.SupplierStreetName AS SupplierStreetName,
  Header.SupplierCityName AS SupplierCityName,
  Header.SupplierPostalCode AS SupplierPostalCode,
  Header.SupplierCountry AS SupplierCountry,
  Header.BG_SAFTInvoiceType AS BG_SAFTInvoiceType,
  Header.CustomerTaxID5 AS CustomerTaxID5,
  Header.SupplierTaxID5 AS SupplierTaxID5,
  accmap.BG_SAFTStandardAccount AS BG_SAFTStandardAccount,
  Header.BG_SAFTSystemID AS BG_SAFTSystemID,
  Header.PaymentTermsName AS PaymentTermsName,
  Header.SelfBillingValueItemDesc AS SelfBillingValueItemDesc,
  Header.BusinessTransactionTypeName AS BusinessTransactionTypeName,
  Header.AlternativeReferenceDocument AS AlternativeReferenceDocument
FROM P_BG_SAFTSALESINVOICEHEADER
INNER JOIN I_BG_SAFTAccountMapping AS accmap ON /* join condition not captured in parsed metadata */
;