I_IN_EDocITC04SlsReg

DDL: I_IN_EDOCITC04SLSREG Type: view_entity COMPOSITE Package: GLO-EDO-IN-GSTR

Electronic Doc Sub Contracting Register

I_IN_EDocITC04SlsReg is a Composite CDS View that provides data about "Electronic Doc Sub Contracting Register" in SAP S/4HANA. It reads from 2 data sources (I_ElectronicDoc, I_IN_EDocGSTRetsSalesRegister) and exposes 26 fields with key field ElectronicDocUUID. It has 4 associations to related views. Part of development package GLO-EDO-IN-GSTR.

Data Sources (2)

SourceAliasJoin Type
I_ElectronicDoc I_ElectronicDoc inner
I_IN_EDocGSTRetsSalesRegister I_IN_EDocGSTRetsSalesRegister from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Businesspartnertaxnumber _BpPartnerTaxNum _BpPartnerTaxNum.BusinessPartner = I_IN_EDocGSTRetsSalesRegister.IN_GSTPartner and _BpPartnerTaxNum.BPTaxType = 'IN3'
[0..1] I_Country _Country _Country.Country = 'IN'
[0..1] I_IN_GSTStateCodeMap _StateCodeMapbp _StateCodeMapbp.Country = 'IN' and _StateCodeMapbp.Region = I_IN_EDocGSTRetsSalesRegister.IN_GSTPlaceOfSupply
[0..1] I_IN_BusinessPlace _BusinessPlace _BusinessPlace.CompanyCode = $projection.ElectronicDocCompanyCode and _BusinessPlace.Branch = $projection.IN_EDocEInvcBusinessPlace

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Electronic Doc Sub Contracting Register view
Metadata.ignorePropagatedAnnotations false view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY ElectronicDocUUID I_ElectronicDoc ElectronicDocUUID eDocument GUID
ElectronicDocCompanyCode I_ElectronicDoc ElectronicDocCompanyCode Value
ElectronicDocSourceType I_ElectronicDoc ElectronicDocSourceType SRVC Source Type
BillingDocument
ElectronicDocSourceKey I_ElectronicDoc ElectronicDocSourceKey Source System Key
ElectronicDocType I_ElectronicDoc ElectronicDocType eDoc Type
ElectronicDocLogicalSystem I_ElectronicDoc ElectronicDocLogicalSystem Source system
ElectronicDocLastChangedByUser I_ElectronicDoc ElectronicDocLastChangedByUser User Name
ElectronicDocLastChangeDate I_ElectronicDoc ElectronicDocLastChangeDate Time Stamp
ElectronicDocLastChangeTime I_ElectronicDoc ElectronicDocLastChangeTime Time Stamp
ElectronicDocCreatedByUser I_ElectronicDoc ElectronicDocCreatedByUser Version Created By
ElectronicDocCreationDate I_ElectronicDoc ElectronicDocCreationDate Time Stamp
ElectronicDocCreationTime I_ElectronicDoc ElectronicDocCreationTime Time
ElectronicDocSrceCreatedByUser I_ElectronicDoc ElectronicDocSrceCreatedByUser Source Crted By
ElectronicDocProcess I_ElectronicDoc ElectronicDocProcess Trans.
ElectronicDocPostingDate I_ElectronicDoc ElectronicDocPostingDate Posting Date
IN_DocumentSectionCode I_IN_EDocGSTRetsSalesRegister IN_DocumentSectionCode
TaxReportingDate I_IN_EDocGSTRetsSalesRegister IN_EDocGSTRetsTaxReportingDate
IN_GSTPlaceOfSupplyName _StateCodeMapbp IN_GSTLegalStateCode
IN_EDocEInvcBusinessPlace I_IN_EDocGSTRetsSalesRegister IN_EDocGSTRetsBusinessPlace
IN_NoteType I_IN_EDocGSTRetsSalesRegister IN_NoteType
IN_PrtnGSTIdentificationNmbr
TaxCalculationProcedure _Country TaxCalculationProcedure Tax Procedure
ElectronicDocProcessStatus I_ElectronicDoc ElectronicDocProcessStatus Work Item ID
IN_EDocEInvcPullTaxPayerGSTIN _BusinessPlace IN_GSTIdentificationNumber
_Country _Country

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_IN_EDocITC04SlsReg.
-- 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_IN_EDocITC04SlsReg AS
SELECT
  I_ElectronicDoc.ElectronicDocUUID AS ElectronicDocUUID,
  I_ElectronicDoc.ElectronicDocCompanyCode AS ElectronicDocCompanyCode,
  I_ElectronicDoc.ElectronicDocSourceType AS ElectronicDocSourceType,
  cast(I_ElectronicDoc.ElectronicDocSourceKey as vbeln_vf ) AS BillingDocument,
  I_ElectronicDoc.ElectronicDocSourceKey AS ElectronicDocSourceKey,
  I_ElectronicDoc.ElectronicDocType AS ElectronicDocType,
  I_ElectronicDoc.ElectronicDocLogicalSystem AS ElectronicDocLogicalSystem,
  I_ElectronicDoc.ElectronicDocLastChangedByUser AS ElectronicDocLastChangedByUser,
  I_ElectronicDoc.ElectronicDocLastChangeDate AS ElectronicDocLastChangeDate,
  I_ElectronicDoc.ElectronicDocLastChangeTime AS ElectronicDocLastChangeTime,
  I_ElectronicDoc.ElectronicDocCreatedByUser AS ElectronicDocCreatedByUser,
  I_ElectronicDoc.ElectronicDocCreationDate AS ElectronicDocCreationDate,
  I_ElectronicDoc.ElectronicDocCreationTime AS ElectronicDocCreationTime,
  I_ElectronicDoc.ElectronicDocSrceCreatedByUser AS ElectronicDocSrceCreatedByUser,
  I_ElectronicDoc.ElectronicDocProcess AS ElectronicDocProcess,
  I_ElectronicDoc.ElectronicDocPostingDate AS ElectronicDocPostingDate,
  I_IN_EDocGSTRetsSalesRegister.IN_DocumentSectionCode AS IN_DocumentSectionCode,
  I_IN_EDocGSTRetsSalesRegister.IN_EDocGSTRetsTaxReportingDate AS TaxReportingDate,
  _StateCodeMapbp.IN_GSTLegalStateCode AS IN_GSTPlaceOfSupplyName,
  I_IN_EDocGSTRetsSalesRegister.IN_EDocGSTRetsBusinessPlace AS IN_EDocEInvcBusinessPlace,
  I_IN_EDocGSTRetsSalesRegister.IN_NoteType AS IN_NoteType,
  coalesce(_BusPartAddrDepdntTaxNmbr.BPTaxNumber,_BpPartnerTaxNum.BPTaxNumber) AS IN_PrtnGSTIdentificationNmbr,
  _Country.TaxCalculationProcedure AS TaxCalculationProcedure,
  I_ElectronicDoc.ElectronicDocProcessStatus AS ElectronicDocProcessStatus,
  _BusinessPlace.IN_GSTIdentificationNumber AS IN_EDocEInvcPullTaxPayerGSTIN
FROM I_IN_EDocGSTRetsSalesRegister
INNER JOIN I_ElectronicDoc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Businesspartnertaxnumber AS _BpPartnerTaxNum ON _BpPartnerTaxNum.BusinessPartner = I_IN_EDocGSTRetsSalesRegister.IN_GSTPartner AND _BpPartnerTaxNum.BPTaxType = 'IN3'  -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON _Country.Country = 'IN'  -- association [0..1]
LEFT OUTER JOIN I_IN_GSTStateCodeMap AS _StateCodeMapbp ON _StateCodeMapbp.Country = 'IN' AND _StateCodeMapbp.Region = I_IN_EDocGSTRetsSalesRegister.IN_GSTPlaceOfSupply  -- association [0..1]
LEFT OUTER JOIN I_IN_BusinessPlace AS _BusinessPlace ON _BusinessPlace.CompanyCode = ElectronicDocCompanyCode AND _BusinessPlace.Branch = IN_EDocEInvcBusinessPlace  -- association [0..1]
;