I don't think there is a schedule field that would return a correct value for such a case. ArchiCAD is not prepared to return such a value.
In case of Doors/Windows, you can list in the schedule the Room from which it opens and the Room it opens into. But there is no such option for Walls.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27