09-07-2007 11:53 AM
Hi Experts,
I am doing enhancement in VA01,VA02,VA03.
Normally, sales order will get block based on delivery and billing block indicator in sales order header. Means in status tab, it shows 'over all block' as 'Not blocked' or 'Blocked'.
Similarly, I have added a new list box called 'price/tax block' with 4 values and is updating in VBAK. If no value selected then, in status tab, it should show the 'Over all block' as 'Blocked' and should block the sale order.
Any user exit available for changing the status tab information ? and How to block the total sale order ?
Please Help me urgenly on this.
Thanks
Parinitha
09-07-2007 12:01 PM
Use in the below any one of Exists
EXIT_SAPMV45A_001
EXIT_SAPMV45A_002
EXIT_SAPMV45A_003
EXIT_SAPMV45A_004
EXIT_SAPMV45A_005
Please give me reward points
Thanks
Murali Poli
09-07-2007 12:02 PM
HI,
You can write your code in the exit..<b>'save_document_prepare'</b> or <b>save_document</b> in the main program of the sales order. Here you can check for the field price/tax. If the condition you need is not satisfied, you can change the field, status field in the vbkd table... Please do check the structure of this table. You can get the overall status field here.
Once you set the status field, the order should be blocked.
Reward if helpful!!
Thanks,
Basav