‎2007 Apr 11 10:10 AM
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.
‎2007 Apr 11 10:14 AM
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.
‎2007 Apr 11 10:13 AM
‎2007 Apr 11 10:14 AM
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
‎2007 Apr 11 10:14 AM
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.
‎2007 Apr 11 10:52 AM
‎2007 Apr 11 10:17 AM
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.