R_SalesContractTP

DDL: R_SALESCONTRACTTP Type: view_entity TRANSACTIONAL

Sales Contract - TP

R_SalesContractTP is a Transactional CDS View that provides data about "Sales Contract - TP" in SAP S/4HANA. It reads from 1 data source (I_SalesContract) and exposes 159 fields with key field SalesContract. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesContract SalesContract from

Associations (9)

CardinalityTargetAliasCondition
[0..1] R_OutputRequestTP _OutputRequest $projection.OutputRequestUUID = _OutputRequest.OutputRequestUUID
[0..1] I_SalesDocumentPartner _SoldToParty $projection.SalesContract = _SoldToParty.SalesDocument and _SoldToParty.PartnerFunction = 'AG' and _SoldToParty.SDDocumentCategory = 'G'
[0..1] I_SlsOrganizationDistrChnl _SlsOrganizationDistrChnl $projection.SalesOrganization = _SlsOrganizationDistrChnl.SalesOrganization and $projection.DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel
[1] E_SalesDocumentBasic _Extension $projection.SalesContract = _Extension.SalesDocument
[0..*] R_SalesContractItemTP _Item
[0..*] R_SalesContractPartnerTP _Partner
[0..1] R_SalesContractShipToPartyTP _ShipToParty
[0..*] R_SlsContrPricingElementTP _PricingElement
[0..*] R_SalesContractTextTP _Text

Annotations (9)

NameValueLevelField
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view
AccessControl.authorizationCheck #CHECK view
ObjectModel.sapObjectNodeType.name SalesContract view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Sales Contract - TP view

Fields (159)

