‎2013 Nov 15 8:21 AM
Dear Experts,
Is there anyway to set the user status programmatically of an SD Document (Quotation) when the document is saved?
Can the program MV45AFZZ form USEREXIT_SAVE_DOCUMENT ? If yes, which structure or table could be updated? JEST?
If no, I'm thinking a way to find a user exit after save then use a BAPI to update the user status.
Thank you,
Suwandi C.
‎2013 Nov 15 8:31 AM
‎2013 Nov 15 8:31 AM
‎2013 Nov 15 8:48 AM
Dear Suwandi,
Yes , you can use this exit. You need to use standard FM to set the status , you can take help from these FM's to call there.
STATUS_CHANGE_EXTERN
STATUS_CHECK
STATUS_CHECK_EXTENDED_MULTI
STATUS_CHECK_FOR_DATE
STATUS_CHECK_MULTI
STATUS_CHECK_NEW_OLD
STATUS_CHECK_OLD
I have used these two and both worked fine.
STATUS_CHANGE_EXTERN
STATUS_CHECK
Thanks
Rakesh
‎2013 Nov 15 9:21 AM
Hi,
Thanks for the info.
I've tried to call the FM from user exit MV45AFZZ form USEREXIT_SAVE_DOCUMENT, and using the VBAK-OBJNR to STATUS_CHANGE_EXTERN.
The user status then is updated!
Thank for the help,
Suwandi C.