R_CAInvcgDocumentDraft
Invoicing Document Draft
R_CAInvcgDocumentDraft is a Basic CDS View that provides data about "Invoicing Document Draft" in SAP S/4HANA. It reads from 1 data source (dfkkinvdoc_h_d) and exposes 76 fields with key fields CAInvoicingDocument, DraftUUID. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dfkkinvdoc_h_d | dfkkinvdoc_h_d | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ContractAccountHeader | _ContractAccountHeader | $projection.ContractAccount = _ContractAccountHeader.ContractAccount |
| [0..1] | I_ContractAccountPartner | _ContractAccountPartner | $projection.ContractAccount = _ContractAccountPartner.ContractAccount and $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner |
| [0..1] | E_CAInvcgDocumentDraft | _Extension | $projection.CAInvoicingDocument = _Extension.CAInvoicingDocument and $projection.DraftUUID = _Extension.DraftUUID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.extensibility.extensible | true | view | |
| AbapCatalog.extensibility.elementSuffix | IDH | view | |
| AbapCatalog.extensibility.quota.maximumFields | 340 | view | |
| AbapCatalog.extensibility.quota.maximumBytes | 6800 | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Invoicing Document Draft | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (76)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CAInvoicingDocument | cainvoicingdocument | Invoic. Doc. | |
| KEY | DraftUUID | draftuuid | UUID | |
| CAApplicationArea | caapplicationarea | ApplicationArea | ||
| CAInvcgProcess | cainvcgprocess | Invoicing Proc. | ||
| CAInvcgType | cainvcgtype | Invoicing Type | ||
| CAInvcgCategory | cainvcgcategory | Invoicing Cat. | ||
| CAInvcgTechnicalDocumentType | cainvcgtechnicaldocumenttype | Technical Document Type | ||
| CAInvcgTargetProcess | cainvcgtargetprocess | Target Process | ||
| BusinessPartner | businesspartner | Issuing Authority | ||
| ContractAccount | contractaccount | Contract Acct | ||
| CAInvcgMasterDataType | cainvcgmasterdatatype | MasterData Type | ||
| AltvContractAcctForCollvBills | altvcontractacctforcollvbills | Coll. Bill Acct | ||
| CASubstituteDocumentNumber | casubstitutedocumentnumber | Sub. Doc. | ||
| CreatedByUser | createdbyuser | User Name | ||
| CAInvcgCreationDate | cainvcgcreationdate | Invoiced On | ||
| CAInvcgCreationTime | cainvcgcreationtime | Invoiced At | ||
| CAInvcgDocCreationMode | cainvcgdoccreationmode | CreatnMode | ||
| CAInvcgNmbrOfInvoicingDocItems | cainvcgnmbrofinvoicingdocitems | Number of Items | ||
| CABllbleItmNumber | cabllbleitmnumber | Number of Billable Items | ||
| CAInvcgDocInternalNumber | cainvcgdocinternalnumber | Invoicg Run No. | ||
| CAReconciliationKey | careconciliationkey | Reconcil. Key | ||
| CAPostingDate | capostingdate | Posting Date | ||
| DocumentDate | documentdate | Journal Entry Date | ||
| CANetDueDate | canetduedate | Net Due Date | ||
| CACashDiscountDueDate | cacashdiscountduedate | Disct Due Date | ||
| CACashDiscountRate | cacashdiscountrate | Discount rate | ||
| TransactionCurrency | transactioncurrency | Transaction Currency | ||
| CAAmountInTransactionCurrency | caamountintransactioncurrency | Amount | ||
| CAInvcgIsDocumentPosted | cainvcgisdocumentposted | Document Posted | ||
| CAInvcgIsDocumentSimulated | cainvcgisdocumentsimulated | Doc. Simulated | ||
| CAInvcgIsDocumentPreliminary | cainvcgisdocumentpreliminary | Preliminary Invoice | ||
| CAInvcgPreliminaryCategory | cainvcgpreliminarycategory | Category Prlm Invoice | ||
| CAPrelimInvcgDocValue | capreliminvcgdocvalue | Counter PrlmInv | ||
| CAPreliminaryInvcgDocStatus | capreliminaryinvcgdocstatus | Status Prlm Invoice | ||
| CAInvcgDocumentReversalReason | cainvcgdocumentreversalreason | Reversal Reason | ||
| CAInvcgReversalDocument | cainvcgreversaldocument | Reversal Doc. | ||
| CAInvcgReversedDocument | cainvcgreverseddocument | Reversed Invoicing Doc | ||
| CAInvcgCorrectionCategory | cainvcgcorrectioncategory | Invcg Correction Category | ||
| CAInvcgDocumentPrintDate | cainvcgdocumentprintdate | Print Date | ||
| CAInvcgDocIsLockedForPrinting | cainvcgdocislockedforprinting | Printing Lock | ||
| CAPaymentMethod | capaymentmethod | Payment Method | ||
| CAPaymentFormNumber | capaymentformnumber | Payment Form | ||
| CAPaymentCompanyCodeCountry | capaymentcompanycodecountry | Country/Reg. | ||
| CAInvcgDocFormID | cainvcgdocformid | Form ID | ||
| ApplicationForm | applicationform | Forms | ||
| FormIDForAttachedPaymentMedium | formidforattachedpaymentmedium | Form ID | ||
| CAInvcgDocumentType | cainvcgdocumenttype | Document Type | ||
| CAKeyIdentification | cakeyidentification | Key ID | ||
| CAOfficialDocumentNumber | caofficialdocumentnumber | Offic. Doc. No. | ||
| CAPartnerSettlementRule | capartnersettlementrule | Settlement Rule | ||
| CompanyCode | companycode | Receiver Company Code | ||
| BusinessPlace | businessplace | Business place | ||
| CAContract | cacontract | Contract | ||
| CASubApplication | casubapplication | Subapplication | ||
| CAInvcgBaseDate | cainvcgbasedate | Baseline Date | ||
| CAInvcgDocPeriodCategory | cainvcgdocperiodcategory | Period Category | ||
| CAInvcgDocPeriodDate | cainvcgdocperioddate | Invoicing Per. | ||
| CAInvcgDocPeriodStartDate | cainvcgdocperiodstartdate | Inv. Period Frm | ||
| CADunningCounter | cadunningcounter | Dunning counter | ||
| CAInvcgDocHasChargeOrDiscItems | cainvcgdochaschargeordiscitems | Charge/Discount Exists | ||
| CAInvcgDocHasControlDoc | cainvcgdochascontroldoc | Clrfctn Case Control Doc | ||
| CAInvcgBolloTaxPostStatus | cainvcgbollotaxpoststatus | Bollo Posted | ||
| CAInvcgDocIsPartOfList | cainvcgdocispartoflist | Inv. Subdoc. | ||
| CAInvcgDocHasObjectRelation | cainvcgdochasobjectrelation | ObjRel. Exist | ||
| CAInvcgDocHasSEPAPreNotif | cainvcgdochassepaprenotif | Pre-Notif. | ||
| CAInvcgDocExternal | cainvcgdocexternal | External Invoicing Doc | ||
| CAInvcgAdjustmentDocument | cainvcgadjustmentdocument | Adjustment Doc. | ||
| CAInvcgAdjustedDocument | cainvcgadjusteddocument | DocToBeAdjusted | ||
| DraftEntityCreationDateTime | draftentitycreationdatetime | Draft Created On | ||
| DraftEntityLastChangeDateTime | draftentitylastchangedatetime | Draft Last Changed On | ||
| DraftAdministrativeDataUUID | draftadministrativedatauuid | UUID | ||
| DraftEntityOperationCode | draftentityoperationcode | Draft - Operation Code | ||
| HasActiveEntity | hasactiveentity | TRUE | ||
| DraftFieldChanges | draftfieldchanges | Field Changes | ||
| _ContractAccountPartner | _ContractAccountPartner | |||
| _ContractAccountHeader | _ContractAccountHeader |
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 R_CAInvcgDocumentDraft.
-- 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 R_CAInvcgDocumentDraft AS
SELECT
CAInvoicingDocument,
DraftUUID,
CAApplicationArea,
CAInvcgProcess,
CAInvcgType,
CAInvcgCategory,
CAInvcgTechnicalDocumentType,
CAInvcgTargetProcess,
BusinessPartner,
ContractAccount,
CAInvcgMasterDataType,
AltvContractAcctForCollvBills,
CASubstituteDocumentNumber,
CreatedByUser,
CAInvcgCreationDate,
CAInvcgCreationTime,
CAInvcgDocCreationMode,
CAInvcgNmbrOfInvoicingDocItems,
CABllbleItmNumber,
CAInvcgDocInternalNumber,
CAReconciliationKey,
CAPostingDate,
DocumentDate,
CANetDueDate,
CACashDiscountDueDate,
CACashDiscountRate,
TransactionCurrency,
CAAmountInTransactionCurrency,
CAInvcgIsDocumentPosted,
CAInvcgIsDocumentSimulated,
CAInvcgIsDocumentPreliminary,
CAInvcgPreliminaryCategory,
CAPrelimInvcgDocValue,
CAPreliminaryInvcgDocStatus,
CAInvcgDocumentReversalReason,
CAInvcgReversalDocument,
CAInvcgReversedDocument,
CAInvcgCorrectionCategory,
CAInvcgDocumentPrintDate,
CAInvcgDocIsLockedForPrinting,
CAPaymentMethod,
CAPaymentFormNumber,
CAPaymentCompanyCodeCountry,
CAInvcgDocFormID,
ApplicationForm,
FormIDForAttachedPaymentMedium,
CAInvcgDocumentType,
CAKeyIdentification,
CAOfficialDocumentNumber,
CAPartnerSettlementRule,
CompanyCode,
BusinessPlace,
CAContract,
CASubApplication,
CAInvcgBaseDate,
CAInvcgDocPeriodCategory,
CAInvcgDocPeriodDate,
CAInvcgDocPeriodStartDate,
CADunningCounter,
CAInvcgDocHasChargeOrDiscItems,
CAInvcgDocHasControlDoc,
CAInvcgBolloTaxPostStatus,
CAInvcgDocIsPartOfList,
CAInvcgDocHasObjectRelation,
CAInvcgDocHasSEPAPreNotif,
CAInvcgDocExternal,
CAInvcgAdjustmentDocument,
CAInvcgAdjustedDocument,
DraftEntityCreationDateTime,
DraftEntityLastChangeDateTime,
DraftAdministrativeDataUUID,
DraftEntityOperationCode,
HasActiveEntity,
DraftFieldChanges
FROM dfkkinvdoc_h_d
LEFT OUTER JOIN I_ContractAccountHeader AS _ContractAccountHeader ON ContractAccount = _ContractAccountHeader.ContractAccount -- association [0..1]
LEFT OUTER JOIN I_ContractAccountPartner AS _ContractAccountPartner ON ContractAccount = _ContractAccountPartner.ContractAccount AND BusinessPartner = _ContractAccountPartner.BusinessPartner -- association [0..1]
LEFT OUTER JOIN E_CAInvcgDocumentDraft AS _Extension ON CAInvoicingDocument = _Extension.CAInvoicingDocument AND DraftUUID = _Extension.DraftUUID -- association [0..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