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

CL_GUI_ALV_GRID before_user_command event

AlexGiguere
Contributor
0 Likes
1,083

Hi guys, I am using the CL_GUI_ALV_GRID class to display a report in SAP 4.7

When the user click on refresh, on the standard ALV toolbar, I need to delete some entries in my table. Also, I'm displaying the total number of lines in my GUI title.

I'm using the event before_user_command to catch the refresh click then I delete some entries in my internal table but after I need to refresh my GUI title. The event does not call back the PBO, I need to retrigger the PBO to redisplay the GUI title correctly.

Another way of doing it, is to remove the refresh button of the standard alv, add a refresh button to the gui status, then delete my entries in the user_command PAI then after the PBO will kick and the gui title will be redisplay correctly.

But I want to know if it's possible with the first solution to redisplay my gui title.

thanks

Alex

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
912

Hello Alexandre

The method of choice to trigger PAI is <b>CL_GUI_CFW=>SET_NEW_OK_CODE</b>.

Have a look at my sample report <b>ZUS_SDN_TWO_ALV_GRIDS_A </b>in thread

Regards

Uwe

6 REPLIES 6
Read only

uwe_schieferstein
Active Contributor
0 Likes
913

Hello Alexandre

The method of choice to trigger PAI is <b>CL_GUI_CFW=>SET_NEW_OK_CODE</b>.

Have a look at my sample report <b>ZUS_SDN_TWO_ALV_GRIDS_A </b>in thread

Regards

Uwe

Read only

0 Likes
912

Thanks Uwe, that's work wells, it trigger the PAI/PBO.

Alex

Read only

0 Likes
912

I'm trying to award you point, the checkbox are not there on the left-hand side, I have so musch problem when it's time to award points, sometimes it takes 15-30 minutes to see my post or new reply, have to contact SDN!

Read only

AlexGiguere
Contributor
0 Likes
912

Trying to award points!

Read only

0 Likes
912

Hello Alexandre

Never mind about this. You may have a look at thread

Perhaps there is more than a technical reason behind the (temporarily) disappearing of the award system.

Regards

Uwe

Read only

0 Likes
912

Thanks, I know, I sent an email to SDN and they told me "Our forums points system has been taken temporarily off line for debugging", but now it seems to be back, I give you 10, thanks again!

Alex