A function module (FM) is a globally reusable procedure created in transaction SE37 or inside a Function Group. It can be called from anywhere in the system.
When to use:
· When you want reusable logic across different programs.
· Supports exception handling and interface definitions.
Example: (via SE37 or code-based RFC FM)
Output: