PANTHEON™ Help

 Toc
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for PANTHEON
  [Expand]Guide for PANTHEON
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [Collapse]User Manuals for PANTHEON
  [Collapse]User Manual for PANTHEON
   [Collapse]Getting Started
     Dictionary of terms
     First steps with PANTHEON
    [Expand]Using PANTHEON at Tecta, a fictional company
    [Expand]Instructions for Ensuring Compliance of PANTHEON with SAS
    [Expand]PANTHEON Installation
    [Collapse]PANTHEON System
     [Expand]PANTHEON System data
     [Collapse]MS SQL Server
       Download and install MS SQL Server
       Upgrading MS SQL Server to 2019 or 2022
       MS Management Studio - Download and install
       Restoring database onto SQL server
       Adding users to server level (AddUser_PAX)
       Installing SQL for external access
       Installing PANTHEON clients
       Nastavitve MS SQL strežnika za večja Pantheon™ oko
       Changing SQL Sort Order
      [Expand]MS SQL Server Security
      [Expand]Useful SQL Queries
       SQLExecute
      [Collapse]SQL Server Jobs
       [Collapse]Refresh Stock
         Refresh Stock Job Using Enterprise Manager
         Refresh Stock Job Using T-SQL Commands
        E-Mail Reminders for Overdue Receivables
        DB Maintenance Plan
     [Expand]Microsoft Windows Utilities
     [Expand]Security Policy
     [Expand]Database Administration
    [Expand]PANTHEON Basics
    [Expand]PANTHEON Help
    [Expand]Materials and Goods Movements
    [Expand]Assigning Identifiers
    [Expand]Frequently asked questions about Pantheon (F.A.Q.)
    [Expand]Archive
   [Expand]User Manual for eBusiness
   [Expand]Settings
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]Service
   [Expand]Help
   [Expand]Personnel
   [Expand]Financials
   [Expand]Analytics
  [Expand]User Manual for PANTHEON Retail
  [Expand]User manual for PANTHEON Vet
  [Expand]User Manual for PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Guides for PANTHEON Web
  [Expand]Guide for PANTHEON Web Light
  [Expand]Guide for PANTHEON Web Terminal
  [Expand]Guide for PANTHEON Web Legal
  [Expand]Old products Archive
 [Collapse]User Manuals for PANTHEON Web
  [Expand]Getting started PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
  [Expand]User Manual for PANTHEON Web Terminal
  [Expand]User Manual for PANTHEON Web Legal
  [Expand]Old products Archive
[Collapse]PANTHEON Granules
 [Collapse]Guides for PANTHEON Granules
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]Dashboard Granule
  [Expand]B2B Orders Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
 [Collapse]User Manuals for PANTHEON Granules
  [Expand]Getting started
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]B2B Orders Granule
  [Expand]Dashboard Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
  [Expand]Archive
[Expand]User Site

Load Time: 406.2507 ms
"
  2548 | 2938 | 342212 | Updated
Label

Refresh Stock Job Using Enterprise Manager

Refresh Stock Job Using Enterprise Manager

Refresh Stock Job Using Enterprise Manager

 

This topic describes how to run PANTHEON's Refresh Stock function using SQL Server jobs.

In Enterprise Manager, find and expand the desired SQL Server, go to Management, SQL Server Agent, right-click Jobs and select New Job...

034022.jpg

 

Enter the job Name, but don't change the Category. The Description is optional. Click the Steps tab.

034023.jpg

 

Here you define steps that should be exsecuted. Click New to add a new step.

 

034024.jpg

 

Step 1 - Refresh Serial Numbers

Step name The name of the step. As this one will refresh serial numbers, name it Refresh serial numbers.
Type Use TSQL, the default.
Database Select the database on which you want to run the job. This example uses NovoPodjetje.
Command Enter SQL commands that should be executed, in this case two stored procedures.

exec pPA_SerialNoItemRecalc '', null, null
exec pPA_SerialNoStatusRecalc ''

Click OK to save the step.

034025.jpg

054320.gif Learn more about stored procedures in PANTHEON's database at Datalab's Developer Site under Database Info |DB Info P55 | Procedures, Views, Triggers.

Step 2 - Refresh Prices

Again click New... to add another step.

 

Step name The name of the step. This one will Refresh prices.
Type Use TSQL, the default.
DataBase Select the database on which you want to run the job. This example uses NovoPodjetje.
Command Enter SQL commands that should be executed, in this case three stored procedures.

 

if object_id('tempdb..#lHE_InventoryIdent') is null

CREATE TABLE [dbo].[#lHE_InventoryIdent]

([acIdent] char(16) COLLATE DATABASE_DEFAULT NOT NULL DEFAULT (''),

[adDate] datetime NOT NULL DEFAULT (dateadd(day,datediff(day,(0),getdate()),(0))),

[acWarehouse] char(30) COLLATE DATABASE_DEFAULT NOT NULL DEFAULT (''),

PRIMARY KEY CLUSTERED (acIdent, adDate,acWarehouse))

else

TRUNCATE TABLE [#lHE_InventoryIdent]


exec pPA_PriceCalc '', null, null, ''
exec pPA_PriceCalcOwnPrice '', null, null, ''
exec pPA_MoveAssmblyRecalc ''

Click OK to save the step.

034026.jpg

Step 3 - Refresh Stock

Again click New... to add another step.

 

Step name The name of the step. This one will Refresh stock.
Type Use TSQL, the default.
DataBase Select the database on which you want to run the job. This example uses NovoPodjetje.
Command Enter SQL commands that should be executed, in this case a stored procedure.

exec pPA_StockRecalc ''

Click OK to save the step.

034027.jpg

4. korak preračuna - Preračunaj glave dokumentov

Ponovno kliknemo New za kreiranje novega koraka. Tu vpišemo:

 

Step name The name of the step. This one will Refresh document headers..
Type Use TSQL, the default.
DataBase Select the database on which you want to run the job. This example uses NovoPodjetje.
Command Enter SQL commands that should be executed, in this case a number of stored procedures.

exec pPA_CashRegRecalc null, null
exec pPA_GLRecalc null, null
exec pPA_OrderHeadRecalc null, null
exec pPA_OrderDispDocRecalc '', null, null
exec pPA_MoveHeadRecalc null, null, 'F'

Click OK to save the step.

034028.jpg

 

Now all the necessary steps are set up. This basically does the same as the Refresh Stock function in PANTHEON.

034029.jpg

Setting a Schedule

Now you just have to set up a schedule for the job so you don't need to run it manually. Go to the Schedules tab and click New Schedule...

034030.jpg

 

Type in a name for the job schedule and set the Schedule Type to Recurring. Click Change... to set  recurrence parameters.

 

034031.jpg

 

Select that the jobs occurs Daily and Every 1 Day. Under Daily frequency, select Occurs once at: and set the desired time (during the night is recommended). Click OK several times to close all dialog windows. The new job is now listed in the Jobs panel.

 

054321.gif You can schedule a job to run every couple of hours by settings Daily frequency to Occurs every: and specifying the time interval.

Note that running job during business hours may slow down normal work because of the increased server load.

 

034035.jpg

 



 

Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!