‎2009 Feb 17 8:27 AM
Hi,
I deactivated 'UPDATE' Pushbutton in VA01 by using the routine LV69AFZZ. But i want to deactivate it only for certain Order Types. Please suggest how can i do that?
I kept the code like this. For which table i have to check for Order Type?
if sy-tcode = 'VA01'.
if screen-name = 'BT_KONY'.
screen-input = 0.
endif.
endif.
‎2009 Feb 17 8:53 AM
Dear Srinivas,
You can refer table VBAK to get the Sales Document Type.
Field is AUART(Sales Document Type).
Regards
Arindam
‎2009 Feb 17 9:10 AM
Thanks for the reply. When i kept the break-point in LV69AFZZ and debugging,when i check for VBAK and XVBAK tables it's showing invalid variable in the debugger. In which table the 'Order Type' gets populated in this routine.
‎2009 Feb 17 11:54 AM
Hello,
Try checking the value of VBAK-AUART.
It should contain the value of Sales Document Type.
Regards
Arindam
‎2009 Feb 17 8:53 AM
Hi Srinivas,
If u want to Disable the Update button.. Check the Tcode as u did..
then check the Order type (Sales Order type Field AUART) .. Keep in mind that don't try to Hard code the order types... in future this might be a problem if u hard code inthe program
My suggession is try to create a Z TABLE input the order types in the ZTABLE.. now u can validate the order types.. based on these type u can enable or diable the button...
I think this might help u...
‎2009 Mar 06 11:34 AM