P_ACMQtyReconFillErrorFields1

DDL: P_ACMQTYRECONFILLERRORFIELDS1 SQL: PQTYRECONERRFLD1 Type: view COMPOSITE

P_ACMQtyReconFillErrorFields1 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_ACMQtyReconUpdateData1) and exposes 67 fields with key fields ContractNum, TradingContractItem, ContractSubItem, ApplicationDocument, ApplicationDocumentItem.

Data Sources (1)

SourceAliasJoin Type
P_ACMQtyReconUpdateData1 P_ACMQtyReconUpdateData1 from

Parameters (4)

NameTypeDefault
P_FromDateInSystemTimeZone aedat
P_ToDateInSystemTimeZone aedat
P_FromTimeInSystemTimeZone aezeit
P_ToTimeInSystemTimeZone aezeit

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PQTYRECONERRFLD1 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view

Fields (67)

KeyFieldSource TableSource FieldDescription
KEY ContractNum ContractNum
KEY TradingContractItem TradingContractItem Item Number
KEY ContractSubItem ContractSubItem
KEY ApplicationDocument ApplicationDocument
KEY ApplicationDocumentItem ApplicationDocumentItem
KEY DocumentSide DocumentSide
KEY ApplicationSubItem ApplicationSubItem
KEY TrdgContrPrcgAspectSrceLotID TrdgContrPrcgAspectSrceLotID
KEY ConditionTermRateFixation BaseData ConditionTermRateFixation
KEY PricingKey PricingKey Pricing Key
KEY Version Version XML Vers.
KEY PricingDocumentItem PricingDocumentItem Item
KEY ConditionType ConditionType Condition type
KEY SubConditionType SubConditionType
KEY VersStockRecordUUID VersStockRecordUUID
MTMDataSourceType MTMDataSourceType Type of Data Record
TradingContractType TradingContractType
ApplicationDocType ApplicationDocType
ApplStatusCode ApplStatusCode
StlStatusCode StlStatusCode
ContractMaterial ContractMaterial
ContractPlant ContractPlant
CompanyCode CompanyCode Receiver Company Code
StorageLocation StorageLocation StorageLocation
ACMReportingStorageLocation ACMReportingStorageLocation
DocumentDate DocumentDate Journal Entry Date
TradingContractCreatedBy TradingContractCreatedBy
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
Commodity Commodity Commodity Code
CustomerName CustomerName Name of Customer
SupplierName SupplierName Supplier Name
PricingDocument PricingDocument Document Condition
RelatedDocumentNumber RelatedDocumentNumber
RelatedDocumentItemNumber RelatedDocumentItemNumber
ContractIsMirrorContr ContractIsMirrorContr
StockIsInTransit BaseData StockIsInTransit
PhysicalCommodity PhysicalCommodity
CmmdtyPriceExpsrUnit CmmdtyPriceExpsrUnit
ReportingQuantity ReportingQuantity
OriginReferenceDocument OriginReferenceDocument Root Document
OriginReferenceDocumentItem OriginReferenceDocumentItem Root Document Item
RecnclnReportingPricingStatus RecnclnReportingPricingStatus
RecnclnTransaclPricingStatus RecnclnTransaclPricingStatus
ApplicationItemFromKONVD ApplicationItemFromKONVD
DisplayOnlyError
TranOpenContrQtyInPhysUnit TranOpenContrQtyInPhysUnit
TranOpenContrQtyInMassUnit TranOpenContrQtyInMassUnit
TranOpenContrQtyInVolUnit TranOpenContrQtyInVolUnit
TranDistrApplItemQtyInPhysUnit TranDistrApplItemQtyInPhysUnit
TranDistrApplItemQtyInMassUnit TranDistrApplItemQtyInMassUnit
TranDistrApplItemQtyInVolUnit TranDistrApplItemQtyInVolUnit
TranInvApplItemQtyInPhysUnit TranInvApplItemQtyInPhysUnit
TranInvApplItemQtyInMassUnit TranInvApplItemQtyInMassUnit
TranInvApplItemQtyInVolUnit TranInvApplItemQtyInVolUnit
CommodityQuantity CommodityQuantity Commodity Quantity
CmmdtyPriceExpsrQtyInMassUnit CmmdtyPriceExpsrQtyInMassUnit
CmmdtyPriceExpsrQtyInVolUnit CmmdtyPriceExpsrQtyInVolUnit
TransactionalQuantityIn2Dec TransactionalQuantityIn2Dec
ReportingQuantityIn2Dec ReportingQuantityIn2Dec
dec313asQtyDifference
dec313endasACMRecnclnThldLowerLimitValue
dec313endasACMRecnclnThldUpperLimitValue
DisplayUnitOfMeasure DisplayUnitOfMeasure

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_ACMQtyReconFillErrorFields1.
-- 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: PQTYRECONERRFLD1
-- Parameters: P_FromDateInSystemTimeZone : aedat, P_ToDateInSystemTimeZone : aedat, P_FromTimeInSystemTimeZone : aezeit, P_ToTimeInSystemTimeZone : aezeit

