Solved

GP 2010 User deleted a recurring batch

Posted on 2014-12-12
4
95 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

752 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