Quantcast
Viewing all articles
Browse latest Browse all 681

Formatted search for date subtraction in SAP B1

Hi

 

I am trying to set a formatted search in a form to an user defined field of row level table.

In that i want a value of subtracting a date of title level from the date of row level. for that i have made a query as

 

SELECT DATEDIFF(day,convert(varchar,T0.[U_DocDate],112),convert(varchar,$[CBTESTR.U_TestDate],112)) FROM [dbo].[@CBTEST] T0 WHERE T0.[DocEntry]=$[@CBTESTR.DocEntry]

 

In this @CBTEST is my title Table & @CBTESTR is my row table.

 

Whenever I execute this query as a formatted search,it pops up an error message

Internal error (-1003) occurred  [Message 131-183]

 

need a solution on this. Pl help.

 

Regards,

 

Saya


Viewing all articles
Browse latest Browse all 681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>