Crystal GLAMOUNTS and GLTRANS

 6 Replies
 0 Subscribed to this topic
 22 Subscribed to this forum
Sort:
Author
Messages
jrbledsoe001
Veteran Member
Posts: 91
Veteran Member
    I'm writing a Crystal ODBC report that represents data available on GL90 (ex Co, AU, Acct, FY, Period, beg bal, posted, and ending balance).  The report also shows JE detail.  Has anyone had sucess writing a Crystal report with both GLAMOUNTS and GLTRANS?  Let me know if I can pick your brain.

    Did you use a main report for GLAMOUNTS and a subreport for GLTRANS?  My db is humoungous so I need to pass the selection parameters into the select statment.  Did you write a monster SQL statement linking both GLAMOUNTS and GLTRANS?  How did you get the fiscal period to select the corresponding fields in GLAMOUNTS; example if period =1 then db_amount_01 + cr_amount_01?

    This report eventually will be burst in LBI.  Did you run into any pitfalls??

    Any pointers would be much appreciated!!

    joanna.bledsoe@jhsmh.org
    Char
    Veteran Member
    Posts: 62
    Veteran Member
      I've done tons of reports with GLTrans and GLAmounts and I normally make GLTrans an ondemand sub report several groupings deep (company, account, accounting unit for example). It's used in my experience to analyze transactions where a partcular amount is in question or more detail is needed. Are you not showing budget data on the report?
      jrbledsoe001
      Veteran Member
      Posts: 91
      Veteran Member
        Hi Char,  Thanks for responding to my post.  Now I know I'm going down the right path by creating a sub report, yeah! 

        This report does not deal with budget data (thank God). 

        As I said in my post, I'm dealing with a lot of records so I'm looking for ideas on how to pull the data in efficiently.  For an odbc report do you usually use tables or SQL statement?  I plan to use shared parameter variables between the main report and the sub report; any pitfalls??  Is it easier to just use tables and relate the tables with joins?

        John Henley
        Posts: 3353
          Here is the one that I sell; I tried both the subreport approach for the details, as well as a humongous SELECT. Both have their pros/cons, but humongous SELECT is hands-down much faster.

          Attachments
          Thanks for using the LawsonGuru.com forums!
          John
          Char
          Veteran Member
          Posts: 62
          Veteran Member
            I'd use tables and just make sure everything in your record selection is passing in your where clause. If it's not, there's normally a trick you can employ to make sure it will. Link the sub report to the main report but avoid shared variables - they process WhilePrintingRecords so they'll slow the report. If you pull as few records as possible on the on-demand sub report, you'll be more efficient so that's why you'll want to do it down in the drill down. Yes, I know what you mean about a lot of records, it's nothing to have half a million or more a month in GLTrans. Good luck and let me know if you have anymore questions.
            jrbledsoe001
            Veteran Member
            Posts: 91
            Veteran Member
              John,  Upon window shopping I found "The LawsonGuru.com store is currently closed for renovations...".  I sent you a private message to your LawsonGuru.com inbox.  I'm still learning how to use this fabulous forum which you have provided for us.
              John Henley
              Posts: 3353
                The store is currently unavailable; I will contact you via email.

                Thanks for using the LawsonGuru.com forums!
                John