P_KZ_BusinessPartnerCategory

DDL: P_KZ_BUSINESSPARTNERCATEGORY Type: view_entity COMPOSITE Package: GLO_FIN_IS_VAT_KZ_RETURN

Business Partner Category

P_KZ_BusinessPartnerCategory is a Composite CDS View that provides data about "Business Partner Category" in SAP S/4HANA. It reads from 4 data sources (I_RU_Contract, I_RU_Contract, I_Z0_ContrCatMappgWithBP, I_Z0_ContrCatMappgWithBP) and exposes 17 fields. Part of development package GLO_FIN_IS_VAT_KZ_RETURN.

Data Sources (4)

SourceAliasJoin Type
I_RU_Contract Contract from
I_RU_Contract Contract union
I_Z0_ContrCatMappgWithBP MappingBP inner
I_Z0_ContrCatMappgWithBP MappingBP inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
EndUserText.label Business Partner Category view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view

Fields (17)

KeyFieldSource TableSource FieldDescription
CompanyCode I_RU_Contract CompanyCode Receiver Company Code
InternalContractNum I_RU_Contract AssignmentReference Assignment Reference
ExternalContractNumber I_RU_Contract BusinessPartnerContractExt Ext. Contract Number
ExternalContractDate I_RU_Contract ContractStartDate Contract Start Date
VATCategoryID I_Z0_ContrCatMappgWithBP CustomerCategoryRole
ContractCategory I_RU_Contract ContractCategory
IsCustomerCategory
Supplier I_RU_Contract Supplier Supplier
CompanyCodeasCompanyCode
InternalContractNum I_RU_Contract AssignmentReference Assignment Reference
ExternalContractNumber I_RU_Contract BusinessPartnerContractExt Ext. Contract Number
ExternalContractDate I_RU_Contract ContractStartDate Contract Start Date
VATCategoryID I_Z0_ContrCatMappgWithBP SupplierCategoryRole
ContractCategory I_RU_Contract ContractCategory
IsCustomerCategory
Supplier I_RU_Contract Supplier Supplier
Customer I_RU_Contract 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_BusinessPartnerCategory.
-- 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 P_KZ_BusinessPartnerCategory AS
SELECT
  Contract.CompanyCode AS CompanyCode,
  Contract.AssignmentReference AS InternalContractNum,
  Contract.BusinessPartnerContractExt AS ExternalContractNumber,
  Contract.ContractStartDate AS ExternalContractDate,
  MappingBP.CustomerCategoryRole AS VATCategoryID,
  Contract.ContractCategory AS ContractCategory,
  'X' AS IsCustomerCategory,
  Contract.Supplier AS Supplier,
  Contract.Customer AS CompanyCodeasCompanyCode,
  Contract.Customer AS Customer
FROM I_RU_Contract AS Contract
INNER JOIN I_Z0_ContrCatMappgWithBP AS MappingBP ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_RU_Contract
;