I_SlsDocFieldRecommendationLog
Recommendation Log of Sales Doc Field
I_SlsDocFieldRecommendationLog is a Composite CDS View that provides data about "Recommendation Log of Sales Doc Field" in SAP S/4HANA. It reads from 1 data source (I_SlsDocFldRecmdnLogBasic) and exposes 30 fields with key field SlsDocFldRecommendationLogUUID. It has 8 associations to related views. Part of development package VDM_SD_SLS_AUTOCOMPLTN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SlsDocFldRecmdnLogBasic | I_SlsDocFldRecmdnLogBasic | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SalesDocumentType | _SalesDocumentType | $projection.SalesDocumentType = _SalesDocumentType.SalesDocumentType |
| [0..1] | I_SalesOrganization | _SalesOrganization | $projection.SalesOrganization = _SalesOrganization.SalesOrganization |
| [0..1] | I_DistributionChannel | _DistributionChannel | $projection.DistributionChannel = _DistributionChannel.DistributionChannel |
| [0..1] | I_SlsOrganizationDistrChnl | _SlsOrganizationDistrChnl | $projection.SalesOrganization = _SlsOrganizationDistrChnl.SalesOrganization and $projection.DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel |
| [0..1] | I_Division | _OrganizationDivision | $projection.OrganizationDivision = _OrganizationDivision.Division |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..1] | I_SlsDocFieldRecmdnStatus | _SlsDocFldRecmdnStatus | $projection.SlsDocFldRecommendationStatus = _SlsDocFldRecmdnStatus.SlsDocFldRecommendationStatus |
| [0..1] | I_SlsDocChgDocumentFieldName | _SlsDocChgDocumentFieldName | $projection.DatabaseTableFieldName = _SlsDocChgDocumentFieldName.DatabaseTableField and $projection.DatabaseTable = _SlsDocChgDocumentFieldName.DatabaseTable and _SlsDocChgDocumentFieldName.Language = $session.system_language |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Recommendation Log of Sales Doc Field | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (30)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SlsDocFldRecommendationLogUUID | SlsDocFldRecommendationLogUUID | ||
| SalesDocument | SalesDocument | SD Document | ||
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| SalesDocumentType | SalesDocumentType | Sales Doc. Type | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| DatabaseTable | DatabaseTable | Table Name | ||
| DatabaseTableFieldName | DatabaseTableFieldName | |||
| SlsDocInferenceObjectUUID | SlsDocInferenceObjectUUID | |||
| SlsDocumentInferenceFieldName | SlsDocumentInferenceFieldName | |||
| SlsDocRecommendationFieldName | SlsDocRecommendationFieldName | |||
| SalesDocumentFieldValue | SalesDocumentFieldValue | |||
| SlsDocRecmdnProbability | SlsDocRecmdnProbability | |||
| CreationDate | CreationDate | Time Stamp | ||
| CreationTime | CreationTime | Time of Change | ||
| CreatedByUser | CreatedByUser | User Name | ||
| SlsDocFldRecommendationStatus | SlsDocFldRecommendationStatus | |||
| NmbrOfSlsDocWithRecmdnField | 1 | |||
| ABAPLongFieldLabel | _SlsDocChgDocumentFieldName | ABAPLongFieldLabel | ||
| ABAPMediumFieldLabel | _SlsDocChgDocumentFieldName | ABAPMediumFieldLabel | ||
| ABAPShortFieldLabel | _SlsDocChgDocumentFieldName | ABAPShortFieldLabel | ||
| _SalesDocument | _SalesDocument | |||
| _SalesDocumentType | _SalesDocumentType | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _SlsOrganizationDistrChnl | _SlsOrganizationDistrChnl | |||
| _OrganizationDivision | _OrganizationDivision | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _SlsDocFldRecmdnStatus | _SlsDocFldRecmdnStatus |
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 I_SlsDocFieldRecommendationLog.
-- 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 I_SlsDocFieldRecommendationLog AS
SELECT
SlsDocFldRecommendationLogUUID,
SalesDocument,
SalesDocumentItem,
SalesDocumentType,
SalesOrganization,
DistributionChannel,
OrganizationDivision,
DatabaseTable,
DatabaseTableFieldName,
SlsDocInferenceObjectUUID,
SlsDocumentInferenceFieldName,
SlsDocRecommendationFieldName,
SalesDocumentFieldValue,
SlsDocRecmdnProbability,
CreationDate,
CreationTime,
CreatedByUser,
SlsDocFldRecommendationStatus,
1 AS NmbrOfSlsDocWithRecmdnField,
_SlsDocChgDocumentFieldName.ABAPLongFieldLabel AS ABAPLongFieldLabel,
_SlsDocChgDocumentFieldName.ABAPMediumFieldLabel AS ABAPMediumFieldLabel,
_SlsDocChgDocumentFieldName.ABAPShortFieldLabel AS ABAPShortFieldLabel
FROM I_SlsDocFldRecmdnLogBasic
LEFT OUTER JOIN I_SalesDocumentType AS _SalesDocumentType ON SalesDocumentType = _SalesDocumentType.SalesDocumentType -- association [0..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel -- association [0..1]
LEFT OUTER JOIN I_SlsOrganizationDistrChnl AS _SlsOrganizationDistrChnl ON SalesOrganization = _SlsOrganizationDistrChnl.SalesOrganization AND DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel -- association [0..1]
LEFT OUTER JOIN I_Division AS _OrganizationDivision ON OrganizationDivision = _OrganizationDivision.Division -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_SlsDocFieldRecmdnStatus AS _SlsDocFldRecmdnStatus ON SlsDocFldRecommendationStatus = _SlsDocFldRecmdnStatus.SlsDocFldRecommendationStatus -- association [0..1]
LEFT OUTER JOIN I_SlsDocChgDocumentFieldName AS _SlsDocChgDocumentFieldName ON DatabaseTableFieldName = _SlsDocChgDocumentFieldName.DatabaseTableField AND DatabaseTable = _SlsDocChgDocumentFieldName.DatabaseTable AND _SlsDocChgDocumentFieldName.Language = $session.system_language -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA