Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
thomaslg_wq
Creator III
Creator III

SAP SQL Connector : Where is not null

Hi everyone,

I am working with SAP SQL Connector for QV.

I would like to load BSEG table where LIFNR field value is not null.

It seems that the following statements do not work in the SQL SELECT (which then makes the load longer because I have to add the clause in the QV Load)

"where LIFNR IS NOT NULL"

"where len(trim(LIFNR))>0"

How do you deal with that kind of need ?

Thank you for your help,

BR,

Thomas

1 Solution

Accepted Solutions
Anonymous
Not applicable

What about

SQL

SELECT *

FROM BSEG

WHERE LIFNR NE ''

NE in ABAP stands for 'Not Equal'

Try to use 2 single quotes:  ''  to refer to null.

Not sure whether this can improve extract performance from BSEG as I suspect LIFNR is not a key field.

Try to check with the SAP team whether they have an index using field LIFNR for this table, this may help.

Cheers

Yaniv

View solution in original post

1 Reply
Anonymous
Not applicable

What about

SQL

SELECT *

FROM BSEG

WHERE LIFNR NE ''

NE in ABAP stands for 'Not Equal'

Try to use 2 single quotes:  ''  to refer to null.

Not sure whether this can improve extract performance from BSEG as I suspect LIFNR is not a key field.

Try to check with the SAP team whether they have an index using field LIFNR for this table, this may help.

Cheers

Yaniv