Skip to Content
1
Jul 07, 2020 at 12:41 AM

Check a value existence in a global variable in SAP BODS

213 Views Last edit Jul 07, 2020 at 04:21 AM 2 rev

In script , i want to check value '1' in a global variable ($GV_VAR) and the value of $GV_VAR is 1,2,3

if ('1' in ($GV_VAR))

PRINT('PASS');

ELSE

PRINT('FAIL');

There is no syntax error but i am not getting 'pass' as result, where am i going wrong ? is there any alternate method ?