There is no such feature in standard ERP procurement process.
You may need to write your own program that reads your Z-table with the relationship and adds a second item to the STO using BAPI_PO_CHANGE
Or entirely create your STO using BAPI_PO_CREATE1