R_CAInvcgDocumentTP
Invoicing Document - TP
R_CAInvcgDocumentTP is a Transactional CDS View that provides data about "Invoicing Document - TP" in SAP S/4HANA. It reads from 1 data source (I_CAInvcgDocHeader) and exposes 104 fields with key field CAInvoicingDocument. It has 7 associations to related views. Part of development package FCI_RAP_INVDOC.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CAInvcgDocHeader | _CAInvcgDocHeader | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_CAInvcgDocPostingTP | _CAInvcgDocPosting | $projection.CAInvoicingDocument = _CAInvcgDocPosting.CAInvoicingDocument |
| [0..*] | R_CAInvcgDocSourceTP | _CAInvcgDocSource | $projection.CAInvoicingDocument = _CAInvcgDocSource.CAInvoicingDocument |
| [0..1] | C_CABillgReqBPAddress | _CAInvcgBPAddress | $projection.BusinessPartner = _CAInvcgBPAddress.BusinessPartner |
| [0..1] | C_CAInvcgUserContact | _CAInvcgUserContact | $projection.CreatedByUser = _CAInvcgUserContact.ContactCardID |
| [0..1] | I_CAPaymentMethod | _CAPaymentMethod | $projection.CAPaymentCompanyCodeCountry = _CAPaymentMethod.Country and $projection.CAPaymentMethod = _CAPaymentMethod.CAPaymentMethod |
| [0..1] | E_CAInvcgDocHeader | _Extension | $projection.CAInvoicingDocument = _Extension.CAInvoicingDocument |
| [0..*] | R_CAInvcgDocItemTP | _CAInvcgDocItem | |
Annotations (14)
| 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 - TP | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | CAInvoicingDocument | view | |
| ObjectModel.sapObjectNodeType.name | ContrAcctgInvoicingDocument | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (104)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CAInvoicingDocument | CAInvoicingDocument | Invoic. Doc. | |
| 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 | ||
| 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 | ||
| CAPaymentCompanyCodeCountry | ||||
| CAClassificationKey | CAClassificationKey | Classif. Key | ||
| _BusinessPartner | _BusinessPartner | |||
| _ContractAccountHeader | _ContractAccountHeader | |||
| _ContractAccountPartner | _ContractAccountPartner | |||
| _AltvContractAcctForCollvBills | _AltvContractAcctForCollvBills | |||
| _CAReconciliationKey | _CAReconciliationKey | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _CAInvcgPreliminaryCategory | _CAInvcgPreliminaryCategory | |||
| _CAPreliminaryInvcgDocStatus | _CAPreliminaryInvcgDocStatus | |||
| _CAInvcgProcess | _CAInvcgProcess | |||
| _CAInvcgType | _CAInvcgType | |||
| _CAInvcgCategory | _CAInvcgCategory | |||
| _CAInvcgDocTechDocType | _CAInvcgDocTechDocType | |||
| _CAInvcgTargetProc | _CAInvcgTargetProc | |||
| _CAInvcgMasterDataType | _CAInvcgMasterDataType | |||
| _CAInvcgDocCreationMode | _CAInvcgDocCreationMode | |||
| _CAInvcgDocReversalReason | _CAInvcgDocReversalReason | |||
| _CAInvcgReversalDocument | _CAInvcgReversalDocument | |||
| _CAInvcgReversedDocument | _CAInvcgReversedDocument | |||
| _CAInvcgCorrectionCat | _CAInvcgCorrectionCat | |||
| _CAInvcgDocumentType | _CAInvcgDocumentType | |||
| _CAInvcgDocLockedforPrint | _CAInvcgDocLockedforPrint | |||
| _CAInvcgPeriodCat | _CAInvcgPeriodCat | |||
| _CAInvcgDocChrgDiscItems | _CAInvcgDocChrgDiscItems | |||
| _CAInvcgBolloTaxPostStatus | _CAInvcgBolloTaxPostStatus | |||
| _CAInvcgDocPartOfList | _CAInvcgDocPartOfList | |||
| _CompanyCode | _CompanyCode | |||
| _CASubApplication | _CASubApplication | |||
| _ProviderContract | _ProviderContract | |||
| _CAInvcgDocHeader | _CAInvcgDocHeader | |||
| _CAApplicationArea | _CAApplicationArea | |||
| _CAInvcgBPAddress | _CAInvcgBPAddress | |||
| _CAInvcgUserContact | _CAInvcgUserContact | |||
| _CAPaymentMethod | _CAPaymentMethod | |||
| _CAInvcgDocItem | _CAInvcgDocItem | |||
| _CAInvcgDocPosting | _CAInvcgDocPosting | |||
| _CAInvcgDocSource | _CAInvcgDocSource |
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_CAInvcgDocumentTP.
-- 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_CAInvcgDocumentTP AS
SELECT
CAInvoicingDocument,
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,
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,
_ContractAccountPartner._CompCodeGroup._CompanyCode.Country AS CAPaymentCompanyCodeCountry,
CAClassificationKey
FROM I_CAInvcgDocHeader AS _CAInvcgDocHeader
LEFT OUTER JOIN R_CAInvcgDocPostingTP AS _CAInvcgDocPosting ON CAInvoicingDocument = _CAInvcgDocPosting.CAInvoicingDocument -- association [0..*]
LEFT OUTER JOIN R_CAInvcgDocSourceTP AS _CAInvcgDocSource ON CAInvoicingDocument = _CAInvcgDocSource.CAInvoicingDocument -- association [0..*]
LEFT OUTER JOIN C_CABillgReqBPAddress AS _CAInvcgBPAddress ON BusinessPartner = _CAInvcgBPAddress.BusinessPartner -- association [0..1]
LEFT OUTER JOIN C_CAInvcgUserContact AS _CAInvcgUserContact ON CreatedByUser = _CAInvcgUserContact.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_CAPaymentMethod AS _CAPaymentMethod ON CAPaymentCompanyCodeCountry = _CAPaymentMethod.Country AND CAPaymentMethod = _CAPaymentMethod.CAPaymentMethod -- association [0..1]
LEFT OUTER JOIN E_CAInvcgDocHeader AS _Extension ON CAInvoicingDocument = _Extension.CAInvoicingDocument -- association [0..1]
LEFT OUTER JOIN R_CAInvcgDocItemTP AS _CAInvcgDocItem ON /* condition not available in parsed metadata */ -- association [0..*]
;
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