‎2006 Feb 27 9:24 AM
Hi ,
In VA02 Iam mofiying the data of internal table XVBAP but when i press save it says 'No data was changed' and comes out without saving.
Any solution for this...
‎2006 Feb 27 12:37 PM
Hello Pawan,
This error msg is coming because VA02 checks for change in the standard field and if there is a change then it sets r185d-dataloss to X. The program queries this field at the begining of saftey routine and if found blank send out this msg.
‎2006 Feb 27 9:26 AM
‎2006 Feb 27 9:30 AM
I have added a field ZZ_BASE in VBAP. At header (Addiotinal data B) I have a button in which logic is written to update this field.
Logic is written to update intenal table XVBAP in transaction VA02. But after this logic update the field ZZ_BASE the I press save button . I get message 'No data was changed' and nothin is stored in databse.
‎2006 Feb 27 9:31 AM
Hi,
i hope you are doing in the include<b> MV45AFZZ</b>.
try to do it in the form <b>USEREXIT_SAVE_DOCUMENT_PREPARE</b>
regards
vijay
‎2006 Feb 27 12:37 PM
Hello Pawan,
This error msg is coming because VA02 checks for change in the standard field and if there is a change then it sets r185d-dataloss to X. The program queries this field at the begining of saftey routine and if found blank send out this msg.
‎2006 Feb 27 12:49 PM
Here is some logic that may help. When working with XVBAP in the user exits you must also maintain YVBAP witht the original data. XVBAP contains the changed data. You must also populate the update indicator (UPDKZ) with the change type for the record:
'I' = insert
'U' = update
'D' = delete
loop at xvbap.
read table yvbap with key posnr = xvbap-posnr.
if sy-subrc ne 0.
append xvbap to yvbap.
endif.
move: <value> to xvbap-zz_base,
'U' to xvbap-updkz.
modify xvbap.
endloop.
Chris