I_CADocumentOriginCode

DDL: I_CADOCUMENTORIGINCODE Type: view_entity BASIC Package: FKK_DOCUMENT

Document Origin Code

I_CADocumentOriginCode (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Contract Accounting Document Origin Code · Contract Accounting

I_CADocumentOriginCode is a Basic CDS View (Dimension) that provides data about "Document Origin Code" in SAP S/4HANA. It reads from 1 data source (tfk001) and exposes 7 fields with key field CADocumentOriginCode. It has 1 association to related views. It is exposed through 2 OData services (ASQL_F6109, UI_CADOCUMENT_MNG). Part of development package FKK_DOCUMENT.

SAP Help Documentation

CategoryCDS Views for Configuration Data
Data CategoryDimension
Purpose
This CDS view retrieves document origin codes specifying which program or function creates a Contract Accounting document. Example Manual Posting , Reversal , Account Maintenance , Payment Lot , Returns , Write-Off This CDS view provides the data to answer the business question: Which document origin code values are available in the system? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations The SAP_A4C_BC_DEV_TST_FICA_PC ( Development - API Test - Contract Accounting ) business catalog needs to be assigned to a user to be able to use this CDS view.

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessContract Accounting
Application ComponentFI-CA-2CL
CapabilitiesData Source for Data Extraction,Association Target for Defining CDS Entities,Analytical Dimension,Data Source for Defining CDS Entities,Data Source in SQL Select
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageContract Accounting for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view retrieves document origin codes specifying which program or function creates a Contract Accounting document. </p> Example <p>Manual Posting, Reversal, Account Maintenance, Payment Lot, Returns, Write-Off</p> <p>This CDS view provides the data to answer the business question: Which document origin code values are available in the system?</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
tfk001 tfk001 from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_CADocumentOriginCodeText _Text $projection.CADocumentOriginCode = _Text.CADocumentOriginCode

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
EndUserText.label Document Origin Code view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey CADocumentOriginCode view
ObjectModel.sapObjectNodeType.name ContrAcctgDocumentOriginCode view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
VDM.viewType #BASIC view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F6109 ASQL_F6109 C2 NOT_RELEASED
UI_CADOCUMENT_MNG UI_CADOCUMENT_MNG V4 C1 NOT_RELEASED

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CADocumentOriginCode herkf Document Origin Key
CADocumentIsFromPaymentLot xplot Document From Payment Lot
ReturnsArePermitted xrefp Origin Permits Returns
PostingInDialogIsPermitted xdial Documents of this Origin can be Posted in Dialog
IsUsableForReversal xreve Use for Reversal Document Possible
DirectGLTransferIsPermitted xhdir Document Permits Direct G/L Transfer
_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_CADocumentOriginCode.
-- 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_CADocumentOriginCode AS
SELECT
  herkf AS CADocumentOriginCode,
  xplot AS CADocumentIsFromPaymentLot,
  xrefp AS ReturnsArePermitted,
  xdial AS PostingInDialogIsPermitted,
  xreve AS IsUsableForReversal,
  xhdir AS DirectGLTransferIsPermitted
FROM tfk001
LEFT OUTER JOIN I_CADocumentOriginCodeText AS _Text ON CADocumentOriginCode = _Text.CADocumentOriginCode  -- association [0..*]
;