Dear all,
Just I want to know the difference between these two FMS
1.
SELECT T0.ItemCode, T0.Dscription, T0.Quantity, T0.LineTotal FROM INV1 T0 INNER
JOIN OINV T1 ON T0.DocEntry = T1.DocEntry WHERE
T1.DocDate>=dateadd(month,-3,convert (varchar(10),getdaTe(),112)) AND
T1.CardCode =$[$-4.0.0]
If I run and assign above FMS in header level UDF, if choose magnifying glass, its shows all the items belongs to customer.
2. In above query, just I want to add particular item code and customer code into above FMS.
SELECT T0.ItemCode, T0.Dscription, T0.Quantity, T0.LineTotal FROM INV1 T0 INNER JOIN OINV T1 ON T0.DocEntry = T1.DocEntry WHERE T1.CardCode =$[ORDR.cardcode] and T0.ItemCode= $[RDR1.itemcode] and T1.DocDate>=dateadd(month,-3,convert (varchar(10),getdaTe(),112))
If I run and assign above FMS in header level UDF, if choose magnifying glass,it is not working as like query 1. Got following error message
Internal error (-1004) message.
Note: if I run query 2, under sales order page, the FMS giving correct result.
Anybody can explain the reason?
Thank & Regards,
Nagarajan