P_Fiarcn_Cust_Balance08

DDL: P_FIARCN_CUST_BALANCE08 SQL: PVFIARCNCUSTBAL8 Type: view CONSUMPTION

P_Fiarcn_Cust_Balance08 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_FIARCN_CUST_BALANCE07) and exposes 43 fields with key fields CompanyCode, FiscalYear, FiscalPeriod, GLAccount, AlternativeGLAccount.

Data Sources (1)

SourceAliasJoin Type
P_FIARCN_CUST_BALANCE07 P_FIARCN_CUST_BALANCE07 from

Parameters (4)

NameTypeDefault
P_CompanyCode bukrs
P_FiscalYear gjahr
P_Language sylangu
P_CurrencyRole fac_crcyrole

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PVFIARCNCUSTBAL8 view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY FiscalPeriod FiscalPeriod Tax period
KEY GLAccount GLAccount General Ledger
KEY AlternativeGLAccount AlternativeGLAccount Group Account
KEY BusinessPartner BusinessPartner Issuing Authority
KEY Customer Customer Sold-to Party
KEY Supplier Supplier Supplier
KEY SpecialGLCode SpecialGLCode Special G/L Ind
KEY ProfitCenter ProfitCenter Profit Center
KEY Segment Segment Segment number
KEY BusinessArea BusinessArea Business Area
KEY AccountingDocumentType AccountingDocumentType Journal Entry Type
KEY DisplayCurrency DisplayCurrency Display Currency
KEY TransactionCurrency TransactionCurrency Transaction Currency
CustomerName CustomerName Name of Customer
BPCustomerName BPCustomerName Name of Customer
OrganizationBPName1 OrganizationBPName1 Name 1
OrganizationBPName2 OrganizationBPName2 Name 2
CustomerAccountGroup CustomerAccountGroup Account group
CustomerVATRegistration CustomerVATRegistration VAT Registration No.
CustomerCountry CustomerCountry
CustomerCityName CustomerCityName
CustomerRegion CustomerRegion
BusinessPartnerName BusinessPartnerName Extracted Customer Name
CustomerSearchText CustomerSearchText
GLAccountName GLAccountName Short Text
AlternativeGLAccountName AlternativeGLAccountName Short Text
AssignmentReference AssignmentReference Assignment Reference
BalCarFwdAmtInDspCrcy
StartingBalAmtInDspCrcy
DebitAmountInDspCrcy
CreditAmountInDspCrcy
EndingBalAmtInDspCrcy
YTDDebitAmtInDspCrcy
YTDCrdtAmtInDspCrcy
BalCarFwdAmtInTransacCrcy
StartingBalanceAmtInTransCrcy
DebitAmountInTransCrcy
CreditAmountInTransCrcy
EndingBalanceAmtInTransCrcy
YTDDebitAmtInTransCrcy
YTDCrdtAmtInTransCrcy

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 P_Fiarcn_Cust_Balance08.
-- 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.
-- SQL view name: PVFIARCNCUSTBAL8
-- Parameters: P_CompanyCode : bukrs, P_FiscalYear : gjahr, P_Language : sylangu, P_CurrencyRole : fac_crcyrole

CREATE VIEW P_Fiarcn_Cust_Balance08 AS
SELECT
  CompanyCode,
  FiscalYear,
  FiscalPeriod,
  GLAccount,
  AlternativeGLAccount,
  BusinessPartner,
  Customer,
  Supplier,
  SpecialGLCode,
  ProfitCenter,
  Segment,
  BusinessArea,
  AccountingDocumentType,
  DisplayCurrency,
  TransactionCurrency,
  CustomerName,
  BPCustomerName,
  OrganizationBPName1,
  OrganizationBPName2,
  CustomerAccountGroup,
  CustomerVATRegistration,
  CustomerCountry,
  CustomerCityName,
  CustomerRegion,
  BusinessPartnerName,
  CustomerSearchText,
  GLAccountName,
  AlternativeGLAccountName,
  AssignmentReference,
  sum (BalCarFwdAmtInDspCrcy) AS BalCarFwdAmtInDspCrcy,
  sum(StartingBalAmtInDspCrcy) AS StartingBalAmtInDspCrcy,
  sum(DebitAmountInDspCrcy) AS DebitAmountInDspCrcy,
  sum(CreditAmountInDspCrcy) AS CreditAmountInDspCrcy,
  sum(EndingBalAmtInDspCrcy) AS EndingBalAmtInDspCrcy,
  sum(YTDDebitAmtInDspCrcy) AS YTDDebitAmtInDspCrcy,
  sum(YTDCrdtAmtInDspCrcy) AS YTDCrdtAmtInDspCrcy,
  sum (BalCarFwdAmtInTransacCrcy) AS BalCarFwdAmtInTransacCrcy,
  sum(StartingBalanceAmtInTransCrcy) AS StartingBalanceAmtInTransCrcy,
  sum(DebitAmountInTransCrcy) AS DebitAmountInTransCrcy,
  sum(CreditAmountInTransCrcy) AS CreditAmountInTransCrcy,
  sum(EndingBalanceAmtInTransCrcy) AS EndingBalanceAmtInTransCrcy,
  sum(YTDDebitAmtInTransCrcy) AS YTDDebitAmtInTransCrcy,
  sum(YTDCrdtAmtInTransCrcy) AS YTDCrdtAmtInTransCrcy
FROM P_FIARCN_CUST_BALANCE07
;