Updating Subcontract Shipment Detail

I am stalled out here. I am trying to update a subcontract shipment line via c#, and cannot get it to work. Here is the situation, we have a custom dashboard that shows items that need to be outsourced for the week. Purchasing can then select a record, and click a button to generate a PO for that line. What I want to then happen is the Subcontract Line is updated with the newly created PONum, Line, and rel. Everything works, except for the updating of the Subcontract Line. Here is my Code, any thoughts as to why it is not working?

SubConShipEntryAdapter SubShip = new SubConShipEntryAdapter(oTrans);
SubShip.BOConnect();

Ice.Lib.Searches.SearchOptions opts = new Ice.Lib.Searches.SearchOptions(SearchMode.AutoSearch);

string whereClause = "PackNum = '" + pack + "'";
opts.NamedSearch.WhereClauses.Add("SubShipD",whereClause);
bool morePages;
		
DataSet ds = SubShip.GetRows(opts,out morePages);
int j = 1;

	foreach (DataTable table in ds.Tables)
	{
		if (Convert.ToString(table) == "SubShipD")
		{		
			foreach (DataRow row in table.Rows)
			 {
				row.BeginEdit();
				row["PONum"] = po;
				row["POLine"] = j;
				row["PORelNum"] = 1;
				row.EndEdit();
				SubShip.Update();
						
				j = j+1;
			 }
		}
	}
SubShip.Dispose();