R_FinPostingClearingItmDraft

DDL: R_FINPOSTINGCLEARINGITMDRAFT Type: view_entity BASIC Package: APPL_FIN_POST_CLEAR_RAP

Draft for Posting and Clearing Service

R_FinPostingClearingItmDraft is a Basic CDS View that provides data about "Draft for Posting and Clearing Service" in SAP S/4HANA. It reads from 1 data source (farp_post_itm_d) and exposes 85 fields with key fields PostingClearingDocumentUUID, CompanyCode, FiscalYear, AccountingDocument, PostingClearingDocDraftType. It has 9 associations to related views. Part of development package APPL_FIN_POST_CLEAR_RAP.

Data Sources (1)

SourceAliasJoin Type
farp_post_itm_d farp_post_itm_d from

Associations (9)

CardinalityTargetAliasCondition
[0..1] I_AccountingDocumentType _AccountingDocumentType $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType
[0..1] I_CostCenter _CurrentCostCenter $projection.ControllingArea = _CurrentCostCenter.ControllingArea and $projection.CostCenter = _CurrentCostCenter.CostCenter and _CurrentCostCenter.ValidityStartDate <= $session.system_date and _CurrentCostCenter.ValidityEndDate >= $session.system_date
[0..1] I_ProfitCenter _CurrentProfitCenter $projection.ControllingArea = _CurrentProfitCenter.ControllingArea and $projection.ProfitCenter = _CurrentProfitCenter.ProfitCenter and _CurrentProfitCenter.ValidityStartDate <= $session.system_date and _CurrentProfitCenter.ValidityEndDate >= $session.system_date
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_FixedAsset _FixedAsset $projection.CompanyCode = _FixedAsset.CompanyCode and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset
[0..1] I_Order _Order $projection.OrderID = _Order.OrderID
[0..1] I_SalesDocument _SalesDoc $projection.SalesDocument = _SalesDoc.SalesDocument
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_SrvcDocByDocumentType _ServiceDocument $projection.ServiceDocumentType = _ServiceDocument.ServiceDocumentType and $projection.ServiceDocument = _ServiceDocument.ServiceDocument

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Draft for Posting and Clearing Service view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view

Fields (85)

