C_APMasterBlockedInvoice

DDL: C_APMASTERBLOCKEDINVOICE SQL: CMDBLOCKEDINV Type: view CONSUMPTION

Master Blocked Invoice for Overview Page

C_APMasterBlockedInvoice is a Consumption CDS View that provides data about "Master Blocked Invoice for Overview Page" in SAP S/4HANA. It reads from 1 data source (R_AccountsPayablesItem) and exposes 19 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
R_AccountsPayablesItem R_AccountsPayablesItem from

Parameters (4)

NameTypeDefault
P_KeyDate vdm_v_key_date
P_TodayDate sydate
P_Language sylangu
P_DisplayCurrency vdm_v_display_currency

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_PaymentBlockingReasonText _PaymentBlockingReasonText _PaymentBlockingReasonText.Language = $session.system_language and _PaymentBlockingReasonText.PaymentBlockingReason = LI.SupplierPaymentBlockingReason

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CMDBLOCKEDINV view
EndUserText.label Master Blocked Invoice for Overview Page view
Metadata.ignorePropogatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
DataPeriodName
SupplierPaymentBlockingReason SupplierPaymentBlockingReason
PaymentBlockingReasonName _PaymentBlockingReasonText PaymentBlockingReasonName
Supplier Supplier Supplier
SupplierCountry SupplierCountry
AccountingClerk AccountingClerk Clerk Abbrev.
ReconciliationAccount ReconciliationAccount Recon. account
DisplayCurrency
FinancialAccountType FinancialAccountType Fin. Account Type
SupplierFinsAuthorizationGrp SupplierFinsAuthorizationGrp
SupplierBasicAuthorizationGrp SupplierBasicAuthorizationGrp
PostingDate PostingDate Posting Date for GR
BusinessArea BusinessArea Business Area
NumberOfItems
AccountingDocumentType AccountingDocumentType Journal Entry Type

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 C_APMasterBlockedInvoice.
-- 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.
-- SQL view name: CMDBLOCKEDINV
-- Parameters: P_KeyDate : vdm_v_key_date, P_TodayDate : sydate, P_Language : sylangu, P_DisplayCurrency : vdm_v_display_currency

CREATE VIEW C_APMasterBlockedInvoice AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  AccountingDocumentItem,
  cast('' as char20) AS DataPeriodName,
  SupplierPaymentBlockingReason,
  _PaymentBlockingReasonText.PaymentBlockingReasonName AS PaymentBlockingReasonName,
  Supplier,
  SupplierCountry,
  AccountingClerk,
  ReconciliationAccount,
  $parameters.P_DisplayCurrency AS DisplayCurrency,
  FinancialAccountType,
  SupplierFinsAuthorizationGrp,
  SupplierBasicAuthorizationGrp,
  PostingDate,
  BusinessArea,
  cast(1 as farp_number_of_items) AS NumberOfItems,
  AccountingDocumentType
FROM R_AccountsPayablesItem
LEFT OUTER JOIN I_PaymentBlockingReasonText AS _PaymentBlockingReasonText ON _PaymentBlockingReasonText.Language = $session.system_language AND _PaymentBlockingReasonText.PaymentBlockingReason = LI.SupplierPaymentBlockingReason  -- association [0..1]
;