When SAP introduced Open SQL into ABAP back in 2014, I knew it would be a game-changer. I stumbled around using some of the features such as inline declarations and SQL expressions, but I recently came across a new use – the IS NULL comparison operator.
Here’s the use case – something all ABAPers who have ever written a report has come across. We need to grab all open documents of a type that’s status is stored in table JEST. It is easy enough to get data from both tables, but the issue is if a document status has never been set, it does not show up in table JEST.
For this example, I will use quality notifications. My goal is to grab a list of all open quality notifications. The status “NOCO – Notification completed” means the notification is closed. The status I0072 is the corresponding value for NOCO.
We can see that QN 200000343 is closed. Easy enough. |