SQL select with dynamic Where in ABAP

Asked

Viewed 531 times

3

There is the possibility to create a select with dynamic Where in the abap language?

1 answer

1

There’s a way, but follow the example:

print

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).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.