Application Development 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: 

UPDATE Field VBAP-ABGRU

Former Member
0 Kudos

Hello everyone,

I want to update fields of vbak and vbap in user-exit SAVE_DOC_PREPARE.

LOOP AT xvbap.

MOVE 'Z6' TO xvbap-abgru.

MODIFY xvbap.

ENDLOOP.

MOVE '001' TO vbak-augru. " It works!

By this example vbak will be update, but vbap not.

Does anyone know the solution?

Best regards.

Vadym

1 REPLY 1

Former Member
0 Kudos

Hi

keep a break point at LOOP AT XVBAP.

check whether the right item is there/coming in XVBAP. if it is not coming then it won't update.

VBAK is the header with a single record it updates correctly

Also check the Structures YVBAP and VBAP also at that place of break point, because the data will be in these three structures/tables

If it is not working there in that FORM

write the code in the form

FORM USEREXIT_MOVE_FIELD_TO_VBAP

and see

It has to work at one place.

Regards

Anji