I_CADocPostingControl
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)
| Source | Alias | Join Type |
|---|---|---|
| tfkc_hvtv | tfkc_hvtv | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA