12. Februar 2024 18:45
SELECT "timestamp","No_","No_ 2","Description","Search Description","Description 2","Base Unit of Measure",
[...]
FROM "DATABASE".dbo."XYZ GmbH$Item" WITH(READUNCOMMITTED)
WHERE ("No_">@0 AND ("Vendor No_"=@1 AND "Blocked"=@2 AND ("Auslaufdatum"=@3 OR "Auslaufdatum">=@4) AND "Nicht lieferbar"=@2 AND "Kein Bestellvorschlag"=@2))
ORDER BY "No_" ASC OPTION(OPTIMIZE FOR UNKNOWN, FAST 50)
SELECT ISNULL("Item"."timestamp",@6) AS "timestamp",ISNULL("Item"."No_",@7) AS "No_",ISNULL("Item"."No_ 2",@7) AS "No_ 2",ISNULL("Item"."Description",@8) AS "Description",ISNULL("Item"."Search Description",@7) AS "Search Description",ISNULL("Item"."Description 2",@8) AS "Description 2",ISNULL("Item"."Base Unit of Measure",@7) AS "Base Unit of Measure",
[...]
FROM "DATABASE".dbo."XYZ GmbH$Item" AS "Item" WITH(READUNCOMMITTED) OUTER APPLY (SELECT TOP (1) ISNULL(SUM("Qty_ on Sales Order$Sales Line"."SUM$Outstanding Qty_ (Base)"),@12) AS "Qty_ on Sales Order$Sales Line$SUM$Outstanding Qty_ (Base)"
FROM "DATABASE".dbo."XYZ GmbH$Sales Line$VSIFT$2" AS "Qty_ on Sales Order$Sales Line" WITH(READUNCOMMITTED,NOEXPAND)
WHERE (ISNULL("Qty_ on Sales Order$Sales Line"."Document Type",@10)=@16 AND ISNULL("Qty_ on Sales Order$Sales Line"."Type",@10)=@17 AND "Qty_ on Sales Order$Sales Line"."No_"="Item"."No_" AND ISNULL("Qty_ on Sales Order$Sales Line"."Location Code",@7)=@18)) AS "SUB$Qty_ on Sales Order"
WHERE ("Item"."Vendor No_"=@0 AND "Item"."Blocked"=@1 AND ("Item"."Auslaufdatum"=@2 OR "Item"."Auslaufdatum">=@3) AND "Item"."Nicht lieferbar"=@4 AND "Item"."Kein Bestellvorschlag"=@5) AND (ISNULL("SUB$Qty_ on Sales Order"."Qty_ on Sales Order$Sales Line$SUM$Outstanding Qty_ (Base)",@12)>@19) AND (ISNULL("Item"."No_",@7)>@20)
ORDER BY "No_" ASC OPTION(OPTIMIZE FOR UNKNOWN, FAST 50)
13. Februar 2024 11:00
13. Februar 2024 13:12
13. Februar 2024 14:28
14. Februar 2024 13:08
RecordVar.SecurityFiltering := SecurityFilter::<Disallowed|Filtered|Ignored|Validated>