Skip to Content
0
Former Member
Oct 13, 2008 at 12:34 PM

User Exit for VA02

450 Views

Hi,

I have written code in user exit EXIT_SAPMV45A_003 for TCode VA02 (Sales Order Change). The code is as given below:

LOOP at XVBAP.

If XVBAP-kwmeng = 100.

XVBAP-kwmeng = 99.

Modify XVBAP.

Endif.

If XVBAP-ARKTX = 'Pumpe Stahlguss Etanorm 170-230'.

XVBAP-ARKTX = 'Changed'.

Modify XVBAP.

Endif.

Endloop.

In debug mode I can see the changed values for Order Quantity (KWMENG) and description (ARKTX). However after the entire code is executed and when I enter the sales order, first I get a pop up "Express Document Update Was Terminated received from author XXXXX". And then when I hit enter, the values are not changed

The project in CMOD and the enhancement in SMOD are activated.

Any help would be appreciated.

Thanks in advance,

Mick