‎2007 Oct 11 10:48 AM
Dear all,
I'm looking for a way to check the string that have a prefix 'abc'. How can i do this kind of checking in ABAP?? Please advise.
Regards,
Kit
‎2007 Oct 11 10:51 AM
if it is in IF condition checking (or any other condition checking)
If itab-str cp 'ABC*'.
endif.
but if it is in select query where clause
then
select * from dbtab into corresponding fields of table itab where str like 'ABC%'.
regards
shiba dutta
‎2007 Oct 11 10:49 AM
‎2007 Oct 11 10:50 AM
say ur variable name is str
then u can check str+0(3) = 'abc'
‎2007 Oct 11 10:50 AM
Hi,
Take the first three letters of the string and compare the same with abc using string operation CO . this will solve your problem
Regards
Shiva
‎2007 Oct 11 10:51 AM
if it is in IF condition checking (or any other condition checking)
If itab-str cp 'ABC*'.
endif.
but if it is in select query where clause
then
select * from dbtab into corresponding fields of table itab where str like 'ABC%'.
regards
shiba dutta