I_SlsPrcgKeyCombinationField

DDL: I_SLSPRCGKEYCOMBINATIONFIELD SQL: ISLSPRCGKEYCFLD Type: view BASIC

Field from Condition Table for Pricing in Sales

I_SlsPrcgKeyCombinationField is a Basic CDS View that provides data about "Field from Condition Table for Pricing in Sales" in SAP S/4HANA. It reads from 7 data sources and exposes 8 fields with key fields ConditionType, ConditionTable, AccessNumberOfAccessSequence, NumberOfConditions.

Data Sources (7)

SourceAliasJoin Type
dd03nd cust_dd03nd left_outer
dd03nd st_dd03nd left_outer
t681 t681 inner
t682i t682i from
t682z t682z inner
t685 t685 inner
wlf_mp_fields wlf_mp_fields left_outer

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ISLSPRCGKEYCFLD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
EndUserText.label Field from Condition Table for Pricing in Sales view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ConditionType t685 kschl
KEY ConditionTable
KEY AccessNumberOfAccessSequence t682i kolnr
KEY NumberOfConditions t682z zaehk
DatabaseTableFieldName t682z zifna
PrcgCndnAccessDocumentField t682z qufna
PrcgCndnValueInitialIsAllowed t682z kzini
fieldname_rawendasConditionFieldName
@AbapCatalog.sqlViewName: 'ISLSPRCGKEYCFLD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #MANDATORY
@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.viewType: #BASIC

@ObjectModel:{
   usageType:{
     dataClass: #CUSTOMIZING,
     serviceQuality: #C,
     sizeCategory: #S
   }
}

@EndUserText.label: 'Field from Condition Table for Pricing in Sales'
define view I_SlsPrcgKeyCombinationField
  as select from    t682i
    inner join      t685                  on  t682i.kvewe = t685.kvewe
                                          and t682i.kappl = t685.kappl
                                          and t682i.kozgf = t685.kozgf
                                          and t682i.kvewe = 'A'
                                          and t682i.kappl = 'V'
                                          and t685.kozgf != ''
    inner join      t681                  on  t682i.kvewe   = t681.kvewe
                                          and t682i.kotabnr = t681.kotabnr
    inner join      t682z                 on  t682i.kvewe = t682z.kvewe
                                          and t682i.kappl = t682z.kappl
                                          and t682i.kozgf = t682z.kozgf
                                          and t682i.kolnr = t682z.kolnr
//                                          and t682z.zifna != 'KFRST'

                                          and t682z.zifna != 'KBSTAT'
  //Standard key fields mapping

    left outer join wlf_mp_fields         on  t682z.zifna           = wlf_mp_fields.int_fieldname
                                          and wlf_mp_fields.bor_obj = 'BUS30110'
    left outer join dd03nd as st_dd03nd   on  st_dd03nd.strucobjn         = 'C_SLSPRICINGCONDITIONRECORDTP'
                                          and st_dd03nd.nodename          = '.NODE1'
                                          and st_dd03nd.as4local          = 'A'
                                          and wlf_mp_fields.ext_fieldname = st_dd03nd.fieldname

  //Custom key fields mapping

    left outer join dd03nd as cust_dd03nd on  cust_dd03nd.strucobjn = 'C_SLSPRICINGCONDITIONRECORDTP'
                                          and cust_dd03nd.nodename  = '.NODE1'
                                          and cust_dd03nd.as4local  = 'A'
                                          and t682z.zifna           = cust_dd03nd.fieldname

{
  key t685.kschl                          as ConditionType,
  key cast(t682i.kotabnr as kotabnr_char) as ConditionTable,
  key t682i.kolnr                         as AccessNumberOfAccessSequence,
  key t682z.zaehk                         as NumberOfConditions,
      t682z.zifna                         as DatabaseTableFieldName,
      t682z.qufna                         as PrcgCndnAccessDocumentField,
      t682z.kzini                         as PrcgCndnValueInitialIsAllowed,
      // t682z.fstst                             as ProcessingType,

      case
      when st_dd03nd.fieldname_raw is null or st_dd03nd.fieldname_raw is initial then cust_dd03nd.fieldname_raw
      else st_dd03nd.fieldname_raw
       end                                as ConditionFieldName
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"DD03ND",
"T681",
"T682I",
"T682Z",
"T685",
"WLF_MP_FIELDS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/