C_CAInvcgDocVH

DDL: C_CAINVCGDOCVH SQL: CCAINVCGDOCVH Type: view CONSUMPTION

Wertehilfe Fakturierungsbeleg

C_CAInvcgDocVH is a Consumption CDS View that provides data about "Wertehilfe Fakturierungsbeleg" in SAP S/4HANA. It reads from 1 data source (I_CAInvcgDocHeader) and exposes 31 fields with key field CAInvoicingDocument.

Data Sources (1)

SourceAliasJoin Type
I_CAInvcgDocHeader CAInvcgDocHeader from

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CCAINVCGDOCVH view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.dataCategory #VALUE_HELP view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Wertehilfe Fakturierungsbeleg view
Search.searchable true view
Consumption.ranked true view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CAInvoicingDocument CAInvoicingDocument
BusinessPartnerFullName _BusinessPartner BusinessPartnerFullName Geschäftspartnername
BusinessPartner I_CAInvcgDocHeader BusinessPartner
ContractAccount ContractAccount
CAInvcgProcess CAInvcgProcess
CAInvcgType CAInvcgType
CAInvcgDocumentType CAInvcgDocumentType
DocumentDate DocumentDate
CAReconciliationKey CAReconciliationKey
CAAmountInTransactionCurrency CAAmountInTransactionCurrency
TransactionCurrency TransactionCurrency
CANetDueDate CANetDueDate
CreatedByUser CreatedByUser
CAInvcgCreationDate CAInvcgCreationDate
CAInvcgCreationTime CAInvcgCreationTime
CAApplicationArea CAApplicationArea
CAInvcgIsDocumentSimulated CAInvcgIsDocumentSimulated
CAInvcgIsDocumentPreliminary CAInvcgIsDocumentPreliminary
CAInvcgReversalDocument CAInvcgReversalDocument
CAInvcgReversedDocument CAInvcgReversedDocument
CompanyCode CompanyCode
_ContractAccountPartner _ContractAccountPartner
_BusinessPartner _BusinessPartner
_ContractAccountHeader _ContractAccountHeader
_TransactionCurrency _TransactionCurrency
_CAInvcgProcess _CAInvcgProcess
_CAInvcgType _CAInvcgType
_CAInvcgDocumentType _CAInvcgDocumentType
_CAApplicationArea _CAApplicationArea
_CompanyCode _CompanyCode
_CAReconciliationKey _CAReconciliationKey
@AbapCatalog.sqlViewName: 'CCAINVCGDOCVH'
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #CONSUMPTION
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel: {
  usageType: {
    serviceQuality: #C,
    sizeCategory: #XL,
    dataClass: #MIXED
  },
  dataCategory: #VALUE_HELP
}
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@EndUserText.label: 'Wertehilfe Fakturierungsbeleg'

