
Saturday, June 27, 2009
Stored Procedure in WebI Reports Part 3

Thursday, June 25, 2009
Scope of Analysis and Custom Hierarchies
Wednesday, June 24, 2009
Stored Procedure in WebI Reports Part 2
+1B.jpg)
Stored Procedure in WebI Reports on BOE Part 1
Monday, June 15, 2009
On the fly Case Statements in Web Intelligence Reports
Problem: Due to having a little flaw in the data (in database) duplicate rows are being produced in (WebI) reports.
(1) Solution: Use CASE statements
> 122 Unique WorkItem subtypes
One of the the WorkItem SubTypes has a duplicate
'Problematic Payment - Overage '
'Problematic Payment - Overage'
One with and an extra space.
In the WebI Report - it is the following Dimension: (click view SQL)
WORKITEM.WORKITEMSUBTYPE, (here WORKITEMSUBTYPE is the Dimension - i.e. Column)
RESOLUTION: Go to
CASE WHEN WORKITEM.WORKITEMSUBTYPE NOT IN ('Problematic Payment - Overage ' ,'Problematic Payment - Overage')
> anything other than the two types above
THEN WORKITEM.WORKITEMSUBTYPE
> use the original value from database
ELSE 'Problematic Payment - Overage'
> otherwise, use 'Problematic Payment - Overage' - meaning, combine/sum the corresponding values of those two cells into one cell
END WORKITEMSUBTYPE,
> finish this (Case statement) logic and name this column as WORKITEMTYPE
-- WORKITEM.WORKITEMSUBTYPE
> I commented out the existing Dimension
This way, my column name is Identical to the Dimension name and thus the report runs fine and groups those two types into a single cell and eliminates the duplicate row.
Note: when you hit 'validate' - make sure, it prompts you with new LOVs (lis of values); else, it doesn't gets rid of the prompts. I've seen the exact same behavior in Crystal Reports too.
2nd solution: though this is a temporary fix, the same exact Case needs to be applied to our Universe so that it the duplicate problem will be eliminated in all WebI reports.
3rd / best solution: request DBAs so they permanently cleanse this data
On the fly Case Statements in Web Intelligence Report: Image Walkthrough
1) Duplicate row located

2) Go to Edit Query > SQL (view SQL) : Locate the corresponding dimension / column

3) Insert your Case statement and comment out the dimension

4) Validate

5) Make sure, it prompts you with new LOVs (list of values); else, it gets rid of the prompts (and runs off of cached LOVs, I think). I've seen the exact same behavior in Crystal Reports too.

6) Verify validation

7) Duplicate row is summed to original row

8) Before and after shots
Saturday, June 13, 2009
-maxChildReqs Business Objects Job Server Child settings
If you are a Business Objects Administrator, you should definitely have a look at this. Whenever a report, be it WebI or Crystal, is scheduled, it is processed by it's respective Job Server. And if you or any BOE users with 'schedule' or higher rights need to schedule any report for multiple users, i.e. which generates multiple instances, you should use the " -maxChildReqs " function at the end of the command line of the job server(s) from Central Configuration Manager (CCM) of BOE XI. Failure to do so will affect your Business Objects environment due to Job Server Childs (JobServerChild.exe) not releasing the system memory. JobServerChilds are generated from Job Servers to process multiple report requests. However, they do not terminate or shut down right away without the -maxChildReqs
I've gone ahead and made a simple video showing the before and after behavior of a BOE test environment consisting of 1 Crystal Reports Job Server in a dual core server. Crystal Report Job Servers can only process a maximum of 5 simultaneous jobs per CPU and since we have dual core, 2 CPUS-our max would be 10. I ran a simple Crystal Report for about 25 people to see how the job server handles the situation. Enjoy...
The following information is taken from "BusinessObjects XI Release Notes". Google it and read it from SAP site for further information.
...
The following lists information on job server settings:
• -maxJobs
Sets the maximum number of concurrent jobs processed by one job
server.
• -type
Presets the job server type. Can be OUTPROC or MIXEDPROC.
OUTPROC causes the job server children to shutdown after every
job (like CE10 report job servers), MIXEDPROC causes the job
server children to shutdown after every 100 jobs.
• -maxChildReqs
Sets the maximum number of jobs processed by one job server child
before it shuts down and restarts (in case you want a to use a
number between 1 [OUTPROC] and 100 [MIXEDPROC])
Job server children will also automatically shut down if left unused for a period longer than 2 hours.
...
Thursday, May 28, 2009
How to Email Scheduled Reports in Business Objects
1) We have a typical Web Intelligence report here and we're viewing it's location in Infoview so we can run it here.

