Hi,
I don't think you need to put the SAP client number in single quotes, unless the database stores it like that. Try the removing it and see if it works.
What you have in the getData command is "'"+ g_active_client + "'", instead try + g_active_client +.
And if the variable g_active_client stores integer values then convert it to string and try the same.
Regards,
Swapnil Koti