Hi,
keep the Account doc Num in Rows.
Convert GL Item field into KF by creating a Formula variable by replacement path by taking reference as GL item-->replace with Key
Create a CKF by using the above Formula variable. Assign this CKF under GL Item as umbrella.
You will get the required output.
Regards,
Suman