Skip to Content
avatar image
Former Member

UPDATE Field VBAP-ABGRU

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 20, 2007 at 11:11 AM

    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

    Add comment
    10|10000 characters needed characters exceeded