KeyFieldSource TableSource FieldDescription
KEY SalesContract I_SalesContract SalesContract
SalesContractType I_SalesContract SalesContractType
SalesOrganization I_SalesContract SalesOrganization
DistributionChannel I_SalesContract DistributionChannel
ReferenceDistributionChannel _SlsOrganizationDistrChnl ReferenceDistributionChannel
OrganizationDivision I_SalesContract OrganizationDivision
SoldToParty I_SalesContract SoldToParty
CustomerName _SoldToParty FullName
CustomerGroup I_SalesContract CustomerGroup
AdditionalCustomerGroup1 I_SalesContract AdditionalCustomerGroup1
AdditionalCustomerGroup2 I_SalesContract AdditionalCustomerGroup2
AdditionalCustomerGroup3 I_SalesContract AdditionalCustomerGroup3
AdditionalCustomerGroup4 I_SalesContract AdditionalCustomerGroup4
AdditionalCustomerGroup5 I_SalesContract AdditionalCustomerGroup5
PurchaseOrderByCustomer I_SalesContract PurchaseOrderByCustomer
PurchaseOrderByShipToParty I_SalesContract PurchaseOrderByShipToParty
CustomerPurchaseOrderType I_SalesContract CustomerPurchaseOrderType
CustomerPurchaseOrderDate I_SalesContract CustomerPurchaseOrderDate
CustomerPurchaseOrderSuplmnt I_SalesContract CustomerPurchaseOrderSuplmnt
SalesContractDate I_SalesContract SalesContractDate
SalesContractValidityStartDate I_SalesContract SalesContractValidityStartDate
SalesContractValidityEndDate I_SalesContract SalesContractValidityEndDate
SDDocumentReason I_SalesContract SDDocumentReason
ServicesRenderedDate I_SalesContract ServicesRenderedDate
ShippingType I_SalesContract ShippingType
IncotermsClassification I_SalesContract IncotermsClassification
IncotermsTransferLocation I_SalesContract IncotermsTransferLocation
IncotermsLocation1 I_SalesContract IncotermsLocation1
IncotermsLocation2 I_SalesContract IncotermsLocation2
IncotermsVersion I_SalesContract IncotermsVersion
CustomerPaymentTerms I_SalesContract CustomerPaymentTerms
PaymentMethod I_SalesContract PaymentMethod
FixedValueDate I_SalesContract FixedValueDate
PricingDate I_SalesContract PricingDate
TaxDepartureCountry I_SalesContract TaxDepartureCountry
VATRegistrationCountry I_SalesContract VATRegistrationCountry
TotalNetAmount I_SalesContract TotalNetAmount
TransactionCurrency I_SalesContract TransactionCurrency
ShippingCondition I_SalesContract ShippingCondition
CustomerPriceGroup I_SalesContract CustomerPriceGroup
PriceListType I_SalesContract PriceListType
SDPricingProcedure I_SalesContract SDPricingProcedure
CompleteDeliveryIsDefined I_SalesContract CompleteDeliveryIsDefined
BillingDocumentDate I_SalesContract BillingDocumentDate
SalesGroup I_SalesContract SalesGroup
SalesOffice I_SalesContract SalesOffice
SalesDistrict I_SalesContract SalesDistrict
SalesContractValidityPerdCat I_SalesContract SalesContractValidityPerdCat
CreatedByUser I_SalesContract CreatedByUser
LastChangedByUser I_SalesContract LastChangedByUser
CreationDate I_SalesContract CreationDate
CreationTime I_SalesContract CreationTime
LastChangeDate I_SalesContract LastChangeDate
ControllingArea I_SalesContract ControllingArea
ReferenceSDDocument I_SalesContract ReferenceSDDocument
ReferenceSDDocumentCategory I_SalesContract ReferenceSDDocumentCategory
AccountingDocExternalReference I_SalesContract AccountingDocExternalReference
BillingCompanyCode I_SalesContract BillingCompanyCode
AssignmentReference I_SalesContract AssignmentReference
CustomerAccountAssignmentGroup I_SalesContract CustomerAccountAssignmentGroup
OverallSDProcessStatus I_SalesContract OverallSDProcessStatus
OverallSDDocumentRejectionSts I_SalesContract OverallSDDocumentRejectionSts
TotalBlockStatus I_SalesContract TotalBlockStatus
OverallTotalSDDocRefStatus I_SalesContract OverallTotalSDDocRefStatus
OverallSDDocReferenceStatus I_SalesContract OverallSDDocReferenceStatus
TotalCreditCheckStatus I_SalesContract TotalCreditCheckStatus
MaxDocValueCreditCheckStatus I_SalesContract MaxDocValueCreditCheckStatus
PaymentTermCreditCheckStatus I_SalesContract PaymentTermCreditCheckStatus
FinDocCreditCheckStatus I_SalesContract FinDocCreditCheckStatus
ExprtInsurCreditCheckStatus I_SalesContract ExprtInsurCreditCheckStatus
PaytAuthsnCreditCheckSts I_SalesContract PaytAuthsnCreditCheckSts
CentralCreditCheckStatus I_SalesContract CentralCreditCheckStatus
CentralCreditChkTechErrSts I_SalesContract CentralCreditChkTechErrSts
HdrGeneralIncompletionStatus
OverallPricingIncompletionSts I_SalesContract OverallPricingIncompletionSts
HeaderBillgIncompletionStatus I_SalesContract HeaderBillgIncompletionStatus
OvrlItmGeneralIncompletionSts
OvrlItmBillingIncompletionSts I_SalesContract OvrlItmBillingIncompletionSts
ContractDownPaymentStatus I_SalesContract ContractDownPaymentStatus
SalesDocApprovalStatus I_SalesContract SalesDocApprovalStatus
SalesContractApprovalReason
OverallBillingBlockStatus I_SalesContract OverallBillingBlockStatus
HeaderBillingBlockReason I_SalesContract HeaderBillingBlockReason
OverallChmlCmplncStatus I_SalesContract OverallChmlCmplncStatus
OverallDangerousGoodsStatus I_SalesContract OverallDangerousGoodsStatus
OverallSafetyDataSheetStatus I_SalesContract OverallSafetyDataSheetStatus
OverallTrdCmplncEmbargoSts I_SalesContract OverallTrdCmplncEmbargoSts
OvrlTrdCmplncSnctndListChkSts I_SalesContract OvrlTrdCmplncSnctndListChkSts
OvrlTrdCmplncLegalCtrlChkSts I_SalesContract OvrlTrdCmplncLegalCtrlChkSts
ContractManualCompletion I_SalesContract ContractManualCompletion
OutputRequestUUID OutputRequest OutputRequestUUID
_Item _Item
_Partner _Partner
_Text _Text
_ShipToParty _ShipToParty
_SlsOrganizationDistrChnl _SlsOrganizationDistrChnl
_PricingElement _PricingElement
_OutputRequest _OutputRequest
_CentralCreditCheckStatus I_SalesContract _CentralCreditCheckStatus
_CentralCreditChkTechErrSts I_SalesContract _CentralCreditChkTechErrSts
_OrganizationDivision I_SalesContract _OrganizationDivision
_CustomerGroup I_SalesContract _CustomerGroup
_CustomerPaymentTerms I_SalesContract _CustomerPaymentTerms
_DistributionChannel I_SalesContract _DistributionChannel
_DownPaymentStatus I_SalesContract _DownPaymentStatus
_FinDocCreditCheckStatus I_SalesContract _FinDocCreditCheckStatus
_HdrGeneralIncompletionStatus I_SalesContract _HdrGeneralIncompletionStatus
_HeaderBillgIncompletionStatus I_SalesContract _HeaderBillgIncompletionStatus
_SalesContractValidityPerdCat I_SalesContract _SalesContractValidityPerdCat
_IncotermsClassification I_SalesContract _IncotermsClassification
_IncotermsVersion I_SalesContract _IncotermsVersion
_OverallPricingIncompletionSts I_SalesContract _OverallPricingIncompletionSts
_OverallSDDocReferenceStatus I_SalesContract _OverallSDDocReferenceStatus
_OverallSDDocumentRejectionSts I_SalesContract _OverallSDDocumentRejectionSts
_OverallSDProcessStatus I_SalesContract _OverallSDProcessStatus
_OverallTotalSDDocRefStatus I_SalesContract _OverallTotalSDDocRefStatus
_OvrlItmBillingIncompletionSts I_SalesContract _OvrlItmBillingIncompletionSts
_OvrlItmGeneralIncompletionSts I_SalesContract _OvrlItmGeneralIncompletionSts
_PaymentTermCreditCheckStatus I_SalesContract _PaymentTermCreditCheckStatus
_PaytAuthsnCreditCheckSts I_SalesContract _PaytAuthsnCreditCheckSts
_LastChangedByUser I_SalesContract _LastChangedByUser
_CreatedByUser I_SalesContract _CreatedByUser
_SalesContractType I_SalesContract _SalesContractType
_SalesDistrict I_SalesContract _SalesDistrict
_SalesDocApprovalStatus I_SalesContract _SalesDocApprovalStatus
_SalesGroup I_SalesContract _SalesGroup
_SalesOffice I_SalesContract _SalesOffice
_SalesOrganization I_SalesContract _SalesOrganization
_SDDocumentReason I_SalesContract _SDDocumentReason
_StandardPartner I_SalesContract _StandardPartner
_TotalBlockStatus I_SalesContract _TotalBlockStatus
_TotalCreditCheckStatus I_SalesContract _TotalCreditCheckStatus
_MaxDocValueCreditCheckStatus I_SalesContract _MaxDocValueCreditCheckStatus
_SalesContractApprovalReason I_SalesContract _SalesContractApprovalReason
_ExprtInsurCreditCheckStatus I_SalesContract _ExprtInsurCreditCheckStatus
_BillingCompanyCode I_SalesContract _BillingCompanyCode
_TransactionCurrency I_SalesContract _TransactionCurrency
_ShippingCondition I_SalesContract _ShippingCondition
_SDPricingProcedure I_SalesContract _SDPricingProcedure
_CustomerPriceGroup I_SalesContract _CustomerPriceGroup
_PriceListType I_SalesContract _PriceListType
_OverallChmlCmplncStatus I_SalesContract _OverallChmlCmplncStatus
_OvrlSftyDataSheetSts I_SalesContract _OvrlSftyDataSheetSts
_OverallDangerousGoodsStatus I_SalesContract _OverallDangerousGoodsStatus
_OvrlTrdCmplncLegalCtrlChkSts I_SalesContract _OvrlTrdCmplncLegalCtrlChkSts
_HeaderBillingBlockReason I_SalesContract _HeaderBillingBlockReason
_OverallBillingBlockStatus I_SalesContract _OverallBillingBlockStatus
_ControllingArea I_SalesContract _ControllingArea
_OvrlTradeCmplncEmbargoStatus I_SalesContract _OvrlTradeCmplncEmbargoStatus
_OvTrdCmplncSnctndListChkSts I_SalesContract _OvTrdCmplncSnctndListChkSts
_TaxDepartureCountry I_SalesContract _TaxDepartureCountry
_VATRegistrationCountry I_SalesContract _VATRegistrationCountry
_AdditionalCustomerGroup1 I_SalesContract _AdditionalCustomerGroup1
_AdditionalCustomerGroup2 I_SalesContract _AdditionalCustomerGroup2
_AdditionalCustomerGroup3 I_SalesContract _AdditionalCustomerGroup3
_AdditionalCustomerGroup4 I_SalesContract _AdditionalCustomerGroup4
_AdditionalCustomerGroup5 I_SalesContract _AdditionalCustomerGroup5
_CustomerAccountAssgmtGroup I_SalesContract _CustomerAccountAssgmtGroup
_ShippingType I_SalesContract _ShippingType
@VDM: {
  lifecycle.contract.type: #SAP_INTERNAL_API,
  viewType: #TRANSACTIONAL
}

