12-12-2013 9:00 AM
Hello Everybody
Greetings
Currently I am working in a project in which I have created a global class and a driver program which is a module pool in which i have maintained my screens and calling this global class. There is a navigation tree in a screen and when user double click on any option of this navigation tree, in background my double click event get triggered which is maintained in my global class, so my query is how i can pass the subscreen value from my global class event to the driver program as every double click calls different subscreen. basically i want to know is there any way to export any value from global event to driver program.
Thanks and Regards
Virendra Singh Somwanshi
12-12-2013 10:19 AM
HI Veerendra,
you can maintain a static varibale for the global class. Fill this variable in each subscreen's PBO.
so what ever the screen is pblished on UI, the value is holded with class variable.
now in the event handler method you can read this variable.
IF your gloabl class is getting used in multiple times with this application simultaniously then opt for instance variable.
Please publish if you face any issues.
Thanks and Regards,
Bhaskar
12-12-2013 9:07 AM
You can create event parameters and fill the parameter when raising the event.
So where ever that event is acessed corresponding screen can be read
Nabheet
12-12-2013 10:25 AM
Hello Nabheet
Thanks for your quick response
I didnt got your point. how i can achieve it. In my case i have created a global class and in that there is a method in which i have passed the standard event CL_GUI_SIMPLE_TREE --->NODE_DOUBLE_CLICK (Please find the screen shot for that) and in that method i have written the logic like if user click on certain button then pass "xyz" subscreen. but how i can pass this subscreen value to the driver program.
12-12-2013 10:19 AM
HI Veerendra,
you can maintain a static varibale for the global class. Fill this variable in each subscreen's PBO.
so what ever the screen is pblished on UI, the value is holded with class variable.
now in the event handler method you can read this variable.
IF your gloabl class is getting used in multiple times with this application simultaniously then opt for instance variable.
Please publish if you face any issues.
Thanks and Regards,
Bhaskar