P_KZ_SupplierStatus

DDL: P_KZ_SUPPLIERSTATUS SQL: PKZSUPPLIERSTAT Type: view COMPOSITE Package: GLO_FIN_IS_VAT_KZ_RETURN

KZ Supplier Status

P_KZ_SupplierStatus is a Composite CDS View that provides data about "KZ Supplier Status" in SAP S/4HANA. It reads from 6 data sources and exposes 13 fields. Part of development package GLO_FIN_IS_VAT_KZ_RETURN.

Data Sources (6)

SourceAliasJoin Type
I_KZ_CustomerCategory CustomCategory from
I_KZ_ContractType KZContract inner
I_KZ_ContractType KZContractVend inner
I_KZ_BusinessPartnerContract RUContract inner
I_KZ_BusinessPartnerContract RUContractVend inner
I_KZ_VendorCategory VendorCategory union

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PKZSUPPLIERSTAT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (13)

KeyFieldSource TableSource FieldDescription
InternalContractNum I_KZ_BusinessPartnerContract AssignmentReference Assignment Reference
ExternalContractNumber I_KZ_BusinessPartnerContract ExternalContractNumber Ext. Contract Number
ExternalContractDate I_KZ_BusinessPartnerContract ExternalContractDate Contract Date
VATCategoryID I_KZ_CustomerCategory CategoryFlag VAT Return ID
IsCustomerCategory
Supplier Supplier Supplier
AssignmentReferenceasInternalContractNum
ExternalContractNumber I_KZ_BusinessPartnerContract ExternalContractNumber Ext. Contract Number
ExternalContractDate I_KZ_BusinessPartnerContract ExternalContractDate Contract Date
VATCategoryID I_KZ_VendorCategory CategoryFlag VAT Return ID
IsCustomerCategory
Supplier Supplier Supplier
Customer Customer Sold-to Party

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 P_KZ_SupplierStatus.
-- 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: PKZSUPPLIERSTAT

CREATE VIEW P_KZ_SupplierStatus AS
SELECT
  RUContract.AssignmentReference AS InternalContractNum,
  RUContract.ExternalContractNumber AS ExternalContractNumber,
  RUContract.ExternalContractDate AS ExternalContractDate,
  CustomCategory.CategoryFlag AS VATCategoryID,
  'X' AS IsCustomerCategory,
  Supplier,
  Customer AS AssignmentReferenceasInternalContractNum,
  Customer
FROM I_KZ_CustomerCategory AS CustomCategory
INNER JOIN I_KZ_ContractType AS KZContract ON /* join condition not captured in parsed metadata */
INNER JOIN I_KZ_BusinessPartnerContract AS RUContract ON /* join condition not captured in parsed metadata */
INNER JOIN I_KZ_ContractType AS KZContractVend ON /* join condition not captured in parsed metadata */
INNER JOIN I_KZ_BusinessPartnerContract AS RUContractVend ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_KZ_VendorCategory
;