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

Disabling 'UPDATE' Pushbutton in VA01 based on Order Types

Former Member
0 Likes
938

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.

5 REPLIES 5
Read only

Former Member
0 Likes
817

Dear Srinivas,

You can refer table VBAK to get the Sales Document Type.

Field is AUART(Sales Document Type).

Regards

Arindam

Read only

0 Likes
817

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.

Read only

0 Likes
817

Hello,

Try checking the value of VBAK-AUART.

It should contain the value of Sales Document Type.

Regards

Arindam

Read only

Former Member
0 Likes
817

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...

Read only

Former Member
0 Likes
817

answered