Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

Time FS query not working

$
0
0

Hi All,

 

I have a calculation on a sales order screen  where pickup time (UDF) of the goods is calculated based on Delivery time (UDF) - lead time (UDF under address).

 

Pickup time = delivery time - lead time

 

When a user enters the delivery time in hours (10:00) then the system should calculate the pickup time say (08:30)  based lead time (01:30).

 

Both of the UDFs are defined as datetime --Hour

 

problem is when you enter a figure on the hour (10:00) for delivery time and lead time in 15 min (2:15) then the FS gives an error (internal error 3006), however if you enter delivery time in 10:30 or anything in 15 min increments then the correct value is calculated in FS

 

In short

 

10:00 - 2:15  -- error

10:00-01:00  -- works

10:30 - 02:15 -- works

10:00 -01:00 - works


query

SELECT $[ORDR.U_DeliveryTime] -

(SELECT T0.[U_LeadTime] FROM CRD1 T0

WHERE

T0.[CardCode] =$[$4.0.0] and  T0.[Address] = $[$40.0.0] and T0.[AdresType] = 'S' )

 

I also notice that SAP stores time in smallint and maybe there is no easy way to do this.  I'm sure others wanted time calculations and would like to know how to resolve time calculation issues

 

thanks


Viewing all articles
Browse latest Browse all 3441

Trending Articles



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