Matdoc Cds
Matdoc Cds
Matdoc Cds
sqlViewName: 'FMMIMT156T'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.buffering.status: #ACTIVE
@AbapCatalog.buffering.type: #GENERIC
@AbapCatalog.buffering.numberOfKeyFields: 2
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.dataClass:#CUSTOMIZING
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Goods Movement Type Long Text'
...................................................................
@AbapCatalog.sqlViewName: 'FMMIMMATDOCITEMH'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass:#MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Matdoc Items'
F_Mmim_Matdoc_Item_H
define view F_Mmim_Matdoc_Item_H
as
select from matdoc
key mblnr,
key mjahr,
key zeile,
cancelled,
matnr,
bwart,
sobkz,
kzbew,
kzzug,
kzvbr,
// werks,
charg,
// lgort,
// lifnr,
// kdauf,
// kdpos,
// kunnr,
lbbsa_sid,
aufnr,
// Item data - Additional
work_item_id,
pernr,
sgtxt,
// Item data - references
knttp_gr,
sakto,
fkber,
prctr,
kostl,
kokrs,
ebeln,
vbeln_im,
_F_Mmim_T156t
}
where record_type = 'MDOC' and xauto = ''
========================================================
@AbapCatalog.sqlViewName: 'FMMIMMATDITEMH2'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Matdoc Items'
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass:#MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
key mblnr,
key mjahr,
key zeile,
cancelled,
matnr,
bwart,
sobkz,
kzbew,
kzzug,
kzvbr,
shkzg,
case when umwrk_target <> '' and shkzg = 'S'
then umwrk_target
else werks_source
end as werks,
case when umwrk_target <> '' and shkzg = 'S'
then umlgo_target
else lgort_source
end as lgort,
case when umwrk_target <> '' and shkzg = 'S'
then lbbsa_target
else lbbsa_source
end as lbbsa_sid,
case when umwrk_target <> '' and shkzg = 'S'
_F_Mmim_T156t
}
=================================================
@AbapCatalog.sqlViewName: 'FMMIMATDOCITEM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass:#MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
//@DataAging.noAgingRestriction:true
@EndUserText.label: 'Matdoc Items'
@UI.identification: [{position:10}]
key mblnr as MaterialDocument,
@EndUserText.label: 'Material Document Year'
@UI.identification: [{position:20}]
key mjahr as MaterialDocumentYear,
@UI.identification: [{position:30}]
@UI.lineItem: [{position:10}]
@EndUserText.label: 'Material Document Item'
key zeile as MaterialDocumentItem,
@EndUserText.label: 'Reversed'
cancelled as IsCancelled,
// Item data - stock identifier
@UI.lineItem: [{position:20}]
@ObjectModel.text.element: [ 'MaterialName' ]
matnr as Material,
// @Consumption.groupWithElement: 'Material'
@UI.hidden: true
_Material._Text[1: Language=$parameters.P_Language].MaterialName as MaterialName,
@EndUserText.label: 'Goods Movement Type'
@UI.lineItem: [{position:30}]
@ObjectModel.text.element: [ 'GoodsmovementTypeName' ]
bwart as GoodsmovementType,
@UI.hidden: true
_GoodsMovementTypeT[1: Language=$parameters.P_Language].GoodsMovementTypeName as
GoodsmovementTypeName,
@UI.hidden: true
_F_Mmim_T156t.btext_l as GoodsMovementTypeLongName,
@UI.lineItem: [{position:50}]
@ObjectModel.text.element: [ 'PlantName' ]
@EndUserText.label: 'Plant'
F_Mmim_Matdoc_Item_H2.werks as Plant,
@UI.hidden: true
_Plant.PlantName as PlantName,
@EndUserText.label: 'Batch'
charg as Batch,
@UI.lineItem: [{position:60}]
@ObjectModel.text.element: [ 'CostCenterName' ]
kostl as CostCenter,
@UI.hidden: true
_CostCenter[1:ValidityEndDate >= $session.system_date and
ValidityStartDate <= $session.system_date]._Text[1:Language = $parameters.P_Language].CostCenterName,
// _StorLocAuth.xblgo as xblgo,
// _StorLocAuth_Tr.xblgo as xblgo_tr,
@UI.hidden: true
_StorLocAuth.xblgo as IsStorLocAuthznCheckActive,
@UI.hidden: true
_StorLocAuth_Tr.xblgo as IsIssgOrRcvgStorLocAuthChkActv,
// Associations
_F_Mmm_Docflow
}
//where record_type = 'MDOC' and xauto = ''
============================================================================
@AbapCatalog.sqlViewName: 'FMMIMMATDITEMH2'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Matdoc Items'
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass:#MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
key mblnr,
key mjahr,
key zeile,
cancelled,
matnr,
bwart,
sobkz,
kzbew,
kzzug,
kzvbr,
shkzg,
case when umwrk_target <> '' and shkzg = 'S'
then umwrk_target
else werks_source
end as werks,
case when umwrk_target <> '' and shkzg = 'S'
then umlgo_target
else lgort_source
end as lgort,
case when umwrk_target <> '' and shkzg = 'S'
then lbbsa_target
else lbbsa_source
end as lbbsa_sid,
case when umwrk_target <> '' and shkzg = 'S'
then werks_source
else umwrk_target
end as umwrk,
case when umwrk_target <> '' and shkzg = 'S'
then lgort_source
else umlgo_target
end as umlgo,
case when umwrk_target <> '' and shkzg = 'S'
then lbbsa_source
else lbbsa_target
end as lbbsa_cid,
// werks,
charg,
// lgort,
lifnr,
kdauf,
kdpos,
kunnr,
// lbbsa_sid,
aufnr,
// Item data - Additional
work_item_id,
pernr,
_F_Mmim_T156t
}
==============================================
@AbapCatalog.sqlViewName: 'FMMIMATDOCITEM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass:#MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
//@DataAging.noAgingRestriction:true
@EndUserText.label: 'Matdoc Items'
@UI.identification: [{position:10}]
key mblnr as MaterialDocument,
@EndUserText.label: 'Material Document Year'
@UI.identification: [{position:20}]
key mjahr as MaterialDocumentYear,
@ObjectModel.text.element: [ 'CostCenterName' ]
kostl as CostCenter,
@UI.hidden: true
_CostCenter[1:ValidityEndDate >= $session.system_date and
ValidityStartDate <= $session.system_date]._Text[1:Language = $parameters.P_Language].CostCenterName,
@UI.hidden: true
kokrs as ControllingArea,
ebeln as PurchaseOrder,
vbeln_im as DeliveryDocument,
@UI.hidden: true
vbelp_im as DeliveryDocumentItem,
// stock transfers
@ObjectModel.text.element: [ 'IssuingOrReceivingPlantName' ]
@EndUserText.label: 'Receiving Plant'
umwrk as IssuingOrReceivingPlant,
@UI.hidden: true
_Ir_Plant.PlantName as IssuingOrReceivingPlantName,
@ObjectModel.text.element: [ 'IssuingOrReceivingStLocName' ]
@EndUserText.label: 'Receiving Storage Location'
umlgo as IssuingOrReceivingStorageLoc,
@UI.hidden: true
_Ir_StorageLocation.StorageLocationName as IssuingOrReceivingStLocName,
@ObjectModel.text.element: [ 'IssuingOrReceivStockTypeName' ]
@EndUserText.label: 'Receiving Stock Type'
lbbsa_cid as IssuingOrReceivingStockType,
@UI.hidden: true
_InventoryIrStockType._Text[1: Language=$parameters.P_Language].InventoryStockTypeName as
IssuingOrReceivStockTypeName,
// _StorLocAuth.xblgo as xblgo,
// _StorLocAuth_Tr.xblgo as xblgo_tr,
@UI.hidden: true
_StorLocAuth.xblgo as IsStorLocAuthznCheckActive,
@UI.hidden: true
_StorLocAuth_Tr.xblgo as IsIssgOrRcvgStorLocAuthChkActv,
// Associations
_F_Mmm_Docflow
}
//where record_type = 'MDOC' and xauto = ''