@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA'),
  privilegedAssociations: [ '_CreatedByUser', '_LastChangedByUser', '_OutputRequest']
}

@ObjectModel: {
   sapObjectNodeType.name: 'SalesContract',
    usageType: {
        dataClass: #TRANSACTIONAL,
        serviceQuality: #C,
        sizeCategory: #L
    },
    semanticKey: ['SalesContract']
}

@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Sales Contract - TP'

define root view entity R_SalesContractTP
  as select from I_SalesContract as SalesContract
   left outer to one join I_OutputRequest as OutputRequest on OutputRequest.OutputControlApplicationObject = SalesContract.SalesContract
                                                           and OutputRequest.OutputControlApplObjectType   = 'SALES_DOCUMENT'
  composition [0..*] of R_SalesContractItemTP        as _Item
  composition [0..*] of R_SalesContractPartnerTP     as _Partner
  composition [0..1] of R_SalesContractShipToPartyTP as _ShipToParty
  composition [0..*] of R_SlsContrPricingElementTP   as _PricingElement
  composition [0..*] of R_SalesContractTextTP        as _Text

  association [0..1] to R_OutputRequestTP            as _OutputRequest            on  $projection.OutputRequestUUID = _OutputRequest.OutputRequestUUID
  association [0..1] to I_SalesDocumentPartner       as _SoldToParty              on  $projection.SalesContract    = _SoldToParty.SalesDocument
                                                                                  and _SoldToParty.PartnerFunction = 'AG'
                                                                                  and _SoldToParty.SDDocumentCategory = 'G'

  association [0..1] to I_SlsOrganizationDistrChnl   as _SlsOrganizationDistrChnl on  $projection.SalesOrganization   = _SlsOrganizationDistrChnl.SalesOrganization
                                                                                  and $projection.DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel

  //Extension Association

  association [1]    to E_SalesDocumentBasic         as _Extension                on  $projection.SalesContract = _Extension.SalesDocument

