Skip to Content

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

Jun 13, 2017 at 01:45 PM


avatar image
Former Member

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) ?


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

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

10 |10000 characters needed characters left characters exceeded