Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch Assemblies ....

Status
Not open for further replies.

uranshushka

Programmer
Nov 18, 2003
1
CA
Hi,

I have developed a production scheduling application which exchanges information with Accpac (transfer of new orders to SQL server through DTS and production entries through xapi).
UI in Accpac for assembly entries is not user friendly when you have to enter a lot of different assemblies, but it has a usefull function "Verify Quantities" which i can't figure out how to use. Any info on the subject would be greatly appreciated. Here is a snipet of my code:
Set oAccView = oAccSes.OpenView("IC0160", "ICASEN")
Set oAccFields = oAccView.Fields
If rsFinished.RecordCount > 0 Then
rsFinished.MoveFirst
While Not rsFinished.EOF
If rsFinished!QTYORDERED > 0 Then
oAccView.Init
oAccView.Init
oAccFields("DOCNUM").Value = CStr(DatePart("y", Date)) + CStr(Year(Date))
oAccFields("TRANSDATE").Value = Date
oAccFields("ITEMNO").Value = rsFinished!Item
oAccFields("BOMNO").Value = "1"
oAccFields("LOCATION").Value = "FAB"
oAccFields("QUANTITY").Value = CStr(rsFinished!QTYORDERED)
oAccFields("HDRDESC").PutWithoutVerification ("Production Scheduler" & rsFinished!OrdNumber)

Here i would like to trap entries with insufficient raw materials and generate an exception report

oAccView.Insert
End If
rsFinished.MoveNext
Wend
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top