C_SalesContractWrkflwInbox

DDL: C_SALESCONTRACTWRKFLWINBOX SQL: CCONTRWFIN Type: view CONSUMPTION Package: ODATA_SD_CONTRACT_WRF

Sales Contract Workflow - My Inbox

C_SalesContractWrkflwInbox is a Consumption CDS View that provides data about "Sales Contract Workflow - My Inbox" in SAP S/4HANA. It reads from 1 data source (I_SalesContract) and exposes 39 fields with key field SalesContract. It has 3 associations to related views. Part of development package ODATA_SD_CONTRACT_WRF.

Data Sources (1)

SourceAliasJoin Type
I_SalesContract SalesContract from

Associations (3)

CardinalityTargetAliasCondition
[0..*] C_SalesContractItemWrkflwInbox _SalesContractWorkflowInItem $projection.SalesContract = _SalesContractWorkflowInItem.SalesContract
[0..1] I_Customer _ShipToParty _SalesContractPartner.Customer = _ShipToParty.Customer
[0..1] E_SalesDocumentBasic _Extension $projection.SalesContract = _Extension.SalesDocument

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CCONTRWFIN view
AbapCatalog.preserveKey true view
EndUserText.label Sales Contract Workflow - My Inbox view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ClientHandling.algorithm #SESSION_VARIABLE view
Consumption.semanticObject SalesQuotation view
UI.headerInfo.title.value DocumentTitle view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY SalesContract I_SalesContract SalesContract SalesContract
SalesContract01asDocumentTitle
CustomerName _SoldToParty CustomerName Name of Customer
SoldToParty SoldToParty Sold-to Party
ShipToPartyName _ShipToParty CustomerName Name of Customer
ShipToParty _SalesContractPartner Customer Ship-To Party
CityName City/Country or Region
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
TransactionCurrency TransactionCurrency Transaction Currency
TotalNetAmount TotalNetAmount Total Net Amount
SDDocumentReasonText
SDDocumentReason SDDocumentReason Order Reason
SalesContractApprovalReason SalesContractApprovalReason Approval Reason
SalesOrganizationName
SalesOrganization SalesOrganization Sales Organization
DistributionChannelName
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
DivisionName
OrganizationDivision OrganizationDivision Org. Division
SalesContractValidityStartDate SalesContractValidityStartDate Valid From
SalesContractValidityEndDate SalesContractValidityEndDate Valid To
UserName _CreatedByUser UserDescription Full Name
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Created On
UserDescription _LastChangedByUser UserDescription Full Name
LastChangedByUser LastChangedByUser User Name
LastChangeDateTime LastChangeDateTime Last Changed On
SalesContractType SalesContractType
_SalesContractWorkflowInItem _SalesContractWorkflowInItem
_SalesContractApprovalReason _SalesContractApprovalReason
_SoldToParty _SoldToParty
_TransactionCurrency _TransactionCurrency
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_OrganizationDivision _OrganizationDivision
_SDDocumentReason _SDDocumentReason
_SalesContractType _SalesContractType
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser

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_SalesContractWrkflwInbox.
-- 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: CCONTRWFIN

CREATE VIEW C_SalesContractWrkflwInbox AS
SELECT
  SalesContract.SalesContract AS SalesContract,
  concat_with_space(concat_with_space(_SalesContractType._Text[1: Language=$session.system_language].SalesDocumentTypeName, '-', 1), ltrim(SalesContract.SalesContract,'0'), 1) as DocumentTitle AS SalesContract01asDocumentTitle,
  _SoldToParty.CustomerName AS CustomerName,
  SoldToParty,
  _ShipToParty.CustomerName AS ShipToPartyName,
  _SalesContractPartner.Customer AS ShipToParty,
  concat(concat(_SalesContractPartner._DfltAddrRprstn.CityName, '/'), _SalesContractPartner._DfltAddrRprstn.Country) AS CityName,
  PurchaseOrderByCustomer,
  TransactionCurrency,
  TotalNetAmount,
  _SDDocumentReason._Text[1: Language=$session.system_language ].SDDocumentReasonText AS SDDocumentReasonText,
  SDDocumentReason,
  SalesContractApprovalReason,
  _SalesOrganization._Text[1: Language=$session.system_language ].SalesOrganizationName AS SalesOrganizationName,
  SalesOrganization,
  _DistributionChannel._Text[1: Language=$session.system_language ].DistributionChannelName AS DistributionChannelName,
  DistributionChannel,
  _OrganizationDivision._Text[1: Language=$session.system_language ].DivisionName AS DivisionName,
  OrganizationDivision,
  SalesContractValidityStartDate,
  SalesContractValidityEndDate,
  _CreatedByUser.UserDescription AS UserName,
  CreatedByUser,
  CreationDate,
  _LastChangedByUser.UserDescription AS UserDescription,
  LastChangedByUser,
  LastChangeDateTime,
  SalesContractType
FROM I_SalesContract AS SalesContract
LEFT OUTER JOIN C_SalesContractItemWrkflwInbox AS _SalesContractWorkflowInItem ON SalesContract = _SalesContractWorkflowInItem.SalesContract  -- association [0..*]
LEFT OUTER JOIN I_Customer AS _ShipToParty ON _SalesContractPartner.Customer = _ShipToParty.Customer  -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesContract = _Extension.SalesDocument  -- association [0..1]
;