Update reason for rejection filed at item level while saving in VA01
I need to update reason for rejection field (VBAP-ABGRU) while saving sales order in VA01 tcode.
For this i implemented user exit (USEREXIT_SAVE_DOCUMENT in include MV45AFZZ) .
This code is implemented in SAP EHP 7.
Code is below :
IF SY-TCODE EQ 'VA01'.
loop at xvbap into fs_vbap.
fs_vbap-abgru = 'Z1'.
MODIFY xvbap FROM fs_vbap TRANSPORTING ABGRU
It is updating in xvbap table but it is not updating in VBAP table.
The same code i implemented in sap EHP4 version it is working fine,
What is the problem in ehp7 and please help me in this.