REPM_SalesOrderDetailsD

DDL: REPM_SALESORDERDETAILSD SQL: REPM_SODETAILS Type: view Package: RS_EPM_NW_CONTENT_CDS

REPM: Sales Order Details Dimension View

REPM_SalesOrderDetailsD is a CDS View of category Dimension that provides data about "REPM: Sales Order Details Dimension View" in SAP S/4HANA. It reads from 1 data source (SEPM_I_SalesOrder) and exposes 12 fields with key field CreatedByUser. It has 1 association to related views. Part of development package RS_EPM_NW_CONTENT_CDS.

Data Sources (1)

SourceAliasJoin Type
SEPM_I_SalesOrder SEPM_I_SalesOrder from

Associations (1)

CardinalityTargetAliasCondition
[1] SEPM_I_Employee _Employee $projection.CreatedByUser = _Employee.EmployeeUUID

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName REPM_SODETAILS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
EndUserText.label REPM: Sales Order Details Dimension View view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CreatedByUser SEPM_I_SalesOrder CreatedByUser User Name
LastNameasEmployeeName
SalesOrder SEPM_I_SalesOrder SalesOrder SD Document
BusinessPartner
GrossAmount SEPM_I_SalesOrder GrossAmountInTransacCurrency Tax-Inclusive Amount
CompanyName
DepartmentName
DepartmentUUID
LifeCycleStatus SEPM_I_SalesOrder SalesOrderLifeCycleStatus Status
TransactionCurrency SEPM_I_SalesOrder TransactionCurrency Transaction Currency
_Employee _Employee
_TransactionCurrency _TransactionCurrency

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 REPM_SalesOrderDetailsD.
-- 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: REPM_SODETAILS

CREATE VIEW REPM_SalesOrderDetailsD AS
SELECT
  SEPM_I_SalesOrder.CreatedByUser AS CreatedByUser,
  replace (CONCAT(_Employee.FirstName, CONCAT('% %',_Employee.LastName )) , '%', '')as EmployeeName AS LastNameasEmployeeName,
  SEPM_I_SalesOrder.SalesOrder AS SalesOrder,
  SEPM_I_SalesOrder._Customer.BusinessPartner AS BusinessPartner,
  SEPM_I_SalesOrder.GrossAmountInTransacCurrency AS GrossAmount,
  SEPM_I_SalesOrder._Customer.CompanyName AS CompanyName,
  _Employee._EmployeeOrgAssignment._OrganizationalUnit.OrganizationalUnitName AS DepartmentName,
  _Employee._EmployeeOrgAssignment._OrganizationalUnit.OrganizationalUnitUUID AS DepartmentUUID,
  SEPM_I_SalesOrder.SalesOrderLifeCycleStatus AS LifeCycleStatus,
  SEPM_I_SalesOrder.TransactionCurrency AS TransactionCurrency
FROM SEPM_I_SalesOrder
LEFT OUTER JOIN SEPM_I_Employee AS _Employee ON CreatedByUser = _Employee.EmployeeUUID  -- association [1]
;