GP Create and Apply Receivables Transactions

A client has a file of payments and returns which they would like to zero out. For the return we are creating a receivables invoice and the payment a debit memo. We are then applying the payment or return to the created invoice or debit memo but receive and error stating that the apply to document (our created transaction) does not exist in the RM Open Table and thus we cannot complete the apply. How can we complete the apply through Scribe?