PiqCds_StudentData

DDL: PIQCDS_STUDENTDATA SQL: PIQCDSSTUDDATA Type: view

Student Data CDS VIew

PiqCds_StudentData is a CDS View that provides data about "Student Data CDS VIew" in SAP S/4HANA. It reads from 24 data sources and exposes 64 fields. It has 4 associations to related views.

Data Sources (24)

SourceAliasJoin Type
dd07t domtable inner
hrp1000 h1000 left_outer
hrp1001 h1001 left_outer
hrp1701 h1701 left_outer
hrp1702 h1702 left_outer
hrp1705 h1705 left_outer
hrp1706 h1706 left_outer
hrp1711 h1711 left_outer
hrp1000 orgname left_outer
hrp1001 storg left_outer
t002t t002t left_outer
t005f t005f left_outer
t005t t005t1 left_outer
t005t t005t2 left_outer
t005t t005t3 left_outer
t005t t005t4 left_outer
t005t t005t5 left_outer
t005t t005t6 left_outer
t005u t005u1 left_outer
t005u t005u2 left_outer
t500l t500l left_outer
t502t t502t left_outer
t505v t505v left_outer
t522t t522t left_outer

Parameters (2)

NameTypeDefault
p_lang abap.lang
p_date abap.dats

Associations (4)

CardinalityTargetAliasCondition
[0..*] PiqCdsStudentOrigin _StudentOrigin _StudentOrigin.StudentOrigin = h1711.origin
[0..*] PiqCdsStudentGroup _StudentGroup _StudentGroup.StudentGroup = h1705.stgrp
[0..*] PiqCdsStudentData _StudentData _StudentData.StudentData = h1701.confid
[0..*] PiqCdsStudentFeeCategory _StudentFeeCategory _StudentFeeCategory.StudentFeeCategory = h1706.stfeecat

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PIQCDSSTUDDATA view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Student Data CDS VIew view
ClientDependent true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #X view

Fields (64)

KeyFieldSource TableSource FieldDescription
StudentObjectId hrp1702 objid
StudentNumber studentbp student12
StudentAdditionalIdNumber hrp1705 matrikel
StudentLastName hrp1702 nachn
StudentFirstname hrp1702 vorna
StudentMiddleName hrp1702 midnm
StudentInitials hrp1702 inits
StudentBirthName hrp1702 birthname
StudentTitle hrp1702 titel
StudentNamePrefix hrp1702 vorsw
StudentOtherTitle hrp1702 namzu
StudentKnownAs hrp1702 rufnm
StudentDateOfBirth hrp1702 gbdat
StudentCountryOfBirth hrp1702 gblnd
StudentCountryOfBirthName t005t landx
StudentRegionOfBirth hrp1702 gbdep
StudentRegionOfBirthName t005u bezei
StudentBirthPlaceName hrp1702 gbort
StudentNationalityAtBirth hrp1702 gbnat
StudentNationalityAtBirthName t005t natio
StudentNationality hrp1702 natio
StudentNationalityName t005t natio
StudentSecondNationality hrp1702 nati2
StudentSecondNationalityName t005t natio
StudentThirdNationality hrp1702 nati3
StudentThirdNationalityName t005t natio
StudentLanguageOfCommunication hrp1702 langu
StudentLanguageOfCommName t002t sptxt
StudentFormOfAddressKey hrp1702 anred
StudentFormOfAddressKeyName t522t anrlt
StudentGenderKey hrp1702 gesch
StudentGenderKeyName dd07t ddtext
StudentMaritalStatus hrp1702 famst
StudentMaritalStatusName t502t ftext
StudentIdentificationNumber hrp1702 prdni
StudentCampus hrp1001 sobid
StudentCampusShortName hrp1000 short
StudentCampusName hrp1000 stext
StudentAssignedOrg hrp1001 sobid
StudentAssignedOrgShortName hrp1000 short
StudentAssignedOrgName hrp1000 stext
StudentDateOfDeath hrp1702 deathdate
StudentRecordedDateOfDeath hrp1702 dregdate
StudentResidentStatus hrp1711 resid_status
StudentResidentStatusName t505v ltext
StudentResidentCountry hrp1711 resid_country
StudentResidentCountryName t005t landx
StudentResidentState hrp1711 resid_regio
StudentResidentStateName t005u bezei
StudentResidentCounty hrp1711 resid_counc
StudentResidentCountyName t005f bezei
StudentPassportNumber hrp1711 passn
StudentOrigin hrp1711 origin
StudentOriginName
StudentPassportIssueDate hrp1711 pass_issuedate
StudentPassportPlaceOfIssue hrp1711 pass_issueplace
StudentPassportExpiryDate hrp1711 pass_expirydate
StudentGroup hrp1705 stgrp
StudentGroupName
StudentModuleBookingTimeWindow hrp1705 regwindow
StudentDataPrivacyLevel hrp1701 confid
StudentDataPrivacyLevelName
StudentFeeCategory hrp1706 stfeecat
StudentFeeCategoryName
@AbapCatalog.sqlViewName: 'PIQCDSSTUDDATA'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Student Data CDS VIew'
@ClientDependent: true
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #X

