@AbapCatalog.sqlViewName : 'CCHGIMPACTPUO'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label : 'Purchase Order Details'
@VDM.viewType: #CONSUMPTION
@ObjectModel.usageType: { serviceQuality: #C, dataClass: #MIXED, sizeCategory: #L }
@ObjectModel.semanticKey: ['PurchaseOrder']
@UI.headerInfo:
{
title:{value:'PurchaseOrder'}
}
define view C_ChgImpactPurOrdDets
as select from I_PurchaseOrder as puo
association [0..1] to I_ChgImpactPOStatusText as _PoStatus on $projection.PurchaseOrder = _PoStatus.PurchaseOrder
association [0..*] to I_PurchaseOrderItem as _PurchaseOrderItem on $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder
association [1..*] to C_ChgImpactPurOrdItem as _PuoItem on $projection.PurchaseOrder = _PuoItem.PurchaseOrder
{
@UI.facet: [
{ type: #FIELDGROUP_REFERENCE, position: 10, targetQualifier: 'Organization'}
]
@UI.lineItem: [{position: 10, importance: #HIGH }]
key puo.PurchaseOrder,
@UI.lineItem: [{position: 20, importance: #HIGH }]
@UI.fieldGroup:[{position: 20,qualifier: 'Qualifier1',label:'Supplier', importance: #HIGH}]
puo.Supplier,
@UI.lineItem: [{position: 10, importance: #HIGH }]
@UI.fieldGroup:[{position: 10,qualifier: 'Qualifier2',label:'Purchase Order Type', importance: #HIGH}]
puo.PurchaseOrderType,
@UI.lineItem: [{position: 20, importance: #HIGH }]
@UI.fieldGroup:[{position: 20,qualifier: 'Qualifier2',label:'Purchase Order Date', importance: #HIGH}]
case dats_is_valid(puo.PurchaseOrderDate)
when 1 then cast (puo.PurchaseOrderDate as bedat preserving type)
else cast (cast ('00000000' as abap.dats ) as bedat preserving type )
end as PurchaseOrderDate,
@UI.hidden: true
_PoStatus.PurchasingDocumentStatus,
@UI.lineItem: [{position: 50, importance: #HIGH }]
@UI.fieldGroup:[{position: 50,qualifier: 'Qualifier1',label:'Purchase Order Status', importance: #HIGH}]
_PoStatus.PurchasingDocumentStatusName,
@UI.fieldGroup: [{position: 10, qualifier: 'Organization', groupLabel: 'Organization' }]
puo.PurchasingOrganization,
@UI.fieldGroup: [{position: 20, qualifier: 'Organization', groupLabel: 'Organization' }]
puo.PurchasingGroup,
@UI.fieldGroup: [{position: 30, qualifier: 'Organization', groupLabel: 'Organization' }]
puo.CompanyCode,
_Supplier,
_PurchasingOrganization,
_PurchasingGroup,
_PoStatus,
_PurchaseOrderItem,
_CompanyCode,
_PuoItem
}
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_CHGIMPACTPOSTATUSTEXT",
"I_PURCHASEORDER"
],
"ASSOCIATED":
[
"C_CHGIMPACTPURORDITEM",
"I_CHGIMPACTPOSTATUSTEXT",
"I_COMPANYCODE",
"I_PURCHASEORDERITEM",
"I_PURCHASINGGROUP",
"I_PURCHASINGORGANIZATION",
"I_SUPPLIER"
],
"BASE":
[
"I_PURCHASEORDER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
C_ChgImpactPurOrdDets view