not able to set environemnet variables in app but in web am able to do it
You are unlikely to get any responses here without more info like screenshots of what you currently have.
Do you have the environment selected within the request that you trying to set the variable?