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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
olguita2014
Creator
Creator

SAP

Hi,

I have two tables on SAP, VBRK and VBRP. And I need to filter only one year, but the date only has this table: VBRK

Please help me

1 Reply
lcontezini
Partner - Creator
Partner - Creator

you can link (or join) the tables with the VBELN field, like:

VBRK:

LOAD

     VBELN AS DOCUMENT_NUMBER,

     GJAHR AS YEAR

FROM VBRK;

VBRP:

LOAD

     VBELN AS DOCUMENT_NUMBER,

     FKLMG AS QUANTITY

FROM VBRP;


When you select YEAR, it will select data from both tables. If you want to load only one year, I'd suggest you do the following:


VBRK:

LOAD

     VBELN AS DOCUMENT_NUMBER,

     GJAHR AS YEAR

FROM VBRK

WHERE GJAHR = '2018';

LEFT JOIN(VBRK)

LOAD

     VBELN AS DOCUMENT_NUMBER,

     FKLMG AS QUANTITY

FROM VBRP;


something like this.