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

Problem with VA02

Former Member
0 Likes
1,153

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...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
954

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.

5 REPLIES 5
Read only

Former Member
0 Likes
954

Hi pawan

can you eloborate the problem

regards

kishore

Read only

0 Likes
954

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.

Read only

Former Member
0 Likes
954

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

Read only

Former Member
0 Likes
955

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.

Read only

Former Member
0 Likes
954

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