SEPMRA_C_Shop_ShoppingCart

DDL: SEPMRA_C_SHOP_SHOPPINGCART Type: view Package: S_ODATA_EPMRA_SHOP

Shopping Cart

SEPMRA_C_Shop_ShoppingCart is a CDS View that provides data about "Shopping Cart" in SAP S/4HANA. It reads from 1 data source (SEPMRA_I_ShoppingCart) and exposes 11 fields with key field ShoppingCartUUID. It has 3 associations to related views. Part of development package S_ODATA_EPMRA_SHOP.

Data Sources (1)

SourceAliasJoin Type
SEPMRA_I_ShoppingCart ShoppingCart from

Associations (3)

CardinalityTargetAliasCondition
[0..*] SEPMRA_C_Shop_ShoppingCartItem _ShoppingCartItems $projection.ShoppingCartUUID = _ShoppingCartItems.ShoppingCartUUID
[0..1] SEPMRA_I_QuantityUnit _QuantityUnit $projection.QuantityUnit = _QuantityUnit.UnitOfMeasure
[0..1] I_Currency _CompanyCurrency $projection.CompanyCurrency = _CompanyCurrency.Currency

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName SEPMRACSHOPCART view
AbapCatalog.compiler.compareFilter true view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Shopping Cart view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingUnitRoot true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
UI.headerInfo.typeName Shopping Cart view
UI.headerInfo.typeNamePlural Shopping Carts view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value Owner view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY ShoppingCartUUID SEPMRA_I_ShoppingCart ShoppingCartUUID Shopping Cart UUID
Owner SEPMRA_I_ShoppingCart Owner Vehicle Owner
NetAmountInCompanyCurrency
CompanyCurrency
Quantity
QuantityUnit
DeliveryAddress
_Owner SEPMRA_I_ShoppingCart _Owner
_CompanyCurrency _CompanyCurrency
_QuantityUnit _QuantityUnit
_ShoppingCartItems _ShoppingCartItems

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 SEPMRA_C_Shop_ShoppingCart.
-- 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 SEPMRA_C_Shop_ShoppingCart AS
SELECT
  ShoppingCart.ShoppingCartUUID AS ShoppingCartUUID,
  ShoppingCart.Owner AS Owner,
  cast( sum(_ShoppingCartItems.NetAmountInCompanyCurrency) as snwd_ttl_net_amount preserving type ) AS NetAmountInCompanyCurrency,
  cast( ShoppingCart._Owner._Company.CompanyCurrency as sepmra_currency preserving type ) AS CompanyCurrency,
  cast( sum(_ShoppingCartItems.Quantity) as sepmra_quantityasint preserving type ) AS Quantity,
  cast('EA' as sepmra_quantityunit) AS QuantityUnit,
  _Owner._EmployeeOrgAssignmentToday._OrganizationalUnit._Address.FormattedAddress AS DeliveryAddress,
  ShoppingCart._Owner AS _Owner
FROM SEPMRA_I_ShoppingCart AS ShoppingCart
LEFT OUTER JOIN SEPMRA_C_Shop_ShoppingCartItem AS _ShoppingCartItems ON ShoppingCartUUID = _ShoppingCartItems.ShoppingCartUUID  -- association [0..*]
LEFT OUTER JOIN SEPMRA_I_QuantityUnit AS _QuantityUnit ON QuantityUnit = _QuantityUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCurrency ON CompanyCurrency = _CompanyCurrency.Currency  -- association [0..1]
;