P_VARCONFIGNSALESDOCUMENT

CDS View

Simulation - Sales Document private view

P_VARCONFIGNSALESDOCUMENT is a CDS View in S/4HANA. Simulation - Sales Document private view. It contains 4 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_SimulationObjectSearch view left_outer CONSUMPTION Simulation - Simulation Objects Search

Fields (4)

KeyField CDS FieldsUsed in Views
DistributionChannel DistributionChannel 1
OrganizationDivision OrganizationDivision 1
SalesDocumentType SalesDocumentType 1
SalesOrganization SalesOrganization 1
@AbapCatalog.sqlViewName: 'PAVCSALESDOC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED

@VDM.viewType: #BASIC
@VDM.private: true

@ClientHandling.algorithm: #SESSION_VARIABLE

define view P_VarConfignSalesDocument
  as select from 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
}