How to Execute a Macro with Mass Processing 
You can use SOP’s mass processing function to execute a macro. In this process:
- You create a planning type and define it in the macro
This procedure can be performed either online or in Customizing.
- You create a planning activity and include in it this action (the macro).
- You create a mass processing job for this activity.
- You schedule this mass processing job.