VB_DRAFT_OR_PUBLISH_VIEWS
Views those have draft or publish state
VB_DRAFT_OR_PUBLISH_VIEWS is a CDS View that provides data about "Views those have draft or publish state" in SAP S/4HANA. It reads from 3 data sources (VB_DRAFT_AND_PUBLISH_VIEWS, VB_ATOV_U_ITEM_BOM_BASE, VB_ATOV_U_ITEM_BOM_BASE) and exposes 7 fields with key fields ItemId, Ddlname, Ddlname.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| VB_DRAFT_AND_PUBLISH_VIEWS | _draft | left_outer |
| VB_ATOV_U_ITEM_BOM_BASE | item_bom | from |
| VB_ATOV_U_ITEM_BOM_BASE | item_bom | union_all |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | VBDRAFTORPUBLISH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.dataClass | #META | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Views those have draft or publish state | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ItemId | VB_ATOV_U_ITEM_BOM_BASE | item_id | Simulation Item ID |
| KEY | Ddlname | VB_ATOV_U_ITEM_BOM_BASE | bom_object_name | Object Name |
| CDSViewStatus | ||||
| item_idasItemId | ||||
| KEY | Ddlname | VB_ATOV_U_ITEM_BOM_BASE | bom_object_name | Object Name |
| CDSViewStatus | ||||
| is_draft | VB_ATOV_U_ITEM_BOM_BASE | is_draft | Is Draft |
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 VB_DRAFT_OR_PUBLISH_VIEWS.
-- 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: VBDRAFTORPUBLISH
CREATE VIEW VB_DRAFT_OR_PUBLISH_VIEWS AS
SELECT
item_bom.item_id AS ItemId,
item_bom.bom_object_name AS Ddlname,
'DRAFT' AS CDSViewStatus,
item_bom.is_draft AS item_idasItemId,
item_bom.is_draft AS is_draft
FROM VB_ATOV_U_ITEM_BOM_BASE AS item_bom
LEFT OUTER JOIN VB_DRAFT_AND_PUBLISH_VIEWS AS _draft ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): VB_ATOV_U_ITEM_BOM_BASE
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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