I_CFinReplicatedSalesDocument
CFin Replicated Sales Document: Header
I_CFinReplicatedSalesDocument is a Basic CDS View that provides data about "CFin Replicated Sales Document: Header" in SAP S/4HANA. It reads from 1 data source (cfin_av_so_root) and exposes 43 fields with key fields SenderLogicalSystem, CFinReplicatedSalesDocument. It has 16 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cfin_av_so_root | cfin_av_so_root | from |
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SDDocumentCategory | _SDDocumentCategory | $projection.SDDocumentCategory = _SDDocumentCategory.SDDocumentCategory |
| [0..1] | I_SalesDocumentType | _SalesDocumentType | $projection.SalesDocumentType = _SalesDocumentType.SalesDocumentType |
| [0..1] | I_SalesOrganization | _SalesOrganization | $projection.SalesOrganization = _SalesOrganization.SalesOrganization |
| [0..1] | I_DistributionChannel | _DistributionChannel | $projection.DistributionChannel = _DistributionChannel.DistributionChannel |
| [0..1] | I_Division | _OrganizationDivision | $projection.OrganizationDivision = _OrganizationDivision.Division |
| [0..1] | I_SalesGroup | _SalesGroup | $projection.SalesGroup = _SalesGroup.SalesGroup |
| [0..1] | I_SalesOffice | _SalesOffice | $projection.SalesOffice = _SalesOffice.SalesOffice |
| [0..1] | I_Currency | _TransactionCurrency | $projection.TransactionCurrency = _TransactionCurrency.Currency |
| [0..1] | I_CompanyCode | _BillingCompanyCode | $projection.BillingCompanyCode = _BillingCompanyCode.CompanyCode |
| [0..1] | I_SlsPricingProcedure | _SDPricingProcedure | $projection.SDPricingProcedure = _SDPricingProcedure.PricingProcedure |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_SDDocumentCategory | _ReferenceSDDocumentCategory | $projection.ReferenceSDDocumentCategory = _ReferenceSDDocumentCategory.SDDocumentCategory |
| [0..*] | I_CFinRpldSalesDocumentItem | _Item | $projection.SenderLogicalSystem = _Item.SenderLogicalSystem and $projection.CFinReplicatedSalesDocument = _Item.CFinReplicatedSalesDocument |
| [0..1] | I_CustomerGroup | _CustomerGroup | $projection.CustomerGroup = _CustomerGroup.CustomerGroup |
| [0..1] | I_LogicalSystem | _LogicalSystem | $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem |
| [1..1] | E_CFinReplicatedSalesDocument | _Extension | $projection.CFinReplicatedSalesDocument = _Extension.CFinReplicatedSalesDocument and $projection.SenderLogicalSystem = _Extension.SourceSystemLogicalSystem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | CFin Replicated Sales Document: Header | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | ICFINRSOROOT | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SenderLogicalSystem | cfin_av_so_root | fins_logsys | |
| KEY | CFinReplicatedSalesDocument | |||
| ReferenceSDDocument | cfin_av_so_root | vgbel | ||
| ReferenceSDDocumentCategory | cfin_av_so_root | vgtyp | ||
| SalesOrganization | cfin_av_so_root | vkorg | ||
| DistributionChannel | cfin_av_so_root | vtweg | ||
| BillingCompanyCode | cfin_av_so_root | bukrs_vf | ||
| CreationDate | cfin_av_so_root | erdat | ||
| SDDocumentCategory | cfin_av_so_root | vbtyp | ||
| SalesDocumentType | ||||
| CostCenter | cfin_av_so_root | kostl | ||
| TransactionCurrency | cfin_av_so_root | waerk | ||
| LastChangeDate | cfin_av_so_root | aedat | ||
| CreatedByUser | cfin_av_so_root | ernam | ||
| SalesDocumentDate | cfin_av_so_root | audat | ||
| TotalNetAmount | cfin_av_so_root | netwr | ||
| SalesGroup | cfin_av_so_root | vkgrp | ||
| SalesOffice | cfin_av_so_root | vkbur | ||
| ControllingArea | cfin_av_so_root | kokrs | ||
| SalesDocumentCondition | cfin_av_so_root | knumv | ||
| SDPricingProcedure | cfin_av_so_root | kalsm | ||
| TaxDepartureCountry | cfin_av_so_root | landtx | ||
| SoldToParty | cfin_av_so_root | kunnr | ||
| OrganizationDivision | cfin_av_so_root | spart | ||
| CustomerGroup | cfin_av_so_biz | kdgrp | ||
| PricingDate | cfin_av_so_biz | prsdt | ||
| AdditionalValueDays | cfin_av_so_biz | valtg | ||
| BillingDocumentDate | cfin_av_so_biz | fkdat | ||
| _SDDocumentCategory | _SDDocumentCategory | |||
| _SalesDocumentType | _SalesDocumentType | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _OrganizationDivision | _OrganizationDivision | |||
| _SalesGroup | _SalesGroup | |||
| _SalesOffice | _SalesOffice | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _BillingCompanyCode | _BillingCompanyCode | |||
| _SDPricingProcedure | _SDPricingProcedure | |||
| _ControllingArea | _ControllingArea | |||
| _ReferenceSDDocumentCategory | _ReferenceSDDocumentCategory | |||
| _Item | _Item | |||
| _CustomerGroup | _CustomerGroup | |||
| _LogicalSystem | _LogicalSystem |
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'CFin Replicated Sales Document: Header'
@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
authorizationCheck: #NOT_REQUIRED
}
@AbapCatalog: {
sqlViewName: 'ICFINRSOROOT',
preserveKey: true,
compiler.compareFilter: true
}
@ObjectModel: {
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #L
}
}
define view I_CFinReplicatedSalesDocument
as select from cfin_av_so_root
left outer to one join cfin_av_so_biz on cfin_av_so_root.fins_logsys = cfin_av_so_biz.fins_logsys
and cfin_av_so_root.vbeln = cfin_av_so_biz.vbeln
and cfin_av_so_biz.posnr = '000000'
association [0..1] to I_SDDocumentCategory as _SDDocumentCategory on $projection.SDDocumentCategory = _SDDocumentCategory.SDDocumentCategory
association [0..1] to I_SalesDocumentType as _SalesDocumentType on $projection.SalesDocumentType = _SalesDocumentType.SalesDocumentType
association [0..1] to I_SalesOrganization as _SalesOrganization on $projection.SalesOrganization = _SalesOrganization.SalesOrganization
association [0..1] to I_DistributionChannel as _DistributionChannel on $projection.DistributionChannel = _DistributionChannel.DistributionChannel
association [0..1] to I_Division as _OrganizationDivision on $projection.OrganizationDivision = _OrganizationDivision.Division
association [0..1] to I_SalesGroup as _SalesGroup on $projection.SalesGroup = _SalesGroup.SalesGroup
association [0..1] to I_SalesOffice as _SalesOffice on $projection.SalesOffice = _SalesOffice.SalesOffice
association [0..1] to I_Currency as _TransactionCurrency on $projection.TransactionCurrency = _TransactionCurrency.Currency
association [0..1] to I_CompanyCode as _BillingCompanyCode on $projection.BillingCompanyCode = _BillingCompanyCode.CompanyCode
association [0..1] to I_SlsPricingProcedure as _SDPricingProcedure on $projection.SDPricingProcedure = _SDPricingProcedure.PricingProcedure
association [0..1] to I_ControllingArea as _ControllingArea on $projection.ControllingArea = _ControllingArea.ControllingArea
association [0..1] to I_SDDocumentCategory as _ReferenceSDDocumentCategory on $projection.ReferenceSDDocumentCategory = _ReferenceSDDocumentCategory.SDDocumentCategory
association [0..*] to I_CFinRpldSalesDocumentItem as _Item on $projection.SenderLogicalSystem = _Item.SenderLogicalSystem
and $projection.CFinReplicatedSalesDocument = _Item.CFinReplicatedSalesDocument
association [0..1] to I_CustomerGroup as _CustomerGroup on $projection.CustomerGroup = _CustomerGroup.CustomerGroup
//compatible with union view ,because union association is 0..1
association [0..1] to I_LogicalSystem as _LogicalSystem on $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem
association [1..1] to E_CFinReplicatedSalesDocument as _Extension on $projection.CFinReplicatedSalesDocument = _Extension.CFinReplicatedSalesDocument
and $projection.SenderLogicalSystem = _Extension.SourceSystemLogicalSystem
{
@ObjectModel.foreignKey.association: '_LogicalSystem'
key cfin_av_so_root.fins_logsys as SenderLogicalSystem,
key cast( cfin_av_so_root.vbeln as fins_cfin_av_rpld_sls_doc preserving type ) as CFinReplicatedSalesDocument,
cfin_av_so_root.vgbel as ReferenceSDDocument,
@ObjectModel.foreignKey.association: '_ReferenceSDDocumentCategory'
cfin_av_so_root.vgtyp as ReferenceSDDocumentCategory,
@ObjectModel.foreignKey.association: '_SalesOrganization'
cfin_av_so_root.vkorg as SalesOrganization,
@ObjectModel.foreignKey.association: '_DistributionChannel'
cfin_av_so_root.vtweg as DistributionChannel,
@ObjectModel.foreignKey.association: '_BillingCompanyCode'
cfin_av_so_root.bukrs_vf as BillingCompanyCode,
cfin_av_so_root.erdat as CreationDate,
@ObjectModel.foreignKey.association: '_SDDocumentCategory'
cfin_av_so_root.vbtyp as SDDocumentCategory,
@ObjectModel.foreignKey.association: '_SalesDocumentType'
cast( cfin_av_so_root.auart as auart_unv preserving type ) as SalesDocumentType,
cfin_av_so_root.kostl as CostCenter,
@Semantics.currencyCode: true
@ObjectModel.foreignKey.association: '_TransactionCurrency'
cfin_av_so_root.waerk as TransactionCurrency,
cfin_av_so_root.aedat as LastChangeDate,
cfin_av_so_root.ernam as CreatedByUser,
cfin_av_so_root.audat as SalesDocumentDate,
@Semantics.amount.currencyCode: 'TransactionCurrency'
cfin_av_so_root.netwr as TotalNetAmount,
@ObjectModel.foreignKey.association: '_SalesGroup'
cfin_av_so_root.vkgrp as SalesGroup,
@ObjectModel.foreignKey.association: '_SalesOffice'
cfin_av_so_root.vkbur as SalesOffice,
@ObjectModel.foreignKey.association: '_ControllingArea'
cfin_av_so_root.kokrs as ControllingArea,
cfin_av_so_root.knumv as SalesDocumentCondition,
@ObjectModel.foreignKey.association: '_SDPricingProcedure'
cfin_av_so_root.kalsm as SDPricingProcedure,
cfin_av_so_root.landtx as TaxDepartureCountry,
cfin_av_so_root.kunnr as SoldToParty,
@ObjectModel.foreignKey.association: '_OrganizationDivision'
cfin_av_so_root.spart as OrganizationDivision,
@ObjectModel.foreignKey.association: '_CustomerGroup'
cfin_av_so_biz.kdgrp as CustomerGroup,
cfin_av_so_biz.prsdt as PricingDate,
cfin_av_so_biz.valtg as AdditionalValueDays,
cfin_av_so_biz.fkdat as BillingDocumentDate,
_SDDocumentCategory,
_SalesDocumentType,
_SalesOrganization,
_DistributionChannel,
_OrganizationDivision,
_SalesGroup,
_SalesOffice,
_TransactionCurrency,
_BillingCompanyCode,
_SDPricingProcedure,
_ControllingArea,
_ReferenceSDDocumentCategory,
_Item,
_CustomerGroup,
_LogicalSystem
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"CFIN_AV_SO_BIZ",
"CFIN_AV_SO_ROOT"
],
"ASSOCIATED":
[
"E_CFINREPLICATEDSALESDOCUMENT",
"I_CFINRPLDSALESDOCUMENTITEM",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_CURRENCY",
"I_CUSTOMERGROUP",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_LOGICALSYSTEM",
"I_SALESDOCUMENTTYPE",
"I_SALESGROUP",
"I_SALESOFFICE",
"I_SALESORGANIZATION",
"I_SDDOCUMENTCATEGORY",
"I_SLSPRICINGPROCEDURE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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