Via Visual Studio, this worked.
private void updateWareHouse()
{
using (Session episession =
new Session("userid", "pass", "AppserverDC://server:port#", Epicor.Mfg.Core.Session.LicenseType.Default))
{
PO epiPO = new PO(episession.ConnectionPool);
PODataSet pods1 = epiPO.GetByID(int.Parse(txtPONum.Text));
/*
* To update a PO, first you will need to do the follwoing (Assuming the PO Order is closed):
* a.) ReOpenOrder(int PONUM)
* b.) ReOpenOrderLine(int PONUM, int POLine);
* c.) ReOpenRelease(int PONUM, int POLine, int PORelease)
*/
for (int i = 0; i < pods1.PORel.Rows.Count; i++)
{
if(pods1.PORel[i].POLine >=5 && pods1.PORel[i].POLine <=10)
{
pods1.PORel[i].BeginEdit();
pods1.PORel[i].OpenRelease = true;
pods1.PORel[i].WarehouseCode = "CDA";
pods1.PORel[i].WarehouseCodeDescription = "Central Distribution Area";
pods1.PORel[i].RowMod = "U";
pods1.PORel[i].EndEdit();
epiPO.Update(pods1);
}
}
}
}