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

Exit For VA01

Former Member
0 Likes
343

Hi Friends,

I am currently working on exit for va01 and i got the include name ie MV45AFZZ where the exit is written.

but my main requirement is i want to capture if user changes the ship to address of a perticular sales order i want to block the SO and also if user changes the price of any material i want to capture the change in price of that material and block the sales order.

Its urgent can one help me.

Regards,

DVNS.

Hi Friends,

I am currently working on exit for va01 and i got the include name ie MV45AFZZ where the exit is written.

but my main requirement is i want to capture if user changes the ship to address of a perticular sales order i want to block the SO and also if user changes the price of any material i want to capture the change in price of that material and block the sales order.

Its urgent can one help me.

Regards,

DVNS.

1 REPLY 1
Read only

Former Member
0 Likes
325

Hi,

In MV45AFZZ

we can write code and check VBAK table for the field

in ( form userexit_save_document. or FORM USEREXIT_MOVE_FIELD_TO_VBAK)

The logic depends ..eg: you can do a select on the VBAK field by passing the sales number and fetch the KUNNR(ship to) field and compare if the user has changed it.

or you can check if any code can be read when the field is changed...

If so throw an eror message .....

for pricing you can use the exit for reading header/item

form userexit_pricing_prepare_tkomp.

form userexit_pricing_prepare_tkomk.

Blocking usually can be done by throwing an error message...main task will be to identify the correct location in MV45AFZZ and see it it triggers when and where we need

Pls check and reward if it helps

Regards

Byju