Vous êtes sur la page 1sur 14

@AbapCatalog.

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'

define view F_Mmim_T156t as select from t156t F_Mmim_T156t


{
key bwart,
key sobkz,
key kzbew,
key kzzug,
key kzvbr,
key spras,
btext,
btext_l

...................................................................
@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

association [1..1] to F_Mmim_T156t as _F_Mmim_T156t on $projection.bwart = _F_Mmim_T156t.bwart


and $projection.sobkz = _F_Mmim_T156t.sobkz
and $projection.kzbew = _F_Mmim_T156t.kzbew
and $projection.kzzug = _F_Mmim_T156t.kzzug
and $projection.kzvbr = _F_Mmim_T156t.kzvbr
and _F_Mmim_T156t.spras = $session.system_language

key mblnr,
key mjahr,
key zeile,

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


case when lgort_sid <> '' then lgort_sid
else lgort
end as lgort_source,
case when lifnr_sid <> '' then lifnr_sid
when lifnr <> '' then lifnr
when emlif <> '' then emlif
else ''
end as lifnr,
case when mat_kdauf <> '' then mat_kdauf
else kdauf
end as kdauf,
case when mat_kdpos <> '000000' then mat_kdpos
else kdpos
end as kdpos,
case when kunnr_sid <> '' then kunnr_sid
when kunnr <> '' then kunnr
else ''
end as kunnr,

cast (werks as werks_d) as werks_source,


cast (lbbsa_sid as nsdm_lbbsa) as lbbsa_source,
cast (umwrk as werks_d) as umwrk_target,
cast (umlgo as lgort_d) as umlgo_target,
cast (lbbsa_cid as nsdm_lbbsa) as lbbsa_target,

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,

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


vbelp_im,
// stock transfers
// umwrk,
// umlgo,
// lbbsa_cid,
shkzg,
erfme,
erfmg,

_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

define view F_Mmim_Matdoc_Item_H2 F_Mmim_Matdoc_Item_H2


as
select from F_Mmim_Matdoc_Item_H

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'

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


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,
sgtxt,
// Item data - references
knttp_gr,
sakto,
fkber,
prctr,
kostl,
kokrs,
ebeln,
vbeln_im,
vbelp_im,
// stock transfers
// umwrk,
// umlgo,
// lbbsa_cid,
erfme,
erfmg,

_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'

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


F_Mmim_Matdoc_Item
define view F_Mmim_Matdoc_Item
with parameters
@Consumption.hidden: true
@Environment.systemField: #SYSTEM_LANGUAGE
P_Language : sylangu
as select from F_Mmim_Matdoc_Item_H2 //matdoc

association [0..1] to F_Mmim_T001l_Auth as _StorLocAuth on $projection.Plant = _StorLocAuth.werks


and $projection.StorageLocation = _StorLocAuth.lgort
and _StorLocAuth.xblgo = 'X'

association [0..1] to F_Mmim_T001l_Auth as _StorLocAuth_Tr on $projection.IssuingOrReceivingPlant =


_StorLocAuth_Tr.werks
and $projection.IssuingOrReceivingStorageLoc = _StorLocAuth_Tr.lgort
and _StorLocAuth_Tr.xblgo = 'X'

// left outer to one join F_Mmim_T001l_Auth as _StorLocAuth on F_Mmim_Matdoc_Item_H2.werks =


_StorLocAuth.werks
// and F_Mmim_Matdoc_Item_H2.lgort = _StorLocAuth.lgort
// and _StorLocAuth.xblgo = 'X'
// left outer to one join F_Mmim_T001l_Auth as _StorLocAuth_Tr on F_Mmim_Matdoc_Item_H2.umwrk =
_StorLocAuth_Tr.werks
// and F_Mmim_Matdoc_Item_H2.umlgo = _StorLocAuth_Tr.lgort
// and _StorLocAuth_Tr.xblgo = 'X'

association [1..1] to I_Material as _Material on $projection.Material = _Material.Material


//association [1..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode =
_CompanyCode.CompanyCode
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [0..1] to I_Plant as _Ir_Plant on $projection.IssuingOrReceivingPlant =
_Ir_Plant.Plant
association [0..1] to I_StorageLocation as _Ir_StorageLocation on $projection.IssuingOrReceivingPlant
= _Ir_StorageLocation.Plant
and $projection.IssuingOrReceivingStorageLoc =
_Ir_StorageLocation.StorageLocation
association [0..1] to I_StorageLocation as _StorageLocation on $projection.Plant = _StorageLocation.Plant
and $projection.StorageLocation = _StorageLocation.StorageLocation
association [0..1] to I_GoodsMovementTypeT as _GoodsMovementTypeT on $projection.GoodsmovementType =
_GoodsMovementTypeT.GoodsMovementType
association [1..1] to I_InventoryStockType as _InventoryStockType on $projection.InventoryStockType =
_InventoryStockType.InventoryStockType
association [1..1] to I_InventoryStockType as _InventoryIrStockType on
$projection.IssuingOrReceivingStockType = _InventoryIrStockType.InventoryStockType

association [0..1] to F3_Mmim_Supplier_Vh as _Supplier on $projection.Supplier = _Supplier.Supplier


association [1..1] to F3_Mmim_Customer_Vh as _Customer on $projection.Customer = _Customer.Customer

association [0..1] to I_FunctionalAreaText as _FunctionalAreaText on $projection.FunctionalArea =


_FunctionalAreaText.FunctionalArea
association [0..1] to I_AcctAssignmentCategoryText as _AcctAssignmentCategoryText on
$projection.AcctAssignmentCategory = _AcctAssignmentCategoryText.AccountAssignmentCategory

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


association [0..1] to I_ProfitCenter as _ProfitCenter on $projection.ControllingArea =
_ProfitCenter.ControllingArea and
$projection.ProfitCenter = _ProfitCenter.ProfitCenter
association [0..1] to I_CostCenter as _CostCenter on $projection.ControllingArea =
_CostCenter.ControllingArea and
$projection.CostCenter = _CostCenter.CostCenter

association [0..*] to F_Mmm_Docflow as _F_Mmm_Docflow on $projection.MaterialDocument =


_F_Mmm_Docflow.MaterialDocument
and $projection.MaterialDocumentYear =
_F_Mmm_Docflow.MaterialDocumentYear
and $projection.MaterialDocumentItem =
_F_Mmm_Docflow.MaterialDocumentItem

@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}]

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


