Is it possible to create a select with dynamic where in the abap language?
It's a good idea to follow the example below:
CONCATENATE sy-sysid '%' sy-mandt INTO DATA(logsys_aux). CONCATENATE ' logsys like ''%' logsys_aux '%''' INTO DATA(logsys). SELECT SINGLE logsys FROM tbdls INTO wa_mdfe_header-logsys WHERE (logsys).