‎2007 Mar 29 2:51 PM
Hi,
In object oriented languages like Java you can send the reference to an object to a method, something like: object1.callFunction(me)
where "me" is the reference to the object calling the function. So the "object1" can call methods inside "me".
I want to do the same in a screen. I want to do the following. In the PBO module when the screen initializes I want to do:
PROCESS BEFORE OUTPUT.
MODULE init_screen_0100.
CALL FUNCTION some_function
EXPORTING me
where me is the reference to the screen.
Is this possible, and if yes, how to do this?
After this I am going to from another object trigger events in this screen, thats why I want the reference to it.
regards
Baran
‎2007 Mar 29 2:54 PM
Hi Baran,
Firstly, a screen is not an object.
If your aim is to transfer all the global data that is being used in this scren, you should probably send all the data fields individually or put them as an internal table and send the data to the function module.
Regards,
Ravi
‎2007 Mar 29 3:02 PM
Hi Baran,
This thing is not possible with module pool program.......
In case you want to do something like this do it with call screen or leave to screen so that you are you can go to next screen...
Thanks and Regards,
Kunjal Patel