cancel
Showing results for 
Search instead for 
Did you mean: 

Need to stop the creator of contracts from changes after activation of contract

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (0)