C_CAInvcgDocPrintReceiver

DDL: C_CAINVCGDOCPRINTRECEIVER Type: view_entity CONSUMPTION

Rechnungsempfänger

C_CAInvcgDocPrintReceiver is a Consumption CDS View that provides data about "Rechnungsempfänger" in SAP S/4HANA. It reads from 1 data source (I_CACorrespondenceHeader) and exposes 22 fields with key fields CACorrespondence, CAInvoicingDocument.

Data Sources (1)

SourceAliasJoin Type
I_CACorrespondenceHeader _CACorrespondenceHeader from

Annotations (8)

NameValueLevelField
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #REQUIRED view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Rechnungsempfänger view
Metadata.ignorePropagatedAnnotations true view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY CACorrespondence CACorrespondence
KEY CAInvoicingDocument
CAInvcgProcess
CompanyCode CompanyCode
CompanyCodeName _CompCode CompanyCodeName
BusinessPartnerCategory _BusinessPartner BusinessPartnerCategory
PersonNumber PersonNumber
BusinessPartnerAddressID BusinessPartnerAddressID
CorrespondenceRecipient
BusinessPartnerFullName _BusinessPartner BusinessPartnerFullName
CorrespncAddrShortWthStrText
CAInvcgDocNrOfPrntDpl
CAInvcgDocLastPrintDplDate
CAInvcgDocDuplicateIsEnabled
CorrespondencePrintDate CorrespondencePrintDate
CACorrespncDispatchControlName
CACorrespncDispatchControl CACorrespncDispatchControl
CACorrespondenceRoleText
CorrespondenceRole CorrespondenceRole
_BusinessPartner _BusinessPartner
_CASendControl _CASendControl
_CorrespncRole _CorrespncRole
@VDM.viewType: #CONSUMPTION
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@AccessControl.personalData.blocking: #REQUIRED
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Rechnungsempfänger'
@Metadata.ignorePropagatedAnnotations: true

@UI.presentationVariant: [ {
     requestAtLeast: ['CAInvoicingDocument', 'CACorrespondence', 'CAInvcgProcess', 'CAInvcgDocDuplicateIsEnabled', 'CAInvcgDocPrntOutpCtrlIsEnbld', 'CorrespondencePrintDate' ]
} ]

define view entity C_CAInvcgDocPrintReceiver
  as select from I_CACorrespondenceHeader as _CACorrespondenceHeader
{
         //      @UI.hidden: true

         @UI.lineItem: [ { type: #FOR_ACTION, position: 10, dataAction: 'MPC_EXT:ACTION_PRINT_DUPLICATE', label: 'Drucken Duplikat' } ]
  key    CACorrespondence,

         //      @UI.hidden: true

         //      @UI.lineItem: [ { type: #FOR_ACTION, position: 10, dataAction: 'MPC_EXT:ACTION_PRINT_DUPLICATE', label: 'Drucken Duplikat' } ]

  key    cast( Correspondence2ndEntityData as invdocno_kk )       as CAInvoicingDocument,
         @UI.hidden: true
         cast( Correspondence1stEntityData as inv_process_kk )    as CAInvcgProcess,

         @ObjectModel.text.element: ['CompanyCodeName']
         CompanyCode,
         @UI.hidden: true
         _CompCode.CompanyCodeName,

         @Consumption.hidden: true
         _BusinessPartner.BusinessPartnerCategory,
         @Consumption.hidden: true
         PersonNumber,
         @Consumption.hidden: true
         BusinessPartnerAddressID,

         @UI.lineItem: [ { position: 10 } ]
         @ObjectModel.text.element: ['BusinessPartnerFullName']
         cast( BusinessPartner as ftr_recipient preserving type ) as CorrespondenceRecipient,

         @UI.hidden: true
         _BusinessPartner.BusinessPartnerFullName                 as BusinessPartnerFullName,

         @UI.lineItem: [ { position: 20 } ]
         @ObjectModel.virtualElement: true
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_CINV_SADL_EXIT_INVDOC_DSP'
         cast('' as address_text_kk)                              as CorrespncAddrShortWthStrText,

         //         @UI.lineItem: [ { position: 30 } ]

         @ObjectModel.virtualElement: true
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_CINV_SADL_EXIT_INVDOC_DSP'
         cast('' as number_of_duplicates_kk)                      as CAInvcgDocNrOfPrntDpl,

         @UI.lineItem: [ { position: 40 } ]
         @ObjectModel.virtualElement: true
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_CINV_SADL_EXIT_INVDOC_DSP'
         cast('' as date_of_last_duplicate_kk)                    as CAInvcgDocLastPrintDplDate,

         // Action control: Duplicate

         @UI.hidden: true
         @ObjectModel.virtualElement: true
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_CINV_SADL_EXIT_INVDOC_DSP'
         cast( 'X' as xfeld )                                     as CAInvcgDocDuplicateIsEnabled,

         // Print Date

         @UI.lineItem: [ { position: 50 } ]
         CorrespondencePrintDate,

         @UI.hidden: true
         _CASendControl._Text[1: Language=$session.system_language].CACorrespncDispatchControlName,

         @ObjectModel.text.element: ['CACorrespncDispatchControlName']
         CACorrespncDispatchControl,

         @UI.hidden: true
         _CorrespncRole._Text[1: Language=$session.system_language].CACorrespondenceRoleText,
         @ObjectModel.text.element: ['CACorrespondenceRoleText']
         CorrespondenceRole,

         _BusinessPartner,
         _CASendControl,
         _CorrespncRole
}
where
  CACorrespondenceType = '0042'