I_SVTPurgPrprocgDocument
SVT purchasing preprocessing document
I_SVTPurgPrprocgDocument is a Basic CDS View that provides data about "SVT purchasing preprocessing document" in SAP S/4HANA. It reads from 1 data source (ehpmad_svt_purco) and exposes 60 fields with key field SVTConfirmedPurchasingDocUUID. It has 10 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ehpmad_svt_purco | ehpmad_svt_purco | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Country | _ReceivingCountry | $projection.ReceivingCountry = _ReceivingCountry.Country |
| [0..1] | I_Supplier | _Supplier | $projection.SVTSelectedSupplier = _Supplier.Supplier |
| [0..1] | I_SVTSourceAddressType | _SourceAddressType | $projection.SVTSourceAddressType = _SourceAddressType.SVTSourceAddressType |
| [0..1] | I_SVTTargetAddressType | _TargetAddressType | $projection.SVTTargetAddressType = _TargetAddressType.SVTTargetAddressType |
| [0..1] | I_ImprtRespyRespImporter | _ResponsibleImporter | $projection.SVTBizProcCatRespImporter = _ResponsibleImporter.ImprtRespyRespImporter |
| [0..1] | I_PurchasingDocumentCategory | _PurgDocumentCategory | $projection.PurchasingDocumentCategory = _PurgDocumentCategory.PurchasingDocumentCategory |
| [0..1] | I_PurgDocumentItemCategory | _PurgDocumentItemCategory | $projection.PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory |
| [0..1] | I_PurchasingDocumentType | _PurgDocumentType | $projection.PurchasingDocumentType = _PurgDocumentType.PurchasingDocumentType and $projection.PurchasingDocumentCategory = _PurgDocumentType.PurchasingDocumentCategory and $projection.PurchasingDocumentCategory = _PurgDocumentType.PurchasingDocumentCategory |
| [0..1] | I_Region | _ReceivingRegion | $projection.ReceivingRegion = _ReceivingRegion.Region and $projection.ReceivingCountry = _ReceivingRegion.Country |
| [1..1] | I_UnitOfMeasure | _UnitOfMeasure | $projection.QuantityUnit = _UnitOfMeasure.UnitOfMeasure |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISVTPREPROCPUR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | SVT purchasing preprocessing document | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SVTConfirmedPurchasingDocUUID | svtconfirmedpurchasingdocuuid | Purg Confd Qty UUID | |
| PostingDate | postingdate | Posting Date for GR | ||
| Material | material | Vehicle Model | ||
| Quantity | Material Quantity | |||
| QuantityUnit | materialquantityunit | Material Qty Unit | ||
| MaterialDocument | materialdocument | Material Doc. | ||
| MaterialDocumentItem | materialdocumentitem | Material Document Item | ||
| MaterialDocumentYear | materialdocumentyear | Material Document Year | ||
| ReceivingCompanyCode | receivingcompanycode | Rcvg Co Code | ||
| ReceivingPlant | receivingplant | Receiving Plant | ||
| ReceivingStorageLocation | receivingstoragelocation | RecStorLoc | ||
| DeliveringPlant | deliveringplant | Delivering Plant | ||
| DeliveringStorageLocation | deliveringstoragelocation | Deliv. Stor. Loc. | ||
| CreationTime | creationtimelogsystem | Creation Time | ||
| CreationDateTime | creationdatetime | Timestamp | ||
| SVTPreprocessingStatus | processedstatus | Processing Status | ||
| OrderQuantity | orderquantity | Quantity | ||
| OrderQuantityUnit | orderquantityuom | Order Unit | ||
| IsDeleted | isdeleted | TRUE | ||
| GoodsMovementType | goodsmovementtype | Movement Type | ||
| DebitCreditCode | debitcreditcode | Single-Character Flag | ||
| AccountingDocumentType | accountingdocumenttype | Journal Entry Type | ||
| InventoryTransactionType | inventorytransactiontype | Trans. Ev. Type | ||
| ProdCmplncEventUUID | prodcmplnceventuuid | Product Compliance Event | ||
| ProdCmplncExclCoPlntUUID | prodcmplncexclcoplntuuid | Excl Cmpn Plnt UUID | ||
| BusinessPartnerSupplier | businesspartnersupplier | Supplier | ||
| SupplierAddressID | supplieraddressid | Address Number | ||
| ReceivingCountry | receivingcountry | Rcvg Cntry/Reg | ||
| DeliveringCountry | deliveringcountry | Delivering Ctry/Reg | ||
| SupplierIsImporter | supplierisimporter | Supplier is importer | ||
| PurchaseOrder | purchaseorder | Purchasing Document | ||
| PurchaseOrderItem | purchaseorderitem | Purchasing Document Item | ||
| PurchasingDocumentCategory | purchasingdocumentcategory | Doc. Category | ||
| PurchasingDocumentType | purchasingdocumenttype | RFQ Type | ||
| PurchasingDocumentItemCategory | purchasingdocumentitemcategory | Item Category | ||
| DeliveringRegion | deliveringregion | Delivering Region | ||
| SVTSelectedBusinessPartner | svtcalculatedsupplier | Supplier | ||
| SVTSelectedSupplier | svtcalculatedsupplierid | Supplier | ||
| SVTSelectedSupplierAddressID | svtcalulatedsupplieraddressid | Address No. | ||
| ReceivingRegion | receivingregion | Receiving Region | ||
| IsReturnsItem | isreturnsitem | Returns Item | ||
| SVTBizProcCatRespImporter | imprtrespycalcdrespimporter | Calcd Resp Importer | ||
| SVTBusinessProcessCategory | svtbusinessprocesscategory | |||
| DlvgLocationIsBondedWarehouse | sourceisbondedwarehouse | Is Bonded Wrhs | ||
| RcvgLocationIsBondedWarehouse | targetisbondedwarehouse | Is Bonded Wrhs | ||
| SVTSourceAddressID | sourceaddressid | |||
| SVTSourceAddressType | sourceaddresstype | |||
| SVTTargetAddressID | targetaddressid | |||
| SVTTargetAddressType | targetaddresstype | |||
| SVTSeldSupplierPartnerFunction | Partner Functn | |||
| _ReceivingCountry | _ReceivingCountry | |||
| _Supplier | _Supplier | |||
| _SourceAddressType | _SourceAddressType | |||
| _TargetAddressType | _TargetAddressType | |||
| _ResponsibleImporter | _ResponsibleImporter | |||
| _PurgDocumentCategory | _PurgDocumentCategory | |||
| _PurgDocumentItemCategory | _PurgDocumentItemCategory | |||
| _PurgDocumentType | _PurgDocumentType | |||
| _ReceivingRegion | _ReceivingRegion | |||
| _UnitOfMeasure | _UnitOfMeasure |
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_SVTPurgPrprocgDocument.
-- 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: ISVTPREPROCPUR
CREATE VIEW I_SVTPurgPrprocgDocument AS
SELECT
SVTConfirmedPurchasingDocUUID,
PostingDate,
Material,
cast( materialquantity as ehpma_svt_subst_vol_ui ) AS Quantity,
materialquantityunit AS QuantityUnit,
MaterialDocument,
MaterialDocumentItem,
MaterialDocumentYear,
ReceivingCompanyCode,
ReceivingPlant,
ReceivingStorageLocation,
DeliveringPlant,
DeliveringStorageLocation,
creationtimelogsystem AS CreationTime,
CreationDateTime,
processedstatus AS SVTPreprocessingStatus,
OrderQuantity,
orderquantityuom AS OrderQuantityUnit,
IsDeleted,
GoodsMovementType,
DebitCreditCode,
AccountingDocumentType,
InventoryTransactionType,
ProdCmplncEventUUID,
ProdCmplncExclCoPlntUUID,
BusinessPartnerSupplier,
SupplierAddressID,
ReceivingCountry,
DeliveringCountry,
SupplierIsImporter,
PurchaseOrder,
PurchaseOrderItem,
PurchasingDocumentCategory,
PurchasingDocumentType,
PurchasingDocumentItemCategory,
DeliveringRegion,
svtcalculatedsupplier AS SVTSelectedBusinessPartner,
svtcalculatedsupplierid AS SVTSelectedSupplier,
svtcalulatedsupplieraddressid AS SVTSelectedSupplierAddressID,
ReceivingRegion,
IsReturnsItem,
imprtrespycalcdrespimporter AS SVTBizProcCatRespImporter,
SVTBusinessProcessCategory,
sourceisbondedwarehouse AS DlvgLocationIsBondedWarehouse,
targetisbondedwarehouse AS RcvgLocationIsBondedWarehouse,
sourceaddressid AS SVTSourceAddressID,
sourceaddresstype AS SVTSourceAddressType,
targetaddressid AS SVTTargetAddressID,
targetaddresstype AS SVTTargetAddressType,
cast( svtcalulatedsupplierfunction as ehpma_svt_calcd_suppl_function ) AS SVTSeldSupplierPartnerFunction
FROM ehpmad_svt_purco
LEFT OUTER JOIN I_Country AS _ReceivingCountry ON ReceivingCountry = _ReceivingCountry.Country -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON SVTSelectedSupplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_SVTSourceAddressType AS _SourceAddressType ON SVTSourceAddressType = _SourceAddressType.SVTSourceAddressType -- association [0..1]
LEFT OUTER JOIN I_SVTTargetAddressType AS _TargetAddressType ON SVTTargetAddressType = _TargetAddressType.SVTTargetAddressType -- association [0..1]
LEFT OUTER JOIN I_ImprtRespyRespImporter AS _ResponsibleImporter ON SVTBizProcCatRespImporter = _ResponsibleImporter.ImprtRespyRespImporter -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentCategory AS _PurgDocumentCategory ON PurchasingDocumentCategory = _PurgDocumentCategory.PurchasingDocumentCategory -- association [0..1]
LEFT OUTER JOIN I_PurgDocumentItemCategory AS _PurgDocumentItemCategory ON PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentType AS _PurgDocumentType ON PurchasingDocumentType = _PurgDocumentType.PurchasingDocumentType AND PurchasingDocumentCategory = _PurgDocumentType.PurchasingDocumentCategory AND PurchasingDocumentCategory = _PurgDocumentType.PurchasingDocumentCategory -- association [0..1]
LEFT OUTER JOIN I_Region AS _ReceivingRegion ON ReceivingRegion = _ReceivingRegion.Region AND ReceivingCountry = _ReceivingRegion.Country -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON QuantityUnit = _UnitOfMeasure.UnitOfMeasure -- association [1..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