P_Versionedlogisticdocument_2
P_Versionedlogisticdocument_2 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_VersionedLogcDocument) and exposes 164 fields with key fields PricingKey, Version, PricingDocumentItem, ConditionType, SubConditionType.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_VersionedLogcDocument | I_VersionedLogcDocument | from |
Parameters (7)
| Name | Type | Default |
|---|---|---|
| P_consumption_type | cmm_vlogp_consumptiontype | |
| P_valuation_date0 | cmm_eval_keydate | |
| P_valuation_date1 | cmm_eval_keydate | |
| P_FX_valuation_date | cmm_eval_keydate | |
| P_snapshot_date0 | cmm_dend_cutdate | |
| P_snapshot_date1 | cmm_dend_cutdate | |
| P_MinEndOfDayFromDateTime | cmm_min_eod_from_datetime |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PVLOGP2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (164)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PricingKey | PricingKey | Pricing Key | |
| KEY | Version | Version | XML Vers. | |
| KEY | PricingDocumentItem | PricingDocumentItem | Item | |
| KEY | ConditionType | ConditionType | Condition type | |
| KEY | SubConditionType | SubConditionType | Subkey | |
| MTMDataSourceType | MTMDataSourceType | Type of Data Record | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityStartDateTime | ValidityStartTime | Valid From Time | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ValidityEndDateTime | ValidityEndTime | Valid To Time | ||
| SourceTransactionEventDateTime | SourceTransactionEventDateTime | Valid-From Tstmp | ||
| SourceTransacEventEndDateTime | SourceTransacEventEndDateTime | Valid-To Tstmp | ||
| EndOfDayBusinessEntityKey | EndOfDayBusinessEntityKey | Node Key | ||
| MarketNormBusinessEntityKey | MarketNormBusinessEntityKey | Entity Key Mkt Norm | ||
| DeliveryPeriodStartDate | DeliveryPeriodStartDate | Delivery Per. Start | ||
| DeliveryPeriodEndDate | DeliveryPeriodEndDate | Delivery Period End | ||
| SpreadBusinessEntityKey | SpreadBusinessEntityKey | Entity Key Sprd | ||
| MaximumVersion | MaximumVersion | Highest Version | ||
| PreviousVersion | PreviousVersion | Version | ||
| PreviousSubConditionType | PrevVersionSubConditionType | Subkey | ||
| ValuationDate0 | ||||
| ValuationDate1 | ||||
| FxValuationDate | ||||
| SnapshotDate0 | ||||
| SnapshotDate1 | ||||
| BusinessDocumentCompanyCode | ||||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| Creditor | Creditor | Supplier | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| Material | Material | Vehicle Model | ||
| PhysicalCommodity | PhysicalCommodity | Commodity Code | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| Batch | Batch | Lot No. | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| ConditionApplication | ConditionApplication | Application | ||
| SourceDocumentShortNumber | SourceDocumentShortNumber | Document | ||
| SourceDocument | SourceDocument | Document | ||
| SourceDocumentBusObjType | SourceDocumentBusObjType | Unit | ||
| OrignRefDocumentShortNumber | OrignRefDocumentShortNumber | Root Document | ||
| OriginReferenceDocument | OriginReferenceDocument | Root Document | ||
| OriginReferenceDocumentItem | OriginReferenceDocumentItem | Root Document Item | ||
| OriginReferenceDocBusObjType | OriginReferenceDocBusObjType | Root (BOR) Obj. Type | ||
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| ReferenceDocumentItem | ReferenceDocumentItem | Reference item | ||
| ReferenceDocBusObjType | ReferenceDocBusObjType | Pred(BOR) Object Typ | ||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| ExpectedPaymentDate | ExpectedPaymentDate | Payment Date | ||
| StatisticsCurrency | StatisticsCurrency | Stats. Currency | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| BusinessArea | BusinessArea | Business Area | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| IsIntercompanyTransfer | IsIntercompanyTransfer | Cross Company | ||
| CmmdtyRootDocExternalNumber | CmmdtyRootDocExternalNumber | Root Doc. Number | ||
| CmmdtyDocumentExternalNumber | CmmdtyDocumentExternalNumber | Ext.Doc.Number | ||
| PricingConditionCalculationType | ||||
| ConditionRate | ConditionRateAmount | Condition Amount | ||
| ConditionCurrency | ConditionCurrency | Currency | ||
| ConditionQuantity | ConditionQuantity | Pricing Unit | ||
| ConditionQuantityUnit | ConditionQuantityUnit | Unit of Measure | ||
| CommodityPricingEngineConditionTermRate | ||||
| OldConditionTermrate | ConditionTermRate | Term Rate | ||
| ConditionTermRateCurrency | ConditionTermRateCurrency | Term Currency | ||
| ConditionTermRateQuantity | ConditionTermRateQuantity | |||
| ConditionTermRateQuantityUnit | ConditionTermRateQuantityUnit | |||
| ConditionTermValue | ConditionTermValue | Term Value | ||
| OldConditionTermValue | ConditionTermValue | Term Value | ||
| ConditionTermValueCurrency | ConditionTermValueCurrency | Term Currency | ||
| ConditionTermRateMktCurrency | ConditionTermRateMktCurrency | Market Term Currency | ||
| ConditionTermName | ConditionTermName | Text | ||
| ConditionTermStatus | ConditionTermStatus | Term Status | ||
| RoundingDecimalPlaces | RoundingDecimalPlaces | Decim. Calctd. Rate | ||
| ConditionTermRateIsRounded | ConditionTermRateIsRounded | Rate Rounded | ||
| ConditionTermRateNmrtr | ConditionTermRateNmrtr | Rate factor num | ||
| ConditionTermRateDnmntr | ConditionTermRateDnmntr | Rate factor denom | ||
| ConditionTermExtensionUsage | ConditionTermExtensionUsage | Extension Usage | ||
| MaturitySelectionType | MaturitySelectionType | Maturity Sel. Type | ||
| MaturitySelectionRoutine | MaturitySelectionRoutine | Maturity Sel. Rt. | ||
| DCSPeriodType | DCSPeriodType | |||
| QuotationPeriodReferenceDate | QuotationPeriodReferenceDate | Valuation Ref Date | ||
| CmmdtyLtstEvaluationKeyDate | CmmdtyLtstEvaluationKeyDate | Evaluation Date | ||
| QuotationsCommodityCurveQuotationKeyType | ||||
| QuotationDateList | QuotationDateList | Date list key | ||
| FutureRefQuotationDateList | FutureRefQuotationDateList | Date list key | ||
| n_2416345QuotationPeriodStartDate | ||||
| QuotationPeriodEndDate | QuotationPeriodEndDate | End Date of Period | ||
| FixedtermsmaystillrefertoDCS | ||||
| DerivativeContrSpecification | ||||
| MarketIdentifierCode | MarketIdentifierCode | MIC | ||
| FutureRefMarketIdentifierCode | FutureRefMarketIdentifierCode | MIC | ||
| MaturityKeyDate | MaturityKeyDate | Maturity Key Date | ||
| CommodityContractMaturityCode | DerivativeContractMaturityCode | Contr. Maturity Code | ||
| BasisID | BasisID | Basis ID | ||
| BasisType | BasisType | Basis Type | ||
| QuotationGroup | QuotationGroup | Quotation Group | ||
| QuotationGroupCalculationRule | QuotationGroupCalculationRule | Operation | ||
| PriceIsRealized | PriceIsRealized | Realize | ||
| ConditionTermRateFixation | ConditionTermRateFixation | Term Number | ||
| PricingStatus | PricingStatus | Price Fix. Status | ||
| CndnTermRateFixationDate | CndnTermRateFixationDate | Rate Fixation Date | ||
| CndnTermRateFixationTime | CndnTermRateFixationTime | Rate Fixation Time | ||
| CndnTermExchRateFixationDate | CndnTermExchRateFixationDate | FX Fixation Date | ||
| CndnTermExchRateFixationTime | CndnTermExchRateFixationTime | FX Fixation Time | ||
| FixedExchRateDate | FixedExchRateDate | FWD FX freeze Date | ||
| ExchRateMaturityDate | ExchRateMaturityDate | Exch Rate Mat. Date | ||
| MiscellanousfieldsCommodityQuantity | ||||
| CommodityUnit | CommodityUnit | Order Unit | ||
| QuantitySign | QuantitySign | Sign of Quantity | ||
| MTMConditionGroupCategory | MTMConditionGroupCategory | Category | ||
| MTMConditionGroup | MTMConditionGroup | Consolidation Group | ||
| MTMCalculationGroup | MTMCalculationGroup | Calc.Group | ||
| MTMAdjustmentType | MTMAdjustmentType | Adjustment Type | ||
| MTMCalcGrpMarketPriceCondition | MTMCalcGrpMarketPriceCondition | Mkt Price Condition | ||
| ConditionTermRateIsFixed | ConditionTermRateIsFixed | Single-Character Flag | ||
| ConditionTermExchRateIsFixed | ConditionTermExchRateIsFixed | Fixed FX | ||
| CommodityQuantityInTermUnit | CommodityQuantityInTermUnit | |||
| n_2308030OldMarketNormMaturityKeyDate | ||||
| n_2416345NewMarketNormMaturityKeyDate | ||||
| n_2416345FixedSpreadIsInverted | ||||
| FinancialInstrTransactionType | FinancialInstrTransactionType | Transactn Type | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| SecurityClass | SecurityClass | Treasury ID No. | ||
| NumberOfCommodityContracts | NumberOfCommodityContracts | Number of Units | ||
| TreasuryPositionAccount | TreasuryPositionAccount | Futures Acct | ||
| TreasuryContractType | TreasuryContractType | Treasury Contract Type | ||
| TreasuryPositionLongShortCode | TreasuryPositionLongShortCode | Short/Long | ||
| TPLPnLEventType | ||||
| PrevVersionCommodityQuantity | PrevVersionCommodityQuantity | Open Cmdty Qty | ||
| PreviousVersionQuantitySign | PreviousVersionQuantitySign | Sign of Quantity | ||
| PrevVersCndnTermRateCurrency | PrevVersCndnTermRateCurrency | Term Currency | ||
| PrevVersionConditionTermValue | PrevVersionConditionTermValue | Term Value | ||
| ImplicitFixationIsRelevant | ImplicitFixationIsRelevant | Imp Fix Relevant | ||
| ConditionTermFactorNumerator | ConditionTermFactorNumerator | Term factor num | ||
| ConditionTermFactorDenominator | ConditionTermFactorDenominator | Term factor deno | ||
| ComparImplicitFixationIsRlvt | ComparImplicitFixationIsRlvt | |||
| CmmdtyPriceExpsrQtyInMassUnit | CmmdtyPriceExpsrQtyInMassUnit | |||
| CmmdtyPriceExpsrVolumeUnit | CmmdtyPriceExpsrVolumeUnit | Volume UoM | ||
| CmmdtyPriceExpsrQtyInVolUnit | CmmdtyPriceExpsrQtyInVolUnit | Quantity in Vol UoM | ||
| ContrPriceExposureIsExecuted | ContrPriceExposureIsExecuted | Executed | ||
| CmmdtyForwardIndexTiming | CmmdtyForwardIndexTiming | Timing | ||
| QuotationUnitOfMeasure | QuotationUnitOfMeasure | Quot Unit of Measure | ||
| FixedCalculationType | FixedCalculationType | Fixed Fx Calc Type | ||
| TermToDocFixedFactorFrom | ThresholdValueLow | |||
| TermToDocFixedFactorTo | ThresholdValueHigh | |||
| MarketToTermExchangeRateType | MarketToTermExchangeRateType | Mkt to Term Crcy Cnv | ||
| CndnToStstcExchangeRateType | CndnToStstcExchangeRateType | Cnd to Stat Crcy Cnv | ||
| ConditionToDocExchangeRateType | ConditionToDocExchangeRateType | Cnd to Doc Crcy Conv | ||
| DocToStstcExchangeRateType | DocToStstcExchangeRateType | Doc to Stat Crcy Cnv | ||
| ExchangeRateType | ExchangeRateType | Exch. Rate Type | ||
| QuotationCurrency | QuotationCurrency | Quotation Currency | ||
| SkipReportingIndicatorIsSet | SkipReportingIndicatorIsSet | Skip reporting | ||
| FixedFactorFrom | OldScore | Quot To Term UoM | ||
| FixedFactorTo | NewScore | |||
| PriceSettingMethod | PriceSettingMethod | Price Setting Method | ||
| PriceSettingMethodStatus | PriceSettingMethodStatus | PSM Status | ||
| ValidToDateTime | ValidToDateTime | Time Stamp | ||
| PricingProcedure | PricingProcedure | Procedure | ||
| PricingConditionTerm | PricingConditionTerm | Term Number | ||
| ExcludeBasedate | ExcludeBasedate |
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_Versionedlogisticdocument_2.
-- 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: PVLOGP2
-- Parameters: P_consumption_type : cmm_vlogp_consumptiontype, P_valuation_date0 : cmm_eval_keydate, P_valuation_date1 : cmm_eval_keydate, P_FX_valuation_date : cmm_eval_keydate, P_snapshot_date0 : cmm_dend_cutdate, P_snapshot_date1 : cmm_dend_cutdate, P_MinEndOfDayFromDateTime : cmm_min_eod_from_datetime
CREATE VIEW P_Versionedlogisticdocument_2 AS
SELECT
PricingKey,
Version,
PricingDocumentItem,
ConditionType,
SubConditionType,
MTMDataSourceType,
ValidityStartDate,
ValidityStartTime AS ValidityStartDateTime,
ValidityEndDate,
ValidityEndTime AS ValidityEndDateTime,
SourceTransactionEventDateTime,
SourceTransacEventEndDateTime,
EndOfDayBusinessEntityKey,
MarketNormBusinessEntityKey,
DeliveryPeriodStartDate,
DeliveryPeriodEndDate,
SpreadBusinessEntityKey,
MaximumVersion,
PreviousVersion,
PrevVersionSubConditionType AS PreviousSubConditionType,
:P_valuation_date0 AS ValuationDate0,
:P_valuation_date1 AS ValuationDate1,
:P_FX_valuation_date AS FxValuationDate,
:P_snapshot_date0 AS SnapshotDate0,
:P_snapshot_date1 AS SnapshotDate1,
SalesOrganization,
DistributionChannel,
Division,
Creditor,
SoldToParty,
Material,
PhysicalCommodity,
Plant,
StorageLocation,
Batch,
IncotermsClassification,
IncotermsTransferLocation,
ConditionApplication,
SourceDocumentShortNumber,
SourceDocument,
SourceDocumentBusObjType,
OrignRefDocumentShortNumber,
OriginReferenceDocument,
OriginReferenceDocumentItem,
OriginReferenceDocBusObjType,
ReferenceDocument,
ReferenceDocumentItem,
ReferenceDocBusObjType,
DeliveryDate,
ExpectedPaymentDate,
StatisticsCurrency,
DocumentCurrency,
ProfitCenter,
BusinessArea,
PurchasingOrganization,
MaterialGroup,
IsIntercompanyTransfer,
CmmdtyRootDocExternalNumber,
CmmdtyDocumentExternalNumber,
ConditionRateAmount AS ConditionRate,
ConditionCurrency,
ConditionQuantity,
ConditionQuantityUnit,
ConditionTermRate AS OldConditionTermrate,
ConditionTermRateCurrency,
ConditionTermRateQuantity,
ConditionTermRateQuantityUnit,
ConditionTermValue,
ConditionTermValue AS OldConditionTermValue,
ConditionTermValueCurrency,
ConditionTermRateMktCurrency,
ConditionTermName,
ConditionTermStatus,
RoundingDecimalPlaces,
ConditionTermRateIsRounded,
ConditionTermRateNmrtr,
ConditionTermRateDnmntr,
ConditionTermExtensionUsage,
MaturitySelectionType,
MaturitySelectionRoutine,
DCSPeriodType,
QuotationPeriodReferenceDate,
CmmdtyLtstEvaluationKeyDate,
QuotationDateList,
FutureRefQuotationDateList,
QuotationPeriodEndDate,
MIC etc. DerivativeContrSpecification AS DerivativeContrSpecification,
MarketIdentifierCode,
FutureRefMarketIdentifierCode,
MaturityKeyDate,
DerivativeContractMaturityCode AS CommodityContractMaturityCode,
BasisID,
BasisType,
QuotationGroup,
QuotationGroupCalculationRule,
PriceIsRealized,
ConditionTermRateFixation,
PricingStatus,
CndnTermRateFixationDate,
CndnTermRateFixationTime,
CndnTermExchRateFixationDate,
CndnTermExchRateFixationTime,
FixedExchRateDate,
ExchRateMaturityDate,
CommodityUnit,
QuantitySign,
MTMConditionGroupCategory,
MTMConditionGroup,
MTMCalculationGroup,
MTMAdjustmentType,
MTMCalcGrpMarketPriceCondition,
ConditionTermRateIsFixed,
ConditionTermExchRateIsFixed,
CommodityQuantityInTermUnit,
FinancialInstrTransactionType,
BusinessPartner,
SecurityClass,
NumberOfCommodityContracts,
TreasuryPositionAccount,
TreasuryContractType,
TreasuryPositionLongShortCode,
PrevVersionCommodityQuantity,
PreviousVersionQuantitySign,
PrevVersCndnTermRateCurrency,
PrevVersionConditionTermValue,
ImplicitFixationIsRelevant,
ConditionTermFactorNumerator,
ConditionTermFactorDenominator,
ComparImplicitFixationIsRlvt,
CmmdtyPriceExpsrQtyInMassUnit,
CmmdtyPriceExpsrVolumeUnit,
CmmdtyPriceExpsrQtyInVolUnit,
ContrPriceExposureIsExecuted,
CmmdtyForwardIndexTiming,
QuotationUnitOfMeasure,
FixedCalculationType,
ThresholdValueLow AS TermToDocFixedFactorFrom,
ThresholdValueHigh AS TermToDocFixedFactorTo,
MarketToTermExchangeRateType,
CndnToStstcExchangeRateType,
ConditionToDocExchangeRateType,
DocToStstcExchangeRateType,
ExchangeRateType,
QuotationCurrency,
SkipReportingIndicatorIsSet,
OldScore AS FixedFactorFrom,
NewScore AS FixedFactorTo,
PriceSettingMethod,
PriceSettingMethodStatus,
ValidToDateTime,
PricingProcedure,
PricingConditionTerm,
ExcludeBasedate
FROM I_VersionedLogcDocument
;
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