@AbapCatalog.sqlViewName : 'CINSPSTKPOSTING'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@EndUserText.label : 'Inspection Lot Stock Posting'
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType: {
dataClass: #MIXED,
sizeCategory: #XL, //expected number of rows < 10.000.000
serviceQuality: #C
}
define view C_InspLotStockPosting
as select from I_InspLotMatlDocItem as _InspLotMatlDocItem
inner join I_InspectionLot as InspLot on InspLot.InspectionLot = _InspLotMatlDocItem.InspectionLot
{
key _InspLotMatlDocItem.InspectionLot,
key _InspLotMatlDocItem.InspLotMatlDocItem,
InspLot.Plant,
InspLot.InspectionLotType,
InspLot.MatlQualityAuthorizationGroup,
@UI.hidden: true
InspLot.IsBusinessPurposeCompleted,
_InspLotMatlDocItem.InspLotMatlDocItemType,
_InspLotMatlDocItem.MaterialDocumentYear,
@UI.lineItem: [{position:30, type: #FOR_INTENT_BASED_NAVIGATION, semanticObjectAction: 'displayFactSheet'}]
//@UI.hidden: true
@Consumption.semanticObject : 'Material'
_InspLotMatlDocItem.MaterialDocument,
_InspLotMatlDocItem.MaterialDocumentItem,
@UI.lineItem: [{position:20,importance: #HIGH}]
_InspLotMatlDocItem.CreationDate,
@UI.lineItem: [{position:10,importance: #HIGH}]
@UI.textArrangement: #TEXT_LAST
@ObjectModel.text.element: [ 'GoodsMovementTypeName' ]
_InspLotMatlDocItem._GoodsMovementDocument.GoodsMovementType,
@Semantics.text: true
_InspLotMatlDocItem._GoodsMovementDocument._GoodsMovementType._Text[1:Language=$session.system_language].GoodsMovementTypeName,
_InspLotMatlDocItem._InspLotMatlDocItemType._Text[1:Language=$session.system_language].InspLotMatlDocItemTypeText,
@UI.lineItem: [{position:40}]
_InspLotMatlDocItem._GoodsMovementDocument.MatlStkChangeQtyInBaseUnit,
_InspLotMatlDocItem._GoodsMovementDocument._MaterialBaseUnit._Text[1:Language=$session.system_language].UnitOfMeasure_E,
//Follow the standard logic for the case when the vuale for the UnitOfMeasureNumberOfDecimals greater than 4
//e.g. UnitOfMeasureNumberOfDecimals = 99
case when _InspLotMatlDocItem._GoodsMovementDocument._MaterialBaseUnit.UnitOfMeasureNumberOfDecimals > 4
then 4
else _InspLotMatlDocItem._GoodsMovementDocument._MaterialBaseUnit.UnitOfMeasureNumberOfDecimals
end as InspLotMatlDocQtyUnitDecPlaces
}
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_GOODSMOVEMENTDOCUMENT",
"I_GOODSMOVEMENTTYPE",
"I_GOODSMOVEMENTTYPET",
"I_INSPECTIONLOT",
"I_INSPLOTMATLDOCITEM",
"I_INSPLOTMATLDOCITEMTYPE",
"I_INSPLOTMATLDOCITEMTYPETEXT",
"I_UNITOFMEASURE",
"I_UNITOFMEASURETEXT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
C_InspLotStockPosting view