C_ActivityBySupplier

DDL: C_ACTIVITYBYSUPPLIER SQL: CACTYBYSUPPLIER Type: view CONSUMPTION Package: ODATA_MASTER_DATA_SUPPLIER_FS

Supplier Activity

C_ActivityBySupplier is a Consumption CDS View that provides data about "Supplier Activity" in SAP S/4HANA. It reads from 1 data source (I_SupplierActivity) and exposes 20 fields with key fields SuplrActyUUID, Supplier. It has 3 associations to related views. It is exposed through 1 OData service (ASQL_F0354). Part of development package ODATA_MASTER_DATA_SUPPLIER_FS.

Data Sources (1)

SourceAliasJoin Type
I_SupplierActivity I_SupplierActivity from

Associations (3)

CardinalityTargetAliasCondition
[0..1] P_TotalTskCount _TotalTskCount $projection.SuplrActyUUID = _TotalTskCount.SuplrActyUUID
[0..1] P_OpenTaskCount _OpenTaskCount $projection.SuplrActyUUID = _OpenTaskCount.SuplrActyUUID
[0..*] I_SuplrActLifecycleStatusText _SuplrActLifecycleStatusText $projection.SuplrActyLifecycleStatus = _SuplrActLifecycleStatusText.SuplrActyLifecycleStatus

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CACTYBYSUPPLIER view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Supplier Activity view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.text.control #ASSOCIATED_TEXT_UI_HIDDEN view
VDM.viewType #CONSUMPTION view
UI.headerInfo.typeName Supplier Activity view
UI.headerInfo.typeNamePlural Supplier Activities view
UI.headerInfo.title.label Supplier Activity view
UI.headerInfo.title.value SuplrActyname view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F0354 ASQL_F0354 C2 NOT_RELEASED

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY SuplrActyUUID I_SupplierActivity SuplrActyUUID
KEY Supplier _ActivityParty Supplier Supplier
SupplierActivity I_SupplierActivity SupplierActivity
SuplrActyName I_SupplierActivity SuplrActyName
StartDate I_SupplierActivity StartDate Valid From
EndDate I_SupplierActivity EndDate Term to
CreationDateTime I_SupplierActivity CreationDateTime Timestamp
SuplrActyLifecycleStatus I_SupplierActivity SuplrActyLifecycleStatus Status Code
CreatedByUser I_SupplierActivity CreatedByUser User Name
LastChangeDateTime I_SupplierActivity LastChangeDateTime Timestamp
LastChangedByUser I_SupplierActivity LastChangedByUser User Name
Language I_SupplierActivity Language Report Text Language
SuplrActyPriority I_SupplierActivity SuplrActyPriority Workflow priority
SuplrActyType I_SupplierActivity SuplrActyType Worklist Type
TotalNumberOfTasks
NumberOfOpenTasks
PurchaserRespFullName
PurchaserRspNavLinkSemanticObj
PurchaserRespNavLinkQueryPart
_SuplrActLifecycleStatusText _SuplrActLifecycleStatusText

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 C_ActivityBySupplier.
-- 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: CACTYBYSUPPLIER

CREATE VIEW C_ActivityBySupplier AS
SELECT
  I_SupplierActivity.SuplrActyUUID AS SuplrActyUUID,
  _ActivityParty.Supplier AS Supplier,
  I_SupplierActivity.SupplierActivity AS SupplierActivity,
  I_SupplierActivity.SuplrActyName AS SuplrActyName,
  I_SupplierActivity.StartDate AS StartDate,
  I_SupplierActivity.EndDate AS EndDate,
  I_SupplierActivity.CreationDateTime AS CreationDateTime,
  I_SupplierActivity.SuplrActyLifecycleStatus AS SuplrActyLifecycleStatus,
  I_SupplierActivity.CreatedByUser AS CreatedByUser,
  I_SupplierActivity.LastChangeDateTime AS LastChangeDateTime,
  I_SupplierActivity.LastChangedByUser AS LastChangedByUser,
  I_SupplierActivity.Language AS Language,
  I_SupplierActivity.SuplrActyPriority AS SuplrActyPriority,
  I_SupplierActivity.SuplrActyType AS SuplrActyType,
  cast(_TotalTskCount.SuplrActyTaskCount as /srmsmc/total_task_count ) AS TotalNumberOfTasks,
  cast(_OpenTaskCount. OpenTaskCount as /srmsmc/open_task_count ) AS NumberOfOpenTasks,
  cast( _ContactCard[1: ContactCardRole = '39' ].FullName as /srmsmc/purresponsiblename) AS PurchaserRespFullName,
  _ContactCard[1: ContactCardRole = '39' ].ContactCardNavLinkSemanticObj AS PurchaserRspNavLinkSemanticObj,
  _ContactCard[1: ContactCardRole = '39' ].ContactCardNavLinkQueryPart AS PurchaserRespNavLinkQueryPart
FROM I_SupplierActivity
LEFT OUTER JOIN P_TotalTskCount AS _TotalTskCount ON SuplrActyUUID = _TotalTskCount.SuplrActyUUID  -- association [0..1]
LEFT OUTER JOIN P_OpenTaskCount AS _OpenTaskCount ON SuplrActyUUID = _OpenTaskCount.SuplrActyUUID  -- association [0..1]
LEFT OUTER JOIN I_SuplrActLifecycleStatusText AS _SuplrActLifecycleStatusText ON SuplrActyLifecycleStatus = _SuplrActLifecycleStatusText.SuplrActyLifecycleStatus  -- association [0..*]
;