I_TH_PaytReceiptJournalEntryVH
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)
| Source | Alias | Join Type |
|---|---|---|
| P_TH_PaytRcptJournalEntry | _JournalEntry | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA