Hi Abhishek,
There are several document available to learn Gateway. Please have a look in below one.
Check if this can help you.
If your function module exist in different system then your Odata development system, you can call function module with system alias.
Regards,
Tarun