The following general parameters may change the way the function is working :
CTLCLOPER (defined at level Company) : Period closing balance ctrl.
LEDTYPAUT (defined at level Folder) : Automatic ledger type
An authorization can be granted for this function to limit the processes to a company or a site.