Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
KundanJyothsna
Contributor II
Contributor II

Incremental Load

Hi Everyone,

I'm new to qliksense. I have a situation where i need to do Incremental Load  for current financial year ofnSAP MSEG Table based on 2 fields , i.e. CPUDT_MKPF(date field) & CPUTM_MKPF(time field). These 2 fields are last modified date and time fields .can anyone help me on this. A code snippet for this will be a great help in understanding.

 

Thanks in Advance.

Srinivas Kundan

Labels (3)
5 Replies
Anil_Babu_Samineni

Can't you club two fields into one date field?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
KundanJyothsna
Contributor II
Contributor II
Author

Hi Anil,

Instead of clubbing , i took last modification date and time values in two separate variables.

Then I applied these variables  to sap generated SQL statements where clause

Like Where CPUDT _KMPF >= $(vlastmoddate) and CPUDT _KMPF >= $(vlastmodtime) ; and Checked by debugging with 1000 records and I'm able to.see lastmodificate date and time values. But when I go with normal.load, I'm getting error after loading around 1000000  records and some times I'm unable to store the table in qvd.

 

Can you help me on this.

 

Thanks,

Jyothsna Kundan

Anil_Babu_Samineni

Can i see sample sketch model of yours how it is connected?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Ksrinivasan
Specialist
Specialist

hi,

you can change DDate to CPUDT_MKPF,

my dummy data,

Ksrinivasan_2-1611511380506.png

 

my script:

DAret:
LOAD
Product,
price,
DDate
FROM [lib://TEST/SSSS1.qvd]
(ooxml, embedded labels, table is [data format])
where "DDate">= ('02-12-2020') and "DDate"<= ('12-12-2020');

result:

Ksrinivasan_3-1611511425497.png

 

you can fix from above example.

 

ksrinivasan

Ksrinivasan
Specialist
Specialist

hi,

fiscal year means: 01-04-2020 to 31-03-2021,

you can use from date and to date want you want in where statement in above script

where "DDate">= ('02-12-2020') and "DDate"<= ('12-12-2020');

 

ksrinivasan