2008 Mar 18 1:10 AM
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.
2008 Mar 18 7:10 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |