P_SettlementUnitHeader

DDL: P_SETTLEMENTUNITHEADER SQL: PSTLUNITHEADER Type: view BASIC

P_SettlementUnitHeader is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (/accgo/t_stlhead) and exposes 92 fields with key field SettlementUnitUUID.

Data Sources (1)

SourceAliasJoin Type
/accgo/t_stlhead header from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PSTLUNITHEADER view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view

Fields (92)

KeyFieldSource TableSource FieldDescription
KEY SettlementUnitUUID stl_header_guid STL Hdr GUID
ContractNum tkonn Trading Contract
ContractItem tposn Item Number
ContractCommodityItem tposn_com Com. item num.
ContractApplicationUUID appl_guid GUID (Hex) Specified by the Application
ContractApplicationVersion appl_version Application Version
SettlementCreatedOn /accgo/t_stlhead created_on Variant created on
SettlmtCat settl_cat Document Category
SettlementStatusObject
EffectiveDate /accgo/effdate
RateType /accgo/rate_type
SettlementCurrency /accgo/stl_curr
AccrualDocumentType accrual_acct_doc_type Document Type
AccrualDocumentNumber accrual_act_doc_no Document Number
AccrualFinancialYear accrual_fiscal_year Fiscal Year
AccrualGLAccount accrual_gl_account Accrual G/L Account
AccrualPostingDate accrual_posting_date Date
AccrualReveralDocNum accrual_rev_act_doc_no Rev Doc Number
AccrualReveralFinancialYr accrual_rev_fiscal_year Fiscal Year
AccrualReversalGLAccount accrual_rev_gl_account Accrual Rev G/L Acnt
AccrualReversalDate accrual_reversal_date Date
AccrualStorageFees accrue_storage_fees Accrue Storage
SettlementAdjustmentUUID adj_stl_hdr Adjustment GUID
APConfirmIndicator apconfirm_flag AP Confirm?
ContractApplicationDocument /accgo/t_stlhead appldoc Appl. Document No.
ApplicationDocumentItem appldoc_item Item No.
ARConfirmFlag arconfirm_flag AR Confirm?
CompanyCode bukrs Value
ContractQtyCancellationUUID cancl_guid Contract GUID
ChangedBy /accgo/t_stlhead changed_by User Name
ChangedOn /accgo/t_stlhead changed_on Variant Changed on
CounterpartySplitIndicator cparty_split Counterparty Split
CreatedBy /accgo/t_stlhead created_by Version Created By
IncotermsPart1 delv_terms Incoterms
DocumentCurrency doc_curr Doc. Currency
DocumentType doc_typ Document Class
IsDPQSAccrualsRecalled dpqs_accruals_recalc TRUE
DPQSAdjustmentAmount dpqs_adj_amt DPQS Adjustment Amt
DPQSInSettlementIndicator dpqs_in_settlement DPQS in Settlement
FXRelevantIndicator fx_relevant FX Change relevant
GLAmount gl_amount Net Amount
GLAmountCurrency gl_currency G/L currency
GoodsMovementEvent gm_ind_sent Goods Mvt Event
GrossAmount gross_amount Tax-Inclusive Amount
BusinessArea gsber Business Area
IncotermsPart2 inco2 Incoterms 2
InvoicingParty invoicing_party Supplier
ISWUsageFlag isw_applied Use ISW
SoldToParty kunag Sold-to Party
BillToParty kunre Bill-to Party
CountryKey land1 Trip Ctry/Reg
ExternalDeliveryNoteNumber lfsnr Delivery note
LienIndicator lien_flag Lien Exists
Vendor /accgo/t_stlhead lifnr Vendor no.
SettlementMirrorUUID mirror_stl_hdr Settlemt Mirror GUID
MMThresholdInPercentage mm_thres MM Threshold
NetAmount net_amount Tax-Exclusive Amount
ABDNetValue netwr Value
OperationID operation_id Washout ID
PurchaseOrderAmount po_amount Net Amount
PurchaseOrderCurrency po_currency Currency
ABDItemNumber posnr WBS Element
SettlementPostingDate post_date Sett. Post Date
ProfitCenter prctr Profit Centers
IsProvisionalSettlmtActive pstl_active GL Pr.STL.Active
PaymentTerms pterm Payment Term
ReferenceApplicationDocument ref_appldoc Appl. Document No.
ReferenceApplicationItem ref_item Reference Item
ReferencePayer ref_payer Supplier
ReferencePlant ref_plant Plant
ReferenceSettlementCategory ref_settl_cat Document Category
ReferenceApplicationSide ref_side Side
ReferenceSettlemtUUID ref_stl_hdr Reference GUID
ReferenceStorageAreement ref_strg_agreement Stor. Agreement
ReferenceStorageAreementItem ref_strg_agreement_item Stor. Agreement
ReferenceApplicationSubItem ref_sub_item Item No.
ReferenceVendor ref_vendor Supplier
RunDate run_date Run date
SDPayementThresholdPercentage sd_thres SD Threshold
SettlmtDoc settl_doc Settlement Unit
SettlementScenario settl_scenario Settl Scenario
SettlementType settl_type Settlement Type
SettlmtDocYear settl_yr Setl Unit Year
Side /accgo/t_stlhead side Side
SplitFlag split_flag Split Exists
StorageEndDate storage_end_date Date
StorageStartDate storage_start_date Date
ThresholdPercentage threshold_perc Threshold Percentage
UnderfillAmount underfill_amount Underfill Amount
ABDNumber wbeln Sett. Doc. List
Plant /accgo/t_stlhead werks Receiving Plant
Region z_regio Region

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 P_SettlementUnitHeader.
-- 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: PSTLUNITHEADER

