P_MX_JrnlEntrItmPaytDetailsC

DDL: P_MX_JRNLENTRITMPAYTDETAILSC Type: view CONSUMPTION Package: GLO_FIN_IS_GL_MX_JE

Journal Entries Items with Payments

P_MX_JrnlEntrItmPaytDetailsC is a Consumption CDS View that provides data about "Journal Entries Items with Payments" in SAP S/4HANA. It reads from 1 data source (P_MX_OperationalAcctDocItem) and exposes 24 fields with key fields SourceLedger, Ledger, CompanyCode, AccountingDocument, FiscalYear. Part of development package GLO_FIN_IS_GL_MX_JE.

Data Sources (1)

SourceAliasJoin Type
P_MX_OperationalAcctDocItem P_MX_OperationalAcctDocItem from

Parameters (4)

NameTypeDefault
P_Ledger fins_ledger
P_FiscalYear fis_gjahr_no_conv
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to

Annotations (10)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName PMXJEPAYMDETC view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger SourceLedger Source Ledger
KEY Ledger Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem
StatryRptgEntity StatryRptgEntity Reporting Entity
StatryRptCategory StatryRptCategory Report ID
StatryRptRunID StatryRptRunID Report Run ID
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
PaymentRunDate
PaymentRunID
PostingDate PostingDate Posting Date for GR
OrganizationBPName1 OrganizationBPName1 Name 1
FinancialAccountType FinancialAccountType Fin. Account Type
Customer Customer Sold-to Party
Supplier Supplier Supplier
TransactionCurrency TransactionCurrency Transaction Currency
AmountInTransactionCurrency
ExchangeRate ExchangeRate Exchange rate
PaymentMethod PaymentMethod Pymt Meth.
sstring43asubkntasBankAccount
JrnlEntryCntrySpecificRef5 JrnlEntryCntrySpecificRef5 Country/Region Specific Reference 5
TransactionCode TransactionCode Transaction Code

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_MX_JrnlEntrItmPaytDetailsC.
-- 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_Ledger : fins_ledger, P_FiscalYear : fis_gjahr_no_conv, P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to

CREATE VIEW P_MX_JrnlEntrItmPaytDetailsC AS
SELECT
  SourceLedger,
  Ledger,
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  min(AccountingDocumentItem) AS AccountingDocumentItem,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  AccountingDocumentHeaderText,
  substring( AccountingDocumentHeaderText, 1, 8) AS PaymentRunDate,
  substring( AccountingDocumentHeaderText, 10, 5) AS PaymentRunID,
  PostingDate,
  OrganizationBPName1,
  FinancialAccountType,
  Customer,
  Supplier,
  TransactionCurrency,
  sum (AmountInTransactionCurrency) AS AmountInTransactionCurrency,
  ExchangeRate,
  PaymentMethod,
  cast( rtrim( cast( substring( replace( ( cast( replace( substring(JrnlEntryCntrySpecificRef5, 8, 42), '/', '########################/' ) as abap.sstring(43) ) ), '/', '#########################' ), 1, 43 ) as abap.sstring(43) ), '#' ) as ubknt ) as BankAccount AS sstring43asubkntasBankAccount,
  JrnlEntryCntrySpecificRef5,
  TransactionCode
FROM P_MX_OperationalAcctDocItem
;