Register
Login
 
  Search  
Site Map
 
HomeAppsS3 AppsS3 FinancialsS3 HR/PayrollS3 Supply ChainS3 ProcurementM3 AppsEnterprise Asset Management Manufacturing OperationsFinancialsBPM/EPM/LBIDesign StudioEnterprise Reporting (Crystal)Microsoft Add-InsProcessFlow / BCISmart NotificationTechDatabase 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 TipsArticle ViewerJohnContentUser ManagerBackupsVenexusVenexus Web ControlsMonitorAboutAdminSite SettingsTabsSecurity RolesUser AccountsVendorsSite LogBulk EmailFile ManagerRecycle BinLog ViewerSkinsLanguagesSite WizardAuthenticationSolutionsPageBlasterWhat's New
Top 10 Posters
 
Share:email email|delicious.com delicious.com|digg digg|technorati technorati|reddit reddit|stumbleupon stumbleupon|google bookmarks google bookmarks|yahoo bookmarks yahoo bookmarks|slashdot slashdot|live live|ma.gnolia ma.gnolia
Tips on Using the LawsonGuru ForumsMaximize

LawsonGuru ForumsMinimize
Subject: Report showing actuals and budget
Prev Next
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
Frequent Member
Posts:10

4/08/2008 3: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
Super Member!
Posts:101

4/08/2008 5: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
Frequent Member
Posts:99

4/09/2008 3: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
New Member
Posts:2

6/04/2008 2: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
Super Member!
Posts:1235

6/06/2008 6: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.







Thanks for using the LawsonGuru.com forums!

John
Barry GhotraUser is Offline
Frequent Member
Posts:44

6/07/2008 12: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
Super Member!
Posts:1235

6/07/2008 3: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
Frequent Member
Posts:44

6/09/2008 10:04 AM  

Thanks. What versions of Crystal is it compatbile with?

John HenleyUser is Offline
Super Member!
Posts:1235

6/09/2008 10: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
Frequent Member
Posts:44

7/24/2008 1: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
Super Member!
Posts:1235

7/25/2008 12: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
Super Member!
Posts:1235

7/28/2008 10: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.



ActiveForums 3.7
Forum Postings...Minimize
S3 Systems Administration
RE: LDAP Bind issue
10/10/2008 4:15 PM
Since your ldap is already bin...
Lawson Business Intelligence/Reporting/Crystal
RE: Crystal report links error?
10/10/2008 3:49 PM
Checked with the Database guru...
S3 Security
LDAP on Lawson 8.0.1.3 After Domain Move
10/10/2008 2:50 PM
Lawson 8.0.1.3 SQL Server 20...
S3 Security
Application Event ID 32770
10/10/2008 2:04 PM
We have lsf9.0.0 running and r...
S3 Systems Administration
LDAP Bind issue
10/10/2008 10:39 AM
I just completed an LDAP Bind ...
S3 Customization/Development
RE: Process flow Integration vs custom integration
10/09/2008 5:15 PM
ProcessFlow Integrator does no...
S3 Customization/Development
Process flow Integration vs custom integration
10/09/2008 12:44 PM
We are going to be connecting ...
S3 Procurement
Symbol Hand Held remote desktop software
10/09/2008 11:03 AM
Does anyone know if the softwa...
S3 Systems Administration
RE: BouncyCastle install
10/09/2008 10:53 AM
Jimmy, I was able to get it...
S3 Customization/Development
RE: Customizing Plan Names in ESS Annual Benefits Enrollment
10/08/2008 3:34 PM
John, After taking a deeper...
S3 Systems Administration
RE: LDAP bind - Lawson-delivered service accounts
10/07/2008 9:25 AM
With the exception of pfadmin,...
S3 HR/Payroll/Benefits
MSS Job Reqs
10/07/2008 9:24 AM
We are implementing MSS Job Re...
S3 Systems Administration
LDAP bind - Lawson-delivered service accounts
10/07/2008 8:59 AM
To all, I recently complete...
S3 Financials
RE: AR Reconciliation
10/07/2008 8:33 AM
You need to look at unassigned...
S3 Financials
AR Reconciliation
10/07/2008 8:15 AM
In theory, shouldn't the AR250...
Home  |  Forums  |  Jobs  |  Store  |  About