C_OplAcctgDocItemCorrespnc
Correspondence SAP09 - Operational document - items
C_OplAcctgDocItemCorrespnc is a Consumption CDS View that provides data about "Correspondence SAP09 - Operational document - items" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 261 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | Item | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [*] | I_PostingKeyWthSpclGLCodeTxt | _PostingKeyWthSpclGLCodeTxt | _PostingKeyWthSpclGLCodeTxt.PostingKey = Item.PostingKey and _PostingKeyWthSpclGLCodeTxt.SpecialGLCode = Item.SpecialGLCode |
| [*] | I_GLAccountText | _GLAccountText | _GLAccountText.ChartOfAccounts = Item.ChartOfAccounts and _GLAccountText.GLAccount = Item.GLAccount |
| [0..1] | I_WBSElementByInternalKey | _WBSElementInternalIDText | Item.WBSElementInternalID = _WBSElementInternalIDText.WBSElementInternalID |
| [0..1] | I_WBSElementBasicData | _I_WBSElementBasicData | Item.WBSElementInternalID = _I_WBSElementBasicData.WBSElementInternalID |
| [0..1] | C_CorrespondenceAddress | _CustomerAddress | $projection.CorrespncCustomerAddressID = _CustomerAddress.AddressID |
| [0..1] | C_CorrespondenceAddress | _SupplierAddress | $projection.SupplierAddressID = _SupplierAddress.AddressID |
| [0..*] | C_CorrespondenceItemNote | _CorrespondenceItemNote | $projection.CompanyCode = _CorrespondenceItemNote.CompanyCode and $projection.FiscalYear = _CorrespondenceItemNote.FiscalYear and $projection.AccountingDocument = _CorrespondenceItemNote.AccountingDocument and $projection.AccountingDocumentItem = _CorrespondenceItemNote.AccountingDocumentItem |
| [1] | E_OperationalAcctgDocItem | _Extension | $projection.CompanyCode = _Extension.CompanyCode and $projection.FiscalYear = _Extension.FiscalYear and $projection.AccountingDocument = _Extension.AccountingDocument and $projection.AccountingDocumentItem = _Extension.AccountingDocumentItem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | COPLADICOR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Correspondence SAP09 - Operational document - items | view |
Fields (261)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_OperationalAcctgDocItem | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_OperationalAcctgDocItem | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | I_OperationalAcctgDocItem | AccountingDocument | Journal Entry |
| KEY | AccountingDocumentItem | I_OperationalAcctgDocItem | AccountingDocumentItem | Posting View Item |
| PostingKey | I_OperationalAcctgDocItem | PostingKey | Posting Key | |
| PostingKeyName | ||||
| GLAccount | I_OperationalAcctgDocItem | GLAccount | General Ledger | |
| GLAccountName | ||||
| GLAccountLongName | ||||
| Customer | I_OperationalAcctgDocItem | Customer | Sold-to Party | |
| CustomerName | ||||
| CustomerFullName | ||||
| CorrespncCustomerAddressID | ||||
| Supplier | I_OperationalAcctgDocItem | Supplier | Supplier | |
| SupplierName | ||||
| SupplierFullName | ||||
| SupplierAddressID | ||||
| AmountInCompanyCodeCurrency | I_OperationalAcctgDocItem | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| CompanyCodeCurrency | I_OperationalAcctgDocItem | CompanyCodeCurrency | Local Currency | |
| AmountInTransactionCurrency | I_OperationalAcctgDocItem | AmountInTransactionCurrency | Pt Crcy Amt | |
| TransactionCurrency | I_OperationalAcctgDocItem | TransactionCurrency | Transaction Currency | |
| DocumentItemText | I_OperationalAcctgDocItem | DocumentItemText | Text | |
| ChartOfAccounts | I_OperationalAcctgDocItem | ChartOfAccounts | Node Class | |
| AccountingDocumentItemType | AccountingDocumentItemType | Line Item ID | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| ClearingCreationDate | ClearingCreationDate | Clrg Creation Date | ||
| ClearingAccountingDocument | ClearingJournalEntry | Clrng doc. | ||
| FinancialAccountType | I_OperationalAcctgDocItem | FinancialAccountType | Fin. Account Type | |
| SpecialGLCode | I_OperationalAcctgDocItem | SpecialGLCode | Special G/L Ind | |
| SpecialGLTransactionType | SpecialGLTransactionType | Transact.Type | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| BusinessArea | BusinessArea | Business Area | ||
| PartnerBusinessArea | PartnerBusinessArea | Trdg Part.BA | ||
| TaxCode | TaxCode | Tax Code | ||
| TaxCountry | TaxCountry | Tax Ctry/Reg. | ||
| WithholdingTaxCode | WithholdingTaxCode | WTax Code | ||
| TaxType | TaxType | Tax Type | ||
| TaxItemGroup | TaxItemGroup | Tax doc. item number | ||
| TransactionTypeDetermination | TransactionTypeDetermination | Transaction Key | ||
| ValueDate | ValueDate | Value Date | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| PartnerCompany | PartnerCompany | Trading Partner | ||
| FinancialTransactionType | FinancialTransactionType | Transact. Type | ||
| CorporateGroupAccount | CorporateGroupAccount | Group Account Number | ||
| PlanningLevel | PlanningLevel | Planning Level | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| CostCenter | CostCenter | Cost Center | ||
| Project | Project | WBS Element | ||
| OrderID | OrderID | Order ID | ||
| BillingDocument | BillingDocument | SD Document | ||
| SalesDocument | SalesDocument | SD Document | ||
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| ScheduleLine | ScheduleLine | Schedule Line | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| ServiceDocumentItem | ServiceDocumentItem | Service Document | ||
| MasterFixedAsset | MasterFixedAsset | Fixed Asset | ||
| FixedAsset | FixedAsset | Sub-number | ||
| AssetTransactionType | AssetTransactionType | Trans.Type | ||
| AssetValueDate | AssetValueDate | Reference date | ||
| PersonnelNumber | PersonnelNumber | Personnel No. | ||
| IsSalesRelated | IsSalesRelated | Is Sales Related | ||
| LineItemDisplayIsEnabled | LineItemDisplayIsEnabled | Line Items | ||
| IsOpenItemManaged | IsOpenItemManaged | Open Item Management | ||
| IsNotCashDiscountLiable | IsNotCashDiscountLiable | W/o CashDsc. | ||
| IsAutomaticallyCreated | IsAutomaticallyCreated | Is Automatically Created | ||
| IsUsedInPaymentTransaction | IsUsedInPaymentTransaction | Is Used In Payment Transaction | ||
| OperationalGLAccount | OperationalGLAccount | Operational G/L Acct | ||
| BranchAccount | BranchAccount | Branch Account No. | ||
| IsBalanceSheetAccount | IsBalanceSheetAccount | Is Balance Sheet Account | ||
| ProfitLossAccountType | ProfitLossAccountType | Profit Loss Account Type | ||
| SpecialGLAccountAssignment | SpecialGLAccountAssignment | Special G/L Assignmt | ||
| DueCalculationBaseDate | DueCalculationBaseDate | Due Calculation Base Date | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| NetPaymentDays | NetPaymentDays | Net Pmt Terms Period | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| PaymentBlockingReason | PaymentBlockingReason | Pmnt block | ||
| FixedCashDiscount | FixedCashDiscount | Fixed Cash Discount | ||
| HouseBank | HouseBank | House Bank | ||
| BPBankAccountInternalID | BPBankAccountInternalID | BP Bank Account | ||
| TaxDistributionCode1 | TaxDistributionCode1 | Tax Distr. Code 1 | ||
| TaxDistributionCode2 | TaxDistributionCode2 | Tax Distr. Code 2 | ||
| TaxDistributionCode3 | TaxDistributionCode3 | Tax Distr. Code 3 | ||
| InvoiceReference | InvoiceReference | Invoice Reference | ||
| InvoiceReferenceFiscalYear | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | ||
| InvoiceItemReference | InvoiceItemReference | Item | ||
| FollowOnDocumentType | FollowOnDocumentType | Follow-On Document Type | ||
| StateCentralBankPaymentReason | StateCentralBankPaymentReason | SCB Ind. | ||
| SupplyingCountry | SupplyingCountry | Supplying Ctry/Reg. | ||
| InvoiceList | InvoiceList | Invoice List | ||
| BillOfExchangeUsage | BillOfExchangeUsage | BoE Usage | ||
| DunningKey | DunningKey | Dunning Key | ||
| DunningBlockingReason | DunningBlockingReason | Set Dunning Block | ||
| LastDunningDate | LastDunningDate | Last Dunned | ||
| DunningLevel | DunningLevel | Dunning Level | ||
| DunningArea | DunningArea | Dunning Area | ||
| WithholdingTaxCertificate | WithholdingTaxCertificate | WHT Certificate | ||
| Material | Material | Vehicle Model | ||
| Product | Product | Product Sold | ||
| Plant | Plant | Valuation Area | ||
| PurchasingDocument | PurchasingDocument | Purchasing Document | ||
| PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | ||
| AccountAssignmentNumber | AccountAssignmentNumber | Account Assgmt No. | ||
| IsCompletelyDelivered | IsCompletelyDelivered | Is completely delivered | ||
| MaterialPriceControl | MaterialPriceControl | Price Control | ||
| ValuationArea | ValuationArea | Valuation Area | ||
| InventoryValuationType | InventoryValuationType | Valuation Type | ||
| VATRegistration | VATRegistration | VAT Registration No. | ||
| DelivOfGoodsDestCountry | DelivOfGoodsDestCountry | Dest. C/R | ||
| PaymentDifferenceReason | PaymentDifferenceReason | Reason Code | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| JointVenture | JointVenture | Joint venture | ||
| JointVentureCostRecoveryCode | JointVentureCostRecoveryCode | Recovery Ind. | ||
| JointVentureEquityGroup | JointVentureEquityGroup | Joint Venture Equity Group | ||
| TreasuryContractType | TreasuryContractType | Treasury Contract Type | ||
| AssetContract | AssetContract | Asset Contract | ||
| CashFlowType | CashFlowType | Flow Type | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| RealEstateObject | RealEstateObject | Real Estate Key | ||
| SettlementReferenceDate | SettlementReferenceDate | Reference date | ||
| CommitmentItem | CommitmentItem | Commitment item | ||
| CostObject | CostObject | Cost Object | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| OrderInternalBillOfOperations | OrderInternalBillOfOperations | Order Internal Bill of Operations | ||
| OrderIntBillOfOperationsItem | OrderIntBillOfOperationsItem | Order Internal Bill of Operations Item | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSDescription | _WBSElementInternalIDText | WBSDescription | WBS Element Name | |
| WBSElementExternalID | _I_WBSElementBasicData | WBSElementExternalID | WBS Element External ID | |
| ProfitabilitySegment | ProfitabilitySegment_2 | Profit. segment | ||
| JointVentureEquityType | JointVentureEquityType | Joint Venture Equity Type | ||
| IsEUTriangularDeal | IsEUTriangularDeal | Is EU Triangular Deal | ||
| CostOriginGroup | CostOriginGroup | Origin Group | ||
| CompanyCodeCurrencyDetnMethod | CompanyCodeCurrencyDetnMethod | Co Crcy Detn Meth | ||
| ClearingIsReversed | ClearingIsReversed | Clearing Is Reversed | ||
| PaymentMethodSupplement | PaymentMethodSupplement | Pmnt Meth. Sup. | ||
| AlternativeGLAccount | AlternativeGLAccount | Group Account | ||
| FundsCenter | FundsCenter | Funds Center | ||
| Fund | Fund | Sender Fund | ||
| PartnerProfitCenter | PartnerProfitCenter | Profit Center | ||
| Reference1IDByBusinessPartner | Reference1IDByBusinessPartner | Reference Key 1 | ||
| Reference2IDByBusinessPartner | Reference2IDByBusinessPartner | Reference Key 2 | ||
| EarmarkedFundsDocument | EarmarkedFundsDocument | Earmarked Funds | ||
| EarmarkedFundsDocumentItem | EarmarkedFundsDocumentItem | Document Item | ||
| IsNegativePosting | IsNegativePosting | Negative Posting | ||
| PaymentCardItem | PaymentCardItem | Payment Card Item | ||
| PaymentCardPaymentSettlement | PaymentCardPaymentSettlement | Payment Card Payment Settlement | ||
| CreditControlArea | CreditControlArea | Credit Control Area | ||
| Reference3IDByBusinessPartner | Reference3IDByBusinessPartner | Reference Key 3 | ||
| DataExchangeInstruction1 | DataExchangeInstruction1 | Instruction 1 | ||
| DataExchangeInstruction2 | DataExchangeInstruction2 | Instruction 2 | ||
| DataExchangeInstruction3 | DataExchangeInstruction3 | Instruction 3 | ||
| DataExchangeInstruction4 | DataExchangeInstruction4 | Instruction 4 | ||
| Region | Region | Venue Region | ||
| HasPaymentOrder | HasPaymentOrder | Payment Sent | ||
| PaymentReference | PaymentReference | Payment Reference | ||
| TaxDeterminationDate | TaxDeterminationDate | Tx Determination Dte | ||
| ClearingItem | ClearingItem | Clearing Item | ||
| BusinessPlace | BusinessPlace | Business place | ||
| TaxSection | TaxSection | Tax Section | ||
| CostCtrActivityType | CostCtrActivityType | Activity Type | ||
| AccountsReceivableIsPledged | AccountsReceivableIsPledged | Accounts Receivable Is Pledged | ||
| BusinessProcess | BusinessProcess | Business Process | ||
| GrantID | GrantID | Sender Grant | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| CustomerIsInExecution | CustomerIsInExecution | Customer Is In Execution | ||
| FundedProgram | FundedProgram | Funded Program | ||
| ClearingDocFiscalYear | ClearingJournalEntryFiscalYear | Fiscal Year of Clearing Journal Entry | ||
| LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | ||
| Segment | Segment | Segment number | ||
| PartnerSegment | PartnerSegment | Partner Segment | ||
| PartnerFunctionalArea | PartnerFunctionalArea | Rec. Fntcl Area | ||
| HouseBankAccount | HouseBankAccount | House Bank Account | ||
| CostElement | CostElement | G/L Account | ||
| PaymentServiceProvider | PaymentServiceProvider | Payt Srvc Provider | ||
| PaymentRefByPaytSrvcProvider | PaymentRefByPaytSrvcProvider | Reference by PSP | ||
| SEPAMandate | SEPAMandate | SEPA Mandate | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| OriginalReferenceDocument | OriginalReferenceDocument | Reference Key | ||
| ReferenceDocumentLogicalSystem | ReferenceDocumentLogicalSystem | Ref. Doc. Lgcl Syst. | ||
| AccountingDocumentItemRef | AccountingDocumentItemRef | Position | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| AccountingDocumentCategory | AccountingDocumentCategory | Journal Entry Category | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| NetDueDate | NetDueDate | Net Due Date | ||
| CashDiscount1DueDate | CashDiscount1DueDate | Cash Discount 1 | ||
| CashDiscount2DueDate | CashDiscount2DueDate | Cash Discount 2 | ||
| OffsettingAccount | OffsettingAccount | Offsetting Acct | ||
| OffsettingAccountType | OffsettingAccountType | Offset Acct Type | ||
| OffsettingChartOfAccounts | OffsettingChartOfAccounts | Offsetting Chart of Accounts | ||
| PartnerFund | PartnerFund | Receiver Fund | ||
| PartnerGrant | PartnerGrant | Receiver Grant | ||
| BudgetPeriod | BudgetPeriod | Budget Period | ||
| PartnerBudgetPeriod | PartnerBudgetPeriod | Partner Budget Period | ||
| BranchCode | BranchCode | Branch Code | ||
| OplAcctgDocItmCntrySpcfcRef1 | OplAcctgDocItmCntrySpcfcRef1 | Country/Region Specific Reference 1 | ||
| CashLedgerCompanyCode | CashLedgerCompanyCode | Cash Origin CoCode | ||
| CashLedgerAccount | CashLedgerAccount | Cash Origin Account | ||
| PubSecBudgetAccountCoCode | PubSecBudgetAccountCoCode | Company Code for Budget Account | ||
| PubSecBudgetAccount | PubSecBudgetAccount | Budget Account | ||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | ||
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | ||
| ValuationDiffAmtInCoCodeCrcy | ValuationDiffAmtInCoCodeCrcy | |||
| CashDiscountAmtInCoCodeCrcy | CashDiscountAmtInCoCodeCrcy | Discount Amt | ||
| InvoiceAmtInCoCodeCrcy | InvoiceAmtInCoCodeCrcy | |||
| OriginalTaxBaseAmount | OriginalTaxBaseAmount | |||
| TaxAmount | TaxAmount | Tax Amt in Rptg Crcy | ||
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | Value-Added Tax | ||
| WithholdingTaxBaseAmount | WithholdingTaxBaseAmount | WTax Base Amt | ||
| PlannedAmtInTransactionCrcy | PlannedAmtInTransactionCrcy | Plnd Amt Trans. Crcy | ||
| CashDiscountBaseAmount | CashDiscountBaseAmount | Cash Dscnt Base Amt | ||
| CashDiscountAmount | CashDiscountAmount | CD Amount | ||
| NetPaymentAmount | NetPaymentAmount | Net Payment Amount | ||
| WithholdingTaxAmount | WithholdingTaxAmount | Withholding Tax Amt | ||
| WithholdingTaxExemptionAmt | WithholdingTaxExemptionAmt | WTax-Exempt | ||
| InvoiceAmountInFrgnCurrency | InvoiceAmountInFrgnCurrency | Invc. Amt Frgn Crcy | ||
| BalanceTransactionCurrency | BalanceTransactionCurrency | Currency | ||
| AmountInBalanceTransacCrcy | AmountInBalanceTransacCrcy | Amount in Balance Transaction Currency | ||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| ValuationDiffAmtInAddlCrcy1 | ValuationDiffAmtInAddlCrcy1 | |||
| AmountInAdditionalCurrency1 | AmountInAdditionalCurrency1 | Amount in Additional Currency 1 | ||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| AmountInAdditionalCurrency2 | AmountInAdditionalCurrency2 | LC2 Amount | ||
| ValuationDiffAmtInAddlCrcy2 | ValuationDiffAmtInAddlCrcy2 | |||
| PaymentCurrency | PaymentCurrency | Payment Currency | ||
| AmountInPaymentCurrency | AmountInPaymentCurrency | Amount in Payment Currency | ||
| CreditControlAreaCurrency | CreditControlAreaCurrency | Credit Control Area Currency | ||
| HedgedAmount | HedgedAmount | |||
| BaseUnit | BaseUnit | Unit of Measure | ||
| Quantity | Quantity | Value | ||
| GoodsMovementEntryUnit | GoodsMovementEntryUnit | Unit of Entry | ||
| QuantityInEntryUnit | QuantityInEntryUnit | Quantity in Unit of Entry | ||
| PurchasingDocumentPriceUnit | PurchasingDocumentPriceUnit | Purchasing Document Price Unit | ||
| PurchaseOrderQty | PurchaseOrderQty | Purchase Order Quantity | ||
| MaterialPriceUnitQty | MaterialPriceUnitQty | Price unit | ||
| NumberOfItems | NumberOfItems | |||
| GLAccountAuthorizationGroup | GLAccountAuthorizationGroup | |||
| SupplierBasicAuthorizationGrp | SupplierBasicAuthorizationGrp | |||
| CustomerBasicAuthorizationGrp | CustomerBasicAuthorizationGrp | |||
| AcctgDocTypeAuthorizationGroup | AcctgDocTypeAuthorizationGroup | |||
| OrderType | OrderType | Order Type | ||
| SalesOrderType | SalesOrderType | Sales Order Type | ||
| AssetClass | AssetClass | Asset Class | ||
| _CustomerAddress | _CustomerAddress | |||
| _SupplierAddress | _SupplierAddress | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _CurrentCostCenter | _CurrentCostCenter | |||
| _CurrentProfitCenter | _CurrentProfitCenter | |||
| _FixedAsset | _FixedAsset | |||
| _GLAccountInCompanyCode | _GLAccountInCompanyCode | |||
| _Order | _Order | |||
| _SalesDoc | _SalesDoc | |||
| _ServiceDocument | _ServiceDocument | |||
| _Customer | _Customer | |||
| _Supplier | _Supplier | |||
| _CorrespondenceItemNote | _CorrespondenceItemNote |
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 C_OplAcctgDocItemCorrespnc.
-- 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: COPLADICOR
CREATE VIEW C_OplAcctgDocItemCorrespnc AS
SELECT
Item.CompanyCode AS CompanyCode,
Item.FiscalYear AS FiscalYear,
Item.AccountingDocument AS AccountingDocument,
Item.AccountingDocumentItem AS AccountingDocumentItem,
Item.PostingKey AS PostingKey,
_PostingKeyWthSpclGLCodeTxt[1:Language = $session.system_language].PostingKeyName AS PostingKeyName,
Item.GLAccount AS GLAccount,
_GLAccountText[1:Language = $session.system_language].GLAccountName AS GLAccountName,
_GLAccountText[1:Language = $session.system_language].GLAccountLongName AS GLAccountLongName,
Item.Customer AS Customer,
Item._Customer.CustomerName AS CustomerName,
Item._Customer.CustomerFullName AS CustomerFullName,
Item._Customer.AddressID AS CorrespncCustomerAddressID,
Item.Supplier AS Supplier,
Item._Supplier.SupplierName AS SupplierName,
Item._Supplier.SupplierFullName AS SupplierFullName,
Item._Supplier.AddressID AS SupplierAddressID,
Item.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
Item.CompanyCodeCurrency AS CompanyCodeCurrency,
Item.AmountInTransactionCurrency AS AmountInTransactionCurrency,
Item.TransactionCurrency AS TransactionCurrency,
Item.DocumentItemText AS DocumentItemText,
Item.ChartOfAccounts AS ChartOfAccounts,
AccountingDocumentItemType,
ClearingDate,
ClearingCreationDate,
ClearingJournalEntry AS ClearingAccountingDocument,
Item.FinancialAccountType AS FinancialAccountType,
Item.SpecialGLCode AS SpecialGLCode,
SpecialGLTransactionType,
DebitCreditCode,
BusinessArea,
PartnerBusinessArea,
TaxCode,
TaxCountry,
WithholdingTaxCode,
TaxType,
TaxItemGroup,
TransactionTypeDetermination,
ValueDate,
AssignmentReference,
PartnerCompany,
FinancialTransactionType,
CorporateGroupAccount,
PlanningLevel,
ControllingArea,
CostCenter,
Project,
OrderID,
BillingDocument,
SalesDocument,
SalesDocumentItem,
ScheduleLine,
ServiceDocumentType,
ServiceDocument,
ServiceDocumentItem,
MasterFixedAsset,
FixedAsset,
AssetTransactionType,
AssetValueDate,
PersonnelNumber,
IsSalesRelated,
LineItemDisplayIsEnabled,
IsOpenItemManaged,
IsNotCashDiscountLiable,
IsAutomaticallyCreated,
IsUsedInPaymentTransaction,
OperationalGLAccount,
BranchAccount,
IsBalanceSheetAccount,
ProfitLossAccountType,
SpecialGLAccountAssignment,
DueCalculationBaseDate,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
PaymentMethod,
PaymentBlockingReason,
FixedCashDiscount,
HouseBank,
BPBankAccountInternalID,
TaxDistributionCode1,
TaxDistributionCode2,
TaxDistributionCode3,
InvoiceReference,
InvoiceReferenceFiscalYear,
InvoiceItemReference,
FollowOnDocumentType,
StateCentralBankPaymentReason,
SupplyingCountry,
InvoiceList,
BillOfExchangeUsage,
DunningKey,
DunningBlockingReason,
LastDunningDate,
DunningLevel,
DunningArea,
WithholdingTaxCertificate,
Material,
Product,
Plant,
PurchasingDocument,
PurchasingDocumentItem,
AccountAssignmentNumber,
IsCompletelyDelivered,
MaterialPriceControl,
ValuationArea,
InventoryValuationType,
VATRegistration,
DelivOfGoodsDestCountry,
PaymentDifferenceReason,
ProfitCenter,
JointVenture,
JointVentureCostRecoveryCode,
JointVentureEquityGroup,
TreasuryContractType,
AssetContract,
CashFlowType,
TaxJurisdiction,
RealEstateObject,
SettlementReferenceDate,
CommitmentItem,
CostObject,
ProjectNetwork,
OrderInternalBillOfOperations,
OrderIntBillOfOperationsItem,
WBSElementInternalID,
_WBSElementInternalIDText.WBSDescription AS WBSDescription,
_I_WBSElementBasicData.WBSElementExternalID AS WBSElementExternalID,
ProfitabilitySegment_2 AS ProfitabilitySegment,
JointVentureEquityType,
IsEUTriangularDeal,
CostOriginGroup,
CompanyCodeCurrencyDetnMethod,
ClearingIsReversed,
PaymentMethodSupplement,
AlternativeGLAccount,
FundsCenter,
Fund,
PartnerProfitCenter,
Reference1IDByBusinessPartner,
Reference2IDByBusinessPartner,
EarmarkedFundsDocument,
EarmarkedFundsDocumentItem,
IsNegativePosting,
PaymentCardItem,
PaymentCardPaymentSettlement,
CreditControlArea,
Reference3IDByBusinessPartner,
DataExchangeInstruction1,
DataExchangeInstruction2,
DataExchangeInstruction3,
DataExchangeInstruction4,
Region,
HasPaymentOrder,
PaymentReference,
TaxDeterminationDate,
ClearingItem,
BusinessPlace,
TaxSection,
CostCtrActivityType,
AccountsReceivableIsPledged,
BusinessProcess,
GrantID,
FunctionalArea,
CustomerIsInExecution,
FundedProgram,
ClearingJournalEntryFiscalYear AS ClearingDocFiscalYear,
LedgerGLLineItem,
Segment,
PartnerSegment,
PartnerFunctionalArea,
HouseBankAccount,
CostElement,
PaymentServiceProvider,
PaymentRefByPaytSrvcProvider,
SEPAMandate,
ReferenceDocumentType,
OriginalReferenceDocument,
ReferenceDocumentLogicalSystem,
AccountingDocumentItemRef,
FiscalPeriod,
AccountingDocumentCategory,
PostingDate,
DocumentDate,
AccountingDocumentType,
NetDueDate,
CashDiscount1DueDate,
CashDiscount2DueDate,
OffsettingAccount,
OffsettingAccountType,
OffsettingChartOfAccounts,
PartnerFund,
PartnerGrant,
BudgetPeriod,
PartnerBudgetPeriod,
BranchCode,
OplAcctgDocItmCntrySpcfcRef1,
CashLedgerCompanyCode,
CashLedgerAccount,
PubSecBudgetAccountCoCode,
PubSecBudgetAccount,
TaxAmountInCoCodeCrcy,
TaxBaseAmountInCoCodeCrcy,
ValuationDiffAmtInCoCodeCrcy,
CashDiscountAmtInCoCodeCrcy,
InvoiceAmtInCoCodeCrcy,
OriginalTaxBaseAmount,
TaxAmount,
TaxBaseAmountInTransCrcy,
WithholdingTaxBaseAmount,
PlannedAmtInTransactionCrcy,
CashDiscountBaseAmount,
CashDiscountAmount,
NetPaymentAmount,
WithholdingTaxAmount,
WithholdingTaxExemptionAmt,
InvoiceAmountInFrgnCurrency,
BalanceTransactionCurrency,
AmountInBalanceTransacCrcy,
AdditionalCurrency1,
ValuationDiffAmtInAddlCrcy1,
AmountInAdditionalCurrency1,
AdditionalCurrency2,
AmountInAdditionalCurrency2,
ValuationDiffAmtInAddlCrcy2,
PaymentCurrency,
AmountInPaymentCurrency,
CreditControlAreaCurrency,
HedgedAmount,
BaseUnit,
Quantity,
GoodsMovementEntryUnit,
QuantityInEntryUnit,
PurchasingDocumentPriceUnit,
PurchaseOrderQty,
MaterialPriceUnitQty,
NumberOfItems,
GLAccountAuthorizationGroup,
SupplierBasicAuthorizationGrp,
CustomerBasicAuthorizationGrp,
AcctgDocTypeAuthorizationGroup,
OrderType,
SalesOrderType,
AssetClass
FROM I_OperationalAcctgDocItem AS Item
LEFT OUTER JOIN I_PostingKeyWthSpclGLCodeTxt AS _PostingKeyWthSpclGLCodeTxt ON _PostingKeyWthSpclGLCodeTxt.PostingKey = Item.PostingKey AND _PostingKeyWthSpclGLCodeTxt.SpecialGLCode = Item.SpecialGLCode -- association [*]
LEFT OUTER JOIN I_GLAccountText AS _GLAccountText ON _GLAccountText.ChartOfAccounts = Item.ChartOfAccounts AND _GLAccountText.GLAccount = Item.GLAccount -- association [*]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _WBSElementInternalIDText ON Item.WBSElementInternalID = _WBSElementInternalIDText.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _I_WBSElementBasicData ON Item.WBSElementInternalID = _I_WBSElementBasicData.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN C_CorrespondenceAddress AS _CustomerAddress ON CorrespncCustomerAddressID = _CustomerAddress.AddressID -- association [0..1]
LEFT OUTER JOIN C_CorrespondenceAddress AS _SupplierAddress ON SupplierAddressID = _SupplierAddress.AddressID -- association [0..1]
LEFT OUTER JOIN C_CorrespondenceItemNote AS _CorrespondenceItemNote ON CompanyCode = _CorrespondenceItemNote.CompanyCode AND FiscalYear = _CorrespondenceItemNote.FiscalYear AND AccountingDocument = _CorrespondenceItemNote.AccountingDocument AND AccountingDocumentItem = _CorrespondenceItemNote.AccountingDocumentItem -- association [0..*]
LEFT OUTER JOIN E_OperationalAcctgDocItem AS _Extension ON CompanyCode = _Extension.CompanyCode AND FiscalYear = _Extension.FiscalYear AND AccountingDocument = _Extension.AccountingDocument AND AccountingDocumentItem = _Extension.AccountingDocumentItem -- association [1]
;
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