R_BasicConditionContract

DDL: R_BASICCONDITIONCONTRACT Type: view_entity BASIC

Basic Condition Contract

R_BasicConditionContract is a Basic CDS View that provides data about "Basic Condition Contract" in SAP S/4HANA. It reads from 1 data source (R_ConditionDocument) and exposes 118 fields with key field BasicConditionContract. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_ConditionDocument R_ConditionDocument from

Associations (12)

CardinalityTargetAliasCondition
[0..*] R_BscCndnContrRefcdCndnContr _BscCndnContrRefcdCndnContr $projection.BasicConditionContract = _BscCndnContrRefcdCndnContr.BasicConditionContract
[0..1] I_CndnContrActvtnStatus _BscCndnContrActivationStatus $projection.BscCndnContrActivationStatus = _BscCndnContrActivationStatus.CndnContrActvtnStatus
[0..1] I_Currency _BscConditionContractCurrency $projection.BscConditionContractCurrency = _BscConditionContractCurrency.Currency
[0..1] I_CndnContrSuplrSettlmtCat _BscCndnContrSuplrSettlmtCat $projection.BscCndnContrSuplrSettlmtCat = _BscCndnContrSuplrSettlmtCat.CndnContrSuplrSettlmtCat
[0..1] I_CndnContrCustSettlmtCat _BscCndnContrCustSettlmtCat $projection.BscCndnContrCustSettlmtCat = _BscCndnContrCustSettlmtCat.CndnContrCustSettlmtCat
[0..1] I_CndnContrPurposeCat _BscCndnContrPurposeCategory $projection.BscCndnContrPurposeCategory = _BscCndnContrPurposeCategory.CndnContrPurposeCat
[0..1] I_CndnContrSourceDocCat _BscCndnContrSrceDocCategory $projection.BscCndnContrSrceDocCategory = _BscCndnContrSrceDocCategory.CndnContrSourceDocCat
[0..1] I_UnitOfMeasure _BasicConditionContractUnit $projection.BasicConditionContractUnit = _BasicConditionContractUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _BscCndnContrWeightUnit $projection.BscCndnContrWeightUnit = _BscCndnContrWeightUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _BscCndnContrVolumeUnit $projection.BscCndnContrVolumeUnit = _BscCndnContrVolumeUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _BscCndnContrPtsQuantityUnit $projection.BscCndnContrPtsQuantityUnit = _BscCndnContrPtsQuantityUnit.UnitOfMeasure
[0..1] I_CndnContrPrcgDetnRlvnceCat _BscCndnContrPrcgDetnRlvnceCat $projection.BscCndnContrPrcgDetnRlvnceCat = _BscCndnContrPrcgDetnRlvnceCat.CndnContrPrcgDetnRlvnceCat

Annotations (10)

NameValueLevelField
EndUserText.label Basic Condition Contract view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.representativeKey BasicConditionContract view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions false view

Fields (118)

