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

Diable button ALV

Former Member
0 Likes
653

I want to disable a button(TRAN) after I press TRAN total alv grid is displayed with refreshed data. i dont want user to press TRAN again, it should b disabled.

Should i write set pf-status 'ZINV' EXCLUDING ' TRAN '. in pai ?

below is my code .Please chk & help me.

MODULE pai INPUT.

save_ok = ok_code.

CLEAR ok_code.

CASE save_ok.

WHEN 'TRAN'.

PERFORM transfer.

<b>set pf-status 'ZINV' EXCLUDING ' TRAN '.</b>

WHEN OTHERS.

  • do nothing

ENDCASE.

CLEAR save_ok.

ENDMODULE.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
623

Hi,

this will be an error coz.. the flow logic is PBO-PAI-PBO...so what you have done will be overwritten

so write the same logic but in your

PBO.

Case sy-ucomm.

When ' '.

Set pf-status 'ZINV'.

When 'TRAN'.

set pf-status 'ZINV' EXCLUDING ' TRAN '.

Endcase.

5 REPLIES 5
Read only

Former Member
0 Likes
623

thats ok ? but in PBO

Regards

Prabhu

Read only

Former Member
0 Likes
623

hi swati

in the code where u have coded for button trans

use screen-input = 0

this will make it inactive

regards

navjot

reward if helpfull

Read only

Former Member
0 Likes
624

Hi,

this will be an error coz.. the flow logic is PBO-PAI-PBO...so what you have done will be overwritten

so write the same logic but in your

PBO.

Case sy-ucomm.

When ' '.

Set pf-status 'ZINV'.

When 'TRAN'.

set pf-status 'ZINV' EXCLUDING ' TRAN '.

Endcase.

Read only

0 Likes
623

Thanks Santhosh , it worked

Read only

Former Member
0 Likes
623

If u want to hide the push button altogether, then go to SE41 with the status 'ZINV' and follow the menu path Goto -> Attributes -> Pushbutton Assignment and select the radio button of ur choice.