I_TH_PaytReceiptJournalEntryVH

DDL: I_TH_PAYTRECEIPTJOURNALENTRYVH Type: view_entity COMPOSITE Package: GLO_FIN_PAYMENT_RECEIPT

Payment Receipt Journal Entry Thailand

I_TH_PaytReceiptJournalEntryVH is a Composite CDS View that provides data about "Payment Receipt Journal Entry Thailand" in SAP S/4HANA. It reads from 1 data source (P_TH_PaytRcptJournalEntry) and exposes 34 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem. It has 4 associations to related views. Part of development package GLO_FIN_PAYMENT_RECEIPT.

Data Sources (1)

SourceAliasJoin Type
P_TH_PaytRcptJournalEntry _JournalEntry from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Customer _Customer _JournalEntry.Customer = _Customer.Customer
[0..1] I_BusinessPlace _BusinessPlace _BusinessPlace.BusinessPlace = _JournalEntry.CustomerBusinessPlace and _BusinessPlace.CompanyCode = _JournalEntry.CompanyCode
[0..1] I_TH_CustomerBranchCodeText _BranchCode _BranchCode.Customer = _JournalEntry.Customer and _BranchCode.BranchCode = _JournalEntry.BranchCode and _BranchCode.Language = $session.system_language
[0..1] I_AccountingDocumentTypeText _DocumentTypeText _DocumentTypeText.AccountingDocumentType = _JournalEntry.AccountingDocumentType and _DocumentTypeText.Language = $session.system_language

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey AccountingDocument view
ObjectModel.dataCategory #VALUE_HELP view
VDM.viewType #COMPOSITE view
Search.searchable true view
EndUserText.label Payment Receipt Journal Entry Thailand view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Analytics.technicalName ITHPAYTRECPTJEVH view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY AccountingDocumentItem AccountingDocumentItem Line Item
CompanyCodeName CompanyCodeName Company Name
DocumentReferenceID DocumentReferenceID Reference
Customer Customer Sold-to Party
CustomerName _Customer CustomerName Name of Customer
Country
AlternativeReferenceDocument AlternativeReferenceDocument Alternative Reference Document
BusinessPlace BusinessPlace Business place
BusinessPlaceName
DocumentDate DocumentDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
AmountInTransactionCurrency AmountInTransactionCurrency Pt Crcy Amt
Currency Currency Valuation Crcy
AccountingDocumentType AccountingDocumentType Journal Entry Type
AccountingDocumentTypeName _DocumentTypeText AccountingDocumentTypeName
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
ClearingAccountingDocument ClearingAccountingDocument Clearing Journal Entry
CashDiscountAmount CashDiscountAmount CD Amount
NetPaymentAmount NetPaymentAmount Net Payment Amount
IsUsedInPaymentTransaction IsUsedInPaymentTransaction Is Used In Payment Transaction
BranchCode BranchCode Branch Code
TH_BranchCodeDescription _BranchCode TH_BranchCodeDescription
CustomerBusinessPlace CustomerBusinessPlace
BusinessPlaceDescription _BusinessPlace BusinessPlaceDescription
PaymentMethod PaymentMethod Pymt Meth.
PH_BusinessStyleOfBPText
PaymentReceiptType PaymentReceiptType
ItemCounter
AuthorizationGroup _Customer AuthorizationGroup AuthorizGroup
_Customer _Customer

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 I_TH_PaytReceiptJournalEntryVH.
-- 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 I_TH_PaytReceiptJournalEntryVH AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  AccountingDocumentItem,
  CompanyCodeName,
  DocumentReferenceID,
  Customer,
  _Customer.CustomerName AS CustomerName,
  cast('' as land1) AS Country,
  AlternativeReferenceDocument,
  BusinessPlace,
  cast('' as name1) AS BusinessPlaceName,
  DocumentDate,
  PostingDate,
  AmountInTransactionCurrency,
  Currency,
  AccountingDocumentType,
  _DocumentTypeText.AccountingDocumentTypeName AS AccountingDocumentTypeName,
  CompanyCodeCurrency,
  AmountInCompanyCodeCurrency,
  ClearingAccountingDocument,
  CashDiscountAmount,
  NetPaymentAmount,
  IsUsedInPaymentTransaction,
  BranchCode,
  _BranchCode.TH_BranchCodeDescription AS TH_BranchCodeDescription,
  CustomerBusinessPlace,
  _BusinessPlace.BusinessPlaceDescription AS BusinessPlaceDescription,
  PaymentMethod,
  cast('' as ph_biz_style) AS PH_BusinessStyleOfBPText,
  PaymentReceiptType,
  cast( '00000001' as cim_count) AS ItemCounter,
  _Customer.AuthorizationGroup AS AuthorizationGroup
FROM P_TH_PaytRcptJournalEntry AS _JournalEntry
LEFT OUTER JOIN I_Customer AS _Customer ON _JournalEntry.Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_BusinessPlace AS _BusinessPlace ON _BusinessPlace.BusinessPlace = _JournalEntry.CustomerBusinessPlace AND _BusinessPlace.CompanyCode = _JournalEntry.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_TH_CustomerBranchCodeText AS _BranchCode ON _BranchCode.Customer = _JournalEntry.Customer AND _BranchCode.BranchCode = _JournalEntry.BranchCode AND _BranchCode.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentTypeText AS _DocumentTypeText ON _DocumentTypeText.AccountingDocumentType = _JournalEntry.AccountingDocumentType AND _DocumentTypeText.Language = $session.system_language  -- association [0..1]
;