Hello Augusto,
yesterday I tried the FMS with only ONE row. It works. (Easy Testing)
I placed the FMS in Field Discount, I don't know the exactly Format of that SAP-Field
After I checked with 2 or more Rows, the FMS only results for 1st Row.
I think, that FMS will work on ROW-Level, but I need the SUM of each Rowlevel
SUM(Quantity * Price) or SUM(LineTotal)
I Found out, that I have to use Field "Price after discount", $[S38.17.number], or direct $[$38.21.number] for LINE-Total.
Here is a screenshot what happen:
This Query I set up in Row-Field "Packing-Costs:
and in SAP-Field "Discount"
-----
SELECT CASE
WHEN SUM($[$38.21.Number])*0.007 < '3.5' THEN '3.50'
ELSE SUM($[$38.21.Number])*0.007 END
----
The FMS in Discount, only took first Row.
I tried This Query with Filtering ItemGroups, the result is:
----
SELECT CASE
WHEN SUM($[$38.21.Number])*0.007 < '3.5' THEN '3.50'
ELSE SUM($[$38.21.Number])*0.007 END
FROM INV1 Inner Join OITM on INV1.ItemCode = OITM.ItemCode where OITM.ItmsGrpCod not in ('112','129')
---
I Think, that it is a problem, to calculate a Sum of differen Row-Values, because the system seem to calculate all Document-Rows together. The Query doesn't show the DocEntry.
Thank you so much for your Ideas, but I have spend more Hours with that,
should I tell my collegue, that not possible ?
Greetings