SBN_DRF_PI_DETAILS
Get PI details
SBN_DRF_PI_DETAILS is a CDS View that provides data about "Get PI details" in SAP S/4HANA. It reads from 5 data sources (mara, packpo, packkp, packkp, makt) and exposes 27 fields.
Data Sources (5)
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SBN_PI_DETAIL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| EndUserText.label | Get PI details | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| id | packkp | packnr | ||
| packitem | packpo | packitem | ||
| packnr | packkp | packnr | ||
| hdcount | packkp | hdcount | ||
| pobjid | packkp | pobjid | ||
| chtim | packkp | chtim | ||
| paitemtype | packpo | paitemtype | ||
| matnr | packpo | matnr | ||
| maktx | makt | maktx | ||
| trgqty | packpo | trgqty | ||
| minqty | packpo | minqty | ||
| rndqty | packpo | rndqty | ||
| unitqty | packpo | unitqty | ||
| matmixawd | packpo | matmixawd | ||
| indnohu | packpo | indnohu | ||
| is_aux | ||||
| vhart | mara | vhart | ||
| laeng | mara | laeng | ||
| breit | mara | breit | ||
| hoehe | mara | hoehe | ||
| volum | mara | volum | ||
| ntgew | mara | ntgew | ||
| brgew | mara | brgew | ||
| meabm | mara | meabm | ||
| voleh | mara | voleh | ||
| gewei | mara | gewei | ||
| subpacknr | packpo | subpacknr |
@AbapCatalog.sqlViewName: 'SBN_PI_DETAIL'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory:#L
@ObjectModel.usageType.dataClass:#MASTER
@EndUserText.label: 'Get PI details'
define view SBN_DRF_PI_DETAILS as select from packkp as p
inner join packpo as o
on p.packnr = o.packnr
left outer join mara as m
on o.matnr = m.matnr
left outer join makt as t
on o.matnr = t.matnr
and t.spras = $session.system_language
//left outer join tvty as y
//on m.vhart = y.traty
left outer join packkp as sp
on o.subpacknr = sp.packnr
{
p.packnr as id,
o.packitem,
p.packnr as packnr,
p.hdcount as hdcount,
p.pobjid,
case p.chdat
when '00000000' then p.crdat
else p.chdat
end as chdat,
p.chtim,
o.paitemtype,
case o.paitemtype
when 'I' then
case o.matnr
when '' then 'I'
else 'M'
end
when 'R' then 'R'
when 'P' then 'P'
when 'S' then ''
when 'T' then 'T'
else ''
end as packdetail,
o.matnr,
t.maktx,
sp.pobjid as sub_packinstrid,
o.trgqty,
o.minqty,
o.rndqty,
o.unitqty,
o.matmixawd,
o.indnohu,
case p.inddel
when 'X' then 'X'
else o.inddel
end as inddel,
'' as is_aux,
m.vhart,
m.laeng,
m.breit,
m.hoehe,
m.volum,
m.ntgew,
m.brgew,
m.meabm,
m.voleh,
m.gewei,
o.subpacknr
} where o.inddel = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MAKT",
"MARA",
"PACKKP",
"PACKPO"
],
"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