Back

Confirm Deletion?

AR Ship TO Create

ARCSP, ARCSPO, ARCSP, ARCSPO, ARCSPO, ARCSP, ARCSP, ARCSP, ARCSP, ARCSP, ARCSP, ARCSP, ARCSP


  // TODO: To increase efficiency, comment out any unused DB links.
using(HuAPConnection Connection = new HuAPConnection())
using(HuView ARCSP = Connection.GetView("AR0023"))
using(HuView ARCSPO = Connection.GetView("AR0412"))
{
	ARCSP.Compose(ARCSPO);
	ARCSPO.Compose(ARCSP);
	ARCSP["IDCUST"] = "ADVANCED";  // Customer Number
	ARCSP.Init();
	ARCSP["IDCUST"] = "ADVANCED";  // Customer Number
	ARCSP.Browse("((IDCUST=");
	using(HuView ARCSP0 = Connection.GetView("AR0023"))
	using(HuView ARCSPO0 = Connection.GetView("AR0412"))
	{
		ARCSP0.Compose(ARCSPO0);
		ARCSPO0.Compose(ARCSP0);
		ARCSP0["IDCUST"] = "ADVANCED";  // Customer Number
		ARCSP0.Browse("(IDCUST = ");
		ARCSP0.Init();
		ARCSP0["IDCUST"] = "ADVANCED";  // Customer Number
		ARCSP0["IDCUSTSHPT"] = "";  // Ship-To Location
		ARCSP0["IDCUSTSHPT"] = "POT2";  // Ship-To Location
		ARCSP0["PROCESSCMD"] = "0";  // Process Command Code
		ARCSP0.Process();
		ARCSP0.Insert();
		ARCSP.Init();
		ARCSP["IDCUST"] = "ADVANCED";  // Customer Number
		ARCSP.Browse("((IDCUST=");
}



}