Solved

GP 2010 User deleted a recurring batch

Posted on 2014-12-12
4
84 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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Use System DSN 6 82
CRM 2011 Default Lookup Values Not Connecting 3 55
Dynamics crm 5 51
Office 365 and use on Terminal Server - Licenses 2 52
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

947 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now