BPC Script Logic

Hi BPC Experts,

I am facing some distributions from the budgeting point of view of the BPC tool. I am trying to do these distributions using script logic but I really don't know how it works. Looking in the forum i have found some documentation but I haven't found code examples.

Where can I find examples of script logic for distribution purposes? Is there any other way of doing it without using VB macros?

Thanks in advance