Hi Neha,
You have condition at text level, so the text would be printed if the field is not initial.
But as per your requirement you have to place your condition at table lines, which would restrict the table lines to be printed. Please see below screen shot for reference.
In this table has three line type and line type work order would be printed only if Gv_aufnr is not initial.
Hope this resolves your problem...