P_APJrnlEntrItmOpenPay2_NSJ

DDL: P_APJRNLENTRITMOPENPAY2_NSJ Type: view_entity COMPOSITE Package: FINS_FIS_AP_APPS

P_APJrnlEntrItmOpenPay2_NSJ No self-join

P_APJrnlEntrItmOpenPay2_NSJ is a Composite CDS View that provides data about "P_APJrnlEntrItmOpenPay2_NSJ No self-join" in SAP S/4HANA. It reads from 1 data source (P_APJrnlEntrItmOpenPay1) and exposes 32 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. Part of development package FINS_FIS_AP_APPS.

Data Sources (1)

SourceAliasJoin Type
P_APJrnlEntrItmOpenPay1 P_APJrnlEntrItmOpenPay1 from

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Annotations (3)

NameValueLevelField
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
AccountingDocumentItem AccountingDocumentItem Posting View Item
InvoiceReference InvoiceReference Invoice Reference
InvoiceItemReference InvoiceItemReference Item
InvoiceReferenceFiscalYear InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
ClearingDate ClearingDate Clearing Date
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
FinancialAccountType FinancialAccountType Fin. Account Type
Supplier Supplier Supplier
FollowOnDocumentType FollowOnDocumentType Follow-On Document Type
SpecialGLCode SpecialGLCode Special G/L Ind
GLAccount GLAccount General Ledger
CostCenter CostCenter Cost Center
ProfitCenter ProfitCenter Profit Center
FunctionalArea FunctionalArea Sendr Fctl Area
BusinessArea BusinessArea Business Area
Segment Segment Segment number
PurchasingDocument PurchasingDocument Purchasing Document
AssignmentReference AssignmentReference Assignment Reference
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
RefInvcDocumentDate
RefInvcFinancialAccountType
RefInvcDebitCreditCode
RefInvcNetPaymentDays
RefInvcInvoiceReference
RefInvcNetDueDate
NetDueDate NetDueDate Net Due Date

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_APJrnlEntrItmOpenPay2_NSJ.
-- 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_KeyDate : sydate

CREATE VIEW P_APJrnlEntrItmOpenPay2_NSJ AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  AccountingDocumentItem,
  InvoiceReference,
  InvoiceItemReference,
  InvoiceReferenceFiscalYear,
  ClearingDate,
  PostingDate,
  DocumentDate,
  FinancialAccountType,
  Supplier,
  FollowOnDocumentType,
  SpecialGLCode,
  GLAccount,
  CostCenter,
  ProfitCenter,
  FunctionalArea,
  BusinessArea,
  Segment,
  PurchasingDocument,
  AssignmentReference,
  CompanyCodeCurrency,
  AmountInCompanyCodeCurrency,
  cast( '00000000' as fis_bldat ) AS RefInvcDocumentDate,
  cast( '' as farp_koart ) AS RefInvcFinancialAccountType,
  cast( '' as fis_shkzg ) AS RefInvcDebitCreditCode,
  cast( 0 as farp_dzbd3t ) AS RefInvcNetPaymentDays,
  cast( '' as farp_rebzg ) AS RefInvcInvoiceReference,
  cast( '00000000' as farp_netdt ) AS RefInvcNetDueDate,
  NetDueDate
FROM P_APJrnlEntrItmOpenPay1
;