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

ALV button Problem

Former Member
0 Likes
509

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
Read only

Former Member
0 Likes
477

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
Read only

Former Member
0 Likes
478

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

Read only

0 Likes
477

Thanks.

its working.

Points rewarded.

Read only

Former Member
0 Likes
477

put if condition at pf-status...

if not it_errorlog[] is initial.

set pf-status 'STAT'.

else.

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

endif.