{
      //Key

  key SalesContract.SalesContract,

      //Basic data

      @ObjectModel.foreignKey.association: '_SalesContractType'
      SalesContract.SalesContractType,
      @ObjectModel.foreignKey.association: '_SalesOrganization'
      SalesContract.SalesOrganization,
      @ObjectModel.foreignKey.association: '_DistributionChannel'
      SalesContract.DistributionChannel,
      _SlsOrganizationDistrChnl.ReferenceDistributionChannel,
      @ObjectModel.foreignKey.association: '_OrganizationDivision'
      SalesContract.OrganizationDivision,
      @ObjectModel.text.element: ['CustomerName']
      SalesContract.SoldToParty,
      @Semantics.text:true
      _SoldToParty.FullName                                                                  as CustomerName,
      @ObjectModel.foreignKey.association: '_CustomerGroup'
      SalesContract.CustomerGroup,
      @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup1'
      SalesContract.AdditionalCustomerGroup1,
      @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup2'
      SalesContract.AdditionalCustomerGroup2,
      @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup3'
      SalesContract.AdditionalCustomerGroup3,
      @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup4'
      SalesContract.AdditionalCustomerGroup4,
      @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup5'
      SalesContract.AdditionalCustomerGroup5,
      SalesContract.PurchaseOrderByCustomer,
      SalesContract.PurchaseOrderByShipToParty,
      SalesContract.CustomerPurchaseOrderType,
      SalesContract.CustomerPurchaseOrderDate,
      SalesContract.CustomerPurchaseOrderSuplmnt,
      //ShippingCondition  not in I_SalesContract

      SalesContract.SalesContractDate,
      SalesContract.SalesContractValidityStartDate,
      SalesContract.SalesContractValidityEndDate,
      @ObjectModel.foreignKey.association: '_SDDocumentReason'
      SalesContract.SDDocumentReason,
      SalesContract.ServicesRenderedDate,
      @ObjectModel.foreignKey.association: '_ShippingType'
      SalesContract.ShippingType,

      //Advance data

      @ObjectModel.foreignKey.association: '_IncotermsClassification'
      SalesContract.IncotermsClassification,
      SalesContract.IncotermsTransferLocation,
      SalesContract.IncotermsLocation1,
      SalesContract.IncotermsLocation2,
      @ObjectModel.foreignKey.association: '_IncotermsVersion'
      SalesContract.IncotermsVersion,
      @ObjectModel.foreignKey.association: '_CustomerPaymentTerms'
      SalesContract.CustomerPaymentTerms,
      SalesContract.PaymentMethod,
      SalesContract.FixedValueDate,
      SalesContract.PricingDate,
      @ObjectModel.foreignKey.association: '_TaxDepartureCountry'
      SalesContract.TaxDepartureCountry,
      @ObjectModel.foreignKey.association: '_VATRegistrationCountry'
      SalesContract.VATRegistrationCountry,
      //SDPricingProcedure not in I_SalesContract

      //Customer Price Group not found

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      SalesContract.TotalNetAmount,
      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      SalesContract.TransactionCurrency,
      @ObjectModel.foreignKey.association: '_ShippingCondition'
      SalesContract.ShippingCondition,
      @ObjectModel.foreignKey.association: '_CustomerPriceGroup'
      SalesContract.CustomerPriceGroup,
      @ObjectModel.foreignKey.association: '_PriceListType'
      SalesContract.PriceListType,
      @ObjectModel.foreignKey.association: '_SDPricingProcedure'
      SalesContract.SDPricingProcedure,
      SalesContract.CompleteDeliveryIsDefined,
      SalesContract.BillingDocumentDate,

      //Org

      @ObjectModel.foreignKey.association: '_SalesGroup'
      SalesContract.SalesGroup,
      @ObjectModel.foreignKey.association: '_SalesOffice'
      SalesContract.SalesOffice,
      @ObjectModel.foreignKey.association: '_SalesDistrict'
      SalesContract.SalesDistrict,
      @ObjectModel.foreignKey.association: '_SalesContractValidityPerdCat'
      SalesContract.SalesContractValidityPerdCat,
      @ObjectModel.foreignKey.association: '_CreatedByUser'
      SalesContract.CreatedByUser,
      @ObjectModel.foreignKey.association: '_LastChangedByUser'
      SalesContract.LastChangedByUser,
      @Semantics.systemDate.createdAt: true
      SalesContract.CreationDate,
      SalesContract.CreationTime,
      @Semantics.systemDate.lastChangedAt: true
      SalesContract.LastChangeDate,

      cast( dats_tims_to_tstmp( SalesContract.CreationDate, SalesContract.CreationTime, abap_system_timezone( $session.client, 'NULL' ),
        $session.client, 'NULL' ) as creation_date_time )                                    as SalesDocumentCreationDateTime,

      case tstmp_is_valid(cast(SalesContract.LastChangeDateTime as abap.dec(15,0)))
        when 0 then cast( dats_tims_to_tstmp( SalesContract.CreationDate, SalesContract.CreationTime, 'UTC', $session.client, 'NULL' ) as last_changed_date_time )
        else cast ( SalesContract.LastChangeDateTime as last_changed_date_time )
      end                                                                                    as LastChangeDateTime,


      //Additional data

      @ObjectModel.foreignKey.association: '_ControllingArea'
      SalesContract.ControllingArea,
      SalesContract.ReferenceSDDocument,
      SalesContract.ReferenceSDDocumentCategory,
      SalesContract.AccountingDocExternalReference,
      @ObjectModel.foreignKey.association: '_BillingCompanyCode'
      SalesContract.BillingCompanyCode,
      SalesContract.AssignmentReference,
      @ObjectModel.foreignKey.association: '_CustomerAccountAssgmtGroup'
      SalesContract.CustomerAccountAssignmentGroup,

      //Status

      @ObjectModel.foreignKey.association: '_OverallSDProcessStatus'
      SalesContract.OverallSDProcessStatus,
      @ObjectModel.foreignKey.association: '_OverallSDDocumentRejectionSts'
      SalesContract.OverallSDDocumentRejectionSts,
      @ObjectModel.foreignKey.association: '_TotalBlockStatus'
      SalesContract.TotalBlockStatus,
      @ObjectModel.foreignKey.association: '_OverallTotalSDDocRefStatus'
      SalesContract.OverallTotalSDDocRefStatus,
      @ObjectModel.foreignKey.association: '_OverallSDDocReferenceStatus'
      SalesContract.OverallSDDocReferenceStatus,
      @ObjectModel.foreignKey.association: '_TotalCreditCheckStatus'
      SalesContract.TotalCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_MaxDocValueCreditCheckStatus'
      SalesContract.MaxDocValueCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_PaymentTermCreditCheckStatus'
      SalesContract.PaymentTermCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_FinDocCreditCheckStatus'
      SalesContract.FinDocCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_ExprtInsurCreditCheckStatus'
      SalesContract.ExprtInsurCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_PaytAuthsnCreditCheckSts'
      SalesContract.PaytAuthsnCreditCheckSts,
      @ObjectModel.foreignKey.association: '_CentralCreditCheckStatus'
      SalesContract.CentralCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_CentralCreditChkTechErrSts'
      SalesContract.CentralCreditChkTechErrSts,
      @ObjectModel.foreignKey.association: '_HdrGeneralIncompletionStatus'
      cast( SalesContract.HdrGeneralIncompletionStatus as hdr_general_incompltn_status preserving type )   as HdrGeneralIncompletionStatus,
      @ObjectModel.foreignKey.association: '_OverallPricingIncompletionSts'
      SalesContract.OverallPricingIncompletionSts,
      @ObjectModel.foreignKey.association: '_HeaderBillgIncompletionStatus'
      SalesContract.HeaderBillgIncompletionStatus,
      @ObjectModel.foreignKey.association: '_OvrlItmGeneralIncompletionSts'
      cast( SalesContract.OvrlItmGeneralIncompletionSts as itms_ovrl_incompletion_status preserving type ) as OvrlItmGeneralIncompletionSts,
      @ObjectModel.foreignKey.association: '_OvrlItmBillingIncompletionSts'
      SalesContract.OvrlItmBillingIncompletionSts,
      @ObjectModel.foreignKey.association: '_DownPaymentStatus'
      SalesContract.ContractDownPaymentStatus,

      @ObjectModel.foreignKey.association: '_SalesDocApprovalStatus'
      SalesContract.SalesDocApprovalStatus,
      @ObjectModel.foreignKey.association: '_SalesContractApprovalReason'
      cast(SalesContract.SalesContractApprovalReason as sd_apm_approval_reason_vdm preserving type )       as SalesContractApprovalReason,
      @ObjectModel.foreignKey.association: '_OverallBillingBlockStatus'
      SalesContract.OverallBillingBlockStatus,
      @ObjectModel.foreignKey.association: '_HeaderBillingBlockReason'
      SalesContract.HeaderBillingBlockReason,

      // Product Compliance Status

      @ObjectModel.foreignKey.association: '_OverallChmlCmplncStatus'
      SalesContract.OverallChmlCmplncStatus,
      @ObjectModel.foreignKey.association: '_OverallDangerousGoodsStatus'
      SalesContract.OverallDangerousGoodsStatus,
      @ObjectModel.foreignKey.association: '_OvrlSftyDataSheetSts'
      SalesContract.OverallSafetyDataSheetStatus,

      //Trade Compliance Status

      @ObjectModel.foreignKey.association: '_OvrlTradeCmplncEmbargoStatus'
      SalesContract.OverallTrdCmplncEmbargoSts,
      @ObjectModel.foreignKey.association: '_OvTrdCmplncSnctndListChkSts'
      SalesContract.OvrlTrdCmplncSnctndListChkSts,
      @ObjectModel.foreignKey.association: '_OvrlTrdCmplncLegalCtrlChkSts'
      SalesContract.OvrlTrdCmplncLegalCtrlChkSts,

      SalesContract.ContractManualCompletion,
      
      OutputRequest.OutputRequestUUID,

      /* Associations */
      _Item,
      _Partner,
      _Text,
      _ShipToParty,
      _SlsOrganizationDistrChnl,
      _PricingElement,
      _OutputRequest,
      SalesContract._CentralCreditCheckStatus,
      SalesContract._CentralCreditChkTechErrSts,
      SalesContract._OrganizationDivision,
      SalesContract._CustomerGroup,
      SalesContract._CustomerPaymentTerms,
      SalesContract._DistributionChannel,
      SalesContract._DownPaymentStatus,
      SalesContract._FinDocCreditCheckStatus,
      SalesContract._HdrGeneralIncompletionStatus,
      SalesContract._HeaderBillgIncompletionStatus,
      SalesContract._SalesContractValidityPerdCat,
      SalesContract._IncotermsClassification,
      SalesContract._IncotermsVersion,
      SalesContract._OverallPricingIncompletionSts,
      SalesContract._OverallSDDocReferenceStatus,
      SalesContract._OverallSDDocumentRejectionSts,
      SalesContract._OverallSDProcessStatus,
      SalesContract._OverallTotalSDDocRefStatus,
      SalesContract._OvrlItmBillingIncompletionSts,
      SalesContract._OvrlItmGeneralIncompletionSts,
      SalesContract._PaymentTermCreditCheckStatus,
      SalesContract._PaytAuthsnCreditCheckSts,
      SalesContract._LastChangedByUser,
      SalesContract._CreatedByUser,
      SalesContract._SalesContractType,
      SalesContract._SalesDistrict,
      SalesContract._SalesDocApprovalStatus,
      SalesContract._SalesGroup,
      SalesContract._SalesOffice,
      SalesContract._SalesOrganization,
      SalesContract._SDDocumentReason,
      SalesContract._StandardPartner,
      SalesContract._TotalBlockStatus,
      SalesContract._TotalCreditCheckStatus,
      SalesContract._MaxDocValueCreditCheckStatus,
      SalesContract._SalesContractApprovalReason,
      SalesContract._ExprtInsurCreditCheckStatus,
      SalesContract._BillingCompanyCode,
      SalesContract._TransactionCurrency,
      SalesContract._ShippingCondition,
      SalesContract._SDPricingProcedure,
      SalesContract._CustomerPriceGroup,
      SalesContract._PriceListType,
      SalesContract._OverallChmlCmplncStatus,
      SalesContract._OvrlSftyDataSheetSts,
      SalesContract._OverallDangerousGoodsStatus,
      SalesContract._OvrlTrdCmplncLegalCtrlChkSts,
      SalesContract._HeaderBillingBlockReason,
      SalesContract._OverallBillingBlockStatus,
      SalesContract._ControllingArea,
      SalesContract._OvrlTradeCmplncEmbargoStatus,
      SalesContract._OvTrdCmplncSnctndListChkSts,
      SalesContract._TaxDepartureCountry,
      SalesContract._VATRegistrationCountry,
      SalesContract._AdditionalCustomerGroup1,
      SalesContract._AdditionalCustomerGroup2,
      SalesContract._AdditionalCustomerGroup3,
      SalesContract._AdditionalCustomerGroup4,
      SalesContract._AdditionalCustomerGroup5,
      SalesContract._CustomerAccountAssgmtGroup,
      SalesContract._ShippingType
      
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_OUTPUTREQUEST",
"I_SALESCONTRACT",
"I_SALESDOCUMENTPARTNER",
"I_SLSORGANIZATIONDISTRCHNL"
],
"ASSOCIATED":
[
"I_ADDITIONALCUSTOMERGROUP1",
"I_ADDITIONALCUSTOMERGROUP2",
"I_ADDITIONALCUSTOMERGROUP3",
"I_ADDITIONALCUSTOMERGROUP4",
"I_ADDITIONALCUSTOMERGROUP5",
"I_BILLINGBLOCKREASON",
"I_CENTRALCREDITCHECKSTATUS",
"I_CENTRALCREDITCHKTECHERRSTS",
"I_COMPANYCODE",
"I_CONTRACTDOWNPAYMENTSTATUS",
"I_CONTROLLINGAREA",
"I_COUNTRY",
"I_CURRENCY",
"I_CUSTOMERACCOUNTASSGMTGROUP",
"I_CUSTOMERGROUP",
"I_CUSTOMERPAYMENTTERMS",
"I_CUSTOMERPRICEGROUP",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_EXPRTINSURCREDITCHECKSTATUS",
"I_FINDOCCREDITCHECKSTATUS",
"I_HDRBILLGINCOMPLETIONSTATUS",
"I_HDRGENINCOMPLETIONSTATUS",
"I_INCOTERMSCLASSIFICATION",
"I_INCOTERMSVERSION",
"I_MAXDOCVALUECREDITCHECKSTS",
"I_OVERALLBILLINGBLOCKSTATUS",
"I_OVERALLCHMLCMPLNCSTATUS",
"I_OVERALLDANGEROUSGOODSSTATUS",
"I_OVERALLPRCINCOMPLETIONSTS",
"I_OVERALLSDDOCREFERENCESTATUS",
"I_OVERALLSDDOCUMENTRJCNSTATUS",
"I_OVERALLSDPROCESSSTATUS",
"I_OVERALLTOTALSDDOCREFSTATUS",
"I_OVRLITMBILLGINCOMPLTNSTS",
"I_OVRLITMGENINCOMPLETIONSTS",
"I_OVRLSFTYDATASHEETSTS",
"I_OVRLTRADECMPLNCEMBARGOSTATUS",
"I_OVRLTRDCMPLNCLEGALCTRLCHKSTS",
"I_OVTRDCMPLNCSNCTNDLISTCHKSTS",
"I_PAYMENTTERMCREDITCHECKSTS",
"I_PAYTAUTHSNCREDITCHECKSTS",
"I_PRICELISTTYPE",
"I_SALESCONTRACTAPPROVALREASON",
"I_SALESCONTRACTTYPE",
"I_SALESDISTRICT",
"I_SALESDOCAPPROVALSTATUS",
"I_SALESDOCUMENTSTANDARDPARTNER",
"I_SALESGROUP",
"I_SALESOFFICE",
"I_SALESORGANIZATION",
"I_SDDOCUMENTREASON",
"I_SHIPPINGCONDITION",
"I_SHIPPINGTYPE",
"I_SLSCONTRACTVALIDITYPERDCAT",
"I_SLSORGANIZATIONDISTRCHNL",
"I_SLSPRICINGPROCEDURE",
"I_TOTALBLOCKSTATUS",
"I_TOTALCREDITCHECKSTATUS",
"I_USER",
"R_OUTPUTREQUESTTP",
"R_SALESCONTRACTITEMTP",
"R_SALESCONTRACTPARTNERTP",
"R_SALESCONTRACTSHIPTOPARTYTP",
"R_SALESCONTRACTTEXTTP",
"R_SLSCONTRPRICINGELEMENTTP"
],
"BASE":
[
"I_SALESCONTRACT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/