08-12-2009 5:25 PM
Hi Folks,
How to get the records from the table starting with character 'D'.
Select Max (fld1) fron tab1 into tab1-fld1 where fld 2 = l_fld2 and starting character of fld(1) is 'D'.
last record in the table starting with character 'D'
How can i do that??
Pl explain.
Thanks,
Matt
08-12-2009 5:31 PM
Hi,
Select Max (fld1) fron tab1 into tab1-fld1 where fld 2 = l_fld2 and starting character of fld(1) is 'D'.
Select MAX (fld1)
From tab1
into table itab
where fld 2 = l_fld2
and fld1 like 'D%'.
08-12-2009 5:27 PM
This question asked several times in this forum
please make a search in this form
https://forums.sdn.sap.com/search.jspa?threadID=&q=selectANDlike&objID=f50&dateRange=all&numResults=15
a®
08-12-2009 5:31 PM
Hi,
Select Max (fld1) fron tab1 into tab1-fld1 where fld 2 = l_fld2 and starting character of fld(1) is 'D'.
Select MAX (fld1)
From tab1
into table itab
where fld 2 = l_fld2
and fld1 like 'D%'.
08-12-2009 5:31 PM
Hi Mat,
Select Max (fld1)
from tab1
into tab1-fld1
where fld 2 = l_fld2
and fld(1) LIKE 'D%'.
Thats the solution in BOLD.
Regards,
Vimal.
08-12-2009 5:39 PM
08-12-2009 5:40 PM
Hello
On your where stm write
SELECT....
where fid like 'D%'.
bye
Gabriel P.-