on 08-06-2013 9:15 AM
Hi Gurus,
This is the requirement, I use status profile for approval in SO.
But once the SO approved my manager, user/SO creator shouldn't able to edit (VA02) approved status SO.
If not approved, than able to go VA02 and edit.
is this can be done?
regards
SRN
Hi Ram,
I agree to most of the replies above, stating that it only possible through a user exit. You can use any of the exits - MV45AFZZ - SAVE_DOCUMENT_PREPARE or even MV45AFZB - USEREXIT_CHECK_VBAP / VBKD / VBAK
if you use MV45AFZZ - SAVE_DOCUMENT_PREPARE you will have to additionally handle that the code does not get triggered at the time of delete i.e. FCODE = LOES.
In your code you can use function module "STATUS READ" which returns the current status number. So the code could be -
If status = 20 (or 30, 40 etc.)
and if YVBAP ne XVBAP
Error message " Document already approved. Changes not allowed"
if YVBAK ne XVBAK
Error message " Document already approved. Changes not allowed"
if YVBKD ne XVBKD
Error message " Document already approved. Changes not allowed"
You can include more sales order related table for the validation. Putting this validation will allow you to change the status from say 30 to 20 or to 10 but will disallow changes to to sales order when a particular status is already set.
Hope this helps you
Regards
Ankit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
I think it is not possible with User Status Management.Correct me all Gurus if I am wrong.
I agree with MANJIT DHIMAN that you have to go with User Exit USEREXIT_READ_DOCUMENT in MV45AFZZ instead of Save document.
Thanks,
Suman$
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manjit
Thanks for reply... But you misunderstood my question.
I already maintained authorization code in BS02 and assigned the authorization code to a ROLE.
And that ROLE given to a MANAGER for approval.
BUT my problem is, Once MANAGER APPROVE the Sales Order, system shouldn't allow user to edit the approved document.
hope my requirement clear.
Hi Ram
Pls go through below link. User user exit USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ
http://scn.sap.com/message/9714899
Regards
Manjit Dhiman
Message was edited by: MANJIT DHIMAN
Hi,
Have you maintained anything like "change quotation Business transaction" in your profile,then
put "Forbid " radio button for "Business transaction-Change Quotation" in your "status profile" under Status "MANAGER approval"
once manger approved it will not allow you to change quotation.
Regards,
Krishna.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.