Sage 100

 View Only
  • 1.  Ways to track that a record has been exported from Sage 100

    Posted 12-09-2024 12:53

    I have a customer who wants to: 

    1. Export daily the header information for invoices that have been posted for a certain customer number ( Invoice Number, Invoice Amount)
    2. I want to keep track that the data was exported so that I don't duplicate (or miss) exporting anything

    For example, if the project starts on 1/1/2025 I would be querying/exporting the AR Invoice History header for invoice date => 1/1/2025 AND Exported Date is blank / null (I'm sure I need to code the NULL somehow as well)

    My first thought is to add a UDF to the AR Invoice History Header for "Exported Date"  and use a batch file that fires off a Visual Cut job to export the list. Then use VI to access that source file and import today's date to the UDF for "Exported Date".

    Has anyone done something similar and have feedback on a better way? Should perform logic be used to kick off the batch file to import the Exported Date so that I'm sure VI ran and there wasn't a "file in use" issue with other users in the system, etc.

    Thoughts? 



    ------------------------------
    Wayne Schulz
    wayne@s-consult.com
    Schulz Consulting
    (860) 516-8990
    CT
    ------------------------------


  • 2.  RE: Ways to track that a record has been exported from Sage 100

    Posted 12-09-2024 16:45

    What about just using Sage Alerts?



    ------------------------------
    Brett Zimmerman
    Net at Work
    Greater Boston Area
    ------------------------------



  • 3.  RE: Ways to track that a record has been exported from Sage 100

    Posted 12-09-2024 17:01

    I'm with Brett. Use SAW. With the license level that permits multiple db's. Set up an alert to check for invoices present in the external source (I assume an ecomm site) but not present in Sage. 

    It's a straightforward query and results in alerts for the thing you're actually looking for, nothing more. Best of all, it runs in background and looks like an "expected data check" within Sage instead of some extra routine.



    ------------------------------
    Jerry Norman
    Smartbridge Partners
    (512) 653-7498
    ------------------------------



  • 4.  RE: Ways to track that a record has been exported from Sage 100

    Posted 12-09-2024 17:25

    That's a very good idea although we'd already committed to Visual Cut for the export. The tracking of the status of exported records came at the last minute from the customer. 



    ------------------------------
    Wayne Schulz
    wayne@s-consult.com
    Schulz Consulting
    (860) 516-8990
    CT
    ------------------------------



  • 5.  RE: Ways to track that a record has been exported from Sage 100

    Posted 12-09-2024 17:40

    OK. What is the goal for the export? where is it going to/from? Why?



    ------------------------------
    Jerry Norman
    Smartbridge Partners
    (512) 653-7498
    ------------------------------



  • 6.  RE: Ways to track that a record has been exported from Sage 100

    Posted 12-09-2024 17:48

    Jerry -

    They are a Sage 100 users who was acquired by a company that uses Netsuite. So far as I can tell this is to synchronize up Sage 100 with their Netsuite system but only for one customer. I believe this particular site is managing drop ships.

    I don't expect Sage 100 to remain in place long-term ( BTW which probably means they'll be using this for 20+ years.... )




    ------------------------------
    Wayne Schulz
    wayne@s-consult.com
    Schulz Consulting
    (860) 516-8990
    CT
    ------------------------------



  • 7.  RE: Ways to track that a record has been exported from Sage 100

    Posted 12-09-2024 17:39

    If duplicates are not a disaster, you can export based on DateUpdated... but don't do this if they import to invoice history (eg. import updates to posted invoice data), which changes that value.  A skipped schedule (server maintenance / power outage) requires a back-dated batch... so this is not a 100% hands-free option, but it usually works quite nicely.

    A reporting solution that maintains a mirror table of what has been sent (Sage Alerts / KS / ActionQ) is a great idea.  Everything works off of ODBC, with no complications related to updating a "sent" flag.

    Otherwise, you need to set up a way of tracking what has been sent... and I have done this kind of process dozens of times.  The most reliable method is to store your status values outside of the normal Sage tables.  Something like a UDT to hold InvoiceNo + HeaderSeqNo value as the key field, with a "status" column.  Script adds new UDT rows with a "Processing" status, run your report for the currently selected rows, then run a second script to change "Processing" to "Sent/Done"... with a date/time if you want.



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 8.  RE: Ways to track that a record has been exported from Sage 100

    Posted 12-09-2024 17:52

    I might pivot to working with  the Date Updated as opposed to the invoice date. They would not be updating to history. They say that they are ok with running this once daily after-hours. What I may pitch is just to run this late enough in the day (10 pm to 11 pm ) that nobody would be in Sage posting any invoices. I'd like to keep it as un-complex as possible because in the midst of the project they are already undergoing layoffs.

    One of my fears is that trying to write back into AR Invoice History Header could result in file lock issues should a user leave for the day and leave their data entry screen open ( I'm not certain if any of this would cause file locking but if I can avoid that possibility it seems like a good tradeoff)



    ------------------------------
    Wayne Schulz
    wayne@s-consult.com
    Schulz Consulting
    (860) 516-8990
    CT
    ------------------------------



  • 9.  RE: Ways to track that a record has been exported from Sage 100

    Posted 12-09-2024 17:58

    With that strategy I always set them up to run after midnight, with DateUpdated = YESTERDAY (as a VC command line date parameter).  If you need to run a back-dated batch, the report date parameter makes that easy.

    You are correct in that VI imports for status flags is a point of failure in such a process.  We spent years supporting those issues before developing other strategies.



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 10.  RE: Ways to track that a record has been exported from Sage 100

    Posted 12-09-2024 20:56

    And this company is not going to be an ongoing customer (at least not one on plan) so I don't want to create a headache of me having to fix extra VI imports may fail for unexpected reasons. 



    ------------------------------
    Wayne Schulz
    wayne@s-consult.com
    Schulz Consulting
    (860) 516-8990
    CT
    ------------------------------