
If the report's detail segment is AP.INV.transactions[AP.INV.urn, AP.INV.txn.urn], might want to report on your GL accounts this way. This approach would allow for up to 5 GL accounts being reported. All depends on how your report is structured.
xx.gl.acct.1
DAT=FREE
LEN=15
VAL=""^txn.gl.account,@Next(txn.gl.account,txn.distribution)
xx.gl.acct.2
DAT=FREE
LEN=15
VAL=IF{txn.gl.account @Next(txn.gl.account,txn.distribution);""}
xx.gl.acct.3
DAT=FREE
LEN=15
VAL=IF{txn.gl.account @Next(txn.gl.account,txn.distribution);""}
xx.gl.acct.4
DAT=FREE
LEN=15
VAL=IF{txn.gl.account @Next(txn.gl.account,txn.distribution);""}
xx.gl.acct.5
DAT=FREE
LEN=15
VAL=IF{txn.gl.account @Next(txn.gl.account,txn.distribution);""}
If this helps, let me know by voting up or down using the ARROWS.
Merry Christmas!