How to execute Day End Process programmatically in Sage Accpac ERP

By | October 17, 2011

Recently we integrated a POS system with Sage Accpac ERP, here we had taken care of Item Sync, Transfer of Inventory from Warehouse to Shops, Shop to Shop etc… along with importing all Sales information from each POS shop to Accpac ERP. Well this is not the topic of discussion here I will reserve this for another blog, but while we were importing Sales we came across below situation…

While we were Importing Sales to Accpac ERP what we were doing was importing each POS document as OE Shipment with Invoice option ticked and were immediately applying the cash receipts against it, now to achieve this we realized that we will have to force all user to configure Cost Items During Option to “Posting” (refer below screen shot) as only then we would get the Invoice to Apply the receipts, this could have been considered as limitation as not all users would want to change this.
So we thought we would programmatically check and if the Option is set to Posting then everything would work fine and if it is set to “Day End processing” then would programmatically execute the day end Process before applying the Receipts so we get the invoices. Below is the code snippet if you ever need to do this :-)…

Dim ICDEND As AccpacCOMAPI.AccpacView
mDBLinkCmpRW.OpenView “IC0275”, ICDEND
Dim ICOPT As AccpacCOMAPI.AccpacView
mDBLinkCmpRW.OpenView “IC0380”, ICOPT
ICOPT.Browse “”, True
If (ICOPT.Fetch) Then
‘Here program checks costing method i.e. on Posting or Day End Processing
If (ICOPT.Fields.Item(“COSTDURING”).Value = “1”) Then
End If
End If

Hope this helps.

About Us
Greytrix a globally recognized Premier Sage Gold Development Partner is a one stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix offers unique GUMU™ integrated solutions of Sage 300 with Sage CRM, and Magento eCommerce along with Sage 300 Migration from Sage 50 US, Sage 50 CA, Sage PRO, QuickBooks, Sage Business Vision and Sage Business Works. We also offer best-in-class Sage 300 customization and development services and integration service for applications such as POS | WMS | Payroll | Shipping System | Business Intelligence | eCommerce for Sage 300 ERP and in Sage 300c development services we offer services such as upgrades of older codes and screens to new web screens, newer integrations using sdata and web services  to Sage business partners, end users and Sage PSG worldwide. Greytrix offers over 20+ Sage 300 productivity enhancing utilities that we can help you with such as GreyMatrix, Document Attachment, Document Numbering, Auto-Bank Reconciliation, Purchase Approval System, Three way PO matching, Bill of Lading and VAT for Middle East.

For more details on Sage 300 and 300c Services, please contact us at We will be glad to assist you.