in the first structural profile you used the RH_GET_MANAGER_ASSIGNMENT FM to determine what org. unit the user is managing. in the second you hard-coded the position of the user as a starting point for the structural profile.
I'd suggest making the structural profile ZCUST_DYN with the O as starting point (as before) and use the ZSTADVIS evaluation path instead of the O_S_P one you used before.