Hi Sunil
I suggest you to look at SAP Standard Macro books using transaction /sapapo/advm.
SAP has created reference macro books and example application for information purpose. This is great reference for anyone want to learn about macros.
Refer below SAP Help to know about Operators and Functions in Macros
Hope this will help.
Thank you
Satish Waghmare