R_PersSettlmtDocItem

DDL: R_PERSSETTLMTDOCITEM Type: view BASIC

Personnel Settlement Document Item

R_PersSettlmtDocItem is a Basic CDS View that provides data about "Personnel Settlement Document Item" in SAP S/4HANA. It reads from 1 data source (R_SettlmtMgmtDocItem) and exposes 93 fields with key fields PersonnelSettlementDocument, PersSettlmtDocItem. It has 16 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_SettlmtMgmtDocItem R_SettlmtMgmtDocItem from

Associations (16)

CardinalityTargetAliasCondition
[1..1] R_PersSettlmtDoc _PersSettlmtDoc $projection.PersonnelSettlementDocument = _PersSettlmtDoc.PersonnelSettlementDocument
[0..1] I_ProductGroup_2 _ProductGroup $projection.ProductGroup = _ProductGroup.ProductGroup
[0..1] I_Currency _PersSettlmtDocCurrency $projection.PersSettlmtDocCurrency = _PersSettlmtDocCurrency.Currency
[0..1] I_SettlmtItmStatisticalPrpty _PersSettlmtDocItmStstclPrpty $projection.PersSettlmtDocItmStstclPrpty = _PersSettlmtDocItmStstclPrpty.SettlmtItmStatisticalPrpty
[0..1] I_SettlmtActivityReasonCode _PersSettlmtDocItmActyReason $projection.PersSettlmtDocItmActyReason = _PersSettlmtDocItmActyReason.SettlmtActivityReason
[0..*] R_PersSettlmtDocItmPrcgElmnt _PersSettlmtDocItmPrcgElmnt $projection.PersonnelSettlementDocument = _PersSettlmtDocItmPrcgElmnt.PersonnelSettlementDocument and $projection.PersSettlmtDocItem = _PersSettlmtDocItmPrcgElmnt.PersSettlmtDocItem
[0..1] I_SettlmtMgmtDocItemCat _PersSettlmtDocItemCat $projection.PersSettlmtDocItemCat = _PersSettlmtDocItemCat.SettlmtMgmtDocItemCat
[0..1] I_SettlmtMgmtDocItemStatus _PersSettlmtDocItemStatus $projection.PersSettlmtDocItemStatus = _PersSettlmtDocItemStatus.SettlmtMgmtDocItemStatus
[0..1] I_SettlmtMgmtDocItemCancld _PersSettlmtDocItemRvsd $projection.PersSettlmtDocItemRvsd = _PersSettlmtDocItemRvsd.SettlmtMgmtDocItemCancld
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_CostCenter _CostCenter $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea and _CostCenter.ValidityEndDate >= $projection.CreationDate and _CostCenter.ValidityStartDate <= $projection.CreationDate
[0..1] I_ProfitCenter _ProfitCenter $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ControllingArea = _ProfitCenter.ControllingArea and _ProfitCenter.ValidityEndDate >= $projection.CreationDate and _ProfitCenter.ValidityStartDate <= $projection.CreationDate
[0..1] I_WBSElementBasicData _WBSElementBasicData $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID
[0..1] I_InternalOrder _PersSettlmtDocOrder $projection.PersSettlmtDocOrder = _PersSettlmtDocOrder.InternalOrder
[1..1] E_SettlmtMgmtDocItem _Extension $projection.PersonnelSettlementDocument = _Extension.SettlmtMgmtDoc and $projection.PersSettlmtDocItem = _Extension.SettlmtMgmtDocItem

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName RWLFPERSMTDOCITM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Personnel Settlement Document Item view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.representativeKey PersSettlmtDocItem view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions false view

Fields (93)

