Fair thee well DESCRIBE TABLE. And good riddance.
For twelve long years
When I wanted to count
The lines of an itab
I did what everyone does:
DESCRIBE TABLE itab LINES linhas.
Until the other day
When (my eyes didn’t deceive me)
I saw something so new,
You wouldn’t believe me:
LINES( itab ).
It gives the same outcome And does away with declaring The damn variable.
So instead of:
DATA: linhas TYPE i.
DESCRIBE TABLE itabl LINES linhas.
IF linhas = 42.
WRITE 'A tua tabela é a verdade'.
ENDIF.Just do this:
