Hi Manisha,
Step1: Create a function Module with RFC enabled.
Step2: Create a Custom table type in se11 in Ztable structure and assign that in RFC import parameter.
Step3:Create another table type in se11 with follwing fields,
Message type
Message text
Step4:Assign it in export structure.
In Source Code write the logic like,
if import parameter is not initial.
Do your validations and logics
Update in Ztable
endif.
Thanks & Regards
Venkat