Yokeswaran, have you tried this solution your own. This won't work since the customaftermenuitemclick method will be called before the online request associated with the menu item.
An alternative solution is to call the second RFC in the first RFC itself. ie modify the RFC code, this may satisfy the requirement.
- Midhun VP