Hi, The logic for OTD is given as below in Process cockpit
WHEN PU_COUNT ( "EKPO" , "_CEL_P2P_ACTIVITIES"."ACTIVITY_EN" , "_CEL_P2P_ACTIVITIES"."ACTIVITY_EN" = 'Record Goods Receipt' ) > 0
AND DAYS_BETWEEN ( PU_MAX ( "EKPO" , "EKET"."EINDT" ) ,
PU_MAX ( "EKPO" , "EKBE"."CPUDT" , "EKBE"."VGABE" = '1' AND "EKBE"."SHKZG" = 'S' ) ) <= 10
AND DAYS_BETWEEN ( PU_MAX ( "EKPO" , "EKET"."EINDT" ) ,
PU_MAX ( "EKPO" , "EKBE"."CPUDT" , "EKBE"."VGABE" = '1' AND "EKBE"."SHKZG" = 'S' ) ) >= ( -1.0 * 10 )
two questions I have
1. why do we need days_between and PU_MAX when we can use DATEDIFF(DD, <DATE>, <DATE> ) field? -- Is it because only then it will calculate for all the cases?
- I don't understand the last part of > = ( -1.0 * 10 ) - what does this mean?