Login | Sign Up
 
  Search  



Site Map
 
HomeMy PagesMy ProfileMy MessagesMy FriendsMore MembersMy GroupsView GroupMore GroupsMy PurchasesAppsS3 AppsS3 FinancialsS3 HR/PayrollS3 ProcurementS3 Supply ChainM3 AppsEnterprise Asset Management Manufacturing OperationsFinancialsBPM/EPM/LBIDesign StudioEnterprise Reporting (Crystal)Microsoft Add-InsProcessFlow / BCISmart NotificationSmart OfficeTechDatabase ERDsData DictionaryApplication SecurityDevelopmentLawson 4GL Quick ReferenceDesign StudioDatabaseDB2OracleSQL ServerEnvironmentiSeriesUnixAIXWindowsLogan/IOSLSF 9M3 System Foundation PortalERDsDocumentationTips & TricksForumsJobsLawsonGuruLawsonGuru LetterLawsonGuru BlogWorthwhile ReadingLawson in the NewsUser RegistrationStoreStore AdminMy PurchasesStore FAQsSearchEngage Publish Search IndexerSearch ResultsSearch TipsArticlesAboutJohnContentUser ManagerBulk User ManagerBackupsMonitorVenexusVenexus Web ControlsViewArticleSignUp!LoginAdminSite SettingsTabsSecurity RolesUser AccountsVendorsSite LogBulk EmailFile ManagerRecycle BinLog ViewerSkinsLanguagesSite WizardAuthenticationSolutionsPageBlaster

Top 10 Posters
 
Tips on Using the LawsonGuru ForumsMaximize

LawsonGuru ForumsMinimize
Report showing actuals and budget
Last Post 07/28/2008 11:17 AM by John Henley. 11 Replies.
Printer Friendly
Sort:
PrevPrevNextNext
To join the discussion you need to register first. (Registration is free!) If you are already a registered user please login to join the discussion.
AuthorMessages
RumaUser is Offline
Private
Private
Veteran Member (132 points)
Veteran Member
Posts:75
Ruma

Send Message: Send Private Message

--
04/08/2008 04:49 PM  

I am supposed to create a report using crystal and not reportwriter where I am showing the actual units and budget. I am linking glunits and fbdetail. the only problem is there could be multiple budgets defined for the same period and when I link these 2 tables I am getting multiple rows. If I specify a budget no. then if tthere was an actual and no budget it does not get picked up.

Has anybody tried to link these 2 tables. i am curious as to how the linking was achieved if anyone can share.
Thanks in advance,

 

 



Chris MartinUser is Offline
Private
Private
Veteran Member (246 points)
Veteran Member
Posts:124
Chris Martin

Send Message: Send Private Message

--
04/08/2008 06:50 PM  
If I am understanding what you are trying to accomplish...

* Summarize the FDBDETAIL units fields for each FY, Co, AU, Acct, Sub Acct combination.
* Use the query above as an inline view for another sql query


k-rockUser is Offline
Private
Private
Veteran Member (275 points)
Veteran Member
Posts:140
k-rock

Send Message: Send Private Message

--
04/09/2008 04:58 PM  
Do what Chris says, but add Budget Nbr to that summarization. You should end up with 1 record for a Year, Period, Company, AU, Acct, and Budget Nbr.

To pick up data that exists for one table and not the other is a bit tricky. You could use left and right joins, then append unique records to a temp table and report off of it. Or you can start with GLNAMES or GLCHARTDTL to get the main dimension you want as rows (AU or Account), then left join that table to GLUNITS and FBDETAIL.

I think you could do a union as well, but I have not used that method.


CharUser is Offline
Private
Private
Basic Member (32 points)
Basic Member
Posts:16
Char

Send Message: Send Private Message

--
06/04/2008 03:56 PM  

You can't do a left join because you could have actuals and no budget or budget and no actuals.  You have to query actuals with a group by, do the same on budget and then union so you have to use a command.  The one below supports multi currency so you just need GL_Amounts instead of CU_Amounts

 

SELECT  
        A.COMPANY,
        A.Type,
        A.FISCAL_YEAR,
        A.ACCT_UNIT,
        A.ACCOUNT,
        A.DB_AMOUNT_01,
        A.CR_AMOUNT_01,
        A.DB_AMOUNT_02,
        A.CR_AMOUNT_02,
        A.DB_AMOUNT_03,
        A.CR_AMOUNT_03,
        A.DB_AMOUNT_04,
        A.CR_AMOUNT_04,
        A.DB_AMOUNT_05,
        A.CR_AMOUNT_05,
        A.DB_AMOUNT_06,
        A.CR_AMOUNT_06,
        A.DB_AMOUNT_07,
        A.CR_AMOUNT_07,
        A.DB_AMOUNT_08,
        A.CR_AMOUNT_08,
        A.DB_AMOUNT_09,
        A.CR_AMOUNT_09,
        A.DB_AMOUNT_10,
        A.CR_AMOUNT_10,
        A.DB_AMOUNT_11,
        A.CR_AMOUNT_11,
        A.DB_AMOUNT_12,
        A.CR_AMOUNT_12

