Unfortunately you have to specify variable names explicitly only: SP1, SP2 SP3, etc. RoboTask doesn't support dynamic names at assignment now. We plan to implement this in future releases.
Now it possible only in BASIC script action. See method RoboTaskApp.SetUserVariable(By Val Name as String, By Val Value as String)
You can set variable name and value dynamically.