@AbapCatalog.sqlViewName: 'PAVCSALESDOC'
@AbapCatalog.compiler.compareFilter: true@AccessControl.authorizationCheck: #NOT_REQUIRED@VDM.viewType: #BASIC@VDM.private: true@ClientHandling.algorithm: #SESSION_VARIABLEdefineview P_VarConfignSalesDocument
asselectfrom vbak as SalesDocument
{
key SalesDocument.vbeln as SalesDocument,
//cast( SalesDocument.auart as auart_unv preserving type ) as SalesDocumentType, //Casting is done for getting rid of the conversion exit
SalesDocument.auart as SalesDocumentType,
SalesDocument.spart as OrganizationDivision,
SalesDocument.vkorg as SalesOrganization,
SalesDocument.vtweg as DistributionChannel,
SalesDocument.vbtyp as SDDocumentCategory,
SalesDocument.last_changed_by_user as LastChangedByUser
}