Its featured as 'SQL changed' that depend on certain condition, resulted minimize line of code.
Please refer below link for better understanding
DATA: str_where TYPE TABLE OF EDPLINE. " declaring the data for holding the where statement.
CONCATENATE 'NAME LIKE ''' NAMELIKE '%''' INTO str_where.
to be continued..