C_SrcgProjItemPaytTrmsDocVarbl

DDL: C_SRCGPROJITEMPAYTTRMSDOCVARBL SQL: CSRCGPITMPAYTTRM Type: view CONSUMPTION

Doc Varbl for Payt Trms for Srcg Proj Itm

C_SrcgProjItemPaytTrmsDocVarbl is a Consumption CDS View that provides data about "Doc Varbl for Payt Trms for Srcg Proj Itm" in SAP S/4HANA. It reads from 1 data source (I_SrcgProjItemPaymentTerms) and exposes 15 fields with key field SrcgProjItemPaymentTermsUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SrcgProjItemPaymentTerms I_SrcgProjItemPaymentTerms from

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_SourcingProjectDocVarbl _SourcingProject $projection.SourcingProjectUUID = _SourcingProject.SourcingProjectUUID
[0..1] I_BackendPlantForPurg _BackendPlantForPurg $projection.Plant = _BackendPlantForPurg.Plant and $projection.CompanyCode = _BackendPlantForPurg.CompanyCode and $projection.ProcurementHubSourceSystem = _BackendPlantForPurg.ProcurementHubSourceSystem

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CSRCGPITMPAYTTRM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.representativeKey SrcgProjItemPaymentTermsUUID view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #CONSUMPTION view
EndUserText.label Doc Varbl for Payt Trms for Srcg Proj Itm view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY SrcgProjItemPaymentTermsUUID SrcgProjItemPaymentTermsUUID Payment Term UUID
SourcingProjectUUID SourcingProjectUUID Sourcing Project UUID
SourcingProjectItemUUID SourcingProjectItemUUID Item UUID
Plant Plant Valuation Area
PlantName _BackendPlantForPurg PlantName Plant Name
PaymentTerms PaymentTerms Pyt Terms
PaymentTermsName
CashDiscount1Days CashDiscount1Days Days from Baseline Date for Payment
CashDiscount2Days CashDiscount2Days Days from Baseline Date for Payment
CashDiscount1Percent CashDiscount1Percent Disc. Percent 1
CashDiscount2Percent CashDiscount2Percent Disc. Percent 2
NetPaymentDays NetPaymentDays Net Pmt Terms Period
CompanyCode CompanyCode Receiver Company Code
ProcurementHubSourceSystem ProcurementHubSourceSystem Connected System ID
_SourcingProject _SourcingProject

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 C_SrcgProjItemPaytTrmsDocVarbl.
-- 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: CSRCGPITMPAYTTRM

CREATE VIEW C_SrcgProjItemPaytTrmsDocVarbl AS
SELECT
  SrcgProjItemPaymentTermsUUID,
  SourcingProjectUUID,
  SourcingProjectItemUUID,
  Plant,
  _BackendPlantForPurg.PlantName AS PlantName,
  PaymentTerms,
  _PaymentTerms._Text[1: Language = $session.system_language ].PaymentTermsName AS PaymentTermsName,
  CashDiscount1Days,
  CashDiscount2Days,
  CashDiscount1Percent,
  CashDiscount2Percent,
  NetPaymentDays,
  CompanyCode,
  ProcurementHubSourceSystem
FROM I_SrcgProjItemPaymentTerms
LEFT OUTER JOIN C_SourcingProjectDocVarbl AS _SourcingProject ON SourcingProjectUUID = _SourcingProject.SourcingProjectUUID  -- association [1..1]
LEFT OUTER JOIN I_BackendPlantForPurg AS _BackendPlantForPurg ON Plant = _BackendPlantForPurg.Plant AND CompanyCode = _BackendPlantForPurg.CompanyCode AND ProcurementHubSourceSystem = _BackendPlantForPurg.ProcurementHubSourceSystem  -- association [0..1]
;