P_VarConfignSalesDocument

DDL: P_VARCONFIGNSALESDOCUMENT SQL: PAVCSALESDOC Type: view BASIC

P_VarConfignSalesDocument is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (vbak) and exposes 7 fields with key field SalesDocument.

Data Sources (1)

SourceAliasJoin Type
vbak SalesDocument from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PAVCSALESDOC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument vbak vbeln
SalesDocumentType vbak auart
OrganizationDivision vbak spart
SalesOrganization vbak vkorg
DistributionChannel vbak vtweg
SDDocumentCategory vbak vbtyp
LastChangedByUser vbak last_changed_by_user
@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
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"VBAK"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/