@AbapCatalog.sqlViewName: 'PFIACSRVDOCITM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {
sizeCategory: #L,
serviceQuality: #C,
dataClass: #TRANSACTIONAL
}
//@EndUserText.label: 'Financials View of Service Document'
define view P_AcctgServiceDocumentItem
as select from I_AcctgServiceDocumentItem
association [1..*] to I_ProductText as _ProductText on $projection.OriginallyRequestedProduct = _ProductText.Product
{
key ServiceDocumentType,
key ServiceDocument,
key ServiceDocumentItem,
ControllingObject,
CompanyCode,
ControllingArea,
ProfitCenter,
FunctionalArea,
ResultAnalysisInternalID,
Currency,
cast(_ServiceDocument.ServiceDocumentDescription as fco_srvdoc_description) as ServiceDocumentDescription,
_ServiceDocumentItem.ServiceDocItemCategory as ServiceDocItemCategory,
ServiceDocumentItemDescription,
////cast(_ServiceDocumentItem.OriginallyRequestedProduct as productnumber) as OriginallyRequestedProduct,
_ServiceDocumentItem.OriginallyRequestedProduct as OriginallyRequestedProduct,
cast(_ServiceDocument.PostingDate as fco_srvdoc_date) as PostingDate,
_ServiceDocumentType[1: Language = $session.system_language].ServiceDocumentTypeName as ServiceDocumentTypeName,
_ServiceDocumentItem._ServiceDocItemCategory._ServiceDocItemCategoryText[1: Language = $session.system_language].ServiceDocItemCategoryName as ServiceDocItemCategoryName,
////_ProfitCenter[1: Language = $session.system_language].ProfitCenterName as ProfitCenterName,
_ServiceDocumentItem.SrvcOrderConfirmationRelevance as SrvcOrderConfirmationRelevance,
_ProductText
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCTGSERVICEDOCUMENTITEM",
"I_SERVICEDOCITEMCATEGORY",
"I_SERVICEDOCITEMCATEGORYTEXT",
"I_SERVICEDOCUMENT",
"I_SERVICEDOCUMENTITEM",
"I_SERVICEDOCUMENTTYPETEXT"
],
"ASSOCIATED":
[
"I_PRODUCTTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/