I_CUSTOMERRETURN

CDS View

Returns Order

I_CUSTOMERRETURN is a CDS View in S/4HANA. Returns Order. It contains 167 fields. 14 CDS views read from this table.

CDS Views using this table (14)

ViewTypeJoinVDMDescription
C_BSOrdProcFlwCustRet view from CONSUMPTION Customer Returns Attrib for BSOrd Prgrs
C_Customer360_Returns view from CONSUMPTION Customer 360 Returns
C_Customer360CustomerReturn view_entity from CONSUMPTION Customer 360 Customer Return
C_CustomerReturn view from CONSUMPTION Customer Returns
C_Customerreturnfs view from CONSUMPTION Returns Order Fact Sheet
C_CustomerReturnOPg view from CONSUMPTION Returns Order Object Page
C_CustomerReturns_F2200 view from CONSUMPTION
C_CustomerReturnShipToParty view from CONSUMPTION Returns Order Complete Ship to Party
C_InhRepairProcessFlow view inner CONSUMPTION Transaction History of In-House Repair Item
ESH_N_CUSTOMERRETURN view from
I_CustomerReturnEnhanced view from COMPOSITE Returns Order Enhanced
I_CustomerReturnStdVH view from COMPOSITE Returns Order
I_ReldForSubsqntProcgSts_F1708 view from COMPOSITE Released For Subsequent Processing Status
P_CustRetItemRefund_F1708 view inner CONSUMPTION

Fields (167)

