Hi,
the question is how you expect that the parties are determined when you enter the sold-to. You need to check the access sequence 0007 first of where from the system should determine the parties. I can see that you try first from the predecessor (but you dont have one ?) and then by which source ? This is not clear. Check the source where from you want determine the partners.
Best regards
Rene