How to suppress Posting Messages and Warnings on transaction screens in Accpac ERP

By | August 20, 2011

Like any other business application, Sage Accpac ERP also provides proper warnings and confirmations to users for accuracy of Data. Though these messages are for the benefit of the users, few (Power Users) find them annoying and often complaint about wastage of time. As they are confident of the changes they are making and just don’t want to have an additional click to complete their Process.

Let’s take a couple of examples, say someone may never want to print the Order on posting immediately, but he will always need to click NO on the Confirmation Screen.

Say for someone there must be a frequent need to change the Tax Group in certain scenarios and may not want below screen to appear every time, he changes the Tax Group.

Similarly certain customizations running in the background may also trigger these warning and we may want to suppress them.

So how do we do this?

Let us take above 2 examples how we can suppress each of them…

  1. Suppressing a Posting Message/Confirmation is pretty simple you just need to set SuppressPostedMessage property to true. If you want to do this on Order Entry Screen all you need to is write below code on AccpacOE1100UICtrl’s UI opened the event.
    AccpacOE1100UICtrl.SuppressPostedMessage = True
  2. For Warning messages you first need to identify the event when the Message gets fired and just before that you have to write below code to clear the Errors.
    .UISession.Errors.Clear
    Considering our Tax Group change example, let’s say we have to suppress the warning message “You have changed the tax group …..” which appears on the AP Invoice Entry transactions when tax group is changed for the transactions.
    Customize the OCX AccpacAP2100UICtrl and add below code
Script

‘Data source control
Dim WithEvents dsAPIBH As AccpacAP2100.ACCPACDSControl
‘Set Data Source
Private Sub AccpacAP2100UICtrl1 _OnUIAppOpened()
Set dsAPIBH = AccpacAP2100UICtrl1.UIDSControls.Item(“adsAPIBH”)
End Sub

Then on the data source record change event write below code.

Script

Private Sub dsAPIBH_OnRecordChanging(ByVal eReason As AccpacCOMAPI.tagEventReason, ByVal pField As AccpacDataSrc.IAccpacDSField, ByVal pMultipleFields As AccpacDataSrc.IAccpacDSFields)
If eReason = RSN_FIELDCHANGE Then
If pField.Name = “CODETAXGRP” Then
AccpacAP2100UICtrl1.UISession.Errors.Clear
End If
End If
End Sub

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, Salesforce.com 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 accpac@greytrix.com. We will be glad to assist you.