view_ab_items_p
Item Related Data of Settlement Management Document
view_ab_items_p is a CDS View that provides data about "Item Related Data of Settlement Management Document" in SAP S/4HANA. It reads from 1 data source (wbrp) and exposes 39 fields with key fields wbeln, posnr. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| wbrp | wbrp | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | tmlfg | activity | $projection.lfgru = activity.lfgru |
| [0..*] | tmlfgt | activity_texts | $projection.lfgru = activity_texts.lfgru |
| [0..1] | t023 | mat_group | $projection.matkl = mat_group.matkl |
| [0..*] | t023t | mat_group_texts | $projection.matkl = mat_group_texts.matkl |
| [0..*] | dd07t | itemcat_texts | itemcat_texts.domname = 'WB2_WSHKZG_BUSVOL' and itemcat_texts.as4local = 'A' |
| [0..*] | dd07t | triggering_doc_category_texts | $projection.ftypv_v = triggering_doc_category_texts.domvalue_l and triggering_doc_category_texts.domname = 'WFTYP_V' and triggering_doc_category_texts.as4local = 'A' |
| [0..1] | view_lfa1_name_p | prior_vendor_name | $projection.kolif = prior_vendor_name.vendor_account |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDS_AB_ITEMS_P | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Item Related Data of Settlement Management Document | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | wbeln | wbeln | ||
| KEY | posnr | posnr | ||
| matnr | matnr | |||
| arktx | arktx | |||
| matkl | matkl | |||
| werks | werks | |||
| charg | charg | |||
| mwskz | mwskz | |||
| mwsk2 | mwsk2 | |||
| txjcd | txjcd | |||
| lfgru | lfgru | |||
| customer | customer | |||
| itemcat | itemcat | |||
| idnlf | idnlf | |||
| ltsnr | ltsnr | |||
| aktnr | aktnr | |||
| ekkol | ekkol | |||
| kolif | kolif | |||
| kostl | kostl | |||
| kostld | kostld | |||
| prctr | prctr | |||
| prctrd | prctrd | |||
| ftypv_v | ftypv_v | |||
| wbeln_v | wbeln_v | |||
| posnr_v | posnr_v | |||
| incov_p | incov_p | |||
| inco1_p | inco1_p | |||
| inco2_p | inco2_p | |||
| inco2_l_p | inco2_l_p | |||
| inco3_l_p | inco3_l_p | |||
| umrez | umrez | |||
| umren | umren | |||
| wfkme | wfkme | |||
| meins | meins | |||
| menge | menge | |||
| netwr | netwr | |||
| netwrd | netwrd | |||
| activity | activity | |||
| mat_group | mat_group |
@AbapCatalog.sqlViewName:'CDS_AB_ITEMS_P'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@EndUserText.label: 'Item Related Data of Settlement Management Document'
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.sizeCategory: #XXL
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
//can have associations to CDS-views with parameters:
define view view_ab_items_p
as
// all items of an agency business document:
select from wbrp
// Reason for activity and describing texts (also available on header level):
association [0..1] to tmlfg as activity on $projection.lfgru = activity.lfgru
association [0..*] to tmlfgt as activity_texts on $projection.lfgru = activity_texts.lfgru
// Material group and describing texts:
association [0..1] to t023 as mat_group on $projection.matkl = mat_group.matkl
association [0..*] to t023t as mat_group_texts on $projection.matkl = mat_group_texts.matkl
// the associations "VENDOR_SUBRANGE" and "VENDOR_SUBRANGE_TEXTS" are commented because the vendor is needed additionally.
// The vendor is stored on header level (field WBRK-LIFRE). Currently there is no possibility to transfer this vendor
// from outside into this view. Instead of, the view CDS_AB_HD_IT is provided to overcome this issue.
//// Vendor subrange and describing texts:
// association [0..*] to WYT1 as vendor_subrange on $projection.ltsnr = vendor_subrange.ltsnr
// association [0..*] to WYT1T as vendor_subrange_texts on $projection.ltsnr = vendor_subrange_texts.ltsnr
// Promotion and describing texts:
// association [0..1] to wakh as promotion on $projection.aktnr = promotion.aktnr
// association [0..*] to wakt as promotion_texts on $projection.aktnr = promotion_texts.aktnr
// join with text description table for domain fixed values for fields of table WBRP:
// domain WB2_WSHKZG_BUSVOL:
association [0..*] to dd07t as itemcat_texts on itemcat_texts.domname = 'WB2_WSHKZG_BUSVOL'
and itemcat_texts.as4local = 'A'
// domain WFTYP_V:
association [0..*] to dd07t as triggering_doc_category_texts on $projection.ftypv_v = triggering_doc_category_texts.domvalue_l
and triggering_doc_category_texts.domname = 'WFTYP_V'
and triggering_doc_category_texts.as4local = 'A'
// display name of prior vendor:
association [0..1] to view_lfa1_name_p as prior_vendor_name on $projection.kolif = prior_vendor_name.vendor_account
{
key wbeln ,
key posnr ,
matnr ,
arktx ,
matkl ,
werks ,
charg ,
mwskz ,
mwsk2 ,
txjcd ,
lfgru ,
customer ,
itemcat ,
idnlf ,
ltsnr ,
aktnr ,
ekkol ,
kolif ,
kostl ,
kostld ,
prctr ,
prctrd ,
ftypv_v ,
wbeln_v ,
posnr_v ,
incov_p ,
inco1_p ,
inco2_p ,
inco2_l_p ,
inco3_l_p ,
umrez ,
umren ,
wfkme ,
meins ,
menge ,
netwr ,
netwrd ,
//Assoziations:
activity ,
activity_texts ,
mat_group ,
mat_group_texts ,
// promotion ,
// promotion_texts ,
itemcat_texts ,
triggering_doc_category_texts ,
prior_vendor_name
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"WBRP"
],
"ASSOCIATED":
[
"VIEW_LFA1_NAME_P",
"DD07T",
"T023",
"T023T",
"TMLFG",
"TMLFGT"
],
"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