I_SlsPrcgKeyCombinationField
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)
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA