P_VarConfignXPlantProdVariant

DDL: P_VARCONFIGNXPLANTPRODVARIANT SQL: PAVCXPLANTPVAR Type: view BASIC

P_VarConfignXPlantProdVariant is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (mara) and exposes 5 fields with key field ProductVariant.

Data Sources (1)

SourceAliasJoin Type
mara mara from

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PAVCXPLANTPVAR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #BASIC view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY ProductVariant mara matnr
Product satnr
CreatedByUser ernam
CreationDate ersda
ProductConfiguration cuobf
@AbapCatalog.sqlViewName: 'PAVCXPLANTPVAR'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED

@VDM.private: true
@VDM.viewType: #BASIC
define view P_VarConfignXPlantProdVariant as
  select from mara
{
    key mara.matnr            as ProductVariant,
    satnr                     as Product,
    ernam                     as CreatedByUser,
    ersda                     as CreationDate,
        
    case
      when laeda = '00000000' 
           or laeda is null
           then ersda
      else laeda
    end                       as LastChangeDate,
    
    case
      when laeda = '00000000' 
          or laeda is null
          then ernam
      else aenam
    end                       as LastChangedByUser,
    
    cuobf                     as ProductConfiguration   
} where 
  satnr is not null  and //Filter for Cross-Plant Product Variants

  cuobf != '000000000000000000' and 
  lvorm != 'X' //Deletion marker

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MARA"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/