@AbapCatalog.sqlViewName: 'PSUPPPOTEXT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
//@AccessControl.authorizationCheck: #CHECK
//@EndUserText.label: 'Supplier Purchasing Org Long Text View'
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm:#SESSION_VARIABLE
define view P_SupplierPurchasingOrgText as select from R_TextObjectEmptyText
association [1..1] to I_Supplier_to_BusinessPartner as _SupplierToBusinessPartner
on $projection.Supplier = _SupplierToBusinessPartner.Supplier {
//R_TextObjectEmptyText
key TextObjectCategory,
key TextObjectType as LongTextID,
key TextObjectKey,
key Language,
PlainLongText as LongText,
cast(substring(TextObjectKey,1,10) as lifnr) as Supplier,
cast(substring(TextObjectKey,11,4) as ekorg) as PurchasingOrganization,
_SupplierToBusinessPartner
}
where TextObjectCategory = 'LFM1'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"R_TEXTOBJECTEMPTYTEXT"
],
"ASSOCIATED":
[
"I_SUPPLIER_TO_BUSINESSPARTNER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/