KeyFieldSource TableSource FieldDescription
KEY BasicConditionContract
CndnContrType CndnContrType Contract Type
CndnContrClassfctnType CndnContrClassfctnType Contract Category
CndnContrProcVar CndnContrProcVar Process Variant
DocumentReferenceID DocumentReferenceID Reference
BscCndnContrAssgmtReference CndnDocAssignmentReference Assignment
ExternalDocumentReferenceID ExternalDocumentReferenceID Ext. Identifier
BscCndnContrExternalPartner CndnDocExternalPartner External Number
BscCndnContrActivationStatus CndnDocActivationStatus
BscCndnContrValidFromDate ConditionDocumentValidFromDate Validity Start Date
BscCndnContrValidToDate ConditionDocumentValidToDate Validity End Date
Supplier Supplier Supplier
Customer Customer Sold-to Party
PriorSupplier PriorSupplier Prior Supplier
CompanyCode CompanyCode Receiver Company Code
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
SalesGroup SalesGroup Sales Group
SalesOffice SalesOffice Sales Office
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
CreationTimeZone CreationTimeZone Time Zone
CreationUTCDateTime CreationUTCDateTime Time Stamp
LastChangedByUser LastChangedByUser User Name
LastChangedDate LastChangedDate Created On
LastChangeTime LastChangeTime Time changed
LastChangeUTCDateTime LastChangeUTCDateTime Time Stamp
BscConditionContractCurrency
ExchangeRate ExchangeRate Exchange rate
ExchangeRateType ExchangeRateType Exch. Rate Type
ExchangeRateDate ExchangeRateDate Translatn Date
PaymentTerms PaymentTerms Pyt Terms
CashDiscount1Days CashDiscount1Days Days from Baseline Date for Payment
CashDiscount1Percent CashDiscount1Percent Disc. Percent 1
CashDiscount2Days CashDiscount2Days Days from Baseline Date for Payment
CashDiscount2Percent CashDiscount2Percent Disc. Percent 2
NetPaymentDays NetPaymentDays Net Pmt Terms Period
PaymentMethod PaymentMethod Pymt Meth.
BscCndnContrSuplrSettlmtCat CndnDocSuplrSettlmtCat
BscCndnContrCustSettlmtCat CndnDocCustSettlmtCat
SettlmtProduct SettlmtProduct
FinalSettlmtCalendar FinalSettlmtCalendar Final Settlement
PartialSettlmtCalendar PartialSettlmtCalendar Partial Settlement
DeltaSettlmtCalendar DeltaSettlmtCalendar Delta Settlement
DeltaAccrualSettlmtCalendar DeltaAccrualSettlmtCalendar Delta Accruals
AccrualClearingSettlmtCalendar AccrualClearingSettlmtCalendar Accr Deferral Cal
CndnContrExtensionCalendar CndnContrExtensionCalendar Extension Calendar
PrecedingConditionDocument PrecedingConditionDocument Predecessor
BscCndnContrPurposeCategory CndnDocPurposeCategory Purpose
BscCndnContrSrceDocCategory CndnDocSourceDocumentCategory Ext. Reference Cat.
BscCndnContrSourceDocument CndnDocSourceDocument External Reference
BscCndnContrSourceDocumentItem CndnDocSourceDocumentItem Ext. Reference Item
BusVolTableGroup BusVolTableGroup BusVol Table Group
AmountFieldGroup AmountFieldGroup Amount Fields Group
BasicConditionContractUnit ConditionDocumentUnit Settlement Unit oM
BscCndnContrWeightUnit ConditionDocumentWeightUnit Settlement Unit oW
BscCndnContrVolumeUnit ConditionDocumentVolumeUnit Settlement Vol. Unit
BscCndnContrPtsQuantityUnit CndnDocPointsQuantityUnit Settlement Poi. Unit
AccrualUpdateIsRequired AccrualUpdateIsRequired Accruals Update Req
BasicConditionContractUUID
BscCndnContrSourceUUID
TaxCountry TaxCountry Tax Ctry/Reg.
SettlmtPartTxRegnCntry SettlmtPartTxRegnCntry Tax Ctry/Rgn
SettlmtPartTxRegnNmbr SettlmtPartTxRegnNmbr VAT Reg. No.
BscCndnContrPrcgDetnRlvnceCat CndnDocPrcgDetnRlvnceCat Relevant for Contract Determination
BusVolTotAmtSpltCritraGrp BusVolTotAmtSpltCritraGrp Amount Fields SC Grp
CndnContrPartnerCat CndnContrPartnerCat Partner Type
CndnContrProcessCategory CndnContrProcessCategory Process Category
CndnContrSettlmtType CndnContrSettlmtType
_BscCndnContrRefcdCndnContr _BscCndnContrRefcdCndnContr
_CndnContrType _CndnContrType
_CndnContrClassfctnType _CndnContrClassfctnType
_CndnContrProcVar _CndnContrProcVar
_BscCndnContrActivationStatus _BscCndnContrActivationStatus
_Supplier _Supplier
_Customer _Customer
_PriorSupplier _PriorSupplier
_CompanyCode _CompanyCode
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_SalesGroup _SalesGroup
_SalesOffice _SalesOffice
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_BscConditionContractCurrency _BscConditionContractCurrency
_ExchangeRateType _ExchangeRateType
_BscCndnContrSuplrSettlmtCat _BscCndnContrSuplrSettlmtCat
_BscCndnContrCustSettlmtCat _BscCndnContrCustSettlmtCat
_SettlmtProduct _SettlmtProduct
_FinalSettlmtCalendar _FinalSettlmtCalendar
_PartialSettlmtCalendar _PartialSettlmtCalendar
_DeltaSettlmtCalendar _DeltaSettlmtCalendar
_DeltaAccrualSettlmtCalendar _DeltaAccrualSettlmtCalendar
_AccrualClearingSettlmtCal _AccrualClearingSettlmtCal
_CndnContrExtensionCalendar _CndnContrExtensionCalendar
_PrecedingConditionDocument _PrecedingConditionDocument
_BscCndnContrPurposeCategory _BscCndnContrPurposeCategory
_BscCndnContrSrceDocCategory _BscCndnContrSrceDocCategory
_BusVolTableGroup _BusVolTableGroup
_AmountFieldGroup _AmountFieldGroup
_BasicConditionContractUnit _BasicConditionContractUnit
_BscCndnContrWeightUnit _BscCndnContrWeightUnit
_BscCndnContrVolumeUnit _BscCndnContrVolumeUnit
_BscCndnContrPtsQuantityUnit _BscCndnContrPtsQuantityUnit
_TaxCountry _TaxCountry
_SettlmtPartTxRegnCntry _SettlmtPartTxRegnCntry
_BscCndnContrPrcgDetnRlvnceCat _BscCndnContrPrcgDetnRlvnceCat
_BusVolTotAmtSpltCritraGrp _BusVolTotAmtSpltCritraGrp
_CndnContrPartnerCat _CndnContrPartnerCat
_CndnContrProcessCategory _CndnContrProcessCategory
_CndnContrSettlmtType _CndnContrSettlmtType

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_BasicConditionContract.
-- 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_BasicConditionContract AS
SELECT
  cast( ConditionDocument as wcb_num_basic_contract preserving type ) AS BasicConditionContract,
  CndnContrType,
  CndnContrClassfctnType,
  CndnContrProcVar,
  DocumentReferenceID,
  CndnDocAssignmentReference AS BscCndnContrAssgmtReference,
  ExternalDocumentReferenceID,
  CndnDocExternalPartner AS BscCndnContrExternalPartner,
  CndnDocActivationStatus AS BscCndnContrActivationStatus,
  ConditionDocumentValidFromDate AS BscCndnContrValidFromDate,
  ConditionDocumentValidToDate AS BscCndnContrValidToDate,
  Supplier,
  Customer,
  PriorSupplier,
  CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  SalesOrganization,
  DistributionChannel,
  Division,
  SalesGroup,
  SalesOffice,
  CreatedByUser,
  CreationDate,
  CreationTime,
  CreationTimeZone,
  CreationUTCDateTime,
  LastChangedByUser,
  LastChangedDate,
  LastChangeTime,
  LastChangeUTCDateTime,
  cast( ConditionDocumentCurrency as wcb_bsc_cndn_contr_curr preserving type ) AS BscConditionContractCurrency,
  ExchangeRate,
  ExchangeRateType,
  ExchangeRateDate,
  PaymentTerms,
  CashDiscount1Days,
  CashDiscount1Percent,
  CashDiscount2Days,
  CashDiscount2Percent,
  NetPaymentDays,
  PaymentMethod,
  CndnDocSuplrSettlmtCat AS BscCndnContrSuplrSettlmtCat,
  CndnDocCustSettlmtCat AS BscCndnContrCustSettlmtCat,
  SettlmtProduct,
  FinalSettlmtCalendar,
  PartialSettlmtCalendar,
  DeltaSettlmtCalendar,
  DeltaAccrualSettlmtCalendar,
  AccrualClearingSettlmtCalendar,
  CndnContrExtensionCalendar,
  PrecedingConditionDocument,
  CndnDocPurposeCategory AS BscCndnContrPurposeCategory,
  CndnDocSourceDocumentCategory AS BscCndnContrSrceDocCategory,
  CndnDocSourceDocument AS BscCndnContrSourceDocument,
  CndnDocSourceDocumentItem AS BscCndnContrSourceDocumentItem,
  BusVolTableGroup,
  AmountFieldGroup,
  ConditionDocumentUnit AS BasicConditionContractUnit,
  ConditionDocumentWeightUnit AS BscCndnContrWeightUnit,
  ConditionDocumentVolumeUnit AS BscCndnContrVolumeUnit,
  CndnDocPointsQuantityUnit AS BscCndnContrPtsQuantityUnit,
  AccrualUpdateIsRequired,
  cast( ConditionDocumentUUID as wcb_bsc_cndn_contr_uuid preserving type ) AS BasicConditionContractUUID,
  cast( ConditionDocumentSourceUUID as wcb_bsc_cndn_contr_srce_uuid preserving type ) AS BscCndnContrSourceUUID,
  TaxCountry,
  SettlmtPartTxRegnCntry,
  SettlmtPartTxRegnNmbr,
  CndnDocPrcgDetnRlvnceCat AS BscCndnContrPrcgDetnRlvnceCat,
  BusVolTotAmtSpltCritraGrp,
  CndnContrPartnerCat,
  CndnContrProcessCategory,
  CndnContrSettlmtType
