I am facing an issue in finding whether my program is executed with variant or not.
My main objective is that if my program is running in background mode without using an Variant it should
giver error message.
Eg-1. If thorugh SE38 i selected Run In Background mode without selecting any variant it should give error message.
2.If through SM36 i schedule a job without selecting any Variant again it should give error message.
3, if variant is selected in both the above methods then program will get executed.
4.if run in foreground mode then program should get executed without checking for variant.