Hello Afzal,
We have to trigger the script from FM not from report. I was just saying if I call script in report the value for variable is passed to script and printing the value, but while calling the same from FM, the value is not passed to script.
Thanks.