Hello Thomas,
another possibility here, may be to define an appropriate IMPORTING parameter to the method interface, so the value of the variable (or constant) can be passed at the AMDP method call. This gives you the possibility to pass another value (e.g. NO) at runtime, depending on your scenario.
For example:
CLASS-METHODS giftyes
IMPORTING
VALUE(iv_variable) TYPE xxx
EXPORTING
VALUE(et_table) TYPE xxx.
Implement and consume your first ABAP Managed Database Procedure on HANA
Kind regards,
Carine