03-02-2015 4:25 AM
Hi all,
I am using CL_GUI_ALV_GRID to display and modify some data where user modifies 4 fields. Modified data gets validated on change event as well as enter event. I display message, if any, in PBO. What I face is, all messages gets displayed perfectly on the status bar if on change event is triggered. But the same does not happen if on enter event is triggered. Also, if the message type is 'E', program terminates unexpectedly, no error, now messages, it simply comes out of the transaction. I checked many posts but did not get feasible solution. Please help.
Thanks,
Ahamed Yashif.
03-02-2015 7:31 AM
hi ahmed,
there could be some problem with the toolbar button events and they are not handled properly.
03-03-2015 3:14 AM
Hi Raheem,
Toolbar events are not used in this alv. Any other chances?
Thanks for the reply.
03-02-2015 8:52 AM
Dear Ahamed,
Pls note that PBO will be triggered not only before screen display alone. It will get triggered each and every time any action is triggered in that particularly screen.
So if you use ALV display there, then you use flag and control it to execute only once. Write only CL_GUI_ALV_GRID coding in PBO.
Write all other coding in PAI (Mdoifying query and Exception Handling should be written in PAI).
Hope this will Help You...
03-03-2015 3:15 AM
Dear Vijay,
I've taken care of those already. The only problem I face is on ENTER event. It works for all other scenario.
Thanks.
03-03-2015 5:10 AM
Hi Ahamed,
You should not write error messages in PBO, it will appear as a popup error message and terminates the program.
To trigger data_change event on enter..
create object alv_grid
exporting
i_parent = cust_ctrl
i_appl_events = 'X'.
Regards
Sreekanth