I_JP_SubcontrgPaymentTerm

DDL: I_JP_SUBCONTRGPAYMENTTERM Type: view_entity BASIC Package: GLO_LOG_JP_SC_PPT

Print Payment term for JP Subcontracting

I_JP_SubcontrgPaymentTerm is a Basic CDS View that provides data about "Print Payment term for JP Subcontracting" in SAP S/4HANA. It reads from 2 data sources (glo_sc_aplpar_jp, I_JP_SubcontrgSuplr) and exposes 15 fields with key fields Supplier, CompanyCode, PurchasingOrganization. It has 4 associations to related views. Part of development package GLO_LOG_JP_SC_PPT.

Data Sources (2)

SourceAliasJoin Type
glo_sc_aplpar_jp glo_sc_aplpar_jp left_outer
I_JP_SubcontrgSuplr I_JP_SubcontrgSuplr from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_HouseBankMaster _HouseBank $projection.CompanyCode = _HouseBank.CompanyCode and $projection.HouseBank = _HouseBank.HouseBank
[1..*] I_SupplierPurchasingOrg _SupplierPurchasingOrg $projection.Supplier = _SupplierPurchasingOrg.Supplier
[1..1] I_PurchasingOrganization _PurchasingOrg _PurchasingOrg.PurchasingOrganization = $projection.PurchasingOrganization
[1..1] I_JP_SubcontrgSubcontractorVH _Subcontract $projection.JP_SubcontractorType = _Subcontract.JP_SubcontractorType

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Print Payment term for JP Subcontracting view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY Supplier
KEY CompanyCode
KEY PurchasingOrganization _SupplierPurchasingOrg PurchasingOrganization Purchasing Organization
JP_SubcontractorType I_JP_SubcontrgSuplr JP_SubcontractorType Subcontractor Type
JP_SubcontractorTypeDomainText _Subcontract JP_SubcontractorTypeDomainText
PaymentTermsendasPaymentTerms
JP_CompletionDateOfInspValue I_JP_SubcontrgSuplr JP_CompletionDateOfInspValue Completion Date
HouseBank
BankCountry
BankInternalID
EffectiveDate glo_sc_aplpar_jp effctv_date
_CompanyCode I_JP_SubcontrgSuplr _CompanyCode
_Supplier I_JP_SubcontrgSuplr _Supplier
_SupplierPurchasingOrg _SupplierPurchasingOrg
_PurchasingOrg _PurchasingOrg

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_JP_SubcontrgPaymentTerm.
-- 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_JP_SubcontrgPaymentTerm AS
SELECT
  cast(I_JP_SubcontrgSuplr.Supplier as lifnr preserving type ) AS Supplier,
  cast(I_JP_SubcontrgSuplr.CompanyCode as bukrs preserving type ) AS CompanyCode,
  _SupplierPurchasingOrg.PurchasingOrganization AS PurchasingOrganization,
  I_JP_SubcontrgSuplr.JP_SubcontractorType AS JP_SubcontractorType,
  _Subcontract.JP_SubcontractorTypeDomainText AS JP_SubcontractorTypeDomainText,
  case when _SupplierPurchasingOrg.PaymentTerms is not null then _SupplierPurchasingOrg.PaymentTerms else I_JP_SubcontrgSuplr.PaymentTerms end as PaymentTerms AS PaymentTermsendasPaymentTerms,
  I_JP_SubcontrgSuplr.JP_CompletionDateOfInspValue AS JP_CompletionDateOfInspValue,
  cast(I_JP_SubcontrgSuplr.HouseBank as hbkid preserving type ) AS HouseBank,
  cast(_HouseBank.BankCountry as banks preserving type ) AS BankCountry,
  cast(_HouseBank.BankInternalID as bankl preserving type ) AS BankInternalID,
  glo_sc_aplpar_jp.effctv_date AS EffectiveDate,
  I_JP_SubcontrgSuplr._CompanyCode AS _CompanyCode,
  I_JP_SubcontrgSuplr._Supplier AS _Supplier
FROM I_JP_SubcontrgSuplr
LEFT OUTER JOIN glo_sc_aplpar_jp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_HouseBankMaster AS _HouseBank ON CompanyCode = _HouseBank.CompanyCode AND HouseBank = _HouseBank.HouseBank  -- association [1..1]
LEFT OUTER JOIN I_SupplierPurchasingOrg AS _SupplierPurchasingOrg ON Supplier = _SupplierPurchasingOrg.Supplier  -- association [1..*]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrg ON _PurchasingOrg.PurchasingOrganization = PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_JP_SubcontrgSubcontractorVH AS _Subcontract ON JP_SubcontractorType = _Subcontract.JP_SubcontractorType  -- association [1..1]
;