@ObjectModel.text.element: [ 'StorageLocationName' ]
@EndUserText.label: 'Storage Location'
F_Mmim_Matdoc_Item_H2.lgort as StorageLocation,
@UI.hidden: true
_StorageLocation.StorageLocationName as StorageLocationName,
@ObjectModel.text.element: [ 'SupplierName' ]
lifnr as Supplier,
@UI.hidden: true
_Supplier.SupplierName,
kdauf as SalesOrder,
kdpos as SalesOrderItem,
@ObjectModel.text.element: [ 'CustomerName' ]
kunnr as Customer,
@UI.hidden: true
_Customer.CustomerName,
@ObjectModel.text.element: [ 'InventoryStockTypeName' ]
@EndUserText.label: 'Stock Type'
lbbsa_sid as InventoryStockType,
@UI.hidden: true
_InventoryStockType._Text[1: Language=$parameters.P_Language].InventoryStockTypeName,
aufnr as OrderID,

// Item data - Additional


@EndUserText.label: 'Work Item'
work_item_id as WorkItem,
pernr as PersonnelNumber,
@EndUserText.label: 'Document Item Text'
sgtxt as DocumentItemText,
// Header data
// bldat as DocumentDate,
// budat as PostingDate,
// usnam as CreatedByUser,

// Item data - references


@EndUserText.label: 'Category'
@ObjectModel.text.element: [ 'AcctAssignmentCategoryName' ]
knttp_gr as AcctAssignmentCategory,
@UI.hidden: true
_AcctAssignmentCategoryText[1:Language = $parameters.P_Language].AcctAssignmentCategoryName,
sakto as GLAccount,
@ObjectModel.text.element: [ 'FunctionalAreaName' ]
fkber as FunctionalArea,
@UI.hidden: true
_FunctionalAreaText[1:Language = $parameters.P_Language].FunctionalAreaName,
@ObjectModel.text.element: [ 'ProfitCenterName' ]
prctr as ProfitCenter,
@UI.hidden: true
_ProfitCenter[1:ValidityEndDate >= $session.system_date and
ValidityStartDate <= $session.system_date]._Text[1:Language = $parameters.P_Language].ProfitCenterName,

