I_IntrastatSCForKeyDate
Intrastate service code for key date
I_IntrastatSCForKeyDate is a Composite CDS View that provides data about "Intrastate service code for key date" in SAP S/4HANA. It reads from 2 data sources (I_TrdClassfctnNmbrSchmCntntAct, I_IntrastatServiceCode) and exposes 11 fields with key fields TrdClassfctnNmbrSchm, IntrastatServiceCode.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_TrdClassfctnNmbrSchmCntntAct | _TrdClassfctnNmbrSchmCntntAct | inner |
| I_IntrastatServiceCode | IntrastatServiceCode | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sll_validon |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Intrastate service code for key date | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | IISVCOFORKDATE | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | IntrastatServiceCode | view | |
| ObjectModel.usageType.sizeCategory | L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TrdClassfctnNmbrSchm | I_TrdClassfctnNmbrSchmCntntAct | TrdClassfctnNmbrSchm | |
| KEY | IntrastatServiceCode | IntrastatServiceCode | ||
| TrdClassfctnNmbrSchmCntnt | I_IntrastatServiceCode | TrdClassfctnNmbrSchmCntnt | ||
| ValidityStartDate | I_IntrastatServiceCode | ValidityStartDate | ||
| ValidityEndDate | I_IntrastatServiceCode | ValidityEndDate | ||
| TrdClassfctnNmbrForOfclDesc | TrdClassfctnNmbrForOfclDesc | |||
| TrdClassfctnNmbrForCnctntdDesc | TrdClassfctnNmbrForCnctntdDesc | |||
| _OfficialDesc | _OfficialDesc | |||
| _CnctntdDesc | _CnctntdDesc | |||
| _TrdClassfctnNmbrSchmCntnt | _TrdClassfctnNmbrSchmCntnt | |||
| _TrdClassfctnNmbrSchm | I_TrdClassfctnNmbrSchmCntntAct | _TrdClassfctnNmbrSchm |
@EndUserText.label: 'Intrastate service code for key date'
@VDM.viewType: #COMPOSITE
@AbapCatalog.sqlViewName: 'IISVCOFORKDATE'
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.privilegedAssociations: [ '_CreatedByUser' , '_LastChangedByUser' ]
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'IntrastatServiceCode'
@ObjectModel.usageType.sizeCategory: 'L'
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #MIXED
define view I_IntrastatSCForKeyDate
with parameters
P_KeyDate : sll_validon
as select from I_IntrastatServiceCode as IntrastatServiceCode
inner join I_TrdClassfctnNmbrSchmCntntAct as _TrdClassfctnNmbrSchmCntntAct on _TrdClassfctnNmbrSchmCntntAct.TrdClassfctnNmbrSchmCntnt = IntrastatServiceCode.TrdClassfctnNmbrSchmCntnt
and _TrdClassfctnNmbrSchmCntntAct.ValidityStartDate <= $parameters.P_KeyDate
and _TrdClassfctnNmbrSchmCntntAct.ValidityEndDate >= $parameters.P_KeyDate
{
key _TrdClassfctnNmbrSchmCntntAct.TrdClassfctnNmbrSchm,
key IntrastatServiceCode,
IntrastatServiceCode.TrdClassfctnNmbrSchmCntnt,
IntrastatServiceCode.ValidityStartDate,
IntrastatServiceCode.ValidityEndDate,
TrdClassfctnNmbrForOfclDesc,
TrdClassfctnNmbrForCnctntdDesc,
_OfficialDesc,
_CnctntdDesc,
_TrdClassfctnNmbrSchmCntnt,
_TrdClassfctnNmbrSchmCntntAct._TrdClassfctnNmbrSchm
}
where
IntrastatServiceCode.ValidityStartDate <= $parameters.P_KeyDate
and IntrastatServiceCode.ValidityEndDate >= $parameters.P_KeyDate
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