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_JITOutboundDeliveryBasic.
-- 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.
CREATE VIEW P_JITOutboundDeliveryBasic AS
SELECT
InternalJITCallNumber,
CompGrpNumber,
JITHeaderUUID,
JITCallCompGrpUUID,
Material,
SalesOrder,
QuantityUnit,
RequestedQuantity,
ActualDeliveredQuantity,
RequestedQuantity - ActualDeliveredQuantity AS ScheduleLinePndgQtyInStkUnit,
_ProductCompMatl.WeightUnit AS MaterialWeightUnit,
_ProductCompMatl.VolumeUnit AS MaterialVolumeUoM,
cast(_ProductCompMatl.GrossWeight*(RequestedQuantity - ActualDeliveredQuantity) as abap.quan( 13, 3 )) AS MaterialGrossWeight,
cast(_ProductCompMatl.MaterialVolume*(RequestedQuantity - ActualDeliveredQuantity) as abap.quan( 13, 3)) AS MaterialVolume,
_JITCallCompGroupBasic.SupplyControlUUID AS SupplyControlUUID,
_JITCallCompGroupBasic.Plant AS Plant,
_JITCallCompGroupBasic.RequirementDateTime AS RequirementDateTime,
_JITCallCompGroupBasic.JITCompGrpDocConfToProdnSts AS JITCompGrpDocConfToProdnSts,
_JITCallCompGroupBasic.ShippingPoint AS ShippingPoint,
_JITCallCompGroupBasic.RequestedDeliveryDate AS RequestedDeliveryDate,
_JITCallCompGroupBasic.DeliveryCreationDate AS DeliveryCreationDate,
_JITCallCompGroupBasic.DeliveryCreationTime AS DeliveryCreationTime,
_JITCallCompGroupBasic.PlannedShippingDateTime AS PlannedShippingDateTime,
_JITCallCompGroupBasic.CustSupplyArea AS CustSupplyArea,
_JITCallCompGroupBasic.JITIntProcessingStatus AS JITIntProcessingStatus,
_JITCallCompGroupBasic.SupplyControlID AS SupplyControlID,
_JITCallCompGroupBasic.StorageLocation AS StorageLocation,
_JITCallCompGroupBasic.CompGrpMatl AS CompGrpMatl,
_JITCallCompGroupBasic.CustAssemblyLoc AS CustAssemblyLoc,
_JITCallCompGroupBasic.ExtCompGrpNumber AS ExtCompGrpNumber,
_JITCallCompGroupBasic.DeliveryStatus AS DeliveryStatus,
_JITCallCompGroupBasic._JITCallHeaderBasic.ExternalJITCallNumber AS ExternalJITCallNumber,
_JITCallCompGroupBasic._JITCallHeaderBasic.ShipToParty AS ShipToParty,
_JITCallCompGroupBasic._JITCallHeaderBasic.CustomerUUID AS CustomerUUID,
_JITCallCompGroupBasic._JITCallHeaderBasic.SoldToParty AS SoldToParty,
_JITCallCompGroupBasic._JITCallHeaderBasic.SalesOrganization AS SalesOrganization,
_JITCallCompGroupBasic._JITCallHeaderBasic.DistributionChannel AS DistributionChannel,
_JITCallCompGroupBasic._JITCallHeaderBasic.Division AS Division,
_JITCallCompGroupBasic._JITCallHeaderBasic.JITLifecycleStatus AS JITLifecycleStatus,
_JITCallCompGroupBasic._JITCallHeaderBasic.JITCallType AS JITCallType,
_JITCallCompGroupBasic._JITCallHeaderBasic._CustomerToBusinessPartner._BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
_JITCallCompGroupBasic._JITCallHeaderBasic._CustomerToBusinessPartner._BusinessPartner.OrganizationBPName1 AS OrganizationBPName1,
concat( _JITCallCompGroupBasic._JITCallHeaderBasic.SalesOrganization,concat('/', concat( _JITCallCompGroupBasic._JITCallHeaderBasic.DistributionChannel, concat('/', _JITCallCompGroupBasic._JITCallHeaderBasic.Division)))) AS SalesArea,
_JITCallCompGroupBasic._JITInternalStatus._Text[1: Language=$session.system_language].JITInternalStatusText AS JITInternalStatusText,
_JITCallCompGroupBasic._ProductCompGrp._Text[1:Language = $session.system_language ].ProductName AS ProductName,
_JITCallCompGroupBasic._ShippingPoint._Text[1: Language=$session.system_language].ShippingPointName AS ShippingPointName,
_JITCallCompGroupBasic._JITCallHeaderBasic.CreationDateTime AS CreationDateTime,
_JITCallCompGroupBasic._JITCallHeaderBasic.CreatedByUser AS CreatedByUser,
_JITCallCompGroupBasic._JITCallHeaderBasic.LastChangeDateTime AS LastChangeDateTime,
_JITCallCompGroupBasic._JITCallHeaderBasic.LastChangedByUser AS LastChangedByUser,
_JITCallCompGroupBasic._JITCallHeaderBasic._CustomerToBusinessPartner AS _CustomerToBusinessPartner,
_JITCallCompGroupBasic._JITCallHeaderBasic._JITCustomer AS _JITCustomer,
_JITCallCompGroupBasic._JITCallHeaderBasic._Customer AS _Customer,
_JITCallCompGroupBasic._JITCallHeaderBasic._CreatedByUser AS _CreatedByUser,
_JITCallCompGroupBasic._JITCallHeaderBasic._LastChangedByUser AS _LastChangedByUser,
_JITCallCompGroupBasic._JITSupplyControlHeader.PartialDeliveryIsAllowed AS PartialDeliveryIsAllowed,
_JITCallCompGroupBasic.JITCallCompGrpCancellationSts AS JITCallCompGrpCancellationSts
FROM I_JITCallCompMaterialBasic
LEFT OUTER JOIN I_SalesDocumentBasic AS _SalesDocumentBasic ON SalesOrder = _SalesDocumentBasic.SalesDocument -- association [1..1]
LEFT OUTER JOIN I_JITSupplyControlHeader AS _JITSupplyControlHeader ON supplycontroluuid = _JITSupplyControlHeader.SupplyControlUUID -- association [1..1]
LEFT OUTER JOIN I_JITAvailableUnrstrcdStock AS _JITAvailableUnrstrcdStock ON Material = _JITAvailableUnrstrcdStock.Material AND plant = _JITAvailableUnrstrcdStock.Plant AND QuantityUnit = _JITAvailableUnrstrcdStock.MaterialBaseUnit -- association [0..1]
;