2) Let's run it, no prompt or anything like that, plain and simple.

3) Let's go to Central Management Console (CMC) and schedule this report to be emailed to a user.

4) Move onto "Schedule" tab.

5) Let's set it to Microsoft Excel format, i.e. Schedule this report to be delivered / emailed in MS Excel format.

6) Destination 1: Now we need to up the Destination for this to be scheduled report. In this case, we'll be Emailing this report. From the drop down menu, select "Email (SMTP)". Then click on the radio button next to the "Set the values to be used at schedule time here:" .
Enter an email address to be sent "From" and email address(es) to be sent "To", along with CCs if any.

7) Destination 2 - Go / scroll down a bit. In the "Subject" - we'll select "Title" from the drop down menu next to where it says "Add a placeholder for a variable property"and simply "Add" it so that the recipient(s) can see the Title of the report as their Subject line. You can select any of the other available properties like ID, Owner, Datetime, User Full Name, Email Address. I will also check the box for "Attach object instance to email message", so that a copy of the report is also attached to the recipients emails. I mean, what's the point of emailing from Business Objects users, if there are no attachments right?

8) Let's click on "Schedule" once more and we'll just do a one time schedule to run now. You can of course, and will most likely will have to schedule as per the user requirements, be it daily, weekly, monthly or based a some specific dates selected in a custom Calendar (I'll try to create a mini tutorial on how to schedule repors using Calendars, someday; it's pretty easy).

9) So it's "Pending", sometimes you may see "Pending" or the status just may show as "Running".

10) Since it took only 10 seconds, by the time I hit "Refresh" the report already "Failed" and thus I couldn't see the "Running" status.

11) Upon clicking on "Failed", we see the error at the bottom that says, "Error Message: destination DLL disabled. CrystalEnterprise.Smtp:" .

12) That basically means that the Email (SMTP) is not enabled for the appropriate job server; in this case, Web Intelligence Job Server(s) because we are scheduling a WebI report to be emailed. Let's go to "Servers" and enable the EMAIL destination for the available Web Intelligence Job Servers.

13) Go to the "Destinations" tab and we see, Email (SMTP) is RED flagged - i.e. disabled. Go ahead, click on the box left of it and hit "Enable".

14) Now click on "Email (SMTP)" and set up the email properties, including Domain, Server, From, To and any other properties - you'll want to consult with one of you system admins / analyts at this stage.

15) Scroll down and add the Title as the Subject also select "Attach object instance to email message" -- this will be the default behavior for all outgoing emails using this Web Intelligence Job Server.
*** Remember, if you have multiple WebI Job Servers, you'll have to enable all of their Email (SMTP) from the Destinations tab just like above.

16) Let's go back to the report in CMC.

17) And we will reschedule it once more.

18) There's our initial "Failed" one and right below it, is our "Pending" current report.

19) And success! This is the actual email and the attached report in Excel Format. Look at the subject, it says "WebI Email Test" -- and that's the title of this report.

So, there you go. That was a walk through of how to set up the Email feature in Business Objects Enterprise XIR2 so that reports can be scheduled and report instances can be emailed out to recipients.







+2A.jpg)
+2B.jpg)
+2C.jpg)
+3.jpg)
+4.jpg)
+5B.jpg)
+6.jpg)
+1C.jpg)