Macro SQL Set Row Values with Store Function
Good day!
On My Sales Order, I want the Minimum price (from Item Master Data) to reflect per row on an open sales order. 
I have written this,but its not working - casuing my SAP to just load. Do you maybe know what the issue is or what I can do to fix.
@store1=SQL
(Declare @ItemCode as nvarchar(12);
SET @ItemCode=$[$38.1.0]
SELECT Distinct T0.U_Min_Price
FROM OITM T0 INNER JOIN RDR1 T1 ON T0.[ItemCode] = T1.[ItemCode]);
Set($[$38.U_Min_Price.0]|@Store1);

0
-
Validation:
Set the Before Action to False
Set the ActionSuccess to True
UF:
@STORE1 = SQL(Select T0.U_Min_Price FROM OITM T0 Where T0.ItemCode = $[$38.1.0]);
Set($[$38.U_Min_Price.0]|@Store1);
-
Hi Geoff,
Thanks so much for your quick assistance! It is working now.
Please sign in to leave a comment.
Comments
2 comments