restrict users with the same company code
I have developed editable ALV which allows users to edit and delete records and save those changes in database.
Input is Company Code , Document Number and Fiscal Year.
Now I want to restrict multiple users trying to edit/delete records with same company code at a same time.
User A is editing records for company code 1250.
If User B tries to access for same company code 1250 at the same time, it should return an
error message saying “Table currently locked by User A”.
and also want to restrict the records if multiple users are trying to edit/delete the same record at
a same time,I should give an error message.