P_ABOPFieldCatalog

DDL: P_ABOPFIELDCATALOG SQL: PABOPFC Type: view BASIC Package: ATP_BOP_SETUP_VDM

ABOP Field Catalog

P_ABOPFieldCatalog is a Basic CDS View that provides data about "ABOP Field Catalog" in SAP S/4HANA. It reads from 3 data sources (I_SalesDocumentScheduleLine, t459k, tvep) and exposes 49 fields with key fields ATPRelevantDocument, ATPRelevantDocumentItem, ATPRelevantDocScheduleLine, ATPRelevantDocumentCategory. Part of development package ATP_BOP_SETUP_VDM.

Data Sources (3)

SourceAliasJoin Type
I_SalesDocumentScheduleLine I_SalesDocumentScheduleLine from
t459k t left_outer
tvep tv left_outer

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PABOPFC view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.private true view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY ATPRelevantDocument SalesDocument SD Document
KEY ATPRelevantDocumentItem SalesDocumentItem Sales Document Item
KEY ATPRelevantDocScheduleLine ScheduleLine Schedule Line
KEY ATPRelevantDocumentCategory
SDDocumentCategory _SalesDocument SDDocumentCategory Document Cat.
Material _SalesDocumentItem Material Vehicle Model
SupplyingPlant _SalesDocumentItem Plant Valuation Area
MRPArea _SalesDocumentItem MRPArea MRP Area
StorageLocation _SalesDocumentItem StorageLocation StorageLocation
Batch _SalesDocumentItem Batch Lot No.
ProductAvailabilityDate ProductAvailabilityDate Mat.Avail.Date
RequestedDeliveryDate RequestedDeliveryDate Requested Delivery Date
CreatedByUser _SalesDocument CreatedByUser User Name
OrderCreationDate _SalesDocument CreationDate Time Stamp
SoldToParty _SalesDocument SoldToParty Sold-to Party
SalesOrganization _SalesDocument SalesOrganization Sales Organization
SalesDocumentType _SalesDocument SalesDocumentType Sales Doc. Type
DistributionChannel _SalesDocument DistributionChannel RefDistCh-Cust/Mat.
MaterialGroup _SalesDocumentItem MaterialGroup Product Group
DeliveryPriority _SalesDocumentItem DeliveryPriority Delivery Prior.
NetAmount _SalesDocumentItem NetAmount Stated Amount
OrganizationDivision _SalesDocument OrganizationDivision Org. Division
DeliveryGroupendasgrkorasDeliveryGroup
char1asGroupType
CompleteDeliveryIsDefined _SalesDocument CompleteDeliveryIsDefined Complete Dlv.
InventorySpecialStockType _SalesDocumentItem InventorySpecialStockType Special Stock Type
ShippingConditionasShippingCondition
DeliveryDateQuantityIsFixed _SalesDocumentItem DeliveryDateQuantityIsFixed Fixed Date
HigherLevelItem _SalesDocumentItem HigherLevelItem Higher-Lev.Item
ProdAvailabilityCheckGroup _SalesDocumentItem ProdAvailabilityCheckGroup
ShippingPoint _SalesDocumentItem ShippingPoint Shipping Point
Route _SalesDocumentItem Route Vehicle route
char1asRESMD
ScheduleLineCategory ScheduleLineCategory Sched.Line Cat.
_SalesDocument _SalesDocument
_SDDocumentCategory _SalesDocument _SDDocumentCategory
_Material _SalesDocumentItem _Material
_ProductionPlant _SalesDocumentItem _Plant
_StorageLocation _SalesDocumentItem _StorageLocation
_CreatedByUser _SalesDocument _CreatedByUser
_SoldToParty _SalesDocument _SoldToParty
_SalesOrganization _SalesDocument _SalesOrganization
_DistributionChannel _SalesDocument _DistributionChannel
_OrganizationDivision _SalesDocument _OrganizationDivision
_SalesDocumentType _SalesDocument _SalesDocumentType
_MaterialGroup _SalesDocumentItem _MaterialGroup
_DeliveryPriority _SalesDocumentItem _DeliveryPriority
_ShippingCondition _SalesDocument _ShippingCondition
_ShippingPoint _SalesDocumentItem _ShippingPoint

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_ABOPFieldCatalog.
-- 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: PABOPFC

