Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling subscreen with the help of Global Class Event

0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

nabheetscn
Active Contributor
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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