KeyFieldSource TableSource FieldDescription
KEY PersonnelSettlementDocument Document Number
KEY PersSettlmtDocItem SettlmtMgmtDocItem Item
PersSettlmtDocCurrency SettlmtDocCurrency Doc. Currency
PricingDocument Supplier Document Condition
Product Product Product Sold
ProductGroup ProductGroup Product Sold Group
Plant Plant Valuation Area
PricingDate PricingDate Pricing Date
SettlmtQuantity SettlmtQuantity SettlmtQuantity
SettlmtQuantityUnit SettlmtQuantityUnit Settlement Unit
NetPriceAmount NetPriceAmount Net Price
NetPriceQuantity NetPriceQuantity Price Unit
NetPriceQuantityUnit NetPriceQuantityUnit SettlmtPrcUnit
SettlmtToBaseQuantityNmrtr SettlmtToBaseQuantityNmrtr Numerator Settlement UoM to Base UoM
SettlmtToBaseQuantityDnmntr SettlmtToBaseQuantityDnmntr Denominator Settlement UoM to Base UoM
SettlmtToNetPriceQtyNmrtr SettlmtToNetPriceQtyNmrtr Numerator: Sett. UoM to Sett. Price UoM
SettlmtToNetPriceQtyDnmntr SettlmtToNetPriceQtyDnmntr Denominator: Sett. UoM to Sett. PriceUoM
BaseUnit BaseUnit Unit of Measure
ItemNetWeight ItemNetWeight Net Weight
ItemGrossWeight ItemGrossWeight Gross Weight
ItemWeightUnit ItemWeightUnit Unit of Weight
ItemVolume ItemVolume Volume
ItemVolumeUnit ItemVolumeUnit Volume Unit
PersSettlmtDocItemNetAmount Supplier Item Net Amount
PersSettlmtDocSubtotal1Amount
PersSettlmtDocSubtotal2Amount
PersSettlmtDocSubtotal3Amount
PersSettlmtDocSubtotal4Amount
PersSettlmtDocSubtotal5Amount
PersSettlmtDocSubtotal6Amount
PersSettlmtDocRbteBasisAmount Suplr Rebate Basis
PersSettlmtDocItmStstclPrpty Statistical Prpty
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
PersSettlmtDocItmActyReason SettlmtItemActivityReason Activity Reason
PersSettlmtDocItemText SettlmtMgmtDocItemText
BusinessArea SuplrSettlmtBusinessArea Business Area
ControllingArea SuplrSettlmtControllingArea Controlling Area
CostCenter SuplrSettlmtCostCenter Cost Center
ProfitCenter SuplrSettlmtProfitCenter Profit Center
WBSElementInternalID SuplrSettlmtWBSElmntInternalID WBS Element
PersSettlmtDocOrder Order
PrcDetnIsIncmplt Supplier Pricing Elements Incomplete
PersSettlmtDocItemCat SettlmtMgmtDocItemCat
SettlmtItemReltdRefDocCat SettlmtItemReltdRefDocCat Settlement Item Related Ref. Doc. Cat.
SettlmtItemReltdRefDoc SettlmtItemReltdRefDoc Settlement Item Related Reference Doc.
SettlmtItemReltdCndnContr SettlmtItemReltdCndnContr ItmRelatedCndnContr
PersSettlmtDocItemStatus SettlmtMgmtDocItemStatus
PersSettlmtDocItemRvsd SettlmtMgmtDocItemCancld
ServicesRenderedDate ServicesRenderedDate Services Rendered Date
SettlementFiscalYear SettlementFiscalYear Fiscal Year of Settlement
CompanyCode Receiver Company Code
GLAccount GLAccount General Ledger
ProductHierarchy ProductHierarchy Prod.hierarchy
SalesSpcfcProductGroup1 SalesSpcfcProductGroup1 Sales-Specific Product Group 1
SalesSpcfcProductGroup2 SalesSpcfcProductGroup2 Sales-Specific Product Group 2
SalesSpcfcProductGroup3 SalesSpcfcProductGroup3 Sales-Specific Product Group 3
SalesSpcfcProductGroup4 SalesSpcfcProductGroup4 Sales-Specific Product Group 4
SalesSpcfcProductGroup5 SalesSpcfcProductGroup5 Sales-Specific Product Group 5
BusTransDocReferenceID BusTransDocReferenceID Item Ref. Doc.
BusTransDocReferenceItemID BusTransDocReferenceItemID Item RefItemID
_PersSettlmtDoc _PersSettlmtDoc
_PersSettlmtDocItmPrcgElmnt _PersSettlmtDocItmPrcgElmnt
_PersSettlmtDocCurrency _PersSettlmtDocCurrency
_Product _Product
_ProductGroup _ProductGroup
_Plant _Plant
_SettlmtQuantityUnit _SettlmtQuantityUnit
_NetPriceQuantityUnit _NetPriceQuantityUnit
_BaseUnit _BaseUnit
_ItemWeightUnit _ItemWeightUnit
_ItemVolumeUnit _ItemVolumeUnit
_PersSettlmtDocItmStstclPrpty _PersSettlmtDocItmStstclPrpty
_CreatedByUser _CreatedByUser
_PersSettlmtDocItmActyReason _PersSettlmtDocItmActyReason
_BusinessArea _BusinessArea
_ControllingArea _ControllingArea
_CostCenter _CostCenter
_ProfitCenter _ProfitCenter
_WBSElementBasicData _WBSElementBasicData
_PersSettlmtDocOrder _PersSettlmtDocOrder
_PersSettlmtDocItemCat _PersSettlmtDocItemCat
_SettlmtItemReltdCndnContr _SettlmtItemReltdCndnContr
_PersSettlmtDocItemStatus _PersSettlmtDocItemStatus
_PersSettlmtDocItemRvsd _PersSettlmtDocItemRvsd
_CompanyCode _CompanyCode
_GLAccountInCompanyCode _GLAccountInCompanyCode
_SalesSpcfcProductGroup1 _SalesSpcfcProductGroup1
_SalesSpcfcProductGroup2 _SalesSpcfcProductGroup2
_SalesSpcfcProductGroup3 _SalesSpcfcProductGroup3
_SalesSpcfcProductGroup4 _SalesSpcfcProductGroup4
_SalesSpcfcProductGroup5 _SalesSpcfcProductGroup5

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 R_PersSettlmtDocItem.
-- 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 R_PersSettlmtDocItem AS
SELECT
  cast( SettlmtMgmtDoc as wlf_pers_settlmt_doc preserving type ) AS PersonnelSettlementDocument,
  SettlmtMgmtDocItem AS PersSettlmtDocItem,
  SettlmtDocCurrency AS PersSettlmtDocCurrency,
  cast( SupplierPricingDocument as wlf_knumv preserving type ) AS PricingDocument,
  Product,
  ProductGroup,
  Plant,
  PricingDate,
  SettlmtQuantity,
  SettlmtQuantityUnit,
  NetPriceAmount,
  NetPriceQuantity,
  NetPriceQuantityUnit,
  SettlmtToBaseQuantityNmrtr,
  SettlmtToBaseQuantityDnmntr,
  SettlmtToNetPriceQtyNmrtr,
  SettlmtToNetPriceQtyDnmntr,
  BaseUnit,
  ItemNetWeight,
  ItemGrossWeight,
  ItemWeightUnit,
  ItemVolume,
  ItemVolumeUnit,
  cast( SupplierItemNetAmount as wlf_itm_net_amt preserving type ) AS PersSettlmtDocItemNetAmount,
  cast( SupplierSubtotal1Amount as wlf_kzwi1 preserving type ) AS PersSettlmtDocSubtotal1Amount,
  cast( SupplierSubtotal2Amount as wlf_kzwi2 preserving type ) AS PersSettlmtDocSubtotal2Amount,
  cast( SupplierSubtotal3Amount as wlf_kzwi3 preserving type ) AS PersSettlmtDocSubtotal3Amount,
  cast( SupplierSubtotal4Amount as wlf_kzwi4 preserving type ) AS PersSettlmtDocSubtotal4Amount,
  cast( SupplierSubtotal5Amount as wlf_kzwi5 preserving type ) AS PersSettlmtDocSubtotal5Amount,
  cast( SupplierSubtotal6Amount as wlf_kzwi6 preserving type ) AS PersSettlmtDocSubtotal6Amount,
  cast( SupplierRebateBasisAmount as wlf_bonba preserving type ) AS PersSettlmtDocRbteBasisAmount,
  cast( SettlmtItmStatisticalPrpty as wlf_wkowrr preserving type ) AS PersSettlmtDocItmStstclPrpty,
  CreatedByUser,
  CreationDate,
  CreationTime,
  SettlmtItemActivityReason AS PersSettlmtDocItmActyReason,
  SettlmtMgmtDocItemText AS PersSettlmtDocItemText,
  SuplrSettlmtBusinessArea AS BusinessArea,
  SuplrSettlmtControllingArea AS ControllingArea,
  SuplrSettlmtCostCenter AS CostCenter,
  SuplrSettlmtProfitCenter AS ProfitCenter,
  SuplrSettlmtWBSElmntInternalID AS WBSElementInternalID,
  cast( SupplierSettlementOrder as wlf_aufnr preserving type ) AS PersSettlmtDocOrder,
  cast( SupplierPrcDetnIsIncmplt as wlf_wuvprs preserving type ) AS PrcDetnIsIncmplt,
  SettlmtMgmtDocItemCat AS PersSettlmtDocItemCat,
  SettlmtItemReltdRefDocCat,
  SettlmtItemReltdRefDoc,
  SettlmtItemReltdCndnContr,
  SettlmtMgmtDocItemStatus AS PersSettlmtDocItemStatus,
  SettlmtMgmtDocItemCancld AS PersSettlmtDocItemRvsd,
  ServicesRenderedDate,
  SettlementFiscalYear,
  cast( CompanyCode as fis_bukrs preserving type ) AS CompanyCode,
  GLAccount,
  ProductHierarchy,
  SalesSpcfcProductGroup1,
  SalesSpcfcProductGroup2,
  SalesSpcfcProductGroup3,
  SalesSpcfcProductGroup4,
  SalesSpcfcProductGroup5,
  BusTransDocReferenceID,
  BusTransDocReferenceItemID
