Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

script error

Hello Guys,


Directory;
trace 'Finding maximum and minimum modify and create times.';
maxtimes:
LOAD
date(max(CPUDT)) as MAXCPUDT,
date(max(AEDAT)) as MAXAEDAT
FROM
List.qvd
(qvd);

/*
The code below loads the delta data from Database
*/
Directory;
trace 'Loading the delta data...';
List:
LOAD Mid(MBLNR, FindOneOf(MBLNR, '123456789AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTyUuVvWwXxYyZz')) as [Material doc],
MJAHR as [Mat doc year],
date(CPUDT) as CPUDT,
date(AEDAT) as AEDAT,
date(BUDAT) as BUDAT,
date(BLDAT) as BLDAT
;
SQL select MBLNR MJAHR CPUDT AEDAT BUDAT BLDAT from MKPF
WHERE MJAHR >= 2010 and
CPUDT > fieldvalue('MAXCPUDT',1) //gets the incremental data
or AEDAT > fieldvalue('MAXAEDAT',1) //gets the updated data
;


I dont know where I am doing wrong but here


WHERE MJAHR >= 2010 and
CPUDT > fieldvalue('MAXCPUDT',1) //gets the incremental data
or AEDAT > fieldvalue('MAXAEDAT',1) //gets the updated data
;


I am getting the following error. Can anyone know how to change so that no error comes?error loading image

Thanks in advance

sravan

3 Replies
Not applicable
Author

Hello,
I'm not sure but can you try this

SQL select MBLNR ,MJAHR ,CPUDT, AEDAT, BUDAT, BLDAT from MKPF
WHERE MJAHR >= 2010 and
CPUDT > fieldvalue('MAXCPUDT',1) //gets the incremental data
or AEDAT > fieldvalue('MAXAEDAT',1) //gets the updated data
;


hope it can helps
Not applicable
Author

Hi Yamaz,


This I already tried. It is not working. Thanks anyway..May be somebody has other idea..

Regards

sravan

Not applicable
Author

Guys Any Idea? Stuck with this and could not go further!

Thanks in Advance

Sravan