P_TrdtTrdtBusTrans

DDL: P_TRDTTRDTBUSTRANS SQL: PTRDTTRDBUSTRANS Type: view BASIC

P_TrdtTrdtBusTrans is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (trdt_trdbustrans) and exposes 21 fields with key field os_guid. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
trdt_trdbustrans trdttrdtbustrans from

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_Trdtflow ptrdtflow trdttrdtbustrans.os_guid = ptrdtflow.bustrans_os_guid

Annotations (6)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PTRDTTRDBUSTRANS view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY os_guid trdt_trdbustrans os_guid Lot
TreasuryBusinessTransCategory
TreasuryBusinessTransaction
TreasuryTransactionFlow ptrdtflow TreasuryTransactionFlow
HouseBank ptrdtflow HouseBank House Bank
HouseBankAccount ptrdtflow HouseBankAccount House Bank Account
PaymentReason ptrdtflow PaymentReason Payment Reason
AssignmentReference ptrdtflow AssignmentReference Assignment Reference
FinancialInstrActivityCategory ptrdtflow FinancialInstrActivityCategory
DirectionOfTransaction ptrdtflow DirectionOfTransaction
ConditionItemValidityStartDate ptrdtflow ConditionItemValidityStartDate
FinancialInstrCharacteristic ptrdtflow FinancialInstrCharacteristic Characteristics
FinancialInstrumentReference ptrdtflow FinancialInstrumentReference
CalcPeriodEndDateIsInclusive ptrdtflow CalcPeriodEndDateIsInclusive
SourceOfFlow ptrdtflow SourceOfFlow
InterestCalculationMethod ptrdtflow InterestCalculationMethod
FinancialInstrumentAssignment ptrdtflow FinancialInstrumentAssignment
NumberOfDays ptrdtflow NumberOfDays Number of Days
ActivityFinancialTransaction
CompanyCode trdt_trdbustrans company_code Company Code
_FinancialTransaction _FinancialTransaction

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_TrdtTrdtBusTrans.
-- 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: PTRDTTRDBUSTRANS

CREATE VIEW P_TrdtTrdtBusTrans AS
SELECT
  trdttrdtbustrans.os_guid AS os_guid,
  cast(trdttrdtbustrans.bustranscat as ftr_gen_business_trans_categ preserving type ) AS TreasuryBusinessTransCategory,
  cast(trdttrdtbustrans.bustransid as ftr_gen_business_transaction preserving type ) AS TreasuryBusinessTransaction,
  ptrdtflow.TreasuryTransactionFlow AS TreasuryTransactionFlow,
  ptrdtflow.HouseBank AS HouseBank,
  ptrdtflow.HouseBankAccount AS HouseBankAccount,
  ptrdtflow.PaymentReason AS PaymentReason,
  ptrdtflow.AssignmentReference AS AssignmentReference,
  ptrdtflow.FinancialInstrActivityCategory AS FinancialInstrActivityCategory,
  ptrdtflow.DirectionOfTransaction AS DirectionOfTransaction,
  ptrdtflow.ConditionItemValidityStartDate AS ConditionItemValidityStartDate,
  ptrdtflow.FinancialInstrCharacteristic AS FinancialInstrCharacteristic,
  ptrdtflow.FinancialInstrumentReference AS FinancialInstrumentReference,
  ptrdtflow.CalcPeriodEndDateIsInclusive AS CalcPeriodEndDateIsInclusive,
  ptrdtflow.SourceOfFlow AS SourceOfFlow,
  ptrdtflow.InterestCalculationMethod AS InterestCalculationMethod,
  ptrdtflow.FinancialInstrumentAssignment AS FinancialInstrumentAssignment,
  ptrdtflow.NumberOfDays AS NumberOfDays,
  cast( trdttrdtbustrans.deal_number as ftr_gen_activity_deal) AS ActivityFinancialTransaction,
  trdttrdtbustrans.company_code AS CompanyCode
FROM trdt_trdbustrans AS trdttrdtbustrans
LEFT OUTER JOIN P_Trdtflow AS ptrdtflow ON trdttrdtbustrans.os_guid = ptrdtflow.bustrans_os_guid  -- association [0..1]
;