using (HuAPConnection Connection = new HuAPConnection())
using (HuView OEINVDO = Connection.GetView("OE0401"))
using (HuView OEINVD = Connection.GetView("OE0400"))
using (HuView OEINVH = Connection.GetView("OE0420"))
using (HuView GENSTUB = Connection.GetView("OE0999"))
using (HuView OECOINI = Connection.GetView("OE0160"))
using (HuView OETERMI = Connection.GetView("OE0720"))
using (HuView OEINVR = Connection.GetView("OE0427"))
using (HuView OEINVHO = Connection.GetView("OE0422"))
using (HuView OEINVDB = Connection.GetView("OE0403"))
using (HuView OEINVDD = Connection.GetView("OE0402"))
using (HuView OEINVDDS = Connection.GetView("OE0404"))
using (HuView OEINVDDL = Connection.GetView("OE0405"))
using (HuView OEINVDS = Connection.GetView("OE0407"))
using (HuView OEINVDL = Connection.GetView("OE0406"))
{
OEINVDO.Compose(OEINVD);
OEINVD.Compose(OEINVH, OEINVDO, OEINVDB, OEINVDD, OEINVDS, OEINVDL);
OEINVH.Compose(OEINVD, GENSTUB, OECOINI, OETERMI, OEINVR, OEINVHO);
GENSTUB.Compose();
OECOINI.Compose(OEINVH);
OETERMI.Compose(OEINVH);
OEINVR.Compose(OEINVH);
OEINVHO.Compose(OEINVH);
OEINVDB.Compose(OEINVD);
OEINVDD.Compose(OEINVD, OEINVDDS, OEINVDDL);
OEINVDDS.Compose(OEINVDD);
OEINVDDL.Compose(OEINVDD);
OEINVDS.Compose(OEINVD);
OEINVDL.Compose(OEINVD);
// Code Here
}