FROM R_SettlmtMgmtDocItem
LEFT OUTER JOIN R_PersSettlmtDoc AS _PersSettlmtDoc ON PersonnelSettlementDocument = _PersSettlmtDoc.PersonnelSettlementDocument  -- association [1..1]
LEFT OUTER JOIN I_ProductGroup_2 AS _ProductGroup ON ProductGroup = _ProductGroup.ProductGroup  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _PersSettlmtDocCurrency ON PersSettlmtDocCurrency = _PersSettlmtDocCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_SettlmtItmStatisticalPrpty AS _PersSettlmtDocItmStstclPrpty ON PersSettlmtDocItmStstclPrpty = _PersSettlmtDocItmStstclPrpty.SettlmtItmStatisticalPrpty  -- association [0..1]
LEFT OUTER JOIN I_SettlmtActivityReasonCode AS _PersSettlmtDocItmActyReason ON PersSettlmtDocItmActyReason = _PersSettlmtDocItmActyReason.SettlmtActivityReason  -- association [0..1]
LEFT OUTER JOIN R_PersSettlmtDocItmPrcgElmnt AS _PersSettlmtDocItmPrcgElmnt ON PersonnelSettlementDocument = _PersSettlmtDocItmPrcgElmnt.PersonnelSettlementDocument AND PersSettlmtDocItem = _PersSettlmtDocItmPrcgElmnt.PersSettlmtDocItem  -- association [0..*]
LEFT OUTER JOIN I_SettlmtMgmtDocItemCat AS _PersSettlmtDocItemCat ON PersSettlmtDocItemCat = _PersSettlmtDocItemCat.SettlmtMgmtDocItemCat  -- association [0..1]
LEFT OUTER JOIN I_SettlmtMgmtDocItemStatus AS _PersSettlmtDocItemStatus ON PersSettlmtDocItemStatus = _PersSettlmtDocItemStatus.SettlmtMgmtDocItemStatus  -- association [0..1]
LEFT OUTER JOIN I_SettlmtMgmtDocItemCancld AS _PersSettlmtDocItemRvsd ON PersSettlmtDocItemRvsd = _PersSettlmtDocItemRvsd.SettlmtMgmtDocItemCancld  -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea AND _CostCenter.ValidityEndDate >= CreationDate AND _CostCenter.ValidityStartDate <= CreationDate  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ProfitCenter = _ProfitCenter.ProfitCenter AND ControllingArea = _ProfitCenter.ControllingArea AND _ProfitCenter.ValidityEndDate >= CreationDate AND _ProfitCenter.ValidityStartDate <= CreationDate  -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_InternalOrder AS _PersSettlmtDocOrder ON PersSettlmtDocOrder = _PersSettlmtDocOrder.InternalOrder  -- association [0..1]
LEFT OUTER JOIN E_SettlmtMgmtDocItem AS _Extension ON PersonnelSettlementDocument = _Extension.SettlmtMgmtDoc AND PersSettlmtDocItem = _Extension.SettlmtMgmtDocItem  -- association [1..1]
;