Hi Sar,
You can try changing the access sequence for that partner function in your partner determination procedure. There are different access sequences available which considers the partner from previous document. If you can not find one, you may create your own access sequence.