@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,

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


@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,
@EndUserText.label: 'Debit/Credit Indicator'
shkzg as DebitCreditCode,
// @UI.lineItem: [{position:90}]
@Semantics.unitOfMeasure: true
erfme as EntryUnit,
@EndUserText.label: 'Quantity'
@UI.lineItem: [{position:40}]
erfmg as QuantityInEntryUnit,
// meins as MaterialBaseUnit

// _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

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


define view F_Mmim_Matdoc_Item_H2
as
select from F_Mmim_Matdoc_Item_H

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,

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


sgtxt,
// Item data - references
knttp_gr,
sakto,
fkber,
prctr,
kostl,
kokrs,
ebeln,
vbeln_im,
vbelp_im,
// stock transfers
// umwrk,
// umlgo,
// lbbsa_cid,
erfme,
erfmg,

_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'

define view F_Mmim_Matdoc_Item


with parameters
@Consumption.hidden: true
@Environment.systemField: #SYSTEM_LANGUAGE
P_Language : sylangu
as select from F_Mmim_Matdoc_Item_H2 //matdoc

association [0..1] to F_Mmim_T001l_Auth as _StorLocAuth on $projection.Plant = _StorLocAuth.werks


and $projection.StorageLocation = _StorLocAuth.lgort
and _StorLocAuth.xblgo = 'X'

association [0..1] to F_Mmim_T001l_Auth as _StorLocAuth_Tr on $projection.IssuingOrReceivingPlant =


_StorLocAuth_Tr.werks
and $projection.IssuingOrReceivingStorageLoc = _StorLocAuth_Tr.lgort
and _StorLocAuth_Tr.xblgo = 'X'

// left outer to one join F_Mmim_T001l_Auth as _StorLocAuth on F_Mmim_Matdoc_Item_H2.werks =


_StorLocAuth.werks
// and F_Mmim_Matdoc_Item_H2.lgort = _StorLocAuth.lgort
// and _StorLocAuth.xblgo = 'X'
// left outer to one join F_Mmim_T001l_Auth as _StorLocAuth_Tr on F_Mmim_Matdoc_Item_H2.umwrk =
_StorLocAuth_Tr.werks

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


// and F_Mmim_Matdoc_Item_H2.umlgo = _StorLocAuth_Tr.lgort
// and _StorLocAuth_Tr.xblgo = 'X'

association [1..1] to I_Material as _Material on $projection.Material = _Material.Material


//association [1..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode =
_CompanyCode.CompanyCode
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [0..1] to I_Plant as _Ir_Plant on $projection.IssuingOrReceivingPlant =
_Ir_Plant.Plant
association [0..1] to I_StorageLocation as _Ir_StorageLocation on $projection.IssuingOrReceivingPlant
= _Ir_StorageLocation.Plant
and $projection.IssuingOrReceivingStorageLoc =
_Ir_StorageLocation.StorageLocation
association [0..1] to I_StorageLocation as _StorageLocation on $projection.Plant = _StorageLocation.Plant
and $projection.StorageLocation = _StorageLocation.StorageLocation
association [0..1] to I_GoodsMovementTypeT as _GoodsMovementTypeT on $projection.GoodsmovementType =
_GoodsMovementTypeT.GoodsMovementType
association [1..1] to I_InventoryStockType as _InventoryStockType on $projection.InventoryStockType =
_InventoryStockType.InventoryStockType
association [1..1] to I_InventoryStockType as _InventoryIrStockType on
$projection.IssuingOrReceivingStockType = _InventoryIrStockType.InventoryStockType

association [0..1] to F3_Mmim_Supplier_Vh as _Supplier on $projection.Supplier = _Supplier.Supplier


association [1..1] to F3_Mmim_Customer_Vh as _Customer on $projection.Customer = _Customer.Customer

