on 08-20-2013 5:34 AM
Dear Sir,
Please tell me how to stop the person who created activated and saved the contract from making any subsequent changes. Any changes to contract should be done by FI team only. This requirement our client needs ASAP.
I have created status profile and with help of GRC done some stuff. 1) the contract upon saving will not allow any changes even activation. If activation allowed then contract changes are being allowed. how to solve this.
Regards
Yezdevan
Hi Yezdevan,
you should implement a BADI in spot BADI_RE_CN_CN. Transaction is SE18.
BADI-definition is: BADI_RECN_CONTRACT
BADI-Interface is: IF_EX_RECN_CONTRACT
The BADI-method you should implement is
-CHECK_ALL or
-SUBSTITUTE.
In CHECK_ALL you can read the username who created, changed or saved the contract in the user-include ruser in contract structure RECN_CONTRACT. It's the method GET_DETAIL:
RERF
DERF
TERF
REHER
RBEAR
DBEAR
TBEAR
RBHER
If you realize, that the current user, who wants to change the data of the contract (when he was pressing "SAVE") is identical to the creation user (or the user who activated or saved) you can abort the save by throwing a message.
You can actually do everything in this method, what you want, even build up your own history of user data changes, if you need it more detailed and read it if you need it here.
In your example it should simply be possible to ask in the BADI validation method, if the current user has the profile of the FI-Team, if so, no popup comes up and the saving is possible. If not, saving is cancelled with an e-message which prevents saving.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
5 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.