AP check - adding PO number column on stub

We want to print the PO number on the AP check stub but I don't see how I can link the APADV table to the correct field in the AP header (APIBH?) table.  Would appreciate some insight into this.

Thank you.