association [0..1] to I_FunctionalAreaText as _FunctionalAreaText on $projection.FunctionalArea =


_FunctionalAreaText.FunctionalArea
association [0..1] to I_AcctAssignmentCategoryText as _AcctAssignmentCategoryText on
$projection.AcctAssignmentCategory = _AcctAssignmentCategoryText.AccountAssignmentCategory

association [0..1] to I_ProfitCenter as _ProfitCenter on $projection.ControllingArea =


_ProfitCenter.ControllingArea and
$projection.ProfitCenter = _ProfitCenter.ProfitCenter
association [0..1] to I_CostCenter as _CostCenter on $projection.ControllingArea =
_CostCenter.ControllingArea and
$projection.CostCenter = _CostCenter.CostCenter

association [0..*] to F_Mmm_Docflow as _F_Mmm_Docflow on $projection.MaterialDocument =


_F_Mmm_Docflow.MaterialDocument
and $projection.MaterialDocumentYear =
_F_Mmm_Docflow.MaterialDocumentYear
and $projection.MaterialDocumentItem =
_F_Mmm_Docflow.MaterialDocumentItem

@UI.identification: [{position:10}]
key mblnr as MaterialDocument,
@EndUserText.label: 'Material Document Year'
@UI.identification: [{position:20}]
key mjahr as MaterialDocumentYear,

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


@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: [ 'StorageLocationName' ]
@EndUserText.label: 'Storage Location'
F_Mmim_Matdoc_Item_H2.lgort as StorageLocation,
@UI.hidden: true
_StorageLocation.StorageLocationName as StorageLocationName,
@ObjectModel.text.element: [ 'SupplierName' ]
lifnr as Supplier,
@UI.hidden: true
_Supplier.SupplierName,
kdauf as SalesOrder,
kdpos as SalesOrderItem,
@ObjectModel.text.element: [ 'CustomerName' ]
kunnr as Customer,
@UI.hidden: true
_Customer.CustomerName,
@ObjectModel.text.element: [ 'InventoryStockTypeName' ]
@EndUserText.label: 'Stock Type'
lbbsa_sid as InventoryStockType,
@UI.hidden: true
_InventoryStockType._Text[1: Language=$parameters.P_Language].InventoryStockTypeName,
aufnr as OrderID,

// Item data - Additional

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


@EndUserText.label: 'Work Item'
work_item_id as WorkItem,
pernr as PersonnelNumber,
@EndUserText.label: 'Document Item Text'
sgtxt as DocumentItemText,
// Header data
// bldat as DocumentDate,
// budat as PostingDate,
// usnam as CreatedByUser,

// Item data - references


@EndUserText.label: 'Category'
@ObjectModel.text.element: [ 'AcctAssignmentCategoryName' ]
knttp_gr as AcctAssignmentCategory,
@UI.hidden: true
_AcctAssignmentCategoryText[1:Language = $parameters.P_Language].AcctAssignmentCategoryName,
sakto as GLAccount,
@ObjectModel.text.element: [ 'FunctionalAreaName' ]
fkber as FunctionalArea,
@UI.hidden: true
_FunctionalAreaText[1:Language = $parameters.P_Language].FunctionalAreaName,
@ObjectModel.text.element: [ 'ProfitCenterName' ]
prctr as ProfitCenter,
@UI.hidden: true
_ProfitCenter[1:ValidityEndDate >= $session.system_date and
ValidityStartDate <= $session.system_date]._Text[1:Language = $parameters.P_Language].ProfitCenterName,

@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,

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]


@EndUserText.label: 'Debit/Credit Indicator'
shkzg as DebitCreditCode,
// @UI.lineItem: [{position:90}]
@Semantics.unitOfMeasure: true
erfme as EntryUnit,
@EndUserText.label: 'Quantity'
@UI.lineItem: [{position:40}]
erfmg as QuantityInEntryUnit,
// meins as MaterialBaseUnit

// _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 = ''

file:///C|/Users/saidi/Desktop/MBED/MATDOC_CDS.txt[5/9/2018 8:57:33 PM]

Vous aimerez peut-être aussi