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: 

Need PBO to call

Former Member
0 Kudos
1,701

Hi,

In my screen, i have a field in which custom search help is provided.

when the user selects something from search, i want the pbo code to execute.

Please reply.

Thanks in advance.

Regards,

6 REPLIES 6

Former Member
0 Kudos
550

Hi

A new enter should trigger the PAI and so the PBO will be triggered automatically

Max

Former Member
0 Kudos
550

Hi Nitin,

PBO and PAI would trigger automatically or write your code in the event POV.

With Regards,

Riju Thomas.

Arun_Prabhu_K
Active Contributor
550

Hello Nitin.

     You can make use of FM SAPGUI_SET_FUNCTIONCODE in POV module to trigger PAI and then PBO.

     CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'

       EXPORTING

         functioncode           = 'ENTER'

       EXCEPTIONS

         function_not_supported = 1

         OTHERS                 = 2.

Regards.

nabheetscn
Active Contributor
0 Kudos
550

Why do you want PBO to get executed..? You want to update fields?  That you can do in search help call only.

sivaganesh_krishnan
Contributor
0 Kudos
550

HI nitin,

Why do you want to execute the pbo , If you want to update some other fields based upon ur search help value try writing codes in Process on value request.

To update the values on other fields use FM DYNP_VALUES_UPDATE , search for this FM and you will get lots of answers on how to implement .

Regards,

Sivaganesh.

Former Member
0 Kudos
550

Hi

Please understand the flow

PBO stands for process before output. When u execute the program first the PBO is executed and you selection screen parameters are displyed. Once u give the input and click enter your PAI gets activated and then again goes back to PBO and displays your screen with the new values.

One more point if you want to make any modifications in your search help you can use search help exit. The moment you click f4 the search help exit function will get acitvated n do the necesary modificaiton

With regards

Suneesh