@Search.searchable: true
@Consumption.ranked: true
define view C_CAInvcgDocVH
  as select from I_CAInvcgDocHeader as CAInvcgDocHeader
{
       @UI.lineItem: [{ position: 10, importance: #HIGH }]
       @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #HIGH }
  key  CAInvoicingDocument,

       @EndUserText.label: 'Geschäftspartnername'
       @UI.lineItem: [{ position: 20, importance: #LOW }]
       @ObjectModel.filter.enabled: false
       _BusinessPartner.BusinessPartnerFullName,

       @UI.lineItem: [{ position: 30, importance: #HIGH }]
       @Consumption.valueHelpDefinition: [{ entity: { name: 'C_CAContractPartnerValueHelp', element: 'BusinessPartner' }}]
       @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #LOW }
       CAInvcgDocHeader.BusinessPartner,

       @UI.lineItem: [{ position: 35, importance: #HIGH }]
       @Consumption.valueHelpDefinition: [{ entity: { name: 'C_ContractAccountValueHelp', element: 'ContractAccount' } } ]
       @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #LOW }
       ContractAccount,

       @UI.lineItem: [{ position: 70, importance: #LOW }]
       @Consumption.valueHelpDefinition: [{ entity: { name: 'I_CAInvcgProcessVH', element: 'CAInvcgProcess' } } ]
       CAInvcgProcess,

       @UI.lineItem: [{ position: 80, importance: #LOW }]
       @Consumption.valueHelpDefinition: [{ entity: { name: 'I_CAInvcgTypeVH', element: 'CAInvcgType' } } ]
       CAInvcgType,

       @UI.lineItem: [{ position: 40, importance: #HIGH }]
       @Consumption.valueHelpDefinition: [{ entity: { name: 'I_CAInvcgDocumentType', element: 'CAInvcgDocumentType' } }]
       CAInvcgDocumentType,

       @UI.lineItem: [{ position: 50, importance: #LOW }]
       DocumentDate,

       @UI.lineItem: [{ position: 60, importance: #HIGH }]
       @Consumption.valueHelpDefinition: [{ entity: { name: 'I_CAReconciliationKeyVH', element: 'CAReconciliationKey' } }]
       CAReconciliationKey,

       @UI.lineItem: [{ position: 90, importance: #LOW }]
       @ObjectModel.filter.enabled: false
       CAAmountInTransactionCurrency,

       @UI.lineItem: [{ position: 100, importance: #LOW }]
       TransactionCurrency,

       @UI.lineItem: [{ position: 110, importance: #LOW }]
       CANetDueDate,

       @UI.lineItem: [{ position: 110, importance: #HIGH }]
       CreatedByUser,

       @UI.hidden: true
       @UI.lineItem: [{ position: 120, importance: #HIGH }]
       CAInvcgCreationDate,

       @UI.hidden: true
       @UI.lineItem: [{ position: 130, importance: #LOW }]
       CAInvcgCreationTime,

       //combined field of crdate and crtime

       @UI.lineItem: [{ position: 120, importance: #HIGH }]
       @Consumption.filter.selectionType: #INTERVAL
       @ObjectModel.filter.transformedBy: 'ABAP:CL_CINV_SADL_FILTER_DATETIME'
       cast(dats_tims_to_tstmp(CAInvcgCreationDate, CAInvcgCreationTime,
       abap_system_timezone($session.client, 'NULL'),
       $session.client, 'NULL') as invdoc_crtsmp_kk) as CAInvcgCreationDateTime,

       @UI.hidden: true
       CAApplicationArea,
       @UI.hidden: true
       CAInvcgIsDocumentSimulated,
       @UI.hidden: true
       CAInvcgIsDocumentPreliminary,
       @UI.hidden: true
       CAInvcgReversalDocument,
       @UI.hidden: true
       CAInvcgReversedDocument,
       @UI.hidden: true
       CompanyCode,

       @Consumption.filter.hidden: true
       _ContractAccountPartner,
       @Consumption.filter.hidden: true
       _BusinessPartner,
       @Consumption.filter.hidden: true
       _ContractAccountHeader,
       @Consumption.filter.hidden: true
       _TransactionCurrency,
       @Consumption.filter.hidden: true
       _CAInvcgProcess,
       @Consumption.filter.hidden: true
       _CAInvcgType,
       @Consumption.filter.hidden: true
       _CAInvcgDocumentType,
       @Consumption.filter.hidden: true
       _CAApplicationArea,
       @Consumption.filter.hidden: true
       _CompanyCode,
       @Consumption.filter.hidden: true
       _CAReconciliationKey
}
//where

//      CAInvcgDocHeader.CAInvcgIsDocumentPosted      = 'X'

//  and CAInvcgDocHeader.CAInvcgIsDocumentPreliminary = ' '

//  and CAInvcgDocHeader.CAInvcgIsDocumentSimulated   = ' '

//  and ( CAInvcgReversedDocument                       = '000000000000' or CAInvcgReversedDocument is null )

//  and ( CAInvcgReversalDocument                       = '000000000000' or CAInvcgReversalDocument is null )       

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNER",
"I_CAINVCGDOCHEADER"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_CAAPPLICATIONAREA",
"I_CAINVCGDOCUMENTTYPE",
"I_CAINVCGPROCESS",
"I_CAINVCGTYPE",
"I_CARECONCILIATIONKEY",
"I_COMPANYCODE",
"I_CONTRACTACCOUNTHEADER",
"I_CONTRACTACCOUNTPARTNER",
"I_CURRENCY"
],
"BASE":
[
"I_CAINVCGDOCHEADER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/