P_UserOrganization
User Organization Data
P_UserOrganization is a Composite CDS View that provides data about "User Organization Data" in SAP S/4HANA. It reads from 1 data source (I_UserAddress) and exposes 58 fields with key field bname. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_UserAddress | I_UserAddress | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_AddressRemark | _Remark | $projection.addrnumber = _Remark.AddressID and $projection.persnumber = _Remark.AddressPersonID and _Remark.AddressRepresentationCode = ' ' and _Remark.Language = $session.system_language |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | User Organization Data | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.representativeKey | bname | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AbapCatalog.extensibility.extensible | false | view | |
| Metadata.allowExtensions | true | view |
Fields (58)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | bname | UserID | User Name | |
| class | UserGroup | User Group | ||
| persnumber | UserAddressPersonIdentifier | |||
| addrnumber | UserAddressIdentifier | |||
| idadtype | IdentityAddressType | |||
| UserCompanyIdentifierelseendascompany | ||||
| orgaddr_uuid | BusinessPartnerUUID | UUID | ||
| title | _Location | FormOfAddress | Title Key | |
| name1 | _Location | OrganizationName1 | Name | |
| name2 | _Location | OrganizationName2 | Name 2 | |
| name3 | _Location | OrganizationName3 | Name 3 | |
| name4 | _Location | OrganizationName4 | Name 4 | |
| name_co | _Organization | CareOfName | c/o | |
| city1 | _Organization | CityName | Name | |
| city2 | _Organization | DistrictName | District | |
| city_code | _Organization | CityNumber | City Code | |
| cityp_code | _Location | DistrictNumber | ||
| home_city | _Organization | VillageName | Different City | |
| cityh_code | _Location | Village | ||
| chckstatus | _Organization | RegionalStructureCheckStatus | Check Status | |
| regiogroup | _Organization | RegionalStructureGroup | Structure Group | |
| post_code1 | _Organization | PostalCode | Postal Code | |
| post_code2 | _Organization | POBoxPostalCode | PO Box Postal Code | |
| post_code3 | _Organization | CompanyPostalCode | Company Post Cd | |
| po_box | _Organization | POBox | PO Box | |
| dont_use_p | _Organization | POBoxAddrNonDeliverableReason | Undeliverable | |
| po_box_num | _Organization | POBoxIsWithoutNumber | PO Box w/o No. | |
| po_box_loc | _Organization | POBoxDeviatingCityName | PO Box City | |
| city_code2 | _Organization | POBoxDeviatingCityCode | City Code | |
| po_box_reg | _Organization | POBoxDeviatingRegion | PO Region | |
| po_box_cty | _Organization | POBoxDeviatingCountry | PO Box C/R | |
| transpzone | _Organization | TransportZone | Transport Zone | |
| street | _Organization | StreetName | Text | |
| dont_use_s | _Organization | StreetAddrNonDeliverableReason | Undeliverable | |
| streetcode | _Organization | Street | Street Code | |
| house_num1 | _Organization | HouseNumber | House Number | |
| house_num2 | _Organization | HouseNumberSupplementText | Supplement | |
| str_suppl1 | _Organization | StreetPrefixName1 | Street 2 | |
| str_suppl2 | _Organization | StreetPrefixName2 | Street 3 | |
| str_suppl3 | _Organization | StreetSuffixName1 | Street 4 | |
| location | _Organization | StreetSuffixName2 | Street 5 | |
| building | _Organization | Building | Building code | |
| floor | _Organization | Floor | Floor | |
| roomnumber | _Organization | RoomNumber | Room Number | |
| country | _Organization | Country | Venue: Ctry/Reg | |
| region | _Organization | Region | Venue Region | |
| sort1 | _Organization | AddressSearchTerm1 | Search Term 1 | |
| sort2 | _Organization | AddressSearchTerm2 | Search Term 2 | |
| time_zone | _Organization | AddressTimeZone | Time Zone | |
| taxjurcode | _Organization | TaxJurisdiction | Tax Jurisdiction | |
| langu | _Organization | CorrespondenceLanguage | Language | |
| po_box_lobby | _Organization | POBoxLobbyName | PO Box Lobby | |
| county | _Organization | SecondaryRegionName | County | |
| township | _Organization | TertiaryRegionName | Township | |
| _FormOfAddress | _Location | _FormOfAddress | ||
| _Country | _Organization | _Country | ||
| _CorrespondenceLanguage | _Organization | _CorrespondenceLanguage | ||
| _Remark | _Remark |
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 P_UserOrganization.
-- 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.
CREATE VIEW P_UserOrganization AS
SELECT
UserID AS bname,
UserGroup AS class,
UserAddressPersonIdentifier AS persnumber,
UserAddressIdentifier AS addrnumber,
IdentityAddressType AS idadtype,
case when IdentityAddressType = '00' then _Company.UserCompanyIdentifier when IdentityAddressType = '04' then _TemplateCompany.UserCompanyIdentifier else ' ' end as company AS UserCompanyIdentifierelseendascompany,
BusinessPartnerUUID AS orgaddr_uuid,
_Location.FormOfAddress AS title,
_Location.OrganizationName1 AS name1,
_Location.OrganizationName2 AS name2,
_Location.OrganizationName3 AS name3,
_Location.OrganizationName4 AS name4,
_Organization.CareOfName AS name_co,
_Organization.CityName AS city1,
_Organization.DistrictName AS city2,
_Organization.CityNumber AS city_code,
_Location.DistrictNumber AS cityp_code,
_Organization.VillageName AS home_city,
_Location.Village AS cityh_code,
_Organization.RegionalStructureCheckStatus AS chckstatus,
_Organization.RegionalStructureGroup AS regiogroup,
_Organization.PostalCode AS post_code1,
_Organization.POBoxPostalCode AS post_code2,
_Organization.CompanyPostalCode AS post_code3,
_Organization.POBox AS po_box,
_Organization.POBoxAddrNonDeliverableReason AS dont_use_p,
_Organization.POBoxIsWithoutNumber AS po_box_num,
_Organization.POBoxDeviatingCityName AS po_box_loc,
_Organization.POBoxDeviatingCityCode AS city_code2,
_Organization.POBoxDeviatingRegion AS po_box_reg,
_Organization.POBoxDeviatingCountry AS po_box_cty,
_Organization.TransportZone AS transpzone,
_Organization.StreetName AS street,
_Organization.StreetAddrNonDeliverableReason AS dont_use_s,
_Organization.Street AS streetcode,
_Organization.HouseNumber AS house_num1,
_Organization.HouseNumberSupplementText AS house_num2,
_Organization.StreetPrefixName1 AS str_suppl1,
_Organization.StreetPrefixName2 AS str_suppl2,
_Organization.StreetSuffixName1 AS str_suppl3,
_Organization.StreetSuffixName2 AS location,
_Organization.Building AS building,
_Organization.Floor AS floor,
_Organization.RoomNumber AS roomnumber,
_Organization.Country AS country,
_Organization.Region AS region,
_Organization.AddressSearchTerm1 AS sort1,
_Organization.AddressSearchTerm2 AS sort2,
_Organization.AddressTimeZone AS time_zone,
_Organization.TaxJurisdiction AS taxjurcode,
_Organization.CorrespondenceLanguage AS langu,
_Organization.POBoxLobbyName AS po_box_lobby,
_Organization.SecondaryRegionName AS county,
_Organization.TertiaryRegionName AS township,
_Location._FormOfAddress AS _FormOfAddress,
_Organization._Country AS _Country,
_Organization._CorrespondenceLanguage AS _CorrespondenceLanguage
FROM I_UserAddress
LEFT OUTER JOIN I_AddressRemark AS _Remark ON addrnumber = _Remark.AddressID AND persnumber = _Remark.AddressPersonID AND _Remark.AddressRepresentationCode = ' ' AND _Remark.Language = $session.system_language -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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