CREATE VIEW P_ACMQtyReconFillErrorFields1 AS
SELECT
  ContractNum,
  TradingContractItem,
  ContractSubItem,
  ApplicationDocument,
  ApplicationDocumentItem,
  DocumentSide,
  ApplicationSubItem,
  TrdgContrPrcgAspectSrceLotID,
  BaseData.ConditionTermRateFixation AS ConditionTermRateFixation,
  PricingKey,
  Version,
  PricingDocumentItem,
  ConditionType,
  SubConditionType,
  VersStockRecordUUID,
  MTMDataSourceType,
  TradingContractType,
  ApplicationDocType,
  ApplStatusCode,
  StlStatusCode,
  ContractMaterial,
  ContractPlant,
  CompanyCode,
  StorageLocation,
  ACMReportingStorageLocation,
  DocumentDate,
  TradingContractCreatedBy,
  SalesOrganization,
  DistributionChannel,
  Division,
  PurchasingOrganization,
  PurchasingGroup,
  Commodity,
  CustomerName,
  SupplierName,
  PricingDocument,
  RelatedDocumentNumber,
  RelatedDocumentItemNumber,
  ContractIsMirrorContr,
  BaseData.StockIsInTransit AS StockIsInTransit,
  PhysicalCommodity,
  CmmdtyPriceExpsrUnit,
  ReportingQuantity,
  OriginReferenceDocument,
  OriginReferenceDocumentItem,
  RecnclnReportingPricingStatus,
  RecnclnTransaclPricingStatus,
  ApplicationItemFromKONVD,
  $parameters.P_DisplayOnlyRecordsWithError AS DisplayOnlyError,
  TranOpenContrQtyInPhysUnit,
  TranOpenContrQtyInMassUnit,
  TranOpenContrQtyInVolUnit,
  TranDistrApplItemQtyInPhysUnit,
  TranDistrApplItemQtyInMassUnit,
  TranDistrApplItemQtyInVolUnit,
  TranInvApplItemQtyInPhysUnit,
  TranInvApplItemQtyInMassUnit,
  TranInvApplItemQtyInVolUnit,
  CommodityQuantity,
  CmmdtyPriceExpsrQtyInMassUnit,
  CmmdtyPriceExpsrQtyInVolUnit,
  TransactionalQuantityIn2Dec,
  ReportingQuantityIn2Dec,
  cast( case when ( BaseData.ReconciliationRecordType = 'URK' or BaseData.ReconciliationRecordType = 'UAQ' ) and ( BaseData.StockIsInTransit is initial or BaseData.StockIsInTransit is null ) and BaseData.ReportingStockIsInTransit = 'X' then abs(BaseData.ReportingQuantity) when TransactionalQuantity is not null and ReportingQuantity is not null then abs((TransactionalQuantity - ReportingQuantity)) when TransactionalQuantity is null and ReportingQuantity is null then cast(0 as abap.dec(31,3)) when ReportingQuantity is null then abs(TransactionalQuantity) when TransactionalQuantity is null then abs(ReportingQuantity) end as abap.dec(31,3)) as QtyDifference AS dec313asQtyDifference,
  case when Threashold.ACMRecnclnThldLowerLimitValue is null then fltp_to_dec( 0.001 as abap.dec(31,3)) else cast( Threashold.ACMRecnclnThldLowerLimitValue as abap.dec(31,3)) end as ACMRecnclnThldLowerLimitValue AS dec313endasACMRecnclnThldLowerLimitValue,
  case when Threashold.ACMRecnclnThldUpperLimitValue is null then fltp_to_dec( 0.009 as abap.dec(31,3)) else cast(Threashold.ACMRecnclnThldUpperLimitValue as abap.dec(31,3)) end as ACMRecnclnThldUpperLimitValue AS dec313endasACMRecnclnThldUpperLimitValue,
  DisplayUnitOfMeasure
FROM P_ACMQtyReconUpdateData1
;