I_GdsMvtGnrtdCustCsgnmtReg

DDL: I_GDSMVTGNRTDCUSTCSGNMTREG SQL: IGMCSGNMTREG Type: view BASIC

Consignment Register from Goods Movement

I_GdsMvtGnrtdCustCsgnmtReg is a Basic CDS View that provides data about "Consignment Register from Goods Movement" in SAP S/4HANA. It reads from 2 data sources (ptxph, P_PTXPI) and exposes 35 fields with key field CustomerConsignmentRegUUID.

Data Sources (2)

SourceAliasJoin Type
ptxph _ptxph inner
P_PTXPI _ptxpi from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IGMCSGNMTREG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
EndUserText.label Consignment Register from Goods Movement view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY CustomerConsignmentRegUUID UUID
CustomerConsignmentProcessType
CompanyCode ptxph bukrs Value
SalesOrganization ptxph vkorg SD Sales Org.
DeliveryDocument ptxph vbeln SD Sched. Agmt
DeliveryDocumentItem posnr WBS Element
TaxDepartureCountry ptxph otaxcnty Tax Departure Ctry/Reg.
TaxDestinationCountry ptxph itaxcnty Tax Destination Ctry/Reg.
SpecialStockIdfgCustomer nsdm_kunnr Customer SID
CustomerVATRegistration ptxph stceg VAT Reg. No.
SoldToParty kunag Sold-to Party
SoldToPartyAddressID kunag_adr Sold-To Address
ShipToParty kunwe Ship-to Party
ShipToPartyAddressID kunwe_adr Ship-to address
GoodsMovementDate ptxph budat Posting Date
Product matnr Vehicle Model
BaseUnit meins Valuation Unit
TaxBaseAmount Value
SDTransactionCurrency ptxph waerk Doc. Currency
DeliveringPlant werks Receiving Plant
MaterialDocument ptxph mblnr Material Doc.
MaterialDocumentItem zeile Mat. Doc.Item
MaterialDocumentYear ptxph mjahr Mat. Doc. Year
ReversedMaterialDocument ptxph smbln Reversed Mat Doc
ReversedMaterialDocumentItem smblp Reversed Doc Item
ReversedMaterialDocumentYear ptxph sjahr Reversed Doc Year
BillingDocument
BillingDocumentItem
CancelledBillingDocument
AccountingDocument ptxph belnr SD Document
FiscalYear
SalesOrder
SalesOrderItem
Batch charg Chargeable Proc.
CsgnmtRegUpldEntryRemarkTxt

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_GdsMvtGnrtdCustCsgnmtReg.
-- 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: IGMCSGNMTREG

CREATE VIEW I_GdsMvtGnrtdCustCsgnmtReg AS
SELECT
  cast( ptxpiuuid as custcsgnmtreguuid preserving type ) AS CustomerConsignmentRegUUID,
  cast ( _ptxph.ptxsubtype as proc_type ) AS CustomerConsignmentProcessType,
  _ptxph.bukrs AS CompanyCode,
  _ptxph.vkorg AS SalesOrganization,
  _ptxph.vbeln AS DeliveryDocument,
  posnr AS DeliveryDocumentItem,
  _ptxph.otaxcnty AS TaxDepartureCountry,
  _ptxph.itaxcnty AS TaxDestinationCountry,
  nsdm_kunnr AS SpecialStockIdfgCustomer,
  _ptxph.stceg AS CustomerVATRegistration,
  kunag AS SoldToParty,
  kunag_adr AS SoldToPartyAddressID,
  kunwe AS ShipToParty,
  kunwe_adr AS ShipToPartyAddressID,
  _ptxph.budat AS GoodsMovementDate,
  matnr AS Product,
  meins AS BaseUnit,
  cast( netwr as fwbas_bses_cs ) AS TaxBaseAmount,
  _ptxph.waerk AS SDTransactionCurrency,
  werks AS DeliveringPlant,
  _ptxph.mblnr AS MaterialDocument,
  zeile AS MaterialDocumentItem,
  _ptxph.mjahr AS MaterialDocumentYear,
  _ptxph.smbln AS ReversedMaterialDocument,
  smblp AS ReversedMaterialDocumentItem,
  _ptxph.sjahr AS ReversedMaterialDocumentYear,
  cast ( '' as vbeln_vf ) AS BillingDocument,
  cast ( '' as posnr_vf ) AS BillingDocumentItem,
  cast ( '' as sfakn ) AS CancelledBillingDocument,
  _ptxph.belnr AS AccountingDocument,
  cast(_ptxph.gjahr as fis_gjahr_no_conv preserving type) AS FiscalYear,
  cast( _ptxpi.aubel as vbeln_va ) AS SalesOrder,
  cast( _ptxpi.aupos as posnr_va ) AS SalesOrderItem,
  charg AS Batch,
  cast ( '' as registerupldremark ) AS CsgnmtRegUpldEntryRemarkTxt
FROM P_PTXPI AS _ptxpi
INNER JOIN ptxph AS _ptxph ON /* join condition not captured in parsed metadata */
;