WEBI Report - Exception aggregation..
Hi,
I'm new to WEBI and need help in figuring out how to achieve below reporting need.. We've below data set.
DocNo DocItem Material ConditionType Amount
1000 001 12345 XXXX 100
1000 001 12346 XXXX 100
1001 001 12345 XXXX 50
Report o/p should show
ConditionType Amount
XXXX 150
Same amount is always repeated for the different materials for the combination of DocNo, DocItem and ConditionType. Requirement is to calculate amount at condition type by considering amount only once ($100) for document 1000 and ($50) for document 1001.
Is it possible in WEBI?
Any help is greatly appreciated.
Thanks,
Milind
Thanks Sunil / Muiz,
I tried using the formula provided by you. I believe you mean CondType instead of Material in your formula. It gives me MAX value when I'm at detail level within the data set. It seems not working if I remove the column Material from the report. It aggregates and gives me SUM as $250 instead of $150.
Requirement is to Consider MAX(amount) value in DocNo, DocItem, ConditionType and sum it up at ConditionType level.
Any idea..Do I also need to change the measure property as suggested by Muiz in addition to your formula?
Thanks,
Milind
Similar Messages
-
Webi report data aggregation problem
Hi Gurus,
I have a problem when running webi report upon BI query.
In infoview, report shows as below,
Material Plant Sales
A 001 100
A 002 100
B 001 120
If I drap Plant column out, it shows,
Material Sales
A 100
B 120
Material A's sales is 100, not 200 as in BI rsrt1.
What might be the problem, any clue?Hi Rongliang,
I've checked it, it is set as you said.
The problem still exists.
Another thing is , we got 3 dimensions, Material, Sales Org, Plant,
Key figure aggregates well for Sales Org and Plant, but not working for Material.
Any clue? -
BO Webi report giving WIJ 20003 exception
Hi,
I have a webi report which consists of some calculated fields based on Dataprovider SQL. A Report variable has been created to compare two columns and if they are equal then value is set to 1s otherwise, 0s. Based on the 1s I get, I want to display these rows only i.e. I have placed a filter where variable vaule is 1s. When I try to run the report, it gives me the following exception/error:
'Unable to get the first page of the current report WIJ 20003 and details :
Stack trace:
java.lang.RuntimeException: Empty result
at com.businessobjects.wp.tc.result.ResultXmlReport.displayPages(Unknown Source) at com.businessobjects.wp.tc.TCMain.updateXmlDocument(Unknown Source) at com.businessobjects.wp.tc.TCMain.updateXmlDocument(Unknown Source) at com.businessobjects.wp.tc.TCMain.errorOnResultPage(Unknown Source) at com.businessobjects.wp.tc.thread.SubmitRSRunner.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Variable is Var Display=If([Var Col1]=[Var Col2];1;0)
and then using Filter Pane add this variable equal to 1.
Please advise.
Thanks
Sam.Not sure really if is it because of blank cells. I made a copy of the original report to identify what's the issue. what i observed was i refreshed the report successfully then it didn't give me any errors & i didn't see any #Syntax error in any column after i refreshed the report. But once i refreshed the report and saved it, then next time when you open the report in modify mode or schedule the report you will see this error.
Later i have opened the query in Modify mode & edited the query then i saw a pop up saying unresolvable objects error. Then i ran the query again and saved the report, closed it & reopened the webi report. Then i didn't see this error again. Also verified by scheduling the report, i was able to open the instance without any errors.
So the conclusion is, because you have some unresolvable objects in the query when you refresh the report and save it, the report gets corrupted and then when you reopen the webi report next time you will see this "ERR: WIJ 20003" error.
Hope this helps others saving their time..
Mark it as helpful/correct answer if this help anyone.
Regards,
Naveen -
Hi Gurus,
When I executed a Web Report, I got the following Exception
CX_SY_RANGE_OUT_OF_BOUNDS
when it is filtered for September month report is working fine, but when filtered for October month got the following message
Messages:
An exception with the type CX_SY_RANGE_OUT_OF_BOUNDS occurred, but was neither handled locally, nor declared in a RAISING
Part-field access (offset = 4, length = 2) to a data object of the size 3 exceeds valid boundaries.
Could anyone please tell me how to solve this issue.
Thanks in advance.
MadhusudhanGood afternoon,
The following SAP Notes may be helpful for you ...
1240222 Filter value from compound characteristic is not displayed
1266170 Exception CX_SY_RANGE_OUT_OF_BOUNDS
1100955 RS_EXCEPTION000 in parallel query execution
Regards,
Karen -
How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?
Hi All,
We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI.
Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.Hi,
Here you go..
1) Go to table RSZCALC and get list of ELTUID where AGGREXC is not INITIAL and AGGRCHA is not initial; now you get only exception aggregation set based on some chars. Also you can further add STEPNR = 1 since your intention is just to get query name , not the calculation details; this will reduce number of entries to lookup and save DB time for next steps.
Here you will get list of exception aggregation UUID numbers from which you can get properties from RSZELTDIR.
2) Pass list of RSZCALC-ELTUID to table RSZELTXREF - TELTUID and get list of RSZELTXREF -SELTUID - this table stores query to it's elements maping kind.
3) Now again pass RSZELTXREF - SELTUID into same table but into different field RSZELTZREF - TELTUID and get RSZELTXREF - SELTUID
This step you get query reference sheet or column or query general UUID for next step.
4) Pass list of RSZELTXREF - SELTUID into RSZELTDIR - ELTUID with DEFTP as 'REP'. Now you get list of query names in RSZELTDIR - MAPNAME and description in TXTLG.
Note: you can also get the reference chars used for exception aggregation from RSZCALC - AGGRCHA field.
Hope this helps.
Please keep in mind, it might take more time depends on how many query elements you have in the system...
Comments added for better DB performance by: Arun Thangaraj -
Reporting-Keyfigure Properties-Enhance -Aggregation-Exception aggregation T
Hi All,
What is the use of Keyfigure properties-enhance-aggregarion-exception aggregation use in Bex reporting.
I can see values like Exception if more than one record occurs,Exception if only one record occurs,Counting values and so on.
Can any give me clear example please.
if you have any documents please send to [email protected]
ThanksHi.
I take it you have read through the SAP Help documents for this? They include examples, generally I find it pretty helpful when you have a question as specific as yours... here's the link for the area you are looking at.
http://help.sap.com/saphelp_nw04s/helpdata/en/9d/76563cc368b60fe10000000a114084/frameset.htm
Patrick -
Bex Percentage Indicator in the WebI report (# Multivalue)
Hi All!
I'm having a difficulty to produce a Bex percentage indicator to a WEB I report.
This is the result of my query:
Cycles
Qty1
Qty2
(Qty1%AQty2)
1
100
200
50%
2
200
200
100%
3
300
300
100%
4
400
400
100%
So far the report remains perfect.
When I remove Cycles dimension report, but let the cycles 1,2,3 and 4 in the Query filter, the result is # Multivalue for Qty1%AQty2) measure.
We tried all kinds of aggregation in BO or in Bex query, and The Sum aggregation results the sum of the percentages, when need is that the formula is made again with the totals.
What we need is it looks like this:
Qty1
Qty2
(Qty1%AQty2)
800
1100
72%
Is there any way to make this in Bex and then translate to BO? The formula should be Sum (qte1) / Sum (qty2) *100?
Or some syntax, that the bo understands what he need to regroup and give the right percentage?
The final user needs the indicator create in the Universe, not in the report. (In the report works, but not in the Universe measure ).
I donu2019t know if you get the idea, but I am available for any doubts.
Specification:
SAP BO XI r3
SAP BW 7.0
Tks a lot!
LiviaHave you tried:
= ( sum([Qty1]) / sum ([Qty2]) ) * 100
or...
= ( sum([Qty1]) ForAll [Cycles] / sum ([Qty2])ForAll [Cycles] ) * 100
You could create some global CKF (creating CKF as local structure formula will not work) in BEx. Go to properties, calculation, Calculate Results As... Sum. You may need to use exception aggregation. Find a characteristic that is the same value for all cycles and use that as the exception aggregation reference characteristic. Using BEx may be the best idea if you have a high volume of records since Webi performance on high volumes is not great. -
Analysis Office vs Webi report ---Bex query Data mismatch
I have one Bex query.
I insterted the query in Analysis office for Microsoft edition, and its pulling 985 records, but when i inserted the bex query in Webi report its pulling only 27 records. Any body faced similar problem, explain the solution..?
Using BICS connction for webi report development.
Environment: BI 4.1 SP5
Anlaysis office version : 1.4 SP10Hi Ingo,
If we make it database delegated then the Webi query returns no results. (Blank results). Moreover there is no exception aggregation
We have tried the following and getting the result correctly,
In the Bex Query We had a Time variable which was based on SAP exit. We removed the SAP exit variable from Bex Query and restricted the period for atime range.
Then created a Prompt in Webi report for the time
The result is matching.
But still failed to undrstand this because other queries which have SAP exit variables works fine.
Still working around for a convincing solution for this.. Will let you know
Thanks and Regards
Rajesh -
Want to schedule WebI report for End date of Prior Month
Hello Experts,
We have WebI report created on top of Bex Query, We have key date as prompt for the report. Can we schedule the webi report for key date as last date of prior month, so if current month is February, my key date should be Jan 30 2011. I am not sure if this is possible?
Thanks,
RaviYou need to apply two FM to get the end day of the month.
First you need to apply FM MONTHS_PLUS_DETERMINE. This will give you the date after 3 months.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
MONTHS = 3 " << for 3 months
OLDDATE = l_start_Date " << 12/01/2007
IMPORTING
NEWDATE = l_3_Date. " << 02/01/2008
Then call the FM RP_LAST_DAY_OF_MONTHS . this will give you the end date of the month
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
day_in = l_3_Date " << 02/01/2008
IMPORTING
last_day_of_month = l_3_Date " < 02/29/2008
EXCEPTIONS
day_in_no_date = 1
OTHERS = 2.
Call both FMs again to get your another date(after 4 months).
Regards,
Naimesh Patel -
Linking a WEBI report through hyperlink in a webpage using open document
Hi All,
I have a hyper link in a web page which when clicked should open a WEBI report. I created it using the open document feature.
Once clicking on the link, InfoView login credential page is displayed. After logging in the report runs.
My client does not want the login page to be displayed since most of the users does not remember their password (since SSO is implemented).
He wants to bypass this login page so that most of the users can directly view the reports.
Question:
Is there a way to achieve this i.e without asking for login credentials or by passing this?
Possibilities :
1: To create ID's for all the people (which I think is not a feasible option in my project)
2: Create a guest account with minimum privileges and share the password with all the users.
Note:
1: I use BO XI R 3.1.
2: No SDK is installed to do any programming.
Any suggestion are most welcome.
Thanks in advance
ShreyasHi Shreyas,
Manual Easy Way for doing the activity in SAP Business Objects 4.0:
This method is useful if we have a special system account that we want everyone to use.
You will notice that all we do is generate a logon token using the appropriate username, password and CMS variables. Then we append the token onto ivsLogonToken.
Note: The numbers on the url after /BOE/portal represents the timestamp of the last patch or install. You can put whatever you want under the number section and Business Objects will automatically redirect to the appropriate start.do
Step I:
Go to the SAP BusinessObjects\Tomcat6\webapps\BOE\WEB-INF\eclipse\plugins\webpath.InfoView directory and edit custom.jsp
Step II:
You can copy the contents from the custom.jsp that I’ve provided below to your custom.jsp.
Cutom.JSP File
<%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
<%@ page import="com.crystaldecisions.sdk.framework.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.security.*"%>
<%@ page import="java.net.*"%>
<%@ page import="com.crystaldecisions.enterprise.*"%>
<%@ page import="com.crystaldecisions.sdk.plugin.admin.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="com.businessobjects.webutil.Encoder" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%
//BO Session and redirect to Infoview
IEnterpriseSession enterpriseSession;
/* * Set Enterprise Logon credentials. */
final String BO_CMS_NAME = "bi4server";
final String BO_AUTH_TYPE = "secEnterprise";
final String BO_USERNAME = "Daya";
final String BO_PASSWORD = "admin@123";
ILogonTokenMgr logonTokenMgr;
String defaultToken = "";
* Log onto Enterprise
boolean loggedIn = true;
try {
//Create session token
enterpriseSession = CrystalEnterprise.getSessionMgr().logon(Daya,admin@123, BI4SERVER,Enterprise);
logonTokenMgr = enterpriseSession.getLogonTokenMgr();
defaultToken = logonTokenMgr.createWCAToken("", 20, 1);
//Redirect with token attached to the ivsLogonToken parameter
response.sendRedirect("http://"+BO_CMS_NAME+":8080/BOE/portal/1205291547/InfoView/logon/start.do?ivsLogonToken="+Encoder.encodeURL(defaultToken));
catch (Exception error)
loggedIn = false;
out.println(error);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
Edit the username,Password & BOBJ Server Name'in BOLD Letter
Step III:
Stop tomcat, then delete contents in the SAP BusinessObjects\Tomcat6\work directory.
Then start tomcat again and the work directory will be regenerated with new code.
Step IV:
Trusted Authentication:
Trusted Authentication is a component of Enterprise authentication that integrates with third-party single sign-on solutions, including Java Authentication and Authorization Service (JAAS). Applications
that have established trust with the Central Management Server can use Trusted Authentication to allow users to log on without providing their passwords.
This method is really cool because users don’t even have to know their passwords. Basically with this method you can log into another system and if that system has the appropriate user name, you can pass it to the custom.jsp and then it will log you into BI Launchpad.
In addition, you don’t need to create any java code for the enterprise token setup.
Step V:
In the CMC, go to Authentication, then select Enterprise. Check Trusted Authentication is enabled, then click on New Shared Secret. Finally download the shared secret key and keep it somewhere secure
Step VI:
Copy global.properties from <INSTALLDIR>\SAP BusinessObjects Enterprise XI 4.0\warfiles\webapps\BOE\WEB-INF\config\default into <INSTALLDIR>\SAP BusinessObjects Enterprise XI 4.0\warfiles\webapps\BOE\WEB-INF\config\custom. Then using Notepad or another text editing utility, edit the following properties
sso.enabled=true
trusted.auth.user.retrieval=WEB_SESSION
trusted.auth.user.param=UserName
trusted.auth.shared.secret=<secret code from properties file you created in step 2>
Step VII:
Go to the SAP BusinessObjects\Tomcat6\webapps\BOE\WEB-INF\eclipse\plugins\webpath.InfoView directory and edit custom.jsp
<\!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html;charset=utf-8" %>
<%
//custom Java code
request.getSession().setAttribute("MySecret","32efbfbd35efbfbdefbfbd4363efbfbdefbfbd694aefbfbdefbfbd227530efbfbd5742efbfbd13efbfbd2befbfbd1fefbfbdefbfbdefbfbdefbfbd4e49efbfbd41550cefbfbd15703619d8b8efbfbd6cefbfbdefbfbd57efbfbd0defbfbdefbfbdefbfbd0605efbfbd6dc59b2728efbfbd");
request.getSession().setAttribute("UserName", "Daya");
%>
<html>
<head>
<title>Custom Entry Point</title>
<script type="text/javascript">
function goToLogonPage() {
window.location = "logon.jsp";
</script>
</head>
<body>
<a href="javascript:goToLogonPage()">Click this to go to the logon page of BI launch pad</a>
</body>
Edit the username(Daya) variable
Step VIII:
Stop tomcat, then delete contents in the SAP BusinessObjects\Tomcat6\work directory.
Then start tomcat again and the work directory will be regenerated with new code.
Hope this help you as well.
Thanks,
Daya -
How to find the value of date char used as exception aggregation reference
Hi BI Gurus,
On a BEx report I need to list three things by material:
1) the open (not yet delivered) Purchase Order quantities
2) the PO quantity to be delivered next and
3) the date that belongs to the next delivery
The model supports these data i.e. for each material I can list all open quantities by Purchase Order / Item / Schedule line and the scheduled delivery dates are also available as a characteristic.
Determining 1) is easy as the drilldown is fixed (materials only) the open quantities get summarized for all PO-s belonging to the materials.
To determine 2) I used a Calculated KF simply including KF 1) =Open PO Qty in the definition and setting Exception Aggregation (first value) with a reference char of the delivery date. This gives back the Open PO Quantity to be delivered first.
My question is about how to determine the 3rd value (actually this is not a KPI but a characteristic value). In other words, for each materials I would need to determine the first among all of the possible delivery date char values of the open PO Items / schedule lines. This is the date the quantity shown in the 2nd KPI will be delivered on.
Does anybody have an idea how to approach this issue?
Thanks for you help in advance,
AttilaHi Olivier,
Thanks for your suggestion. I got a bit closer with the replacement path formula variable and the CKF. I tried to apply the same logic of KPI 2) but for some reason it did not work. Actually, it delivers the right value but only when 0SCL_DELDAT (Scheduled delivery date) is in the drilldown But what I need is the first delivery date by Material only, and without this 0SCL_DELDAT drilldown.
Any other ideas?
Thanks and bye,
Attila -
Hi All,
We are on SAP BO BI 3.1 and I am required to create Webi Report on our SAP BW/BI system with BEx Query and InfoCube as source.
I need some Guidance and/or Material to help me achieve my task.
I tried finding things on scn but I was NOT successful. Even searching on Google and YouTube did not help.
How to create connection BICS, QAAWS, How to create Universe and then
What steps to follow when u creating WebiReport on BEx and What steps to follow when u creating WebiReport on InfoCube etc etc.
Thanx in Advance
NoVice.Hi,
For more information on BO 3.1 connectivity with BW refer attached BO 3.1 Using SAP BW in Universe Designer guide.You will get fair idea on BO/BW integration and different options.
http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_designer_en.pdf
You can create universe on info cube or Bex Query.But you will get the advantages if you will create universe on top of BEx query as all RKF's, CFK's, Conditions, Exceptions will be automatically converted in the universe.At the same time if you will create universe on top of cube then you need to create objects in the universe and creating objects in the universe is difficult.
Amit -
Webi report: Issue Cannot retrieve dimensions from Cube
Hello Experts, We're facing an issue with a partical set of Webi reports in Quality environment. The reports are BW reports based on OLAP BICS connectivity on top of Bex queries.y Below is the scenario and the issue: 1. The backed Bex queries have been trasported to Quality BW system and they're running fine when run from RSRT or Bex analyzer. 2.The Webi reports along with the BICS connections have been migrated to the Quality box and the BICS connections have been editied so that they point to the Quality BOX bex queries and they're testing and responding to the connection successfully. 3. The Webi reports pointed to the Dev Box in the Dev BOBJ system are working fine, but when the same reports for which the connections were repointed in Quality as above, are giving the error "Cannot Retrieve Dimensions from Cube". Steps taken: a. Deleted the reports and the BICS connection from Quality environment and remigrated the reports,connecitons and changed the connecitons but still the issue persists. b.Tried finding the root cause and got the following issue in the Bex query in Quality: There are filters put in the Bex query . All other filters are working fine except 0CALMONTH. We tried putting all sorts of variables on 0CALMONTH, but the moment a variable is put on 0CALMONTH, this issue occurs. But when we tried removing the variable from 0CALMONTH in filters and restricted it to a single value, the Report works fine. However the same is not an issue in the Dev Box and all queries with similar variables are working fine. So we're thinking this might be an issue on the BW backend and the cube might have to be transported again to the Quality Box. ANy quick suggestions or inputs on this would be greatly appreciated. Thanks and regards, Abhishek
Hi Abhishek,
I am facing same issue.Have you resolve this issue?
Regards,
Rajesh -
BO 4.0 : JCoException while scheduling the webi report
Hi,
We are in BO 4.2 patch 8.
We have 35 webi reports. These report uses SAP BW as data source. We are using DF to fetch data from SAP BW.
We have manually configured the RFC destination for JCO connection (as mentioned in SAP notes - 1638647).
Reports are getting scheduled successfully. But sometimes some webi reports fails with the following error message.
Database error: (CS) "Java Exception : java.lang.RuntimeException:com.sap.connectivity.cs.java.drivers.DBDError: [Data Federator Driver][Server] [Connector 'Sales_BO_New'] SAP NetWeaver BW has reported an exception: com.sap.conn.jco.JCoException: (112) RFC_ERROR_REQUEST_CANCELLED: connection with handle 3 closed
after cancel (remote system is PBI|BILPBI)" . (IES 10901)
This is in intermittent issue. If anybody faced this issue, then please let me know your feedback.
Thanks,
Ravi
Edited by: Ravi Kirana Palla on Dec 9, 2011 7:38 AM
Edited by: Ravi Kirana Palla on Dec 9, 2011 7:38 AMHi,
Personally, I haven't seen this before. To recap:
- Manual refresh work fine
- scheduling works most of the time
- but sometimes it fails with << SAP NetWeaver BW has reported an exception: com.sap.conn.jco.JCoException: (112) RFC_ERROR_REQUEST_CANCELLED >>
You might want see if you can isolate a particular document causing the problem, or determine if it's related to using certain refresh parameters
According to http://help.sap.com/saphelp_nw70/helpdata/de/f6/daea401675752ae10000000a155106/content.htm
it says Find out from the JAVA application or the JCo traces which JCo Server was cancelled and restart the server; in the J2EE Application Server context, JCo Servers are often started via the Service JCo RFC Provider
but .. i don't know how helpful that is..
Best of luck
H -
Change the colour of a cell text depending on the value Web Reports (NW04s)
Hi all,
does anyone know how to change the color of the text of a cell depending on its value on Web Reports? For example red text for values smaller than zero and blue for values bigger than zero?
I know you can create exceptions, but that changes the background color of the cell and not the text color
I have tried modifying the theme but the property "negative text" doesn't related to cell values.
Thanks
C
PD: Point will be awarded!
Message was edited by:
Carles PruneraThis function changes all numeric fields to blue if no css style is set.
[code]
function turnblue(){
var cells =document.getElementsByTagName('a');
for ( i=0; i<cells.length; i++){
if ( cells<i>.className == '' ){
var changeColor = checknumber(cells<i>.innerHTML);
// additional condition on value
if (changeColor) {
cells<i>.style.color = '#0000FF'
function checknumber(cNumber){
var x= cNumber
var anum=/(\d+$)|(\d\.\d$)/
if (anum.test(x))
testresult=true
else{
testresult=false
return (testresult)
[/code]
hope it helps
Maybe you are looking for
-
File Watcher issue...
I am hoping someone can nail this or point me in the right direction because I seem to be hitting a brick wall... Until last night I was successfully using my file watcher job and then it just stopped "watching" for some unexplainable reason. The fil
-
Can I wirelessly project powerpoint presentation to projector without HDMI input?
Can I wirelessly project a powerpoint presentation to a projector that does not have HDMI in?
-
Anyone experiencing Bluetooth file sharing issues?
I have two Mac Mini's that normally Bluetooth share files all the time. After installing Lion I made sure to check that Bluetooth sharing is enabled on both computers. When one device try's to send a file to the other I get To use the services on thi
-
I have just installed InCopy CS6, and received an assignment from our designer, who created the document in InDesign CS5. I have successfully opened and edited the document, but the option to package (in any format - to Return for InDesign or Forward
-
Is it possible in Muse to create hyperlinks to individual slideshow images?
Hi Friends, Right now I've got a web-comic going (check it out at www.joshuawright.net). In order to maintain an archive page for each new comic I put up, I'm having to create a new html page every time. This is the only way I know to create a clean