SAP Message USMD2299 - Implementation of BAdI USMD_UI_EVENT2 has an error

Diagnosis
The implementation of Business Add-In (BAdI)
Adjust User Interface for Single Processing (USMD_UI_EVENT2) containsan error. This means that at least on of the BAdI methods returnsincorrect data: Your BAdI implementation changes the key fields of theentity when calling method INITIALIZE or MODIFY_VIEW
in table CT_DATA. This is not allowed for a BAdIimplementation.

System Response
The changed key fields are ignored.

Procedure
Change your implementation of BAdI USMD_UI_EVENT2.