I_ProcmtHubCompanyCode

DDL: I_PROCMTHUBCOMPANYCODE SQL: IPROCMTHUBCC Type: view BASIC Package: APPL_PROC_HUB_GF

Co Code in Conncd Syst for Cntrl Procmt

I_ProcmtHubCompanyCode (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Sourcing & Procurement

I_ProcmtHubCompanyCode is a Basic CDS View that provides data about "Co Code in Conncd Syst for Cntrl Procmt" in SAP S/4HANA. It reads from 1 data source (mmpur_c_be_ccreg) and exposes 6 fields with key fields ProcurementHubSourceSystem, ProcmtHubCompanyCode. It has 1 association to related views. Part of development package APPL_PROC_HUB_GF.

SAP Help Documentation

CategoryCDS Views for Company Code
Data CategoryBasic
StatusReleased
Purpose
This CDS view retrieves the company codes of the connected systems that are configured for Central Procurement. This CDS view provides the prerequisites for answering the following business questions: Which company codes in the connected system have been configured for Central Procurement? Is a certain company code in the connected system configured for Central Procurement?

Prerequisites
Users who want to run reports using this CDS view must have a role based on the business role template listed in the table above.

Structure
Object types This view relates to the following SAP object types: Purchase Requisition Main parameters and filters of the CDS view The main parameters and filters are as follows: Connected System ID Connected Company Code Connected System Name Measures and attributes Some important measures and attributes are: Connected System ID Connected Company Code Connected System Name

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-HUB-FND-2CL
CapabilitiesAssociation Target for Defining CDS Entities,Data Source in SQL Select,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSourcing and Procurement for SAP S/4HANA Cloud Public Edition
DescriptionThis CDS view retrieves the company codes of the connected systems that are configured for Central Procurement.<p>This CDS view provides the prerequisites for answering the following business questions:</p><ul> <li> <p>Which company codes in the connected system have been configured for Central Procurement?</p> </li> <li> <p>Is a certain company code in the connected system configured for Central Procurement?</p> </li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
mmpur_c_be_ccreg mmpur_c_be_ccreg from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_ProcmtHubBackendSourceSystem _ProcmtHubBackendSourceSystem $projection.ProcurementHubSourceSystem = _ProcmtHubBackendSourceSystem.ProcurementHubSourceSystem

Annotations (14)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #ORGANIZATIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
AbapCatalog.sqlViewName IPROCMTHUBCC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.representativeKey ProcmtHubCompanyCode view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.preserveKey true view
EndUserText.label Co Code in Conncd Syst for Cntrl Procmt view
ObjectModel.modelingPattern #NONE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY ProcurementHubSourceSystem be_source_sys Connected System ID
KEY ProcmtHubCompanyCode be_co_code Connected Company Code
ProcmtHubCompanyCodeUniqueID be_cc_unique_id Company Code Unique ID
ProcmtHubCompanyCodeName be_co_code_name Name of Company Code or Company
ProcurementHubSourceSystemName _ProcmtHubBackendSourceSystem ProcurementHubSourceSystemName Connected System Name
_ProcmtHubBackendSourceSystem _ProcmtHubBackendSourceSystem

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 I_ProcmtHubCompanyCode.
-- 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: IPROCMTHUBCC

CREATE VIEW I_ProcmtHubCompanyCode AS
SELECT
  be_source_sys AS ProcurementHubSourceSystem,
  be_co_code AS ProcmtHubCompanyCode,
  be_cc_unique_id AS ProcmtHubCompanyCodeUniqueID,
  be_co_code_name AS ProcmtHubCompanyCodeName,
  _ProcmtHubBackendSourceSystem.ProcurementHubSourceSystemName AS ProcurementHubSourceSystemName
FROM mmpur_c_be_ccreg
LEFT OUTER JOIN I_ProcmtHubBackendSourceSystem AS _ProcmtHubBackendSourceSystem ON ProcurementHubSourceSystem = _ProcmtHubBackendSourceSystem.ProcurementHubSourceSystem  -- association [1..1]
;