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: 

Module Pool | Call PAI Event in PBO during first call

Former Member
0 Kudos

Hi Experts,

We are looking for a method to trigger PAI event (button press in GUI STATUS) on the first display of PBO. This is required in a copy of Standard Program.

Thanks,

Chirantan

1 ACCEPTED SOLUTION

karun_prabhu
Active Contributor
0 Kudos

Chirantan,

     Make use of function SAPGUI_SET_FUNCTIONCODE in the PBO.

     CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'

       EXPORTING

         FUNCTIONCODE           = 'Function code of the button'

       EXCEPTIONS

         FUNCTION_NOT_SUPPORTED = 1

         OTHERS                                  = 2.

Regards.

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

Look at SUPPRESS DIALOG statement. (Or give much more information)

Regards,

Raymond

karun_prabhu
Active Contributor
0 Kudos

Chirantan,

     Make use of function SAPGUI_SET_FUNCTIONCODE in the PBO.

     CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'

       EXPORTING

         FUNCTIONCODE           = 'Function code of the button'

       EXCEPTIONS

         FUNCTION_NOT_SUPPORTED = 1

         OTHERS                                  = 2.

Regards.