Solved

GP 2010 User deleted a recurring batch

Posted on 2014-12-12
4
91 Views
Last Modified: 2015-03-23
User deleted a recurring batch with 100 rows by mistake.  Is there a way to retrieve this batch.  We have a test database that has this batch and 95% of the entries in that database.  Is it possible to copy from that database to our production database so that user will not have to re-type all of the entries
0
Comment
Question by:pstre
  • 2
  • 2
4 Comments
 
LVL 18

Assisted Solution

by:Victoria Yudin
Victoria Yudin earned 500 total points
ID: 40498794
Hi pstre,

I believe you should be able to copy from the test company back to live using the code below, assuming the following:
- the batch is still there
- there are no AA entries associated with this journal entry
- there are no MDA entries associated with this journal entry

There are notes inside the code, but just to make sure you look for them:
- replace LIVE with your live database name
- replace TEST with your test database name
- replace YourJE with Journal Entry #

insert LIVE..GL10000 --replace LIVE with your live company database
select
BACHNUMB, BCHSOURC, JRNENTRY, RCTRXSEQ, SOURCDOC, REFRENCE, TRXDATE, RVRSNGDT,
RCRNGTRX, BALFRCLC, PSTGSTUS, LASTUSER, LSTDTEDT, USWHPSTD, TRXTYPE, SQNCLINE,
GLHDRMSG, GLHDRMS2, TRXSORCE, RVTRXSRC, SERIES, ORPSTDDT, ORTRXSRC, OrigDTASeries,
DTAControlNum, DTATRXType, DTA_Index, CURNCYID, CURRNIDX, RATETPID, EXGTBLID,
XCHGRATE, EXCHDATE, TIME1, RTCLCMTD, NOTEINDX, GLHDRVAL, PERIODID, OPENYEAR,
CLOSEDYR, HISTRX, REVPRDID, REVYEAR, REVCLYR, REVHIST, ERRSTATE, ICTRX,
ORCOMID, ORIGINJE, ICDISTS, PRNTSTUS, DENXRATE, MCTRXSTT, DOCDATE, Tax_Date,
VOIDED, Original_JE, Original_JE_Year, Original_JE_Seq_Num, Correcting_Trx_Type,
Ledger_ID, Adjustment_Transaction
from TEST..GL10000 --replace TEST with your test company database
where JRNENTRY = YourJE -- replace YourJE with Journal Entry #

go

insert LIVE..GL10001 --replace LIVE with your live company database
select 
BACHNUMB, JRNENTRY, SQNCLINE, ACTINDX, XCHGRATE, DSCRIPTN, GLLINMSG, GLLINMS2,
CURRNIDX, GLLINVAL, ACCTTYPE, FXDORVAR, BALFRCLC, PSTNGTYP, DECPLACS, ORCTRNUM,
ORDOCNUM, ORMSTRID, ORMSTRNM, ORTRXTYP, OrigSeqNum, ORTRXDESC, DTA_GL_Status,
INTERID, RATETPID, EXGTBLID, EXCHDATE, TIME1, RTCLCMTD, CRDTAMNT, DEBITAMT,
ORCRDAMT, ORDBTAMT, DENXRATE, MCTRXSTT, LNESTAT, CorrespondingUnit
from TEST..GL10001 --replace TEST with your test company database
where JRNENTRY = YourJE -- replace YourJE with Journal Entry #

Open in new window

0
 

Accepted Solution

by:
pstre earned 0 total points
ID: 40499296
It is not a GL transaction.  These were payroll transactions inside of a payroll batch.
0
 
LVL 18

Expert Comment

by:Victoria Yudin
ID: 40500107
Sorry about that, I am not sure why I assumed GL. I don't have a lot of experience with Payroll transactions, so I would hesitate to offer the same type of script for it. Perhaps someone else will chime in and be able to help you with that.
0
 

Author Closing Comment

by:pstre
ID: 40681927
I didn't select my own comment -- I accepted Victoria's.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question