C_PT_SAFTSelfBillgMaterial

DDL: C_PT_SAFTSELFBILLGMATERIAL SQL: CPTSAFTSBMATRL Type: view CONSUMPTION

SAF-T PT Self-Billing Material

C_PT_SAFTSelfBillgMaterial is a Consumption CDS View that provides data about "SAF-T PT Self-Billing Material" in SAP S/4HANA. It reads from 1 data source (I_PT_SAFTProductType) and exposes 9 fields with key fields CompanyCode, Supplier, PortugueseMaterialWithVersion.

Data Sources (1)

SourceAliasJoin Type
I_PT_SAFTProductType ProductType inner

Parameters (2)

NameTypeDefault
P_StartDate budat
P_EndDate budat

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CPTSAFTSBMATRL view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label SAF-T PT Self-Billing Material view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode InvoiceItem CompanyCode Receiver Company Code
KEY Supplier InvoiceItem Supplier Supplier
KEY PortugueseMaterialWithVersion InvoiceItem PortugueseMaterialWithVersion Material w/ Version
Material InvoiceItem Material Vehicle Model
ProductType I_PT_SAFTProductType ProductType Product Type Group
MaterialGroup
ProductDescription InvoiceItem MaterialName Material Description
DangerousGoodsIdnNumber _DangerousGoodsIdnNumber DangerousGoodsIdnNumber Number
_Supplier InvoiceItem _Supplier

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_PT_SAFTSelfBillgMaterial.
-- 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: CPTSAFTSBMATRL
-- Parameters: P_StartDate : budat, P_EndDate : budat

CREATE VIEW C_PT_SAFTSelfBillgMaterial AS
SELECT
  InvoiceItem.CompanyCode AS CompanyCode,
  InvoiceItem.Supplier AS Supplier,
  InvoiceItem.PortugueseMaterialWithVersion AS PortugueseMaterialWithVersion,
  InvoiceItem.Material AS Material,
  ProductType.ProductType AS ProductType,
  InvoiceItem._Product.ProductGroup AS MaterialGroup,
  InvoiceItem.MaterialName AS ProductDescription,
  _DangerousGoodsIdnNumber.DangerousGoodsIdnNumber AS DangerousGoodsIdnNumber,
  InvoiceItem._Supplier AS _Supplier
INNER JOIN I_PT_SAFTProductType AS ProductType ON /* join condition not captured in parsed metadata */
;