PiqCds_ModuleBookingData
Module Data
PiqCds_ModuleBookingData is a CDS View that provides data about "Module Data" in SAP S/4HANA. It reads from 3 data sources (hrp1000, hrp1000, hrpad506) and exposes 41 fields. It has 8 associations to related views.
Data Sources (3)
Parameters (2)
| Name | Type | Default |
|---|---|---|
| p_idate | abap.dats | |
| p_lang | abap.lang |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | PiqCdsModuleBookingReason | _BookReason | _BookReason.BOOKREASON = OT.bookreason |
| [0..*] | PiqCdAcademicScale | _AcademicScale | _AcademicScale.AcademicScale = OT.alt_scaleid |
| [0..*] | PiqCdsSessionVariant | _SessionVariant | _SessionVariant.AcademicSessionVariant = OT.varid |
| [0..*] | PiqCdsAcademicYear | _AcademicYear | _AcademicYear.AcademicYear = OT.peryr |
| [0..*] | PiqCdsAcademicSession | _AcademicSession | _AcademicSession.AcademicSession = OT.perid |
| [0..*] | PiqCdsAltAssMethod | _AltAsessMet | _AltAsessMet.SMRATING = OT.smrating |
| [0..*] | PiqCdsBookingCancRsn | _Bookingcanc | _Bookingcanc.STORREASON = OT.storreason |
| [0..*] | PiqCdsBookingStatus | _Status | _Status.SMSTATUS = OT.smstatus |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PIQCDSMODBKGDATA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Module Data | view | |
| ClientDependent | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #X | view |
Fields (41)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ModuleBeginDate | OREL | begda | Valid From | |
| ModuleEndDate | OREL | endda | Valid To | |
| UserBooked | OREL | uname | User Name | |
| StudyModuleBkgWaitListPriority | OREL | priox | Priority | |
| StudyModuleObject | hrp1000 | objid | Work Center | |
| StudyModuleShortName | hrp1000 | mc_short | Object abbr. | |
| StudyModuleName | hrp1000 | stext | Text | |
| StudentObjectID | OREL | sobid | ID rel.object | |
| StudentNumber | hrp1000 | short | Shortened form | |
| StudentName | hrp1000 | stext | Text | |
| StudyModuleBkgStatus | hrpad506 | smstatus | Booking Status | |
| ModuleCancellationReason | hrpad506 | storreason | Canc. Reason | |
| StudyModuleBkgCanclnDate | hrpad506 | stordate | Canc.Date | |
| StudyModuleAttemptedCredits | hrpad506 | cpattemp | Attm. credits | |
| StudyModuleEarnedCredits | hrpad506 | cpgained | Earned Credits | |
| StudyModuleCreditsInUnit | hrpad506 | cpunit | Credit Type | |
| ScaleStandardValue | hrpad506 | norm_val | Standard Value | |
| StudyModuleBookingDate | hrpad506 | bookdate | Booking Date | |
| StudyModuleBookingTime | hrpad506 | booktime | Booking Time | |
| StudyModuleAltvAssmtMethod | hrpad506 | smrating | Assess. Method | |
| StudyModuleIsFreeofCharge | hrpad506 | chargefree | Free of Charge | |
| StudyModuleIsTransferred | hrpad506 | transferflag | Transferred | |
| AcademicEventPackage | hrpad506 | packnumber | Event Package | |
| SessionVariant | hrpad506 | varid | Var.Obj.ID. | |
| AcademicSession | hrpad506 | perid | Period ID | |
| AcademicYear | hrpad506 | peryr | Acad. Year | |
| AcademicScale | hrpad506 | alt_scaleid | Scale ID | |
| AlternateAcademicScale | hrpad506 | alt_scaleid | Scale ID | |
| ModuleBookingID | hrpad506 | id | WorklistID | |
| StudyModuleBookingReason | hrpad506 | bookreason | Booking Reason | |
| StudyModuleBookingExclusionTyp | hrpad506 | annulment | Exclusion | |
| StudyModuleChangeIsLocked | hrpad506 | lockflag | Status | |
| StudyModuleBkgIsConditional | hrpad506 | cobok | Cond. Bkg | |
| StudyModuleBookingReasonName | ||||
| AcademicYearName | ||||
| AcademicSessionName | ||||
| AcademicScaleName | ||||
| StudyModuleAltvAssmtMethodName | ||||
| StudyModuleBkgCanclnReasonText | ||||
| AcademicSessionVariantName | ||||
| ModuleBookingStatusName |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view PiqCds_ModuleBookingData.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PIQCDSMODBKGDATA
-- Parameters: p_idate : abap.dats, p_lang : abap.lang
CREATE VIEW PiqCds_ModuleBookingData AS
SELECT
OREL.begda AS ModuleBeginDate,
OREL.endda AS ModuleEndDate,
OREL.uname AS UserBooked,
OREL.priox AS StudyModuleBkgWaitListPriority,
OSM.objid AS StudyModuleObject,
OSM.mc_short AS StudyModuleShortName,
OSM.stext AS StudyModuleName,
OREL.sobid AS StudentObjectID,
OST.short AS StudentNumber,
OST.stext AS StudentName,
OT.smstatus AS StudyModuleBkgStatus,
OT.storreason AS ModuleCancellationReason,
OT.stordate AS StudyModuleBkgCanclnDate,
OT.cpattemp AS StudyModuleAttemptedCredits,
OT.cpgained AS StudyModuleEarnedCredits,
OT.cpunit AS StudyModuleCreditsInUnit,
OT.norm_val AS ScaleStandardValue,
OT.bookdate AS StudyModuleBookingDate,
OT.booktime AS StudyModuleBookingTime,
OT.smrating AS StudyModuleAltvAssmtMethod,
OT.chargefree AS StudyModuleIsFreeofCharge,
OT.transferflag AS StudyModuleIsTransferred,
OT.packnumber AS AcademicEventPackage,
OT.varid AS SessionVariant,
OT.perid AS AcademicSession,
OT.peryr AS AcademicYear,
OT.alt_scaleid AS AcademicScale,
OT.alt_scaleid AS AlternateAcademicScale,
OT.id AS ModuleBookingID,
OT.bookreason AS StudyModuleBookingReason,
OT.annulment AS StudyModuleBookingExclusionTyp,
OT.lockflag AS StudyModuleChangeIsLocked,
OT.cobok AS StudyModuleBkgIsConditional,
_BookReason._ModuleBookingReasonText[1:Language = $parameters.p_lang ].StudyModuleBookingReasonName AS StudyModuleBookingReasonName,
_AcademicYear._AcademicYearText[1:Language = $parameters.p_lang ].AcademicYearName AS AcademicYearName,
_AcademicSession._AcademicSessionText[1:Language = $parameters.p_lang ].AcademicSessionName AS AcademicSessionName,
_AcademicScale._AcademicScaleText[1:Language = $parameters.p_lang ].AcademicScaleName AS AcademicScaleName,
_AltAsessMet._Altasessmethodtxt[1:Language = $parameters.p_lang ].StudyModuleAltvAssmtMethodName AS StudyModuleAltvAssmtMethodName,
_Bookingcanc._CancRsnText[1:Language = $parameters.p_lang ].StudyModuleBkgCanclnReasonText AS StudyModuleBkgCanclnReasonText,
_SessionVariant._SessionVarientText[1:Language = $parameters.p_lang ].AcademicSessionVariantName AS AcademicSessionVariantName,
_Status._Bookingstatustxt[1:Language = $parameters.p_lang ].ModuleBookingStatusName AS ModuleBookingStatusName
LEFT OUTER JOIN hrp1000 AS OSM ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN hrp1000 AS OST ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN hrpad506 AS OT ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN PiqCdsModuleBookingReason AS _BookReason ON _BookReason.BOOKREASON = OT.bookreason -- association [0..*]
LEFT OUTER JOIN PiqCdAcademicScale AS _AcademicScale ON _AcademicScale.AcademicScale = OT.alt_scaleid -- association [0..*]
LEFT OUTER JOIN PiqCdsSessionVariant AS _SessionVariant ON _SessionVariant.AcademicSessionVariant = OT.varid -- association [0..*]
LEFT OUTER JOIN PiqCdsAcademicYear AS _AcademicYear ON _AcademicYear.AcademicYear = OT.peryr -- association [0..*]
LEFT OUTER JOIN PiqCdsAcademicSession AS _AcademicSession ON _AcademicSession.AcademicSession = OT.perid -- association [0..*]
LEFT OUTER JOIN PiqCdsAltAssMethod AS _AltAsessMet ON _AltAsessMet.SMRATING = OT.smrating -- association [0..*]
LEFT OUTER JOIN PiqCdsBookingCancRsn AS _Bookingcanc ON _Bookingcanc.STORREASON = OT.storreason -- association [0..*]
LEFT OUTER JOIN PiqCdsBookingStatus AS _Status ON _Status.SMSTATUS = OT.smstatus -- association [0..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA