Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

I_PL_SAFTGoodsMovement

DDL: I_PL_SAFTGOODSMOVEMENT SQL: IPLSAFTGOODSMOV Type: view BASIC Package: GLO_FIN_IS_SAFT_PL

SAF-T Goods Movement

I_PL_SAFTGoodsMovement is a Basic CDS View that provides data about "SAF-T Goods Movement" in SAP S/4HANA. It reads from 2 data sources (snd_pl_mag, snc_pl_bc) and exposes 34 fields with key field SAFTExtractionUUID. It has 5 associations to related views. Part of development package GLO_FIN_IS_SAFT_PL.

Data Sources (2)

SourceAliasJoin Type
snd_pl_mag saftn_pl_mag from
snc_pl_bc saftn_settings left_outer

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_Supplier _Supplier _Supplier.Supplier = saftn_pl_mag.lifnr
[0..1] I_Customer _Customer _Customer.Customer = saftn_pl_mag.kunnr
[0..1] I_CompanyCode _CompanyCode _CompanyCode.CompanyCode = saftn_pl_mag.bukrs
[1..1] I_Plant _Plant _Plant.Plant = saftn_pl_mag.werks
[0..1] I_StorageLocation _StorageLocation _StorageLocation.Plant = saftn_pl_mag.werks and _StorageLocation.StorageLocation = saftn_pl_mag.lgort

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IPLSAFTGOODSMOV view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.status #DEPRECATED view
EndUserText.label SAF-T Goods Movement view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY SAFTExtractionUUID snd_pl_mag extraction_id Extraction ID
GoodsMovementType mov_cat Movement Category
Plant werks Receiving Plant
StorageLocation lgort Sublocation
GoodsMovement mblnr Material Doc.
MaterialDocumentYear mjahr Mat. Doc. Year
GoodsMovementItem zeile Mat. Doc.Item
CompanyCode snd_pl_mag bukrs Value
Customer kunnr Stock customer
Supplier lifnr Vendor no.
Product Vehicle Model
Quantity menge WarrCountValue
UnitOfMeasure meins Valuation Unit
GoodsValueCurrency waers Transaction Currency
DocumentDate bldat Journal Entry Date
PostingDate budat Posting Date
PriceUnit mat_unit_price Unit Price
ItemGoodsValue mat_value Material Value
MaterialName mat_name Material Name
InvoiceReference inv_ref Invoice Reference
InvoiceReferenceReportingDate inv_date Invoice Date
ShipFromPartyAddressLine1Text ship_from Ship-From Address
ShipToPartyAddressLine1Text ship_to Ship-To Address
TotalGoodsMvtAmtInCCCrcy doc_amount Document Amount
EmailAddress
LocalTaxOffice snc_pl_bc tax_office Tax Office Code
District snc_pl_bc district District Court
CompanyRegion snc_pl_bc regon REGON
Municipality snc_pl_bc sub_district Sub District
_CompanyCode _CompanyCode
_Supplier _Supplier
_Customer _Customer
_Plant _Plant
_StorageLocation _StorageLocation

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_PL_SAFTGoodsMovement.
-- 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: IPLSAFTGOODSMOV

CREATE VIEW I_PL_SAFTGoodsMovement AS
SELECT
  saftn_pl_mag.extraction_id AS SAFTExtractionUUID,
  mov_cat AS GoodsMovementType,
  werks AS Plant,
  lgort AS StorageLocation,
  mblnr AS GoodsMovement,
  mjahr AS MaterialDocumentYear,
  zeile AS GoodsMovementItem,
  saftn_pl_mag.bukrs AS CompanyCode,
  kunnr AS Customer,
  lifnr AS Supplier,
  cast(matnr as char40) AS Product,
  menge AS Quantity,
  meins AS UnitOfMeasure,
  waers AS GoodsValueCurrency,
  bldat AS DocumentDate,
  budat AS PostingDate,
  mat_unit_price AS PriceUnit,
  mat_value AS ItemGoodsValue,
  mat_name AS MaterialName,
  inv_ref AS InvoiceReference,
  inv_date AS InvoiceReferenceReportingDate,
  ship_from AS ShipFromPartyAddressLine1Text,
  ship_to AS ShipToPartyAddressLine1Text,
  doc_amount AS TotalGoodsMvtAmtInCCCrcy,
  cast(saftn_settings.file_email as abap.char(241)) AS EmailAddress,
  saftn_settings.tax_office AS LocalTaxOffice,
  saftn_settings.district AS District,
  saftn_settings.regon AS CompanyRegion,
  saftn_settings.sub_district AS Municipality
FROM snd_pl_mag AS saftn_pl_mag
LEFT OUTER JOIN snc_pl_bc AS saftn_settings ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = saftn_pl_mag.lifnr  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON _Customer.Customer = saftn_pl_mag.kunnr  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = saftn_pl_mag.bukrs  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = saftn_pl_mag.werks  -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON _StorageLocation.Plant = saftn_pl_mag.werks AND _StorageLocation.StorageLocation = saftn_pl_mag.lgort  -- association [0..1]
;