FROM

(SELECT GLA.COMPANY,
        'Actuals' Type,
                GLA.FISCAL_YEAR,
                GLA.ACCT_UNIT,
                GLA.ACCOUNT,
                SUM(GLA.DB_AMOUNT_01) DB_AMOUNT_01,
                SUM(GLA.CR_AMOUNT_01) CR_AMOUNT_01,
                SUM(GLA.DB_AMOUNT_02) DB_AMOUNT_02,
                SUM(GLA.CR_AMOUNT_02) CR_AMOUNT_02,
                SUM(GLA.DB_AMOUNT_03) DB_AMOUNT_03,
                SUM(GLA.CR_AMOUNT_03) CR_AMOUNT_03,
                SUM(GLA.DB_AMOUNT_04) DB_AMOUNT_04,
                SUM(GLA.CR_AMOUNT_04) CR_AMOUNT_04,
                SUM(GLA.DB_AMOUNT_05) DB_AMOUNT_05,
                SUM(GLA.CR_AMOUNT_05) CR_AMOUNT_05,
                SUM(GLA.DB_AMOUNT_06) DB_AMOUNT_06,
                SUM(GLA.CR_AMOUNT_06) CR_AMOUNT_06,
                SUM(GLA.DB_AMOUNT_07) DB_AMOUNT_07,
                SUM(GLA.CR_AMOUNT_07) CR_AMOUNT_07,
                SUM(GLA.DB_AMOUNT_08) DB_AMOUNT_08,
                SUM(GLA.CR_AMOUNT_08) CR_AMOUNT_08,
                SUM(GLA.DB_AMOUNT_09) DB_AMOUNT_09,
                SUM(GLA.CR_AMOUNT_09) CR_AMOUNT_09,
                SUM(GLA.DB_AMOUNT_10) DB_AMOUNT_10,
                SUM(GLA.CR_AMOUNT_10) CR_AMOUNT_10,
                SUM(GLA.DB_AMOUNT_11) DB_AMOUNT_11,
                SUM(GLA.CR_AMOUNT_11) CR_AMOUNT_11,
                SUM(GLA.DB_AMOUNT_12) DB_AMOUNT_12,
                SUM(GLA.CR_AMOUNT_12) CR_AMOUNT_12
 FROM   "LAWSON_PROD"."dbo"."vw_GL_CU_AMOUNTS" GLA 
 WHERE  (GLA.ACCOUNT>=400000 AND GLA.ACCOUNT<=999999)
 AND (('{?Variance Type}' = 'Prior Year' AND GLA.FISCAL_YEAR>={?Fiscal Year}-1 and GLA.FISCAL_YEAR<={?Fiscal Year})  or
  ('{?Variance Type}' = 'Plan' AND GLA.FISCAL_YEAR={?Fiscal Year}))
 AND GLA.CURRENCY ='{?Currency}'
GROUP BY
                GLA.COMPANY,
                GLA.FISCAL_YEAR,
                GLA.ACCT_UNIT,
                GLA.ACCOUNT
UNION ALL

SELECT FBD.COMPANY,
                'Budget' Type,
                FBD.FISCAL_YEAR, FBD.ACCT_UNIT, FBD.ACCOUNT,
                SUM(FBD.DB_AMOUNT_01) DB_AMOUNT_01,
                SUM(FBD.CR_AMOUNT_01) CR_AMOUNT_01,
                SUM(FBD.DB_AMOUNT_02) DB_AMOUNT_02,
                SUM(FBD.CR_AMOUNT_02) CR_AMOUNT_02,
                SUM(FBD.DB_AMOUNT_03) DB_AMOUNT_03,
                SUM(FBD.CR_AMOUNT_03) CR_AMOUNT_03,
                SUM(FBD.DB_AMOUNT_04) DB_AMOUNT_04,
                SUM(FBD.CR_AMOUNT_04) CR_AMOUNT_04,
                SUM(FBD.DB_AMOUNT_05) DB_AMOUNT_05,
                SUM(FBD.CR_AMOUNT_05) CR_AMOUNT_05,
                SUM(FBD.DB_AMOUNT_06) DB_AMOUNT_06,
                SUM(FBD.CR_AMOUNT_06) CR_AMOUNT_06,
                SUM(FBD.DB_AMOUNT_07) DB_AMOUNT_07,
                SUM(FBD.CR_AMOUNT_07) CR_AMOUNT_07,
                SUM(FBD.DB_AMOUNT_08) DB_AMOUNT_08,
                SUM(FBD.CR_AMOUNT_08) CR_AMOUNT_08,
                SUM(FBD.DB_AMOUNT_09) DB_AMOUNT_09,
                SUM(FBD.CR_AMOUNT_09) CR_AMOUNT_09,
                SUM(FBD.DB_AMOUNT_10) DB_AMOUNT_10,
                SUM(FBD.CR_AMOUNT_10) CR_AMOUNT_10,
                SUM(FBD.DB_AMOUNT_11) DB_AMOUNT_11,
                SUM(FBD.CR_AMOUNT_11) CR_AMOUNT_11,
                SUM(FBD.DB_AMOUNT_12) DB_AMOUNT_12,
                SUM(FBD.CR_AMOUNT_12) CR_AMOUNT_12
 FROM  LAWSON_PROD.dbo.FBDETAIL FBD
 WHERE  (FBD.ACCOUNT>=400000 AND FBD.ACCOUNT<=999999)
   AND     FBD.FISCAL_YEAR={?Fiscal Year}
   AND     FBD.BUDGET_NBR={?Budget Number}
 GROUP BY
                FBD.COMPANY,
                FBD.FISCAL_YEAR,
                FBD.ACCT_UNIT,
                FBD.ACCOUNT

 

 



John HenleyUser is Offline
Private
Private
Veteran Member (3333 points)
Veteran Member
Posts:1677
John Henley

Send Message: Send Private Message

--
06/06/2008 07:05 PM  

I have added a new report to the LawsonGuru store (http://www.lawsonguru.com/store.aspx) which reports GL Actuals vs. Budgets.  Here's a sample.


Attachment: 1665416871.jpg


Thanks for using the LawsonGuru.com forums!

John
Barry GhotraUser is Offline
Private
Private
Advanced Member (92 points)
Advanced Member
Posts:49
Barry Ghotra

Send Message: Send Private Message

--
06/07/2008 01:25 PM  
John, if we were to buy this report, would we be able to modify to add additional columns or logic?

Thanks.


John HenleyUser is Offline
Private
Private
Veteran Member (3333 points)
Veteran Member
Posts:1677
John Henley

Send Message: Send Private Message

--
06/07/2008 04:01 PM  

Certainly, in fact I expect most clients will want to tailor a purchased report to their own liking. See http://www.lawsonguru.com/store/storefaqs.aspx for more.

This particular report uses a huge SQL statement, specific to the native database.




Thanks for using the LawsonGuru.com forums!

John
Barry GhotraUser is Offline
Private
Private
Advanced Member (92 points)
Advanced Member
Posts:49
Barry Ghotra

Send Message: Send Private Message

--
06/09/2008 11:04 AM  

Thanks. What versions of Crystal is it compatbile with?



John HenleyUser is Offline
Private
Private
Veteran Member (3333 points)
Veteran Member
Posts:1677
John Henley

Send Message: Send Private Message

--
06/09/2008 11:26 AM  
Re: Report showing actuals and budget (e41bdc47-73e9-45f4-be07-737ce81138f3)

I create them using Crystal XI R2, but they should work with Crystal 9 and 10 (whenever Crystal added the support for the SQL via "Add Command").
John Henley




Thanks for using the LawsonGuru.com forums!

John
Barry GhotraUser is Offline
Private
Private
Advanced Member (92 points)
Advanced Member
Posts:49
Barry Ghotra

Send Message: Send Private Message

--
07/24/2008 02:23 PM  
John, one more question, does this report work if you simply load your budget using an external interface and then run FB165 or you have to have Lawson's budget and planning module installed as well?


John HenleyUser is Offline
Private
Private
Veteran Member (3333 points)
Veteran Member
Posts:1677
John Henley

Send Message: Send Private Message

--
07/25/2008 01:23 PM  
It works if you load via FB165 (it reads from FBDETAIL).



Thanks for using the LawsonGuru.com forums!

John
John HenleyUser is Offline
Private
Private
Veteran Member (3333 points)
Veteran Member
Posts:1677
John Henley

Send Message: Send Private Message

--
07/28/2008 11:17 AM  

I have added a "new & improved" version of that report to the LawsonGuru.com store that reports actuals compared to 2 different budgets (i.e. if you are using both a forecast and an operating budget).  It also reports based on the chart of accounts levels, and has additional company / accounting unit rollup options. 




Thanks for using the LawsonGuru.com forums!

John
To join the discussion you need to register first. (Registration is free!) If you are already a registered user please login to join the discussion.

Active Forums 4.1
Forum Postings...Minimize
RE: Modifying HTML in 9.0
07/03/2009 11:03 AM
I usually copy and paste the description of the pa

Security Administrator won't connect.
07/03/2009 10:36 AM
Once in a while, security administrator won't conn

RE: Two Questions:
07/03/2009 10:07 AM
what programs are doing this?

RE: Lawson Support - Staffing Question
07/02/2009 09:02 PM
The documentation library from Lawson, the support

RE: User 'lawson' SSO Password
07/02/2009 02:26 PM
Matt - thank you for the information. I'll change

ed810 not pulling tax
07/02/2009 12:40 PM
we are currently 8.03 sitting on 9.0lsf and use Gh

RE: Crystal for Financial Reporting
07/02/2009 11:17 AM
However, it is only for summary accounting units,

RE: Sarbox Compliance
07/02/2009 08:40 AM
John, We piloted the security dashboard with AV

RE: Work file paths
07/01/2009 05:04 PM
"We have deleted the job going to the wrong direct

RE: CSV Export
07/01/2009 02:00 PM
Are you using portal? If so run the wh130 to crea

Home  |  Tips & Tricks  |  Forums  |  Jobs  |  Store  |  About