Hi Kiran,
Are you saying that you want to check if the user has authorization to execute FB02, prior to calling it?
The standard SAP FB02 transaction will do many authorization checks.
I would suggest you scrap the authorization check and just let your code call FB02 using call transaction and get the messages back from the call transaction. If one of the messages is an authorization error, you will find out then. If there is no authorization error, you can inform the user of any other errors or of the successful execution.
I don't see much point in congratulating users for having access to a T-code... I'll assume you put that there just for the example ... and that if the user has access, your code will call FB02. In that case, the behaviour will be exactly as I described above.
I hope this is helpful.