‎2008 Feb 06 3:56 PM
HI guys !
On VA02 main screen in some specific situations I have to disable some buttons (ie. "Delete Item", "Create Item"). Is it possible without modifying standard? And how to do it ?
Regards
Greg
‎2008 Feb 06 4:07 PM
Check this, may be this will help you
http://www.saptechnical.com/Tutorials/ABAP/TransactionVariant/Create.htm
(I am not 100% sure about whether this will able to disable/enable buttons, but regarding fields it is working)
a®
‎2008 Feb 06 6:23 PM
Thx for quick answer, but it is not working on buttons. Is quite good solution for fields. I try to use GuiXT also (I can remove "delete" button from screen), but if user mark off "Activate GuiXT" in Customize Local Layout from Menu he still could delete item.
greg
‎2008 Feb 06 6:27 PM
Whether can you able find any userexit in PBO of the screen to control the buttons?
or in PAI , if user clicks the button you can give an message
if you could not control (disable/enable ) buttons
a®s
Edited by: a®s on Feb 6, 2008 1:33 PM
‎2008 Feb 06 7:13 PM
@ a®s
Thx for your answer... I looked at user exits and found in MV45AFZB user-exit USEREXIT_CHECK_XVBAP_FOR_DELET where I can disable deletion and write a message to user. It works very fine.
greg