10-11-2007 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
10-11-2007 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
10-11-2007 10:49 AM
10-11-2007 10:50 AM
10-11-2007 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
10-11-2007 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