cancel
Showing results for 
Search instead for 
Did you mean: 

Interaction Record : How to make it non editable based on user status = Complete and on click of Save

Former Member
0 Kudos

Hi Guys

We have a requirement ,where we need to make the interaction record "not editable " when we set the user status to "Complete" and after "Save" button is pressed.

Please note that we can't make use of status profile settings as we have to enter some information after the status is complete , that means

after user selects status "Complete" he has to select the value from another drop down and then Save.

Standard offers such that once the Complete is chosen in dropdown the whole screen is frozen.

Once he saves it , the document should be locked(read only/non editable)

Any pointers ?

We tried "Set_view_Group_Context" and Order_Save BADI and we are not preferring disabling at attribute level as we might add few more attributes later.

Regards

Vinayak

Accepted Solutions (1)

Accepted Solutions (1)

Sigrid
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

You might check the BADI CRM_ORDER_FIELDCHECK. It works for all OneOrder native fields (limitation: does not work for category tab BTCATEGORIES or GSSMCDDLB).

Best Regards,

Sigrid

Answers (2)

Answers (2)

BGarcia
Active Contributor
0 Kudos

Hi Vinayak,

You can also consider implementing BADI CRM_ORDER_AUTH_CHECK. Everytime you open a business transaction in CRM this BADI is called so you can apply your desired logic there.

Kind regards,

Bruno

former_member193634
Active Participant
0 Kudos

Hello,

We had a similar requirement.

The best way we found was to implement the enhancement spot in the beginning of method LOCK_ORDERS of class CL_CRM_METHODS_BTIL. Here, you can prevent the user from editing a business transaction. Be aware this method is called for any BT, so you need to adjust your custom development accordingly.


Hope this helps.


Best regards,

Sylvain AGUETTAZ