R_IN_GSTPurchaseRegisterDocTP

DDL: R_IN_GSTPURCHASEREGISTERDOCTP Type: view_entity TRANSACTIONAL Package: GLO_FIN_GST_IN

Purchase Register Document Header - TP

R_IN_GSTPurchaseRegisterDocTP is a Transactional CDS View that provides data about "Purchase Register Document Header - TP" in SAP S/4HANA. It reads from 1 data source (I_IN_EDocGSTPurRegJrnlEntrDoc) and exposes 24 fields with key field ElectronicDocUUID. It has 2 associations to related views. Part of development package GLO_FIN_GST_IN.

Data Sources (1)

SourceAliasJoin Type
I_IN_EDocGSTPurRegJrnlEntrDoc I_IN_EDocGSTPurRegJrnlEntrDoc from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_ElectronicDocProcStatusText _ElectronicDocText _ElectronicDocText.ElectronicDocProcessStatus = I_IN_EDocGSTPurRegJrnlEntrDoc.ElectronicDocProcessStatus and _ElectronicDocText.ElectronicDocProcess = I_IN_EDocGSTPurRegJrnlEntrDoc.ElectronicDocProcess
[0..*] R_IN_GSTPurchaseRegisterItemTP _PurchaseRegisterItemDet

Annotations (9)

NameValueLevelField
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Purchase Register Document Header - TP view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY ElectronicDocUUID I_IN_EDocGSTPurRegJrnlEntrDoc ElectronicDocUUID
CompanyCode I_IN_EDocGSTPurRegJrnlEntrDoc ElectronicDocCompanyCode
ElectronicDocType I_IN_EDocGSTPurRegJrnlEntrDoc ElectronicDocType
ReportingCountry
IN_EDocGSTRetsBusinessPlace I_IN_EDocGSTPurRegJrnlEntrDoc IN_EDocGSTRetsBusinessPlace
ReportingDate
IN_EDocEInvcExtNmbr
AccountingDocument
DocumentDate
IN_DocumentSectionCode I_IN_EDocGSTPurRegJrnlEntrDoc IN_DocumentSectionCode
ElectronicDocProcessStatus I_IN_EDocGSTPurRegJrnlEntrDoc ElectronicDocProcessStatus
ElectronicDocProcStatusText
IN_GSTPlaceOfSupplyName
FiscalYear
IN_NoteType
IN_IsGSTReverseCharged
IN_GSTIdentificationNumber
IN_EDocInptTaxCrdtAccptdPeriod I_IN_EDocGSTPurRegJrnlEntrDoc IN_EDocInptTaxCrdtAccptdPeriod
PostingDate I_IN_EDocGSTPurRegJrnlEntrDoc PostingDate Posting Date for GR
BusinessPartnerFullName
IN_PrtnGSTIdentificationNmbr
CompanyCodeCurrency I_IN_GSTPurInvoiceGrossAmount CompanyCodeCurrency Local Currency
InvoiceGrossAmount
_PurchaseRegisterItemDet _PurchaseRegisterItemDet

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 R_IN_GSTPurchaseRegisterDocTP.
-- 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 R_IN_GSTPurchaseRegisterDocTP AS
SELECT
  I_IN_EDocGSTPurRegJrnlEntrDoc.ElectronicDocUUID AS ElectronicDocUUID,
  I_IN_EDocGSTPurRegJrnlEntrDoc.ElectronicDocCompanyCode AS CompanyCode,
  I_IN_EDocGSTPurRegJrnlEntrDoc.ElectronicDocType AS ElectronicDocType,
  cast( I_IN_EDocGSTPurRegJrnlEntrDoc.ElectronicDocCountry as glo_in_country ) AS ReportingCountry,
  I_IN_EDocGSTPurRegJrnlEntrDoc.IN_EDocGSTRetsBusinessPlace AS IN_EDocGSTRetsBusinessPlace,
  cast( I_IN_EDocGSTPurRegJrnlEntrDoc.IN_EDocGSTRetsTaxReportingDate as glo_in_vatdate) AS ReportingDate,
  cast( I_IN_EDocGSTPurRegJrnlEntrDoc.IN_EDocGSTRetsExtNmbr as gl_in_einvno) AS IN_EDocEInvcExtNmbr,
  cast( I_IN_EDocGSTPurRegJrnlEntrDoc.AccountingDocument as glo_in_account_doc) AS AccountingDocument,
  cast( I_IN_EDocGSTPurRegJrnlEntrDoc.DocumentDate as glo_in_invoice_date ) AS DocumentDate,
  I_IN_EDocGSTPurRegJrnlEntrDoc.IN_DocumentSectionCode AS IN_DocumentSectionCode,
  I_IN_EDocGSTPurRegJrnlEntrDoc.ElectronicDocProcessStatus AS ElectronicDocProcessStatus,
  cast( _ElectronicDocText.ElectronicDocProcStatusText as glo_in_invoice_status ) AS ElectronicDocProcStatusText,
  cast( I_IN_GSTRetsSlsRegStateCode.IN_GSTPlaceOfSupplyName as glo_in_placeofsupply) AS IN_GSTPlaceOfSupplyName,
  cast( I_IN_EDocGSTPurRegJrnlEntrDoc.IN_EDocFiscalYear as fis_gjahr_no_conv) AS FiscalYear,
  cast(I_IN_EDocGSTPurRegJrnlEntrDoc.IN_NoteType as glo_in_notetype) AS IN_NoteType,
  cast( I_IN_EDocGSTPurRegJrnlEntrDoc.IN_IsGSTReverseCharged as glo_in_reversecharge ) AS IN_IsGSTReverseCharged,
  cast(I_IN_EDocGSTPurRegJrnlEntrDoc.IN_GSTIdentificationNumber as glo_in_taxpayergstin) AS IN_GSTIdentificationNumber,
  I_IN_EDocGSTPurRegJrnlEntrDoc.IN_EDocInptTaxCrdtAccptdPeriod AS IN_EDocInptTaxCrdtAccptdPeriod,
  I_IN_EDocGSTPurRegJrnlEntrDoc.PostingDate AS PostingDate,
  cast(I_IN_EDocGSTPurRegJrnlEntrDoc._Supplier.SupplierFullName as glo_in_businesspartnername) AS BusinessPartnerFullName,
  cast(I_IN_EDocGSTPurRegJrnlEntrDoc._Supplier.TaxNumber3 as glo_in_partnergstin ) AS IN_PrtnGSTIdentificationNmbr,
  I_IN_GSTPurInvoiceGrossAmount.CompanyCodeCurrency AS CompanyCodeCurrency,
  cast( I_IN_GSTPurInvoiceGrossAmount.InvoiceGrossAmount as glo_in_totalamount) AS InvoiceGrossAmount
FROM I_IN_EDocGSTPurRegJrnlEntrDoc
LEFT OUTER JOIN I_ElectronicDocProcStatusText AS _ElectronicDocText ON _ElectronicDocText.ElectronicDocProcessStatus = I_IN_EDocGSTPurRegJrnlEntrDoc.ElectronicDocProcessStatus AND _ElectronicDocText.ElectronicDocProcess = I_IN_EDocGSTPurRegJrnlEntrDoc.ElectronicDocProcess  -- association [0..*]
LEFT OUTER JOIN R_IN_GSTPurchaseRegisterItemTP AS _PurchaseRegisterItemDet ON /* condition not available in parsed metadata */  -- association [0..*]
;