I_PaymentReceipt

DDL: I_PAYMENTRECEIPT SQL: IPAYTRCPT Type: view BASIC

Payment Receipt

I_PaymentReceipt is a Basic CDS View that provides data about "Payment Receipt" in SAP S/4HANA. It reads from 2 data sources (dd07t, paytrcpt) and exposes 35 fields with key field PaymentReceiptUUID. It has 6 associations to related views.

Data Sources (2)

SourceAliasJoin Type
dd07t Description left_outer
paytrcpt PaymentReceipt from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_UserContactCard _CreateUserContactCard $projection.CreatedByUser = _CreateUserContactCard.ContactCardID
[0..1] I_UserContactCard _VoidUserContactCard $projection.PaymentRcptVoidedByUserName = _VoidUserContactCard.ContactCardID
[0..1] I_UserContactCard _ChangeUserContactCard $projection.LastChangedByUser = _ChangeUserContactCard.ContactCardID
[0..*] I_PaymentReceiptRelatedDoc _AccountingDocument $projection.PaymentReceiptUUID = _AccountingDocument.PaymentReceiptUUID
[0..1] I_PH_PaymentReceipt _I_PH_PaymentReceipt $projection.PaymentReceiptUUID = _I_PH_PaymentReceipt.PaymentReceiptUUID
[0..1] P_PaymentReceiptPaytItemsTotal _PaymentTotal $projection.PaymentReceiptUUID = _PaymentTotal.PaymentReceiptUUID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPAYTRCPT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #BASIC view
EndUserText.label Payment Receipt view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY PaymentReceiptUUID paytrcpt_uuid Payt Rcpt UUID
PredecessorReferenceDocument paytrcpt_ref_no Reference Key
PaymentReceiptType paytrcpt_type Payment Receipt Type
PaymentReceiptTypeName
CompanyCode bukrs Value
PaymentReceiptLotNumber paytrcpt_group Receipt Lot
PaymentReceiptIssueDate paytrcpt_date Payt Rcpt Date
FiscalYear fiscalyear G/L Fiscal Year
CreateReferencePaytRcptUUID createrefuuid Based Receipt No
VoidReferencePaytRcptUUID voidrefuuid Payt Rcpt UUID
OfficialReceiptNumber ryoshusho Receipt (Japan)
CreatedByUser createdbyuser User Name
PaymentReceiptCreatedDate createddate Payt Rcpt Crted Date
LastChangedByUser lastchangedbyuser User Name
PaymentRcptVoidedByUserName voidbyuser User Name
PaymentReceiptVoidedDate voideddate Payt Rcpt Void Date
PaymentReceiptID paytrcpt_id Payment Receipt ID
Customer customer Sold-to Party
Supplier supplier Supplier
Ledger rldnr Ledger (Compat.)
OutputRequestUUID output_uuid NodeID
PaymentReceiptStatus status Workflow Status
AppraisalRemark voidremark PR Void Reason Note
JrnlEntryCntrySpecificRef1 paytrcpt_ref1 Reference 1
JrnlEntryCntrySpecificRef2 paytrcpt_ref2 Reference 2
JrnlEntryCntrySpecificRef3 paytrcpt_ref3 Reference 3
AccountingDocument
ChequeVoidReason voidr Voiding Reason
CashAmtInCoCodeCrcy _PaymentTotal CashAmtInCoCodeCrcy
PaymentCurrency _PaymentTotal PaymentCurrency Payment Currency
_CreateUserContactCard _CreateUserContactCard
_VoidUserContactCard _VoidUserContactCard
_ChangeUserContactCard _ChangeUserContactCard
_AccountingDocument _AccountingDocument
_I_PH_PaymentReceipt _I_PH_PaymentReceipt

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_PaymentReceipt.
-- 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: IPAYTRCPT

CREATE VIEW I_PaymentReceipt AS
SELECT
  paytrcpt_uuid AS PaymentReceiptUUID,
  paytrcpt_ref_no AS PredecessorReferenceDocument,
  paytrcpt_type AS PaymentReceiptType,
  cast( Description.ddtext as paytrcpt_type_desc ) AS PaymentReceiptTypeName,
  bukrs AS CompanyCode,
  paytrcpt_group AS PaymentReceiptLotNumber,
  paytrcpt_date AS PaymentReceiptIssueDate,
  FiscalYear,
  createrefuuid AS CreateReferencePaytRcptUUID,
  voidrefuuid AS VoidReferencePaytRcptUUID,
  ryoshusho AS OfficialReceiptNumber,
  CreatedByUser,
  createddate AS PaymentReceiptCreatedDate,
  LastChangedByUser,
  voidbyuser AS PaymentRcptVoidedByUserName,
  voideddate AS PaymentReceiptVoidedDate,
  paytrcpt_id AS PaymentReceiptID,
  Customer,
  Supplier,
  rldnr AS Ledger,
  output_uuid AS OutputRequestUUID,
  status AS PaymentReceiptStatus,
  voidremark AS AppraisalRemark,
  paytrcpt_ref1 AS JrnlEntryCntrySpecificRef1,
  paytrcpt_ref2 AS JrnlEntryCntrySpecificRef2,
  paytrcpt_ref3 AS JrnlEntryCntrySpecificRef3,
  cast('0' as abap.char(10)) AS AccountingDocument,
  voidr AS ChequeVoidReason,
  _PaymentTotal.CashAmtInCoCodeCrcy AS CashAmtInCoCodeCrcy,
  _PaymentTotal.PaymentCurrency AS PaymentCurrency
FROM paytrcpt AS PaymentReceipt
LEFT OUTER JOIN dd07t AS Description ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_UserContactCard AS _CreateUserContactCard ON CreatedByUser = _CreateUserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _VoidUserContactCard ON PaymentRcptVoidedByUserName = _VoidUserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ChangeUserContactCard ON LastChangedByUser = _ChangeUserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_PaymentReceiptRelatedDoc AS _AccountingDocument ON PaymentReceiptUUID = _AccountingDocument.PaymentReceiptUUID  -- association [0..*]
LEFT OUTER JOIN I_PH_PaymentReceipt AS _I_PH_PaymentReceipt ON PaymentReceiptUUID = _I_PH_PaymentReceipt.PaymentReceiptUUID  -- association [0..1]
LEFT OUTER JOIN P_PaymentReceiptPaytItemsTotal AS _PaymentTotal ON PaymentReceiptUUID = _PaymentTotal.PaymentReceiptUUID  -- association [0..1]
;