Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP - Set User Status in Quotation (SD) Programmatically

suwandi_cahyadi
Contributor
0 Likes
1,344

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.

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
765

You can do that using STATUS_CHANGE_EXTERN.

3 REPLIES 3
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
766

You can do that using STATUS_CHANGE_EXTERN.

Read only

Former Member
0 Likes
765

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

Read only

suwandi_cahyadi
Contributor
0 Likes
765

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.