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: 

ALV button Problem

Former Member
0 Kudos

Hi Everyone,

I have a situation in which i am showing a button on ALV grid. When we click on that button it will show error log. which is shown by REUSE_ALV_POPUP_TO_SELECT. in this function i am passing table errorlog. this button is created by setting PF-STATUS.

Now the question is if errorlog table is blank i want to hide that button.

please help me out. its urgent.

thanks in advance.

Azad.

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

In the place where yu set the pf-status, put this condition.

if not it_errorlog[] is initial.

set pf-status 'STAT'.

else.

set pf-status 'STAT' excluding 'BUT'. "BUT is the function code for that button

endif.

Regards,

Ravi

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

In the place where yu set the pf-status, put this condition.

if not it_errorlog[] is initial.

set pf-status 'STAT'.

else.

set pf-status 'STAT' excluding 'BUT'. "BUT is the function code for that button

endif.

Regards,

Ravi

0 Kudos

Thanks.

its working.

Points rewarded.

Former Member
0 Kudos

put if condition at pf-status...

if not it_errorlog[] is initial.

set pf-status 'STAT'.

else.

set pf-status 'STAT' excluding 'BUT'.

endif.