10-20-2007 11:57 AM
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
10-20-2007 12:11 PM
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