KeyFieldSource TableSource FieldDescription
KEY PostingClearingDocumentUUID postingclearingdocumentuuid RAW16
KEY CompanyCode companycode Receiver Company Code
KEY FiscalYear fiscalyear G/L Fiscal Year
KEY AccountingDocument accountingdocument Journal Entry
KEY PostingClearingDocDraftType postingclearingdocdrafttype
KEY AccountingDocumentItem accountingdocumentitem Posting View Item
KEY PostingClearingDocumentTmpItem postingclearingdocumenttmpitem Position
CompanyCodeForEdit companycodeforedit Company Code
FiscalYearForEdit fiscalyearforedit Fiscal Year
AccountingDocumentForEdit accountingdocumentforedit Journal Entry
AccountingDocumentItemForEdit accountingdocumentitemforedit Posting View Item
AccountingDocumentItemType accountingdocumentitemtype Line Item ID
ClearingDate clearingdate Clearing Date
ClearingCreationDate clearingcreationdate Clrg Creation Date
ClearingJournalEntryFiscalYear clearingjournalentryfiscalyear Fiscal Year of Clearing Journal Entry
ClearingJournalEntry clearingjournalentry Clrng doc.
PostingKey postingkey Posting Key
FinancialAccountType financialaccounttype Fin. Account Type
SpecialGLCode specialglcode Special G/L Ind
SpecialGLTransactionType specialgltransactiontype Transact.Type
DebitCreditCode debitcreditcode Single-Character Flag
TaxCode taxcode Tax Code
TaxCountry taxcountry Tax Ctry/Reg.
TaxRateValidityStartDate taxratevaliditystartdate Tax Rate Validity Start Date
TransactionTypeDetermination transactiontypedetermination Transaction Key
AssignmentReference assignmentreference Assignment Reference
DocumentItemText documentitemtext Text
ControllingArea controllingarea Controlling Area
CostCenter costcenter Cost Center
OrderID orderid Order ID
SalesDocument salesdocument SD Document
ServiceDocumentType servicedocumenttype Transaction Type
ServiceDocument servicedocument Transaction ID
MasterFixedAsset masterfixedasset Fixed Asset
FixedAsset fixedasset Sub-number
OperationalGLAccount operationalglaccount Operational G/L Acct
GLAccount glaccount General Ledger
Customer customer Sold-to Party
Supplier supplier Supplier
IsBalanceSheetAccount isbalancesheetaccount Is Balance Sheet Account
SpecialGLAccountAssignment specialglaccountassignment Special G/L Assignmt
DueCalculationBaseDate duecalculationbasedate Due Calculation Base Date
DunningKey dunningkey Dunning Key
DunningBlockingReason dunningblockingreason Set Dunning Block
DunningArea dunningarea Dunning Area
ValuationArea valuationarea Valuation Area
PaymentDifferenceReason paymentdifferencereason Reason Code
ProfitCenter profitcenter Profit Center
CompanyCodeCurrencyDetnMethod companycodecurrencydetnmethod Co Crcy Detn Meth
TaxDeterminationDate taxdeterminationdate Tx Determination Dte
FunctionalArea functionalarea Sendr Fctl Area
Segment segment Segment number
PostingDate postingdate Posting Date for GR
AccountingDocumentType accountingdocumenttype Journal Entry Type
NetDueDate netduedate Net Due Date
CompanyCodeCurrency companycodecurrency Local Currency
AmountInCompanyCodeCurrency amountincompanycodecurrency Local Crcy Amt
TransactionCurrency transactioncurrency Transaction Currency
AmountInTransactionCurrency amountintransactioncurrency Pt Crcy Amt
BalanceTransactionCurrency balancetransactioncurrency Currency
AmountInBalanceTransacCrcy amountinbalancetransaccrcy Amount in Balance Transaction Currency
AdditionalCurrency1 additionalcurrency1 Local curr. 2
AmountInAdditionalCurrency1 amountinadditionalcurrency1 Amount in Additional Currency 1
AdditionalCurrency2 additionalcurrency2 Local curr. 3
AmountInAdditionalCurrency2 amountinadditionalcurrency2 LC2 Amount
PostingClearingDataEntryStatus postingclearingdataentrystatus Data Entry Status
PostingClearingDocItemIsMain postingclearingdocitemismain Main Item of a process belonging to Accdoc Header
PostingClearingItmFldStsVal postingclearingitmfldstsval Text of length 500
PostingClearingItmMnlEntrVal postingclearingitmmnlentrval Character 100
StatisticalPostingStatus statisticalpostingstatus
DraftEntityCreationDateTime draftentitycreationdatetime Draft Created On
DraftEntityLastChangeDateTime draftentitylastchangedatetime Draft Last Changed On
DraftAdministrativeDataUUID draftadministrativedatauuid UUID
DraftEntityOperationCode draftentityoperationcode Draft - Operation Code
HasActiveEntity hasactiveentity TRUE
DraftFieldChanges draftfieldchanges Field Changes
_AccountingDocumentType _AccountingDocumentType
_CurrentCostCenter _CurrentCostCenter
_CurrentProfitCenter _CurrentProfitCenter
_Customer _Customer
_FixedAsset _FixedAsset
_Order _Order
_SalesDoc _SalesDoc
_Supplier _Supplier
_ServiceDocument _ServiceDocument

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_FinPostingClearingItmDraft.
-- 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_FinPostingClearingItmDraft AS
SELECT
  PostingClearingDocumentUUID,
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  PostingClearingDocDraftType,
  AccountingDocumentItem,
  PostingClearingDocumentTmpItem,
  CompanyCodeForEdit,
  FiscalYearForEdit,
  AccountingDocumentForEdit,
  AccountingDocumentItemForEdit,
  AccountingDocumentItemType,
  ClearingDate,
  ClearingCreationDate,
  ClearingJournalEntryFiscalYear,
  ClearingJournalEntry,
  PostingKey,
  FinancialAccountType,
  SpecialGLCode,
  SpecialGLTransactionType,
  DebitCreditCode,
  TaxCode,
  TaxCountry,
  TaxRateValidityStartDate,
  TransactionTypeDetermination,
  AssignmentReference,
  DocumentItemText,
  ControllingArea,
  CostCenter,
  OrderID,
  SalesDocument,
  ServiceDocumentType,
  ServiceDocument,
  MasterFixedAsset,
  FixedAsset,
  OperationalGLAccount,
  GLAccount,
  Customer,
  Supplier,
  IsBalanceSheetAccount,
  SpecialGLAccountAssignment,
  DueCalculationBaseDate,
  DunningKey,
  DunningBlockingReason,
  DunningArea,
  ValuationArea,
  PaymentDifferenceReason,
  ProfitCenter,
  CompanyCodeCurrencyDetnMethod,
  TaxDeterminationDate,
  FunctionalArea,
  Segment,
  PostingDate,
  AccountingDocumentType,
  NetDueDate,
  CompanyCodeCurrency,
  AmountInCompanyCodeCurrency,
  TransactionCurrency,
  AmountInTransactionCurrency,
  BalanceTransactionCurrency,
  AmountInBalanceTransacCrcy,
  AdditionalCurrency1,
  AmountInAdditionalCurrency1,
  AdditionalCurrency2,
  AmountInAdditionalCurrency2,
  PostingClearingDataEntryStatus,
  PostingClearingDocItemIsMain,
  PostingClearingItmFldStsVal,
  PostingClearingItmMnlEntrVal,
  StatisticalPostingStatus,
  DraftEntityCreationDateTime,
  DraftEntityLastChangeDateTime,
  DraftAdministrativeDataUUID,
  DraftEntityOperationCode,
  HasActiveEntity,
  DraftFieldChanges
FROM farp_post_itm_d
LEFT OUTER JOIN I_AccountingDocumentType AS _AccountingDocumentType ON AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CurrentCostCenter ON ControllingArea = _CurrentCostCenter.ControllingArea AND CostCenter = _CurrentCostCenter.CostCenter AND _CurrentCostCenter.ValidityStartDate <= $session.system_date AND _CurrentCostCenter.ValidityEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _CurrentProfitCenter ON ControllingArea = _CurrentProfitCenter.ControllingArea AND ProfitCenter = _CurrentProfitCenter.ProfitCenter AND _CurrentProfitCenter.ValidityStartDate <= $session.system_date AND _CurrentProfitCenter.ValidityEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_FixedAsset AS _FixedAsset ON CompanyCode = _FixedAsset.CompanyCode AND MasterFixedAsset = _FixedAsset.MasterFixedAsset AND FixedAsset = _FixedAsset.FixedAsset  -- association [0..1]
LEFT OUTER JOIN I_Order AS _Order ON OrderID = _Order.OrderID  -- association [0..1]
LEFT OUTER JOIN I_SalesDocument AS _SalesDoc ON SalesDocument = _SalesDoc.SalesDocument  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_SrvcDocByDocumentType AS _ServiceDocument ON ServiceDocumentType = _ServiceDocument.ServiceDocumentType AND ServiceDocument = _ServiceDocument.ServiceDocument  -- association [0..1]
;