04-29-2015 8:11 AM
Hi,
I've problem with an if in a query.
In particular when the select field SS (special stock declared as selection criteria) hasn't values, the 2nd if doesn't work (if... SS is initial).
I've debbugged the query, the SS is empty but the program jump the 2nd if and goes directly to endif,
Where is the mistake?
Thanks and regards.
Antonio
04-29-2015 8:39 AM
04-29-2015 8:34 AM
need the work area o the values in the internal table with header?
04-29-2015 8:39 AM
04-29-2015 8:48 AM
Hi,
To make sure that it is the 'SS is initial' condition that is getting missed, split your if into two (for testing only).
IF ( DD NE ' ' ) AND ( MAG NE ' ' ) AND (TM NE ' ' ).
IF (SS[] IS INITIAL).
....
ENDIF.
ENDIF.
Thanks,
Leena
04-29-2015 11:04 AM
Hi,
I've solved with elseif instead if.
Now the elseif works properly also without [].
Thanks for the help.