define view PiqCds_StudentData

with parameters p_lang:abap.lang, p_date:abap.dats

as select distinct from cmacbpst as studentbp

left outer join hrp1702 as h1702    on h1702.objid = studentbp.stobjid
                                        and h1702.begda <= $parameters.p_date and h1702.endda >= $parameters.p_date
left outer join hrp1706 as h1706    on h1706.plvar = h1702.plvar and h1706.otype = h1702.otype and h1706.objid = h1702.objid
                                        and h1706.begda <= $parameters.p_date and h1706.endda >= $parameters.p_date
left outer join hrp1711 as h1711    on h1711.plvar = h1702.plvar and h1711.otype = h1702.otype and h1711.objid = h1702.objid
                                        and h1711.begda <= $parameters.p_date and h1711.endda >= $parameters.p_date
left outer join hrp1705 as h1705    on h1705.plvar = h1702.plvar and h1705.otype = h1702.otype and h1705.objid = h1702.objid
                                        and h1705.begda <= $parameters.p_date and h1705.endda >= $parameters.p_date

left outer join hrp1001 as h1001    on h1001.plvar = h1702.plvar and h1001.otype = h1702.otype and h1001.objid = h1702.objid
                                        and h1001.subty = 'A502' and h1001.sclas = 'F'
                                        and h1001.begda <= $parameters.p_date and h1001.endda >= $parameters.p_date
left outer join hrp1000 as h1000    on h1000.objid = h1001.sobid    and h1000.begda <= $parameters.p_date and h1000.endda >= $parameters.p_date //campus name


left outer join hrp1001 as storg    on storg.plvar = h1702.plvar and storg.otype = h1702.otype and storg.objid = h1702.objid
                                        and storg.subty = 'A502' and storg.sclas = 'O'
                                        and storg.begda <= $parameters.p_date and storg.endda >= $parameters.p_date
left outer join hrp1000 as orgname    on orgname.objid = storg.sobid and orgname.begda <= $parameters.p_date and orgname.endda >= $parameters.p_date

left outer join hrp1701 as h1701    on h1701.plvar = h1702.plvar and h1701.otype = h1702.otype and h1701.objid = h1702.objid
                                        and h1701.begda <= $parameters.p_date and h1701.endda >= $parameters.p_date

left outer join t005t   as t005t1   on t005t1.land1 = h1702.gblnd and t005t1.spras = $parameters.p_lang
left outer join t005t   as t005t2   on t005t2.land1 = h1702.gbnat and t005t2.spras = $parameters.p_lang
left outer join t005t   as t005t3   on t005t3.land1 = h1702.natio and t005t3.spras = $parameters.p_lang
left outer join t005t   as t005t4   on t005t4.land1 = h1702.nati2 and t005t4.spras = $parameters.p_lang
left outer join t005t   as t005t5   on t005t5.land1 = h1702.nati3 and t005t5.spras = $parameters.p_lang
left outer join t005u   as t005u1   on t005u1.land1 = h1702.gbdep and t005u1.bland = h1711.resid_regio and t005u1.spras = $parameters.p_lang
left outer join t002t   as t002t    on t002t.sprsl = h1702.langu and t002t.spras = $parameters.p_lang
left outer join t522t   as t522t    on t522t.anred = h1702.anred and t522t.sprsl = $parameters.p_lang
inner join      dd07t   as domtable on domtable.domname = 'GESCH' and domtable.domvalue_l = h1702.gesch and domtable.ddlanguage = $parameters.p_lang
left outer join t502t   as t502t    on t502t.famst = h1702.famst and t502t.sprsl = $parameters.p_lang
left outer join t500l   as t500l    on t500l.intca = h1702.gblnd
left outer join t505v   as t505v    on t505v.resis = h1711.resid_status and t505v.sprsl = $parameters.p_lang and t505v.molga = t500l.molga
left outer join t005t   as t005t6   on t005t6.land1 = h1711.resid_country and t005t6.spras = $parameters.p_lang
left outer join t005u   as t005u2   on t005u2.bland = h1711.resid_regio and t005u2.land1 = h1702.gblnd and t005u2.spras = $parameters.p_lang
left outer join t005f   as t005f    on t005f.counc = h1711.resid_counc and t005f.land1 = h1702.gblnd and t005f.regio = h1711.resid_regio and t005f.spras = $parameters.p_lang

