Skip to Content

How to understand whether Va02 Header Object Status is changed or not while saving?

Hi all!

At the document header level at VA02 we have 5 different status options. (statuses with status numbers). I want to catch if a the user changes the Object Status while saving the document in the user exit MV45AFZZ in FORM userexit_save_document.

How can I do that ? Is it possible to understand a status change while (before saving) ?


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Posted on Jun 13, 2017 at 02:51 PM

    I suppose you don't mean "comparing xvbuk[] with yvbuk[] when T180-TRTYP not equal to 'H'" but some "JEST" status change, in this case use FM STATUS_CHANGES_GET to get list of changed status waiting for commit. You can trigger some following task from USEREXIT_SAVE_DOCUMENT but don't change the sales order data, is this was your actual requirement use USEREXIT_SAVE_DOCUMENT_PREPARE.

    Add comment
    10|10000 characters needed characters exceeded