I_IN_MatlDocList

DDL: I_IN_MATLDOCLIST SQL: INMATLDOCLIST Type: view BASIC

Material Document for Subcon Challan

I_IN_MatlDocList is a Basic CDS View that provides data about "Material Document for Subcon Challan" in SAP S/4HANA. It reads from 1 data source (matdoc) and exposes 46 fields. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
matdoc matdoc from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_StorageLocation _StorageLocation $projection.StorageLocation = _StorageLocation.StorageLocation and $projection.Plant = _StorageLocation.Plant
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName INMATLDOCLIST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Material Document for Subcon Challan view
VDM.private false view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (46)

KeyFieldSource TableSource FieldDescription
MaterialDocumentYear
MaterialDocument mblnr
MaterialDocumentItem
Plant werks
Material matnr
StorageLocation lgort
Supplier lifnr
GoodsMovementType bwart
QuantityInEntryUnit erfmg
EntryUnit erfme
ReversedMaterialDocumentYear
ReversedMaterialDocument
ReversedMaterialDocumentItem
RvslOfGoodsReceiptIsAllowed xwsbr
IsReversalMovementType
GoodsMovementIsCancelled cancelled
GoodsMovementCancellationType cancellation_type
GoodsRecipientName wempf
UnloadingPointName ablad
CostCenter kostl
GLAccount sakto
CostObject kstrg
ProfitabilitySegment
ProfitCenter prctr
CostEstimate kalnr
ReferenceDocument xblnr
ServicePerformer serviceperformer
EmploymentInternalID pernr
AccountAssignmentCategory
WorkItem work_item_id
ServicesRenderedDate fbuda
CompanyCode bukrs
BusinessArea gsber
PostingDate budat
TotalGoodsMvtAmtInCCCrcy dmbtr
GoodsMovementStkAmtInCCCrcy dmbtr_stock
GoodsMvtCnsmpnAmtInCCCrcy dmbtr_cons
CompanyCodeCurrency
IsAutomaticallyCreated
UserName usnam
_Material _Material
_Plant _Plant
_StorageLocation _StorageLocation
_Supplier _Supplier
_CompanyCode _CompanyCode
_BusinessArea _BusinessArea
@AbapCatalog.sqlViewName: 'INMATLDOCLIST'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.dataClass:#TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Material Document for Subcon Challan'
@VDM: {
        private: false,
        viewType: #BASIC,
        lifecycle.contract.type: #SAP_INTERNAL_API
        }
define view I_IN_MatlDocList as select from matdoc 
  association [0..1] to I_Material                  as _Material                      on  $projection.Material = _Material.Material
  association [0..1] to I_Plant                     as _Plant                         on  $projection.Plant = _Plant.Plant
  association [0..1] to I_StorageLocation           as _StorageLocation               on  $projection.StorageLocation = _StorageLocation.StorageLocation
                                                                                      and $projection.Plant           = _StorageLocation.Plant
  association [0..1] to I_Supplier                  as _Supplier                      on  $projection.Supplier = _Supplier.Supplier
  association [0..1] to I_CompanyCode               as _CompanyCode                   on  $projection.CompanyCode = _CompanyCode.CompanyCode
  association [0..1] to I_BusinessArea              as _BusinessArea                  on  $projection.BusinessArea = _BusinessArea.BusinessArea
{
  cast(mjahr as nsdm_mjahr preserving type) as MaterialDocumentYear,
  mblnr             as MaterialDocument,
  cast(zeile as nsdm_mblpo preserving type) as MaterialDocumentItem,
  werks             as Plant,
  matnr             as Material,
  lgort             as StorageLocation,
  lifnr             as Supplier,

  bwart             as GoodsMovementType,
  
  
  @Semantics.quantity.unitOfMeasure: 'EntryUnit'
  @DefaultAggregation: #NONE
  erfmg             as QuantityInEntryUnit,
  @Semantics.unitOfMeasure: true
  erfme             as EntryUnit,
  
  cast(sjahr as nsdm_sjahr preserving type) as ReversedMaterialDocumentYear,
  cast(smbln as nsdm_smbln preserving type) as ReversedMaterialDocument,
  cast(smblp as nsdm_smblp preserving type) as ReversedMaterialDocumentItem,
  xwsbr             as RvslOfGoodsReceiptIsAllowed,
  cast(reversal_movement as nsdm_xstbw preserving type) as IsReversalMovementType,
  cancelled         as GoodsMovementIsCancelled,
  cancellation_type as GoodsMovementCancellationType, 

  wempf             as GoodsRecipientName,
  ablad             as UnloadingPointName,
  kostl             as CostCenter,
  sakto             as GLAccount,
  kstrg             as CostObject,
  cast(paobjnr as nsdm_rkeobjnr) as ProfitabilitySegment,
  prctr             as ProfitCenter,
  kalnr             as CostEstimate,
  
  xblnr             as ReferenceDocument,
  serviceperformer  as ServicePerformer,
  pernr             as EmploymentInternalID,
  cast(knttp_gr as nsdm_knttp preserving type) as AccountAssignmentCategory,
  work_item_id      as WorkItem,
  fbuda             as ServicesRenderedDate,

  bukrs             as CompanyCode,
  gsber             as BusinessArea,
  @Semantics.businessDate.at: true
  budat             as PostingDate,
  @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
  @DefaultAggregation: #NONE
  dmbtr             as TotalGoodsMvtAmtInCCCrcy,
  @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
  @DefaultAggregation: #NONE
  dmbtr_stock       as GoodsMovementStkAmtInCCCrcy,
  @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
  @DefaultAggregation: #NONE
  dmbtr_cons        as GoodsMvtCnsmpnAmtInCCCrcy,
  @Semantics.currencyCode: true
  cast(waers as nsdm_comp_code_currency preserving type)  as CompanyCodeCurrency,

  cast(xauto as nsdm_xauto preserving type) as IsAutomaticallyCreated,
  usnam as UserName,
  _Material,
  _Plant,
  _StorageLocation,
  _Supplier,
  _CompanyCode,
  _BusinessArea
}
  
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MATDOC"
],
"ASSOCIATED":
[
"I_BUSINESSAREA",
"I_COMPANYCODE",
"I_MATERIAL",
"I_PLANT",
"I_STORAGELOCATION",
"I_SUPPLIER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/