Fields (14)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | AccountingDocument | AccountingDocument | 1 |
| KEY | CompanyCode | CompanyCode | 1 |
| KEY | FiscalYear | FiscalYear | 1 |
| AccountingDocumentType | AccountingDocumentType,PTR_AccountingDocumentType | 4 | |
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | 1 | |
| CashDiscountAmtInCoCodeCrcy | CashDiscountAmtInCoCodeCrcy | 1 | |
| CompanyCodeCurrency | CompanyCodeCurrency | 1 | |
| InterCompanyIndicator | PTR_InterCompanyIndicator | 1 | |
| InvoiceIssueDate | InvoiceIssueDate | 1 | |
| NumberOfDays | DiffNumberOfDays | 1 | |
| PaymentTerms | PaymentTerms | 1 | |
| Supplier | Supplier | 1 | |
| SupplierAccountGroup | PTR_SupplierAccountGroup,SupplierAccountGroup | 4 | |
| TradingPartner | TradingPartner | 3 |
Derived SQL schema, reconstructed from the indexed DDIC field metadata (field names, types, lengths and key flags) — a functional representation, not the verbatim SAP source.
-- Derived schema, generated from indexed DDIC field metadata (not the verbatim SAP source).
CREATE TABLE PTRINVOICES (
ACCOUNTINGDOCUMENT,
COMPANYCODE,
FISCALYEAR,
ACCOUNTINGDOCUMENTTYPE,
AMOUNTINCOMPANYCODECURRENCY,
CASHDISCOUNTAMTINCOCODECRCY,
COMPANYCODECURRENCY,
INTERCOMPANYINDICATOR,
INVOICEISSUEDATE,
NUMBEROFDAYS,
PAYMENTTERMS,
SUPPLIER,
SUPPLIERACCOUNTGROUP,
TRADINGPARTNER,
PRIMARY KEY (ACCOUNTINGDOCUMENT, COMPANYCODE, FISCALYEAR)
);
Learn More
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- Understanding the SAP S/4HANA Data Model
- 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
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA