Another option is to use a different character to denote the variable and replace the character with the dollar sign. For example:
SET fSel_1=(COEP.GJAHR='@(vYr_1)' AND COEP.VERSN='@(vVersion_1)' AND COEP.WRTTP='01');
LET fSel_1=replace(fSel_1, '@', '$');
I find that this is more readable especially you have many variables were you don't want the dollar-sign expansion to occur.
Hi, bothe helped me.
In the end I have something like
// , replaces Komma
// " replaces '
// [ replaces (
// ] replaces )
The resulting code is:
set fMonSel_1=[$[fSel_1] AND COEP.PERIO="$[SelPERIO]"];
Its not fine but the only way i found in a deep hierarchy of formula