M_V_Purchasing_Sos_B

DDL: M_V_PURCHASING_SOS_B SQL: CDS_M_PUR_SOS_B Type: view

Purchasing Sources of Supply Basic

M_V_Purchasing_Sos_B is a CDS View that provides data about "Purchasing Sources of Supply Basic" in SAP S/4HANA. It reads from 2 data sources (M_V_Inforecord_Sos_B, M_V_Outline_Agreement_Sos_B) and exposes 65 fields.

Data Sources (2)

SourceAliasJoin Type
M_V_Inforecord_Sos_B InfoRecord from
M_V_Outline_Agreement_Sos_B OA union_all

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName CDS_M_PUR_SOS_B view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Purchasing Sources of Supply Basic view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (65)

KeyFieldSource TableSource FieldDescription
matnr M_V_Inforecord_Sos_B matnr Vehicle Model
ematn M_V_Inforecord_Sos_B ematn MPN: Material
werks M_V_Inforecord_Sos_B werks Receiving Plant
vdatu M_V_Inforecord_Sos_B vdatu Valid From
lifnr M_V_Inforecord_Sos_B lifnr Vendor no.
bdatu M_V_Inforecord_Sos_B bdatu Valid To
bstmi M_V_Inforecord_Sos_B bstmi Min. Lot Size
bstma M_V_Inforecord_Sos_B bstma To Lot Size
aut_source M_V_Inforecord_Sos_B aut_source Auto. Sourcing
infnr M_V_Inforecord_Sos_B infnr Info Record
EBELN
EBELP
BSTYP
PSTYP
ekorg M_V_Inforecord_Sos_B ekorg Purchasing Org.
ekgrp M_V_Inforecord_Sos_B ekgrp Sub. purchasing grp
esokz M_V_Inforecord_Sos_B esokz Infotype
LGORT
reswk Supplying Plant
reslo Iss. Stor. Loc.
sobkz Special Stock
knttp AcctAssgnCat:CC
kzvbr Consumption
kanba Kanban Indicat.
webaz M_V_Inforecord_Sos_B webaz GR Proc. Time
plifz M_V_Inforecord_Sos_B plifz Plnd Deliv.Time
verid M_V_Inforecord_Sos_B verid Version ID
emlif Supplier
lblkz SC Supplier
lphis Release Docu.
rdprf M_V_Inforecord_Sos_B rdprf Rounding Prfl.
priority
matnr Vehicle Model
ematn M_V_Outline_Agreement_Sos_B ematn MPN: Material
werks M_V_Outline_Agreement_Sos_B werks Receiving Plant
vdatu M_V_Outline_Agreement_Sos_B vdatu Valid From
lifnr M_V_Outline_Agreement_Sos_B lifnr Vendor no.
bdatu M_V_Outline_Agreement_Sos_B bdatu Valid To
bstmi M_V_Outline_Agreement_Sos_B bstmi Min. Lot Size
bstma M_V_Outline_Agreement_Sos_B bstma To Lot Size
aut_source M_V_Outline_Agreement_Sos_B aut_source Auto. Sourcing
infnr Info Record
ebeln M_V_Outline_Agreement_Sos_B ebeln Source PurchDoc
ebelp M_V_Outline_Agreement_Sos_B ebelp Item pur. doc.
bstyp M_V_Outline_Agreement_Sos_B bstyp Source doc.cat.
pstyp M_V_Outline_Agreement_Sos_B pstyp Item Category
ekorg M_V_Outline_Agreement_Sos_B ekorg Purchasing Org.
ekgrp M_V_Outline_Agreement_Sos_B ekgrp Sub. purchasing grp
esokz Infotype
lgort M_V_Outline_Agreement_Sos_B lgort Sublocation
reswk M_V_Outline_Agreement_Sos_B reswk Supplying Plant
reslo M_V_Outline_Agreement_Sos_B reslo Iss. Stor. Loc.
sobkz M_V_Outline_Agreement_Sos_B sobkz Special Stock
knttp M_V_Outline_Agreement_Sos_B knttp AcctAssgnCat:CC
kzvbr M_V_Outline_Agreement_Sos_B kzvbr Consumption
kanba M_V_Outline_Agreement_Sos_B kanba Kanban Indicat.
webaz M_V_Outline_Agreement_Sos_B webaz GR Proc. Time
plifz M_V_Outline_Agreement_Sos_B plifz Plnd Deliv.Time
verid M_V_Outline_Agreement_Sos_B verid Version ID
emlif M_V_Outline_Agreement_Sos_B emlif Supplier
lblkz M_V_Outline_Agreement_Sos_B lblkz SC Supplier
lphis M_V_Outline_Agreement_Sos_B lphis Release Docu.
rdprf M_V_Outline_Agreement_Sos_B rdprf Rounding Prfl.
priority
matkl M_V_Outline_Agreement_Sos_B matkl Product Sold Group

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 M_V_Purchasing_Sos_B.
-- 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: CDS_M_PUR_SOS_B

CREATE VIEW M_V_Purchasing_Sos_B AS
SELECT
  InfoRecord.matnr AS matnr,
  InfoRecord.ematn AS ematn,
  InfoRecord.werks AS werks,
  InfoRecord.vdatu AS vdatu,
  InfoRecord.lifnr AS lifnr,
  InfoRecord.bdatu AS bdatu,
  InfoRecord.bstmi AS bstmi,
  InfoRecord.bstma AS bstma,
  InfoRecord.aut_source AS aut_source,
  InfoRecord.infnr AS infnr,
  cast('' as ebeln) AS EBELN,
  cast('00000' as ebelp) AS EBELP,
  cast('I' as bstyp) AS BSTYP,
  cast('' as pstyp) AS PSTYP,
  InfoRecord.ekorg AS ekorg,
  InfoRecord.ekgrp AS ekgrp,
  InfoRecord.esokz AS esokz,
  cast('' as lgort_d) AS LGORT,
  cast ('' as reswk) AS reswk,
  cast ('' as reslo) AS reslo,
  cast('' as sobkz) AS sobkz,
  cast('' as knttp) AS knttp,
  cast('' as kzvbr) AS kzvbr,
  cast('' as kbnkz) AS kanba,
  InfoRecord.webaz AS webaz,
  InfoRecord.plifz AS plifz,
  InfoRecord.verid AS verid,
  cast('' as emlif) AS emlif,
  cast('' as lblkz) AS lblkz,
  cast('' as lphis) AS lphis,
  InfoRecord.rdprf AS rdprf,
  cast(InfoRecord.priority as abap.int1) + 10 AS priority,
  OA.matkl AS matkl
FROM M_V_Inforecord_Sos_B AS InfoRecord
-- UNION ALL with additional select branch(es): M_V_Outline_Agreement_Sos_B
;