FROM R_ConditionDocument
LEFT OUTER JOIN R_BscCndnContrRefcdCndnContr AS _BscCndnContrRefcdCndnContr ON BasicConditionContract = _BscCndnContrRefcdCndnContr.BasicConditionContract  -- association [0..*]
LEFT OUTER JOIN I_CndnContrActvtnStatus AS _BscCndnContrActivationStatus ON BscCndnContrActivationStatus = _BscCndnContrActivationStatus.CndnContrActvtnStatus  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _BscConditionContractCurrency ON BscConditionContractCurrency = _BscConditionContractCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_CndnContrSuplrSettlmtCat AS _BscCndnContrSuplrSettlmtCat ON BscCndnContrSuplrSettlmtCat = _BscCndnContrSuplrSettlmtCat.CndnContrSuplrSettlmtCat  -- association [0..1]
LEFT OUTER JOIN I_CndnContrCustSettlmtCat AS _BscCndnContrCustSettlmtCat ON BscCndnContrCustSettlmtCat = _BscCndnContrCustSettlmtCat.CndnContrCustSettlmtCat  -- association [0..1]
LEFT OUTER JOIN I_CndnContrPurposeCat AS _BscCndnContrPurposeCategory ON BscCndnContrPurposeCategory = _BscCndnContrPurposeCategory.CndnContrPurposeCat  -- association [0..1]
LEFT OUTER JOIN I_CndnContrSourceDocCat AS _BscCndnContrSrceDocCategory ON BscCndnContrSrceDocCategory = _BscCndnContrSrceDocCategory.CndnContrSourceDocCat  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BasicConditionContractUnit ON BasicConditionContractUnit = _BasicConditionContractUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BscCndnContrWeightUnit ON BscCndnContrWeightUnit = _BscCndnContrWeightUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BscCndnContrVolumeUnit ON BscCndnContrVolumeUnit = _BscCndnContrVolumeUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BscCndnContrPtsQuantityUnit ON BscCndnContrPtsQuantityUnit = _BscCndnContrPtsQuantityUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_CndnContrPrcgDetnRlvnceCat AS _BscCndnContrPrcgDetnRlvnceCat ON BscCndnContrPrcgDetnRlvnceCat = _BscCndnContrPrcgDetnRlvnceCat.CndnContrPrcgDetnRlvnceCat  -- association [0..1]
;