‎2010 Dec 01 9:34 AM
Hi,
I have the below code
*********
Select VBELN VKORG From LIKP into table IT_LIKP
where VKORG = VKORG
AND ERDAT = ERDAT
AND WADAT_IST NE ' '.
*******
I want to select all deliveries VBELN from LIKP as per criteria in where clause and as i mention WADAT_IST NE ' '. but still it is selecting data where WADAT_IST is blank I also try with using SPACE insted of ' ' not still it is selecting two records.
regards,
zafar
‎2010 Dec 01 9:42 AM
I can see WADAT is a date field. The initial value for date will be 00000000 and not space. Try using NOT INITIAL or NE 00000000.
‎2010 Dec 01 9:38 AM
‎2010 Dec 01 9:40 AM
It should work if it is not working then delete the data from internal table.
Nabheet
‎2010 Dec 01 9:42 AM
I can see WADAT is a date field. The initial value for date will be 00000000 and not space. Try using NOT INITIAL or NE 00000000.
‎2010 Dec 01 9:48 AM
hi
No matters let it come like that ,
delete those unwanted spaced rows , from the internal table as.
loop at IT_LIKP into IT_LIKP.
if it_likp-WADAT_IST = ' '.
delete it_likp.
endif.
endloop.
‎2010 Dec 01 11:06 AM
Try gs_date type sy-datum, then pass that gs_datum in select statement, as a date field we have given has 00000000 in it.