KeyField CDS FieldsUsed in Views
KEY CustomerReturn CustomerReturn 7
_AdditionalCustomerGroup1 _AdditionalCustomerGroup1 1
_AdditionalCustomerGroup2 _AdditionalCustomerGroup2 1
_AdditionalCustomerGroup3 _AdditionalCustomerGroup3 1
_AdditionalCustomerGroup4 _AdditionalCustomerGroup4 1
_AdditionalCustomerGroup5 _AdditionalCustomerGroup5 1
_BillingCompanyCode _BillingCompanyCode 1
_BusinessArea _BusinessArea 1
_CentralCreditCheckStatus _CentralCreditCheckStatus 1
_CentralCreditChkTechErrSts _CentralCreditChkTechErrSts 1
_ControllingArea _ControllingArea 1
_ControllingObject _ControllingObject 1
_CostCenter _CostCenter 1
_CostCenterBusinessArea _CostCenterBusinessArea 1
_CreatedByUser _CreatedByUser 1
_CreditControlArea _CreditControlArea 1
_CustomerAccountAssgmtGroup _CustomerAccountAssgmtGroup 1
_CustomerGroup _CustomerGroup 1
_CustomerPaymentTerms _CustomerPaymentTerms 1
_CustomerReturnType _CustomerReturnType 2
_CustRetApprovalReason _CustRetApprovalReason 1
_DeliveryBlockReason _DeliveryBlockReason 1
_DistributionChannel _DistributionChannel 2
_ExchangeRateType _ExchangeRateType 1
_ExprtInsurCreditCheckStatus _ExprtInsurCreditCheckStatus 1
_FinDocCreditCheckStatus _FinDocCreditCheckStatus 1
_HdrGeneralIncompletionStatus _HdrGeneralIncompletionStatus 1
_HeaderBillgIncompletionStatus _HeaderBillgIncompletionStatus 1
_HeaderBillingBlockReason _HeaderBillingBlockReason 1
_HeaderDelivIncompletionStatus _HeaderDelivIncompletionStatus 1
_IncotermsClassification _IncotermsClassification 1
_IncotermsVersion _IncotermsVersion 1
_LastChangedByUser _LastChangedByUser 1
_MaxDocValueCreditCheckStatus _MaxDocValueCreditCheckStatus 1
_OrganizationDivision _OrganizationDivision 2
_OverallBillingBlockStatus _OverallBillingBlockStatus 1
_OverallDeliveryBlockStatus _OverallDeliveryBlockStatus 1
_OverallDeliveryStatus _OverallDeliveryStatus 1
_OverallOrdReltdBillgStatus _OverallOrdReltdBillgStatus 1
_OverallPricingIncompletionSts _OverallPricingIncompletionSts 1
_OverallSDDocReferenceStatus _OverallSDDocReferenceStatus 1
_OverallSDDocumentRejectionSts _OverallSDDocumentRejectionSts 1
_OverallSDProcessStatus _OverallSDProcessStatus 2
_OverallTotalDeliveryStatus _OverallTotalDeliveryStatus 1
_OverallTotalSDDocRefStatus _OverallTotalSDDocRefStatus 1
_OvrlItmBillingIncompletionSts _OvrlItmBillingIncompletionSts 1
_OvrlItmDelivIncompletionSts _OvrlItmDelivIncompletionSts 1
_OvrlItmGeneralIncompletionSts _OvrlItmGeneralIncompletionSts 1
_Partner _Partner 1
_PaymentTermCreditCheckStatus _PaymentTermCreditCheckStatus 1
_PaytAuthsnCreditCheckSts _PaytAuthsnCreditCheckSts 1
_ReferenceSDDocumentCategory _ReferenceSDDocumentCategory 1
_RetsMgmtProcess _RetsMgmtProcess 1
_SalesDistrict _SalesDistrict 1
_SalesDocApprovalStatus _SalesDocApprovalStatus 1
_SalesGroup _SalesGroup 2
_SalesOffice _SalesOffice 2
_SalesOrganization _SalesOrganization 2
_SDDocumentReason _SDDocumentReason 1
_SDPricingProcedure _SDPricingProcedure 1
_ShippingCondition _ShippingCondition 1
_SoldToParty _SoldToParty 1
_StandardPartner _StandardPartner 1
_TotalBlockStatus _TotalBlockStatus 1
_TotalCreditCheckStatus _TotalCreditCheckStatus 1
_TransactionCurrency _TransactionCurrency 3
AccountingDocExternalReference AccountingDocExternalReference 1
AdditionalCustomerGroup1 AdditionalCustomerGroup1 1
AdditionalCustomerGroup2 AdditionalCustomerGroup2 1
AdditionalCustomerGroup3 AdditionalCustomerGroup3 1
AdditionalCustomerGroup4 AdditionalCustomerGroup4 1
AdditionalCustomerGroup5 AdditionalCustomerGroup5 1
AssignmentReference AssignmentReference 1
BillingCompanyCode BillingCompanyCode 1
BillingDocumentDate BillingDocumentDate 1
BusinessArea BusinessArea 1
CentralCreditCheckStatus CentralCreditCheckStatus 1
CentralCreditChkTechErrSts CentralCreditChkTechErrSts 1
ControllingArea ControllingArea 1
ControllingObject ControllingObject 1
CostCenter CostCenter 1
CostCenterBusinessArea CostCenterBusinessArea 1
CreatedByUser CreatedByUser 6
CreationDate CreationDate 4
CreationTime CreationTime 1
CreditControlArea CreditControlArea 1
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup 1
CustomerGroup CustomerGroup 1
CustomerPaymentTerms CustomerPaymentTerms 1
CustomerPurchaseOrderDate CustomerPurchaseOrderDate 2
CustomerPurchaseOrderSuplmnt CustomerPurchaseOrderSuplmnt 1
CustomerPurchaseOrderType CustomerPurchaseOrderType 1
CustomerReturnApprovalReason CustomerReturnApprovalReason 2
CustomerReturnCondition CustomerReturnCondition 1
CustomerReturnDate CustomerReturnDate 6
CustomerReturnType CustomerReturnType 5
CustomerTaxClassification1 CustomerTaxClassification1 1
CustomerTaxClassification2 CustomerTaxClassification2 1
CustomerTaxClassification3 CustomerTaxClassification3 1
CustomerTaxClassification4 CustomerTaxClassification4 1
CustomerTaxClassification5 CustomerTaxClassification5 1
CustomerTaxClassification6 CustomerTaxClassification6 1
CustomerTaxClassification7 CustomerTaxClassification7 1
CustomerTaxClassification8 CustomerTaxClassification8 1
CustomerTaxClassification9 CustomerTaxClassification9 1
DeliveryBlockReason DeliveryBlockReason 1
DistributionChannel DistributionChannel 8
ExchangeRateDate ExchangeRateDate 1
ExchangeRateType ExchangeRateType 1
ExprtInsurCreditCheckStatus ExprtInsurCreditCheckStatus 1
FinDocCreditCheckStatus FinDocCreditCheckStatus 1
FiscalPeriod FiscalPeriod 1
FiscalYear FiscalYear 1
HdrGeneralIncompletionStatus HdrGeneralIncompletionStatus 1
HeaderBillgIncompletionStatus HeaderBillgIncompletionStatus 1
HeaderBillingBlockReason HeaderBillingBlockReason 1
HeaderDelivIncompletionStatus HeaderDelivIncompletionStatus 1
IncotermsClassification IncotermsClassification 1
IncotermsLocation1 IncotermsLocation1 1
IncotermsLocation2 IncotermsLocation2 1
IncotermsTransferLocation IncotermsTransferLocation 1
IncotermsVersion IncotermsVersion 1
LastChangeDate LastChangeDate 2
LastChangeDateTime LastChangeDateTime 4
LastChangedByUser LastChangedByUser 5
MaxDocValueCreditCheckStatus MaxDocValueCreditCheckStatus 1
OrderID OrderID 1
OrganizationDivision OrganizationDivision 8
OverallBillingBlockStatus OverallBillingBlockStatus 1
OverallDeliveryBlockStatus OverallDeliveryBlockStatus 1
OverallDeliveryStatus OverallDeliveryStatus 2
OverallOrdReltdBillgStatus OverallOrdReltdBillgStatus 3
OverallPricingIncompletionSts OverallPricingIncompletionSts 1
OverallSDDocReferenceStatus OverallSDDocReferenceStatus 1
OverallSDDocumentRejectionSts OverallSDDocumentRejectionSts 4
OverallSDProcessStatus OverallSDProcessStatus 6
OverallTotalDeliveryStatus OverallDeliveryStatus,OverallTotalDeliveryStatus 3
OverallTotalSDDocRefStatus OverallTotalSDDocRefStatus 1
OvrlItmBillingIncompletionSts OvrlItmBillingIncompletionSts 1
OvrlItmDelivIncompletionSts OvrlItmDelivIncompletionSts 1
OvrlItmGeneralIncompletionSts OvrlItmGeneralIncompletionSts 1
PaymentMethod PaymentMethod 1
PaymentTermCreditCheckStatus PaymentTermCreditCheckStatus 1
PaytAuthsnCreditCheckSts PaytAuthsnCreditCheckSts 1
PriceDetnExchangeRate PriceDetnExchangeRate 1
PricingDate PricingDate 2
PurchaseOrderByCustomer PurchaseOrderByCustomer 5
ReferenceSDDocument ReferenceSDDocument 5
ReferenceSDDocumentCategory ReferenceSDDocumentCategory 3
RequestedDeliveryDate RequestedDeliveryDate 1
RetsMgmtProcess RetsMgmtProcess 3
SalesDistrict SalesDistrict 1
SalesDocApprovalStatus SalesDocApprovalStatus 4
SalesGroup SalesGroup 8
SalesOffice SalesOffice 8
SalesOrganization SalesOrganization 8
SDDocumentReason SDDocumentReason 2
SDPricingProcedure SDPricingProcedure 1
SenderBusinessSystemName SenderBusinessSystemName 1
ServicesRenderedDate ServicesRenderedDate 1
ShippingCondition ShippingCondition 2
ShippingType ShippingType 1
SoldToParty SoldToParty 7
TotalBlockStatus TotalBlockStatus 1
TotalCreditCheckStatus TotalCreditCheckStatus 1
TotalNetAmount TotalNetAmount 7
TransactionCurrency TransactionCurrency 7
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Returns Order'
@VDM: {
  viewType: #BASIC,
  lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA'),
  privilegedAssociations: [ '_CreatedByUser', '_LastChangedByUser' ]
}
@AbapCatalog: {
  sqlViewName: 'ISDCUSTRETURN',
  preserveKey: true,
  compiler.compareFilter: true
}
@ObjectModel: {
  compositionRoot: true,
  representativeKey: 'CustomerReturn',
  modelingPattern: #ANALYTICAL_DIMENSION,
  supportedCapabilities: [#ANALYTICAL_DIMENSION, 
                          #CDS_MODELING_ASSOCIATION_TARGET, 
                          #CDS_MODELING_DATA_SOURCE,
                          #SQL_DATA_SOURCE,
                          #EXTRACTION_DATA_SOURCE],
  usageType: {
    dataClass:      #TRANSACTIONAL,
    serviceQuality: #B,
    sizeCategory:   #L
  }
}
@Analytics.dataCategory: #DIMENSION
@Metadata.ignorePropagatedAnnotations: true
@Metadata.allowExtensions: true
@ObjectModel.sapObjectNodeType.name: 'CustomerReturn'   

@Analytics: {
    dataExtraction: {
        enabled: true,
        delta.changeDataCapture: {
            mapping:[
                {
                    table: 'vbak', role: #MAIN,
                    viewElement: ['CustomerReturn'],
                    tableElement: ['vbeln']  },
                    
                {   filter: [{operator: #EQ, tableElement: 'posnr', value: '000000'}],
                    table: 'vbkd', role: #LEFT_OUTER_TO_ONE_JOIN,
                    viewElement: ['CustomerReturn'],
                    tableElement: ['vbeln']
                },   
                
                {   filter: [{operator: #EQ, tableElement: 'vposn', value: '000000'}],
                    table: 'veda', role: #LEFT_OUTER_TO_ONE_JOIN,
                    viewElement: ['CustomerReturn'],
                    tableElement: ['vbeln']
                }              
            ]
        }
    }
 }

define view I_CustomerReturn
  as select from I_SalesDocument as SalesDocument

  //Associations

  association [0..*] to I_CustomerReturnItem           as _Item                  on $projection.CustomerReturn = _Item.CustomerReturn
  association [0..1] to I_RetsMgmtProcess              as _RetsMgmtProcess       on $projection.RetsMgmtProcess = _RetsMgmtProcess.RetsMgmtProcess
  association [0..1] to I_CustomerReturnApprovalReason as _CustRetApprovalReason on $projection.CustomerReturnApprovalReason = _CustRetApprovalReason.CustomerReturnApprovalReason
 
  //Extensibility

  association [0..1] to E_SalesDocumentBasic           as _Extension             on SalesDocument.SalesDocument = _Extension.SalesDocument

{
      //Key

  key cast(SalesDocument as vdm_customer_return preserving type)          as CustomerReturn,

      //Category

      @ObjectModel.foreignKey.association: '_CustomerReturnType'
      cast(SalesDocumentType as vdm_customer_return_type preserving type) as CustomerReturnType,

      //Admin

      CreatedByUser,
      LastChangedByUser,
      @Semantics.systemDate.createdAt: true
      CreationDate,
      CreationTime,
      @Semantics.systemDate.lastChangedAt: true
      LastChangeDate,
      @Semantics.systemDateTime.lastChangedAt: true
      LastChangeDateTime,
      SenderBusinessSystemName,
      
      //Org

      @ObjectModel.foreignKey.association: '_SalesOrganization'
      SalesOrganization,
      @ObjectModel.foreignKey.association: '_DistributionChannel'
      DistributionChannel,
      @ObjectModel.foreignKey.association: '_OrganizationDivision'
      OrganizationDivision,
      @ObjectModel.foreignKey.association: '_SalesGroup'
      SalesGroup,
      @ObjectModel.foreignKey.association: '_SalesOffice'
      SalesOffice,

      //Sales

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_Customer_VH',
                     element: 'Customer' }
        }]
      @ObjectModel.foreignKey.association: '_SoldToParty'
      SoldToParty,
      @ObjectModel.foreignKey.association: '_CustomerGroup'
      CustomerGroup,
      @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup1'
      AdditionalCustomerGroup1,
      @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup2'
      AdditionalCustomerGroup2,
      @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup3'
      AdditionalCustomerGroup3,
      @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup4'
      AdditionalCustomerGroup4,
      @ObjectModel.foreignKey.association: '_AdditionalCustomerGroup5'
      AdditionalCustomerGroup5,
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_CreditControlAreaStdVH',
                     element: 'CreditControlArea' }
        }]
      @ObjectModel.foreignKey.association: '_CreditControlArea'
      CreditControlArea,
      SalesDocumentDate                                                   as CustomerReturnDate,
      ServicesRenderedDate,
      @ObjectModel.foreignKey.association: '_SDDocumentReason'
      SDDocumentReason,
      PurchaseOrderByCustomer,
      CustomerPurchaseOrderType,
      CustomerPurchaseOrderDate,
      CustomerPurchaseOrderSuplmnt,
      @ObjectModel.foreignKey.association: '_SalesDistrict'
      SalesDistrict,
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_RetsMgmtProcessStdVH',
                     element: 'RetsMgmtProcess' }
        }]
      @ObjectModel.foreignKey.association: '_RetsMgmtProcess'
      RetsMgmtProcess,

      //Pricing

      @DefaultAggregation: #SUM
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      TotalNetAmount,
      @Semantics.currencyCode: true
      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      TransactionCurrency,
      PricingDate,
      PriceDetnExchangeRate,
      SDPricingProcedure,
      SalesDocumentCondition                                              as CustomerReturnCondition,

      //Shipping

      RequestedDeliveryDate,
      @ObjectModel.foreignKey.association: '_IncotermsClassification'
      IncotermsClassification,
      IncotermsTransferLocation,
      IncotermsLocation1,
      IncotermsLocation2,
      @ObjectModel.foreignKey.association: '_IncotermsVersion'
      IncotermsVersion,
      @ObjectModel.foreignKey.association: '_DeliveryBlockReason'
      DeliveryBlockReason,
      @Analytics.internalName: #LOCAL  
      @ObjectModel.foreignKey.association: '_ShippingType'
      ShippingType,
      
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_ShippingCondition' 
      ShippingCondition,
      
      //Approval Management

      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_CustRetApprovalReason'
      SalesDocApprovalReason                                              as CustomerReturnApprovalReason,
      
      //Billing

      BillingDocumentDate,
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_CompanyCodeStdVH',
                      element: 'CompanyCode' }
        }]
      @ObjectModel.foreignKey.association: '_BillingCompanyCode'
      BillingCompanyCode,
      @ObjectModel.foreignKey.association: '_HeaderBillingBlockReason'
      HeaderBillingBlockReason,

      //Payment

      @ObjectModel.foreignKey.association: '_CustomerPaymentTerms'
      CustomerPaymentTerms,
      PaymentMethod,
      
      //Tax Classfication

      CustomerTaxClassification1,
      CustomerTaxClassification2,
      CustomerTaxClassification3,
      CustomerTaxClassification4,
      CustomerTaxClassification5,
      CustomerTaxClassification6,
      CustomerTaxClassification7,
      CustomerTaxClassification8,
      CustomerTaxClassification9,
      
      //Accounting

      FiscalYear,
      FiscalPeriod,
      ExchangeRateDate,
      @ObjectModel.foreignKey.association: '_ExchangeRateType'
      ExchangeRateType,
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_BusinessAreaStdVH',
                     element: 'BusinessArea' }
        }]
      @ObjectModel.foreignKey.association: '_BusinessArea'
      BusinessArea,
      @ObjectModel.foreignKey.association: '_CustomerAccountAssgmtGroup'
      CustomerAccountAssignmentGroup,
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_BusinessAreaStdVH',
                     element: 'BusinessArea' }
        }]
      @ObjectModel.foreignKey.association: '_CostCenterBusinessArea'
      CostCenterBusinessArea,
      CostCenter,
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_ControllingAreaStdVH',
                     element: 'ControllingArea' }
        }]
      @ObjectModel.foreignKey.association: '_ControllingArea'
      ControllingArea,
      OrderID,
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_ControllingObjectStdVH',
                     element: 'ControllingObject' }
        }]
      @ObjectModel.foreignKey.association: '_ControllingObject'
      ControllingObject,

      //Reference

      ReferenceSDDocument,
      @ObjectModel.foreignKey.association: '_ReferenceSDDocumentCategory'
      ReferenceSDDocumentCategory,
      
      @Analytics.internalName: #LOCAL
      AccountingDocExternalReference,
      AssignmentReference,

      //Status

      @ObjectModel.foreignKey.association: '_OverallSDProcessStatus'
      OverallSDProcessStatus,
      @ObjectModel.foreignKey.association: '_OverallSDDocumentRejectionSts'
      OverallSDDocumentRejectionSts,
      @ObjectModel.foreignKey.association: '_TotalBlockStatus'
      TotalBlockStatus,
      @ObjectModel.foreignKey.association: '_OverallTotalDeliveryStatus'
      OverallTotalDeliveryStatus,
      @ObjectModel.foreignKey.association: '_OverallDeliveryStatus'
      OverallDeliveryStatus,
      @ObjectModel.foreignKey.association: '_OverallDeliveryBlockStatus'
      OverallDeliveryBlockStatus,
      @ObjectModel.foreignKey.association: '_OverallOrdReltdBillgStatus'
      OverallOrdReltdBillgStatus,
      @ObjectModel.foreignKey.association: '_OverallBillingBlockStatus'
      OverallBillingBlockStatus,
      @ObjectModel.foreignKey.association: '_OverallTotalSDDocRefStatus'
      OverallTotalSDDocRefStatus,
      @ObjectModel.foreignKey.association: '_OverallSDDocReferenceStatus'
      OverallSDDocReferenceStatus,
      @ObjectModel.foreignKey.association: '_TotalCreditCheckStatus'
      TotalCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_MaxDocValueCreditCheckStatus'
      MaxDocValueCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_PaymentTermCreditCheckStatus'
      PaymentTermCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_FinDocCreditCheckStatus'
      FinDocCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_ExprtInsurCreditCheckStatus'
      ExprtInsurCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_PaytAuthsnCreditCheckSts'
      PaytAuthsnCreditCheckSts,
      @ObjectModel.foreignKey.association: '_CentralCreditCheckStatus'
      CentralCreditCheckStatus,
      @ObjectModel.foreignKey.association: '_CentralCreditChkTechErrSts'
      CentralCreditChkTechErrSts,
      @ObjectModel.foreignKey.association: '_HdrGeneralIncompletionStatus'
      HdrGeneralIncompletionStatus,
      @ObjectModel.foreignKey.association: '_OverallPricingIncompletionSts'
      OverallPricingIncompletionSts,
      @ObjectModel.foreignKey.association: '_HeaderDelivIncompletionStatus'
      HeaderDelivIncompletionStatus,
      @ObjectModel.foreignKey.association: '_HeaderBillgIncompletionStatus'
      HeaderBillgIncompletionStatus,
      @ObjectModel.foreignKey.association: '_OvrlItmGeneralIncompletionSts'
      OvrlItmGeneralIncompletionSts,
      @ObjectModel.foreignKey.association: '_OvrlItmBillingIncompletionSts'
      OvrlItmBillingIncompletionSts,
      @ObjectModel.foreignKey.association: '_OvrlItmDelivIncompletionSts'
      OvrlItmDelivIncompletionSts,
      @Analytics.internalName: #LOCAL
      @ObjectModel.foreignKey.association: '_SalesDocApprovalStatus'
      SalesDocApprovalStatus,
      
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _Item,
      _Partner,
      _StandardPartner,
      _SalesDocumentType                                                  as _CustomerReturnType,
      _CreatedByUser,
      _LastChangedByUser,
      _SalesOrganization,
      _DistributionChannel,
      _OrganizationDivision,
      _SalesGroup,
      _SalesOffice,
      _SoldToParty,
      _CustomerGroup,
      _AdditionalCustomerGroup1,
      _AdditionalCustomerGroup2,
      _AdditionalCustomerGroup3,
      _AdditionalCustomerGroup4,
      _AdditionalCustomerGroup5,
      _CreditControlArea,
      _SDDocumentReason,
      _SDPricingProcedure,
      _ShippingType,
      _ShippingCondition,
      //Todo: _CustomerPurchaseOrderType,

      _SalesDistrict,
      _RetsMgmtProcess,
      _TransactionCurrency,
      //Todo:CustomerReturnCondition,

      _IncotermsClassification,
      _IncotermsVersion,
      _DeliveryBlockReason,
      _CustRetApprovalReason,
      _BillingCompanyCode,
      _HeaderBillingBlockReason,
      _CustomerPaymentTerms,
      //Todo: _PaymentMethod,

      _ExchangeRateType,
      _BusinessArea,
      _CustomerAccountAssgmtGroup,
      _CostCenterBusinessArea,
      _CostCenter,
      _ControllingArea,
      _ControllingObject,
      //Todo: ReferenceSDDocument,

      _ReferenceSDDocumentCategory,
      _OverallSDProcessStatus,
      _OverallSDDocumentRejectionSts,
      _TotalBlockStatus,
      _OverallTotalDeliveryStatus,
      _OverallDeliveryStatus,
      _OverallDeliveryBlockStatus,
      _OverallOrdReltdBillgStatus,
      _OverallBillingBlockStatus,
      _OverallTotalSDDocRefStatus,
      _OverallSDDocReferenceStatus,
      _TotalCreditCheckStatus,
      _MaxDocValueCreditCheckStatus,
      _PaymentTermCreditCheckStatus,
      _FinDocCreditCheckStatus,
      _ExprtInsurCreditCheckStatus,
      _PaytAuthsnCreditCheckSts,
      _CentralCreditCheckStatus,
      _CentralCreditChkTechErrSts,
      _HdrGeneralIncompletionStatus,
      _OverallPricingIncompletionSts,
      _HeaderDelivIncompletionStatus,
      _HeaderBillgIncompletionStatus,
      _OvrlItmGeneralIncompletionSts,
      _OvrlItmBillingIncompletionSts,
      _OvrlItmDelivIncompletionSts,
      _SalesDocApprovalStatus
}
where
  SalesDocument.SDDocumentCategory = 'H';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENT"
],
"ASSOCIATED":
[
"E_SALESDOCUMENTBASIC",
"I_ADDITIONALCUSTOMERGROUP1",
"I_ADDITIONALCUSTOMERGROUP2",
"I_ADDITIONALCUSTOMERGROUP3",
"I_ADDITIONALCUSTOMERGROUP4",
"I_ADDITIONALCUSTOMERGROUP5",
"I_BILLINGBLOCKREASON",
"I_BUSINESSAREA",
"I_CENTRALCREDITCHECKSTATUS",
"I_CENTRALCREDITCHKTECHERRSTS",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_CONTROLLINGOBJECT",
"I_COSTCENTER",
"I_CREDITCONTROLAREA",
"I_CURRENCY",
"I_CUSTOMER",
"I_CUSTOMERACCOUNTASSGMTGROUP",
"I_CUSTOMERGROUP",
"I_CUSTOMERPAYMENTTERMS",
"I_CUSTOMERRETURNAPPROVALREASON",
"I_CUSTOMERRETURNITEM",
"I_DELIVERYBLOCKREASON",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_EXCHANGERATETYPE",
"I_EXPRTINSURCREDITCHECKSTATUS",
"I_FINDOCCREDITCHECKSTATUS",
"I_HDRBILLGINCOMPLETIONSTATUS",
"I_HDRDELIVINCOMPLETIONSTATUS",
"I_HDRGENINCOMPLETIONSTATUS",
"I_INCOTERMSCLASSIFICATION",
"I_INCOTERMSVERSION",
"I_MAXDOCVALUECREDITCHECKSTS",
"I_OVERALLBILLINGBLOCKSTATUS",
"I_OVERALLDELIVERYBLOCKSTATUS",
"I_OVERALLDELIVERYSTATUS",
"I_OVERALLORDRELTDBILLGSTATUS",
"I_OVERALLPRCINCOMPLETIONSTS",
"I_OVERALLSDDOCREFERENCESTATUS",
"I_OVERALLSDDOCUMENTRJCNSTATUS",
"I_OVERALLSDPROCESSSTATUS",
"I_OVERALLTOTALDELIVERYSTATUS",
"I_OVERALLTOTALSDDOCREFSTATUS",
"I_OVRLITMBILLGINCOMPLTNSTS",
"I_OVRLITMDELIVINCOMPLETIONSTS",
"I_OVRLITMGENINCOMPLETIONSTS",
"I_PAYMENTTERMCREDITCHECKSTS",
"I_PAYTAUTHSNCREDITCHECKSTS",
"I_RETSMGMTPROCESS",
"I_SALESDISTRICT",
"I_SALESDOCAPPROVALSTATUS",
"I_SALESDOCUMENTPARTNER",
"I_SALESDOCUMENTSTANDARDPARTNER",
"I_SALESDOCUMENTTYPE",
"I_SALESGROUP",
"I_SALESOFFICE",
"I_SALESORGANIZATION",
"I_SDDOCUMENTCATEGORY",
"I_SDDOCUMENTREASON",
"I_SHIPPINGCONDITION",
"I_SHIPPINGTYPE",
"I_SLSPRICINGPROCEDURE",
"I_TOTALBLOCKSTATUS",
"I_TOTALCREDITCHECKSTATUS",
"I_USER"
],
"BASE":
[
"I_SALESDOCUMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/