FAA_CMP_LDT

DDL: FAA_CMP_LDT SQL: FAAV_CMP_LDT Type: view

Join of FAAT_CMP and FAAT_CMP_LDT

FAA_CMP_LDT is a CDS View that provides data about "Join of FAAT_CMP and FAAT_CMP_LDT" in SAP S/4HANA. It reads from 2 data sources (FAA_TF_CMPACTIVELDTSEGMENT, faat_cmp) and exposes 7 fields with key fields mandt, comp_code.

Data Sources (2)

SourceAliasJoin Type
FAA_TF_CMPACTIVELDTSEGMENT FAA_TF_CMPACTIVELDTSEGMENT left_outer
faat_cmp v1 from

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName FAAV_CMP_LDT view
ClientHandling.algorithm #AUTOMATED view
AccessControl.authorizationCheck #NOT_ALLOWED view
ObjectModel.usageType.serviceQuality #P view
EndUserText.label Join of FAAT_CMP and FAAT_CMP_LDT view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY mandt faat_cmp mandt Editing Client
KEY comp_code faat_cmp comp_code Procuring Comp. Cde
cmp_status faat_cmp status Workflow Status
locked faat_cmp locked TRUE
ldt_status v2 Status Workflow Status
Dateendasldt_date
ldt_doc_type v2 doc_type VAT Document 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 FAA_CMP_LDT.
-- 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: FAAV_CMP_LDT

CREATE VIEW FAA_CMP_LDT AS
SELECT
  v1.mandt AS mandt,
  v1.comp_code AS comp_code,
  v1.status AS cmp_status,
  v1.locked AS locked,
  v2.Status AS ldt_status,
  case when v2.Date is null then '00000000' else v2.Date end as ldt_date AS Dateendasldt_date,
  v2.doc_type AS ldt_doc_type
FROM faat_cmp AS v1
LEFT OUTER JOIN FAA_TF_CMPACTIVELDTSEGMENT ON /* join condition not captured in parsed metadata */
;