P_AssetCompanyCode

DDL: P_ASSETCOMPANYCODE Type: view BASIC

P_AssetCompanyCode is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (faat_cmp, P_TF_AssetRedesignSwitchStatus, P_TF_AssetRedesignSwitchStatus, t093c) and exposes 3 fields with key field CompanyCode.

Data Sources (4)

SourceAliasJoin Type
faat_cmp faat_cmp union_all
P_TF_AssetRedesignSwitchStatus P_TF_AssetRedesignSwitchStatus inner
P_TF_AssetRedesignSwitchStatus P_TF_AssetRedesignSwitchStatus inner
t093c t093c from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PASSETCOMPCODE view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bukrs Value
IsActiveXkeycomp_codeasCompanyCode
ChartOfDepreciation

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_AssetCompanyCode.
-- 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_AssetCompanyCode AS
SELECT
  bukrs AS CompanyCode,
  afapl as ChartOfDepreciation AS IsActiveXkeycomp_codeasCompanyCode,
  cast('' as afapl) AS ChartOfDepreciation
FROM t093c
INNER JOIN P_TF_AssetRedesignSwitchStatus ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): faat_cmp
;