CREATE VIEW P_ABOPFieldCatalog AS
SELECT
  SalesDocument AS ATPRelevantDocument,
  SalesDocumentItem AS ATPRelevantDocumentItem,
  ScheduleLine AS ATPRelevantDocScheduleLine,
  concat('V', _SalesDocument.SDDocumentCategory) AS ATPRelevantDocumentCategory,
  _SalesDocument.SDDocumentCategory AS SDDocumentCategory,
  _SalesDocumentItem.Material AS Material,
  _SalesDocumentItem.Plant AS SupplyingPlant,
  _SalesDocumentItem.MRPArea AS MRPArea,
  _SalesDocumentItem.StorageLocation AS StorageLocation,
  _SalesDocumentItem.Batch AS Batch,
  ProductAvailabilityDate,
  RequestedDeliveryDate,
  _SalesDocument.CreatedByUser AS CreatedByUser,
  _SalesDocument.CreationDate AS OrderCreationDate,
  _SalesDocument.SoldToParty AS SoldToParty,
  _SalesDocument.SalesOrganization AS SalesOrganization,
  _SalesDocument.SalesDocumentType AS SalesDocumentType,
  _SalesDocument.DistributionChannel AS DistributionChannel,
  _SalesDocumentItem.MaterialGroup AS MaterialGroup,
  _SalesDocumentItem.DeliveryPriority AS DeliveryPriority,
  _SalesDocumentItem.NetAmount AS NetAmount,
  _SalesDocument.OrganizationDivision AS OrganizationDivision,
  cast( case when _SalesDocument.CompleteDeliveryIsDefined = 'X' then '001' else _SalesDocumentItem.DeliveryGroup end as grkor) as DeliveryGroup AS DeliveryGroupendasgrkorasDeliveryGroup,
  cast(case when _SalesDocument.CompleteDeliveryIsDefined = '' and _SalesDocumentItem.QuantityIsFixed = '' and _SalesDocumentItem.BillOfMaterial <> '' then 'B' when _SalesDocument.CompleteDeliveryIsDefined = 'X' or _SalesDocumentItem.DeliveryGroup <> '000' then 'A' else '' end as abap.char(1)) as GroupType AS char1asGroupType,
  _SalesDocument.CompleteDeliveryIsDefined AS CompleteDeliveryIsDefined,
  _SalesDocumentItem.InventorySpecialStockType AS InventorySpecialStockType,
  _SalesDocumentItem.DeliveryDateQuantityIsFixed AS DeliveryDateQuantityIsFixed,
  _SalesDocumentItem.HigherLevelItem AS HigherLevelItem,
  _SalesDocumentItem.ProdAvailabilityCheckGroup AS ProdAvailabilityCheckGroup,
  _SalesDocumentItem.ShippingPoint AS ShippingPoint,
  _SalesDocumentItem.Route AS Route,
  ScheduleLineCategory,
  _SalesDocument._SDDocumentCategory AS _SDDocumentCategory,
  _SalesDocumentItem._Material AS _Material,
  _SalesDocumentItem._Plant AS _ProductionPlant,
  _SalesDocumentItem._StorageLocation AS _StorageLocation,
  _SalesDocument._CreatedByUser AS _CreatedByUser,
  _SalesDocument._SoldToParty AS _SoldToParty,
  _SalesDocument._SalesOrganization AS _SalesOrganization,
  _SalesDocument._DistributionChannel AS _DistributionChannel,
  _SalesDocument._OrganizationDivision AS _OrganizationDivision,
  _SalesDocument._SalesDocumentType AS _SalesDocumentType,
  _SalesDocumentItem._MaterialGroup AS _MaterialGroup,
  _SalesDocumentItem._DeliveryPriority AS _DeliveryPriority,
  _SalesDocument._ShippingCondition AS _ShippingCondition,
  _SalesDocumentItem._ShippingPoint AS _ShippingPoint
FROM I_SalesDocumentScheduleLine
LEFT OUTER JOIN t459k AS t ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN tvep AS tv ON /* join condition not captured in parsed metadata */
;