I_Swcstrtdata
Get Details of Constraints
I_Swcstrtdata is a Basic CDS View that provides data about "Get Details of Constraints" in SAP S/4HANA. It reads from 3 data sources (/plmi/sw_cstrt, mara, mara) and exposes 20 fields with key field ProductStructureNodeUUID. Part of development package VDM_PLMB_ESD.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| /plmi/sw_cstrt | /plmi/sw_cstrt | from |
| mara | m1 | inner |
| mara | m2 | left_outer |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISWCSTRTDATA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Get Details of Constraints | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.modelCategory | #BUSINESS_OBJECT | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.writeActivePersistence | /PLMI/SW_CSTRT_D | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductStructureNodeUUID | db_key | ||
| EmbeddedSwSoftwareMaterial | sw_module | |||
| DocumentType | sw_version_type | |||
| DocNumber | sw_version_id | |||
| EmbeddedSwFromVersion | sw_version_min | |||
| EmbeddedSwToVersion | sw_version_max | |||
| EmbeddedSwConstraintRule | cstrt_rule | |||
| EmbeddedSwConstraintObjectType | cstrt_obj_type | |||
| EmbeddedSwHardwareMaterial | cstrt_obj_id | |||
| EmbeddedSwSoftwareMinVersion | cstrt_obj_val_min | |||
| EmbeddedSwSoftwareMaxVersion | cstrt_obj_val_max | |||
| EmbeddedSwHardwareMaterialDesc | cstrt_obj_descr | |||
| CreationDate | created_on | |||
| CreatedByUser | created_by | |||
| LastChangeDate | changed_on | |||
| LastChangedByUser | changed_by | |||
| EmbeddedSoftwareETag | etag | |||
| EmbeddedSoftwareTimeStamp | timestamp | |||
| AuthorizationGroup | mara | begru | ||
| MaterialAuthorizationGroup | mara | begru |
@AbapCatalog.sqlViewName: 'ISWCSTRTDATA'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Get Details of Constraints'
@VDM.viewType:#BASIC
@ClientHandling.algorithm: #SESSION_VARIABLE
---------------------------
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel: {
modelCategory: #BUSINESS_OBJECT,
compositionRoot: true,
semanticKey: [ 'EmbeddedSwSoftwareMaterial'],
transactionalProcessingEnabled: true,
writeActivePersistence: '/PLMI/SW_CSTRT_D',
createEnabled: true,
updateEnabled: true,
deleteEnabled: true
}
---------------------------
define view I_Swcstrtdata
as select from /plmi/sw_cstrt
inner join mara as m1 on m1.matnr = /plmi/sw_cstrt.sw_module
left outer join mara as m2 on m2.matnr = /plmi/sw_cstrt.cstrt_obj_id
{
key db_key as ProductStructureNodeUUID,
sw_module as EmbeddedSwSoftwareMaterial,
sw_version_type as DocumentType,
sw_version_id as DocNumber,
sw_version_min as EmbeddedSwFromVersion,
sw_version_max as EmbeddedSwToVersion,
cstrt_rule as EmbeddedSwConstraintRule,
cstrt_obj_type as EmbeddedSwConstraintObjectType,
cstrt_obj_id as EmbeddedSwHardwareMaterial,
cstrt_obj_val_min as EmbeddedSwSoftwareMinVersion,
cstrt_obj_val_max as EmbeddedSwSoftwareMaxVersion,
cstrt_obj_descr as EmbeddedSwHardwareMaterialDesc,
created_on as CreationDate,
created_by as CreatedByUser,
changed_on as LastChangeDate,
changed_by as LastChangedByUser,
etag as EmbeddedSoftwareETag,
timestamp as EmbeddedSoftwareTimeStamp,
m1.begru as AuthorizationGroup, // master material
m2.begru as MaterialAuthorizationGroup // item material(include hardward material and software material)
}
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