In order to use a dynamic promt table; the field that is going to have the dynamic promt must point to a field in the DERIVED record. The promt table can be dynamically assigned with the following code.
If(condition)
derivedrecordfield.value promttable1
else
derivedrecordfield.value promttable2
end-if;