Hello Nellaiappan,
You need to explain your requirement in detail, so that members would share their expertise in terms of User-exit Or BADI. All my such requirements were addressed through 'Save' user-exits (when I am not particular about the error message to be exactly on spot.)
KJogeswaraRao