CREATE VIEW P_SettlementUnitHeader AS
SELECT
  stl_header_guid AS SettlementUnitUUID,
  tkonn AS ContractNum,
  tposn AS ContractItem,
  tposn_com AS ContractCommodityItem,
  appl_guid AS ContractApplicationUUID,
  appl_version AS ContractApplicationVersion,
  header.created_on AS SettlementCreatedOn,
  settl_cat AS SettlmtCat,
  concat('XS', concat(settl_doc, settl_yr) ) AS SettlementStatusObject,
  /accgo/effdate AS EffectiveDate,
  /accgo/rate_type AS RateType,
  /accgo/stl_curr AS SettlementCurrency,
  accrual_acct_doc_type AS AccrualDocumentType,
  accrual_act_doc_no AS AccrualDocumentNumber,
  accrual_fiscal_year AS AccrualFinancialYear,
  accrual_gl_account AS AccrualGLAccount,
  accrual_posting_date AS AccrualPostingDate,
  accrual_rev_act_doc_no AS AccrualReveralDocNum,
  accrual_rev_fiscal_year AS AccrualReveralFinancialYr,
  accrual_rev_gl_account AS AccrualReversalGLAccount,
  accrual_reversal_date AS AccrualReversalDate,
  accrue_storage_fees AS AccrualStorageFees,
  adj_stl_hdr AS SettlementAdjustmentUUID,
  apconfirm_flag AS APConfirmIndicator,
  header.appldoc AS ContractApplicationDocument,
  appldoc_item AS ApplicationDocumentItem,
  arconfirm_flag AS ARConfirmFlag,
  bukrs AS CompanyCode,
  cancl_guid AS ContractQtyCancellationUUID,
  header.changed_by AS ChangedBy,
  header.changed_on AS ChangedOn,
  cparty_split AS CounterpartySplitIndicator,
  header.created_by AS CreatedBy,
  delv_terms AS IncotermsPart1,
  doc_curr AS DocumentCurrency,
  doc_typ AS DocumentType,
  dpqs_accruals_recalc AS IsDPQSAccrualsRecalled,
  dpqs_adj_amt AS DPQSAdjustmentAmount,
  dpqs_in_settlement AS DPQSInSettlementIndicator,
  fx_relevant AS FXRelevantIndicator,
  gl_amount AS GLAmount,
  gl_currency AS GLAmountCurrency,
  gm_ind_sent AS GoodsMovementEvent,
  gross_amount AS GrossAmount,
  gsber AS BusinessArea,
  inco2 AS IncotermsPart2,
  invoicing_party AS InvoicingParty,
  isw_applied AS ISWUsageFlag,
  kunag AS SoldToParty,
  kunre AS BillToParty,
  land1 AS CountryKey,
  lfsnr AS ExternalDeliveryNoteNumber,
  lien_flag AS LienIndicator,
  header.lifnr AS Vendor,
  mirror_stl_hdr AS SettlementMirrorUUID,
  mm_thres AS MMThresholdInPercentage,
  net_amount AS NetAmount,
  netwr AS ABDNetValue,
  operation_id AS OperationID,
  po_amount AS PurchaseOrderAmount,
  po_currency AS PurchaseOrderCurrency,
  posnr AS ABDItemNumber,
  post_date AS SettlementPostingDate,
  prctr AS ProfitCenter,
  pstl_active AS IsProvisionalSettlmtActive,
  pterm AS PaymentTerms,
  ref_appldoc AS ReferenceApplicationDocument,
  ref_item AS ReferenceApplicationItem,
  ref_payer AS ReferencePayer,
  ref_plant AS ReferencePlant,
  ref_settl_cat AS ReferenceSettlementCategory,
  ref_side AS ReferenceApplicationSide,
  ref_stl_hdr AS ReferenceSettlemtUUID,
  ref_strg_agreement AS ReferenceStorageAreement,
  ref_strg_agreement_item AS ReferenceStorageAreementItem,
  ref_sub_item AS ReferenceApplicationSubItem,
  ref_vendor AS ReferenceVendor,
  run_date AS RunDate,
  sd_thres AS SDPayementThresholdPercentage,
  settl_doc AS SettlmtDoc,
  settl_scenario AS SettlementScenario,
  settl_type AS SettlementType,
  settl_yr AS SettlmtDocYear,
  header.side AS Side,
  split_flag AS SplitFlag,
  storage_end_date AS StorageEndDate,
  storage_start_date AS StorageStartDate,
  threshold_perc AS ThresholdPercentage,
  underfill_amount AS UnderfillAmount,
  wbeln AS ABDNumber,
  header.werks AS Plant,
  z_regio AS Region
FROM /accgo/t_stlhead AS header
;