P_MassChgSlsDocHdrReadRequest

DDL: P_MASSCHGSLSDOCHDRREADREQUEST Type: view_entity CONSUMPTION

Mass Chg of Sales Doc Header Read Req

P_MassChgSlsDocHdrReadRequest is a Consumption CDS View that provides data about "Mass Chg of Sales Doc Header Read Req" in SAP S/4HANA. It reads from 1 data source (I_SalesDocument) and exposes 39 fields with key field SalesDocument.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocument SalesDocument from

Annotations (8)

NameValueLevelField
EndUserText.label Mass Chg of Sales Doc Header Read Req view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey SalesDocument view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument I_SalesDocument SalesDocument
SalesDocumentType SalesDocumentType
SalesOrganization SalesOrganization
DistributionChannel DistributionChannel
OrganizationDivision OrganizationDivision
SDDocumentCategory SDDocumentCategory
SalesGroup I_SalesDocument SalesGroup
SalesGroupName
SalesOffice I_SalesDocument SalesOffice
SalesOfficeName
SalesDistrict I_SalesDocument SalesDistrict
SalesDistrictName
RequestedDeliveryDate I_SalesDocument RequestedDeliveryDate
ShippingCondition I_SalesDocument ShippingCondition
ShippingConditionName
IncotermsClassification I_SalesDocument IncotermsClassification
IncotermsClassificationName
IncotermsTransferLocation I_SalesDocument IncotermsTransferLocation
IncotermsLocation1 I_SalesDocument IncotermsLocation1
IncotermsLocation2 I_SalesDocument IncotermsLocation2
IncotermsVersion I_SalesDocument IncotermsVersion
IncotermsVersionName
DeliveryBlockReason I_SalesDocument DeliveryBlockReason
ShippingType I_SalesDocument ShippingType
ShippingTypeName
PricingDate I_SalesDocument PricingDate
PurchaseOrderByCustomer I_SalesDocument PurchaseOrderByCustomer
CompleteDeliveryIsDefined I_SalesDocument CompleteDeliveryIsDefined
TransactionCurrency I_SalesDocument TransactionCurrency
CurrencyName
HeaderBillingBlockReason I_SalesDocument HeaderBillingBlockReason
BillingDocumentDate I_SalesDocument BillingDocumentDate
CustomerPurchaseOrderDate I_SalesDocument CustomerPurchaseOrderDate
SalesDocumentDate I_SalesDocument SalesDocumentDate
SDDocumentReason I_SalesDocument SDDocumentReason
SDDocumentReasonText
CustomerPaymentTerms I_SalesDocument CustomerPaymentTerms
CustomerPaymentTermsName
PaymentMethod I_SalesDocument PaymentMethod
@EndUserText.label: 'Mass Chg of Sales Doc Header Read Req'
@VDM: {
  viewType: #CONSUMPTION,
  private: true
}

@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
   representativeKey: 'SalesDocument',
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #C,
     sizeCategory:   #S
   }
}

define view entity P_MassChgSlsDocHdrReadRequest
  as select from I_SalesDocument as SalesDocument
  //Extensibility

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

{

  key SalesDocument.SalesDocument,

      SalesDocumentType,
      //Organization

      SalesOrganization,
      DistributionChannel,
      OrganizationDivision,
      SDDocumentCategory,

      @ObjectModel.text.element: ['SalesGroupName']
      SalesDocument.SalesGroup                as SalesGroup,
      SalesDocument._SalesGroup._Text[1:Language =  $session.system_language].SalesGroupName,

      @ObjectModel.text.element: ['SalesOfficeName']
      SalesDocument.SalesOffice               as SalesOffice,
      SalesDocument._SalesOffice._Text[1:Language =  $session.system_language].SalesOfficeName,

      @ObjectModel.text.element: ['SalesDistrictName']
      SalesDocument.SalesDistrict             as SalesDistrict,
      SalesDocument._SalesDistrict._Text[1:Language =  $session.system_language].SalesDistrictName,

      SalesDocument.RequestedDeliveryDate     as RequestedDeliveryDate,

      @ObjectModel.text.element: ['ShippingConditionName']
      SalesDocument.ShippingCondition         as ShippingCondition,
      SalesDocument._ShippingCondition._Text[1:Language =  $session.system_language].ShippingConditionName,

      @ObjectModel.text.element: ['IncotermsClassificationName']
      SalesDocument.IncotermsClassification   as IncotermsClassification,
      SalesDocument._IncotermsClassification._Text[1:Language =  $session.system_language].IncotermsClassificationName,

      SalesDocument.IncotermsTransferLocation as IncotermsTransferLocation,

      SalesDocument.IncotermsLocation1        as IncotermsLocation1,

      SalesDocument.IncotermsLocation2        as IncotermsLocation2,

      @ObjectModel.text.element: ['IncotermsVersionName']
      SalesDocument.IncotermsVersion          as IncotermsVersion,
      SalesDocument._IncotermsVersion._Text[1:Language =  $session.system_language].IncotermsVersionName,

      SalesDocument.DeliveryBlockReason       as DeliveryBlockReason,

      @ObjectModel.text.element: ['ShippingTypeName']
      SalesDocument.ShippingType              as ShippingType,
      SalesDocument._ShippingType._Text[1:Language =  $session.system_language].ShippingTypeName,

      SalesDocument.PricingDate               as PricingDate,

      SalesDocument.PurchaseOrderByCustomer   as PurchaseOrderByCustomer,

      SalesDocument.CompleteDeliveryIsDefined as CompleteDeliveryIsDefined,

      @ObjectModel.text.element: ['CurrencyName']
      SalesDocument.TransactionCurrency       as TransactionCurrency,
      SalesDocument._TransactionCurrency._Text[1:Language =  $session.system_language].CurrencyName,

      SalesDocument.HeaderBillingBlockReason  as HeaderBillingBlockReason,

      SalesDocument.BillingDocumentDate       as BillingDocumentDate,

      SalesDocument.CustomerPurchaseOrderDate as CustomerPurchaseOrderDate,

      SalesDocument.SalesDocumentDate         as SalesDocumentDate,

      @ObjectModel.text.element: ['SDDocumentReasonText']
      SalesDocument.SDDocumentReason          as SDDocumentReason,
      SalesDocument._SDDocumentReason._Text[1:Language =  $session.system_language].SDDocumentReasonText,

      @ObjectModel.text.element: ['CustomerPaymentTermsName']
      SalesDocument.CustomerPaymentTerms      as CustomerPaymentTerms,
      SalesDocument._CustomerPaymentTerms._Text[1:Language =  $session.system_language].CustomerPaymentTermsName,

      SalesDocument.PaymentMethod             as PaymentMethod
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CURRENCY",
"I_CURRENCYTEXT",
"I_CUSTOMERPAYMENTTERMS",
"I_CUSTOMERPAYMENTTERMSTEXT",
"I_INCOTERMSCLASSIFICATION",
"I_INCOTERMSCLASSIFICATIONTEXT",
"I_INCOTERMSVERSION",
"I_INCOTERMSVERSIONTEXT",
"I_SALESDISTRICT",
"I_SALESDISTRICTTEXT",
"I_SALESDOCUMENT",
"I_SALESGROUP",
"I_SALESGROUPTEXT",
"I_SALESOFFICE",
"I_SALESOFFICETEXT",
"I_SDDOCUMENTREASON",
"I_SDDOCUMENTREASONTEXT",
"I_SHIPPINGCONDITION",
"I_SHIPPINGCONDITIONTEXT",
"I_SHIPPINGTYPE",
"I_SHIPPINGTYPETEXT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/