TO get the cancelled invoice the query will be like below:
if FKSTO EQ 'X'
and VBTYP EQ 'N' OR FKART EQ 'S1'.
AND SFAKN is for getting cancelled invoice number.
if FKSTO EQ 'X'
and VBTYP EQ 'N' OR FKART EQ 'S1'.
AND SFAKN is for getting cancelled invoice number.