Solved

GP 2010 User deleted a recurring batch

Posted on 2014-12-12
4
81 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
Comment Utility
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
Comment Utility
It is not a GL transaction.  These were payroll transactions inside of a payroll batch.
0
 
LVL 18

Expert Comment

by:Victoria Yudin
Comment Utility
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
Comment Utility
I didn't select my own comment -- I accepted Victoria's.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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.
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

772 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

11 Experts available now in Live!

Get 1:1 Help Now