2013 Nov 14 4:20 PM
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,
2013 Nov 14 4:25 PM
Hi
A new enter should trigger the PAI and so the PBO will be triggered automatically
Max
2013 Nov 15 4:19 AM
Hi Nitin,
PBO and PAI would trigger automatically or write your code in the event POV.
With Regards,
Riju Thomas.
2013 Nov 15 4:41 AM
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.
2013 Nov 15 4:59 AM
Why do you want PBO to get executed..? You want to update fields? That you can do in search help call only.
2013 Nov 15 5:27 AM
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.
2013 Nov 15 8:33 AM
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