Application Development and Automation 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: 
Read only

In PAI module call a method and send reference to module.

Former Member
0 Likes
779

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

2 REPLIES 2
Read only

Former Member
0 Likes
469

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

Read only

Former Member
0 Likes
469

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