association [0..*] to PiqCdsStudentOrigin as _StudentOrigin on _StudentOrigin.StudentOrigin = h1711.origin
association [0..*] to PiqCdsStudentGroup as _StudentGroup on _StudentGroup.StudentGroup = h1705.stgrp
association [0..*] to PiqCdsStudentData as _StudentData on _StudentData.StudentData = h1701.confid
association [0..*] to PiqCdsStudentFeeCategory as _StudentFeeCategory on _StudentFeeCategory.StudentFeeCategory = h1706.stfeecat    {

    h1702.objid as StudentObjectId,
    studentbp.student12 as StudentNumber,
    h1705.matrikel as StudentAdditionalIdNumber,

    h1702.nachn as StudentLastName,
    h1702.vorna as StudentFirstname,
    h1702.midnm as StudentMiddleName,

    h1702.inits as StudentInitials,
    h1702.birthname as StudentBirthName,
    h1702.titel as StudentTitle,
    h1702.vorsw as StudentNamePrefix,
    h1702.namzu as StudentOtherTitle,
    h1702.rufnm as StudentKnownAs,

    h1702.gbdat as StudentDateOfBirth,
    h1702.gblnd as StudentCountryOfBirth,
    t005t1.landx as StudentCountryOfBirthName,
    h1702.gbdep as StudentRegionOfBirth,
    t005u1.bezei as StudentRegionOfBirthName,
    h1702.gbort as StudentBirthPlaceName,

    h1702.gbnat as StudentNationalityAtBirth,
    t005t2.natio as StudentNationalityAtBirthName,

    h1702.natio as StudentNationality,
    t005t3.natio as StudentNationalityName,

    h1702.nati2 as StudentSecondNationality,
    t005t4.natio as StudentSecondNationalityName,

    h1702.nati3 as StudentThirdNationality,
    t005t5.natio as StudentThirdNationalityName,

    h1702.langu as StudentLanguageOfCommunication,
    t002t.sptxt as StudentLanguageOfCommName,
    h1702.anred as StudentFormOfAddressKey,
    t522t.anrlt as StudentFormOfAddressKeyName,
    h1702.gesch as StudentGenderKey,
    domtable.ddtext as StudentGenderKeyName,
    h1702.famst as StudentMaritalStatus,
    t502t.ftext as StudentMaritalStatusName,
    h1702.prdni as StudentIdentificationNumber,

    h1001.sobid as StudentCampus,
    h1000.short as StudentCampusShortName,
    h1000.stext as StudentCampusName,

    storg.sobid as StudentAssignedOrg,
    orgname.short as StudentAssignedOrgShortName,
    orgname.stext as StudentAssignedOrgName,

    h1702.deathdate as StudentDateOfDeath,
    h1702.dregdate  as StudentRecordedDateOfDeath,

    h1711.resid_status  as StudentResidentStatus,
    t505v.ltext as StudentResidentStatusName,
    h1711.resid_country as StudentResidentCountry,
    t005t6.landx as StudentResidentCountryName,
    h1711.resid_regio   as StudentResidentState,
    t005u2.bezei as StudentResidentStateName,
    h1711.resid_counc   as StudentResidentCounty,
    t005f.bezei as StudentResidentCountyName,
    h1711.passn         as StudentPassportNumber,
    h1711.origin        as StudentOrigin,
    _StudentOrigin._StudentOriginText[ 1: Language = $parameters.p_lang ].StudentOriginText as StudentOriginName,
    h1711.pass_issuedate  as StudentPassportIssueDate,
    h1711.pass_issueplace as StudentPassportPlaceOfIssue,
    h1711.pass_expirydate as StudentPassportExpiryDate,

    h1705.stgrp as StudentGroup,
    _StudentGroup._StudentGroupText[ 1: Language = $parameters.p_lang ].StudentGroupText as StudentGroupName,
    h1705.regwindow as StudentModuleBookingTimeWindow,

    h1701.confid as StudentDataPrivacyLevel,
    _StudentData._StudentDataText[ 1: Language = $parameters.p_lang ].StudentDataText as StudentDataPrivacyLevelName,

    h1706.stfeecat as StudentFeeCategory,
    _StudentFeeCategory._FeeCategoryText[ 1: Language = $parameters.p_lang ].StudentFeeCategoryName as StudentFeeCategoryName
}  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"PIQCDSSTUDENTDATA",
"PIQCDSSTUDENTDATATEXT",
"PIQCDSSTUDENTFEECATEGORY",
"PIQCDSSTUDENTFEECATEGORYTEXT",
"PIQCDSSTUDENTGROUP",
"PIQCDSSTUDENTGROUPTEXT",
"PIQCDSSTUDENTORIGIN",
"PIQCDSSTUDENTORIGINTEXT",
"CMACBPST",
"DD07T",
"HRP1000",
"HRP1001",
"HRP1701",
"HRP1702",
"HRP1705",
"HRP1706",
"HRP1711",
"T002T",
"T005F",
"T005T",
"T005U",
"T500L",
"T502T",
"T505V",
"T522T"
],
"ASSOCIATED":
[
"PIQCDSSTUDENTDATA",
"PIQCDSSTUDENTFEECATEGORY",
"PIQCDSSTUDENTGROUP",
"PIQCDSSTUDENTORIGIN"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/