I_CADocPostingControl

DDL: I_CADOCPOSTINGCONTROL Type: view_entity BASIC

Document Posting Control

I_CADocPostingControl is a Basic CDS View that provides data about "Document Posting Control" in SAP S/4HANA. It reads from 1 data source (tfkc_hvtv) and exposes 20 fields with key fields CAMainTransaction, CASubTransaction, CompanyCode, Division. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
tfkc_hvtv tfkc_hvtv from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompCode $projection.CompanyCode = _CompCode.CompanyCode
[0..1] I_Division _Division $projection.Division = _Division.Division
[0..1] I_CAInterestCode _InterestCode $projection.CAInterestCode = _InterestCode.CAInterestCode
[0..1] I_CADunningProcedure _DunningProcedure $projection.CADunningProcedure = _DunningProcedure.CADunningProcedure
[0..1] I_CAStatisticalItemCode _StatisticalItemCode $projection.CAStatisticalItemCode = _StatisticalItemCode.CAStatisticalItemCode
[0..*] I_CADocPostingControlText _Text $projection.CAMainTransaction = _Text.CAMainTransaction and $projection.CASubTransaction = _Text.CASubTransaction and $projection.CompanyCode = _Text.CompanyCode and $projection.Division = _Text.Division

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Document Posting Control view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
VDM.viewType #BASIC view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY CAMainTransaction hvorg Main Transactn
KEY CASubTransaction tvorg Subtransaction
KEY CompanyCode bukrs Value
KEY Division spart Source supplier
CADebitCreditCode shkzg Returns
CADocumentIsPostedManually xmanb Manual posting
CAItemIsOnlyForSettlement verkz Version
CAInterestCode ikey Interest key
CADunningProcedure mahnv Dunning Proc.
CAOtherTaxCode strkz TxCde:Oth.Taxes
CAPaymentLockReason spzah Pymt Lock Rsn
CADunningLockReason mansp DunnLockReason
CAInterestLockReason sperz Payment block
CAClearingLockReason Clearing Lock
_CompCode _CompCode
_Division _Division
_InterestCode _InterestCode
_DunningProcedure _DunningProcedure
_StatisticalItemCode _StatisticalItemCode
_Text _Text

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 I_CADocPostingControl.
-- 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 I_CADocPostingControl AS
SELECT
  hvorg AS CAMainTransaction,
  tvorg AS CASubTransaction,
  bukrs AS CompanyCode,
  spart AS Division,
  shkzg AS CADebitCreditCode,
  xmanb AS CADocumentIsPostedManually,
  verkz AS CAItemIsOnlyForSettlement,
  ikey AS CAInterestCode,
  mahnv AS CADunningProcedure,
  strkz AS CAOtherTaxCode,
  spzah AS CAPaymentLockReason,
  mansp AS CADunningLockReason,
  sperz AS CAInterestLockReason,
  cast( clrlo as clrlo_kk preserving type ) AS CAClearingLockReason
FROM tfkc_hvtv
LEFT OUTER JOIN I_CompanyCode AS _CompCode ON CompanyCode = _CompCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division  -- association [0..1]
LEFT OUTER JOIN I_CAInterestCode AS _InterestCode ON CAInterestCode = _InterestCode.CAInterestCode  -- association [0..1]
LEFT OUTER JOIN I_CADunningProcedure AS _DunningProcedure ON CADunningProcedure = _DunningProcedure.CADunningProcedure  -- association [0..1]
LEFT OUTER JOIN I_CAStatisticalItemCode AS _StatisticalItemCode ON CAStatisticalItemCode = _StatisticalItemCode.CAStatisticalItemCode  -- association [0..1]
LEFT OUTER JOIN I_CADocPostingControlText AS _Text ON CAMainTransaction = _Text.CAMainTransaction AND CASubTransaction = _Text.CASubTransaction AND CompanyCode = _Text.CompanyCode AND Division = _Text.Division  -- association [0..*]
;