Access BEx Query resultset Clientside
How can we manipulate the output of a bex query client side (internet explorer).
We have an output of a query which we would like change before data is exported to excel.
Can we somehow access and change the query resultset client side with e.g.. JavaScript ? Is the resultset stored in an accessible object (clientside).
Thx
I don't have any experience but for someone with good Javascript skills, you can access the Analysis table using xpath expressions. This blog might get you started:
/people/prakash.darji/blog/2006/09/22/using-xpath-statements-within-sap-netweaver-2004s-bex-web-application-designer--part-1
Similar Messages
-
Can I directly access BEX query from web version
Hi expert,
Can I directly access BEX query from web version ? I know we can access bex query from webi rich client.
Many Thanks,Hi,
Yes, you can access BEx query via BICS connection (OLAP Connection).
In SAP BusinessObjects BI 4.0 you have multiple options to connect your SAP BusinessObjects BI client to your SAP NetWeaver BW system.
Direct BI Consumer Services (BICS)
SAP BusinessObjects BI 4.x Relational Universe (UNX)
SAP BusinessObjects XI 3.1 OLAP Universe (UNV) used in a SAP BusinessObjects BI 4 environment
Web Intelligence
Yes
Yes
Yes
SAP BusinessObjects Dashboards
Yes
Yes
No
Analysis, edition for Microsoft Office
Yes
No
No
Analysis, edition for OLAP
Yes
No
No
SAP BusinessObjects Explorer
No
Yes
No
SAP BusinessObjects Design Studio
Yes
No
No
Visual Intelligence
No
Yes (1)
No
Predictive Analysis
No
Yes (1)
No
Design Studio
Yes
No
No -
Access database query resultset in java scriptlet
Question:
1) I am Creating a web page and plotting points on the page:
2) Database query results in decimal values dec_latitude and dec_longiitude.
3) Perform calculations on lati. & long. in a java scriptlet to create a plot position (xpos, ypos).
4) Send the xpos and ypos back to the java server page
5) Use <IMG and absolute positioning to plot the point at position xpos, and ypos.
6) Repeat until all rows in the query result set have been plotted.
I don't know how to pass the dec_latitude and dec_longitude to the java scriptlet.
After the java scriptlet calculation translates the latitude and longitude
into xpos and ypos, I need to pass the xpos and ypos back to the java server page so that a data point is plotted on a map at position xpos, ypos.
I tried many ways of doing it but am just guessing as
to how to pass the data.
Thanks in Advance. - John
Here is what I am trying so far .... see snippet below:
The code below results in a runtime error.
Am I supposed to create a java object and access that in the java scriptlet? Can the java scriptlet access the latvar and longvar created during the "<c:set var="latvar"... ?
If not, what mechanisum do I use to access the resulting colums: dec_latitude and dec_longitude? I need the java scriptlet to convert the
dec_latitude and dec_longitude into a display position based on the number of pixels from the TOP and LEFT (xpos, ypos). Then plot of the data point using the IMG and (xpos, ypos). This will overlay a map whose z-index is lower than the plotted data point.
*** Query the database ***
<sql:query var="qryBio">
SELECT
DEC_LATITUDE,
DEC_LONGITUDE,
ENTRY_TIMESTAMP
FROM app.biosurvey where
</sql:query>
*** for each row retreived from the database ***
<c:forEach var="row" items="${qryBio.rows}">
<c:set var="latvar" value="${row.dec_latitude}" scope="page"/>
<c:set var="longvar" value="${row.dec_longitude} "scope="page" />
*** java code scriptlet - ***
*** convert latitude and longitude to xpos and ypos for display ***
<%
latitude = (Float)pageContext.getAttribute("latvar"); <--- runtime error !!!!
longitude = (Float)pageContext.getAttribute("longvar");
xpos = (int)Math.round(latitude);
ypos = (int)Math.round(longitude);
xpos = 1082 - xpos;
ypos = 700 + ypos;
pageContext.setAttribute("xpos", xpos);
pageContext.setAttribute("ypos", ypos);
%>
*** plot a point on the display html page overlaying the map ***
<IMG ID="Row" SRC="smallredbox.jpg" ALT="red box"
STYLE="position:absolute;
top:<%=xpos%> px;
left:<%=ypos%> px;
z-index:2">
</c:forEach>Thanks
I still get a runtime error: I translated the code you gave to code below .... which I think is equivalent. See Below: I'm still learning about this stuff so I may not have not translated this properly. Do
you see what I am doing wrong?
Best Regards,
- John
%@ page language="java" contentType="text/html;
charset=ISO-8859-1"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page import="java.lang.Math"%>
<sql:setDataSource dataSource="jdbc/SampleDB" />
<c:set var="genus_name" value="${param.genus_name}" />
<c:set var="species_name" value="${param.species_name}" />
<c:set var="species_common_name" value="${param.species_common_name}" />
<c:set var="dd_sighted" value="${param.dd_sighted}" />
<c:set var="mm_sighted" value="${param.mm_sighted}" />
<c:set var="yyyy_sighted" value="${param.yyyy_sighted}" />
<c:set var="species_state" value="${param.species_state}" />
<c:set var="species_county" value="${param.species_county}" />
<c:set var="species_country" value="${param.species_country}" />
<c:set var="dec_latitude" value="${param.dec_latitude}" />
<c:set var="dec_longitude" value="${param.dec_longitude}" />
<c:set var="notes" value="${param.notes}" />
<c:set var="person_first_name" value="${param.person_first_name}" />
<c:set var="person_last_name" value="${param.person_last_name}" />
<c:set var="person_street" value="${param.person_street}" />
<c:set var="person_city" value="${param.person_city}" />
<c:set var="person_state" value="${param.person_state}" />
<c:set var="person_zip" value="${param.person_zip}" />
<c:set var="person_country" value="${param.person_country}" />
<c:set var="person_email" value="${param.person_email}" />
<h2>Species Sightings:</h2>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Breckenridge Citizen Bio-Survey Selective Output Page</title>
</head>
<body>
Izaak Walton League of America
<h1>Breckenridge Citizen Bio-Survey Selective Output</h1>
<HR>
<c:if test="${param.action == 'Submit'}">
<%int xpos = 0;
int ypos = 0;
float latitude = 0.0F;
float longitude = 0.0F;
float latitudeMpls = 45.06F;
float longitudeMpls = -93.14F; int xposMpls = 1205 - (int) Math.round(latitudeMpls);
int yposMpls = 735 + (int) Math.round(longitudeMpls);
%>
<IMG SRC="minnesota_1990.jpg" ALT="minesota map" style="z-index:1;"> <----- THIS WORKS FINE
<IMG ID="Row" SRC="smallredbox.jpg" ALT="red box"
STYLE="position:absolute;
top:<%=xposMpls%> px;
left:<%=yposMpls%> px;
z-index:2"> <----- THIS WORKS FINE FOR HARDCODED MPLS XPOS AND YPOS
<sql:query var="qryBio">
SELECT
PERSON_FIRST_NAME,
PERSON_LAST_NAME,
GENUS_NAME,
SPECIES_NAME,
SPECIES_COMMON_NAME,
SPECIES_COUNTY,
SPECIES_STATE,
SPECIES_COUNTRY,
DD_SIGHTED,
MM_SIGHTED,
YYYY_SIGHTED,
DEC_LATITUDE,
DEC_LONGITUDE,
NOTES,
ENTRY_TIMESTAMP
FROM app.biosurvey where
genus_name like rtrim(upper('${genus_name}')) AND
species_name like rtrim(upper('${species_name}')) AND
species_common_name like rtrim(upper
('${species_common_name}')) AND
species_state like rtrim(upper('${species_state}')) AND
species_county like rtrim(upper('${species_county}')) AND
species_country like rtrim(upper('${species_country}')) AND
person_first_name like rtrim(upper('${person_first_name}')) AND
person_last_name like rtrim(upper('${person_last_name}')) AND
person_email like rtrim(upper('${person_email}'))
</sql:query>
<c:forEach var="row" items="${qryBio.rows}">
<--- THE LINE ABOVE WORKS FINE --->
<c:set var="latvar" value="${row.dec_latitude}" scope="page" />
<c:set var="longvar" value="${row.dec_longitude} " scope="page" />
<%
latitude =
Float.parseFloat((String)pageContext.getAttribute("latvar"));
<--- RUNTIME ERROR OCCURS HERE --- SEE LINE ABOVE --->
longitude =
Float.parseFloat((String)pageContext.getAttribute("longvar"));
xpos = (int) Math.round(latitude);
ypos = (int) Math.round(longitude);
xpos = 1082 - xpos;
ypos = 700 + ypos;
request.setAttribute("xpos",new Integer(xpos));
request.setAttribute("ypos",new Integer(ypos));
%>
IIMG ID="Row" SRC="smallredbox.jpg" ALT="red box"
STYLE="position:absolute;
top:<%=xpos%> px;
left:<%=ypos%> px;
z-index:2">
<--- THIS (ABOVE) WORKS FINE WITH CORRECT VALUES FOR XPOS AND YPOS WHEN RUNTIME ERROR DOES NOT OCCUR --->
</c:forEach>
</c:if> -
Webi error as a Bex query data source
Hi All,
I am getting the below error When i try to access Bex query from Webi with OLAP connection as SSO, if it is predefined it works good, for predefined i used Service account for now.
com.businessobjects.sdk.core.server.CommunicationException$UnexpectedServerException: [[error.openSapBwBrowsingSessionFailed] 0] <<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ConnectionString>
<Properties>
<Initial Catalog />
<Language>en_US</Language>
<Data Source>xyz</Data Source>
<Cube Type>Unknown</Cube Type>
<SaveLanguage>true</SaveLanguage>
<Initial Cube />
<TargetProvider>SAPNETWEAVER7X</TargetProvider>
<NetworkLayer>SAPBW_BICS</NetworkLayer>
<Authentication Mode>2</Authentication Mode>
</Properties>
<ExtendedProperties>
<JCO_ASHOST>xyz</JCO_ASHOST>
<SapLoginMode>0</SapLoginMode>
<JCO_R3NAME>bd1</JCO_R3NAME>
<JCO_CLIENT>300</JCO_CLIENT>
<JCO_SYSNR>30</JCO_SYSNR>
<JCO_LANG>EN</JCO_LANG>
</ExtendedProperties>
</ConnectionString>>
I did configured STS and SAP Authentication tab on CMC.
Please advise
Thank you!!!
krisHi Satish,
we did generated keystore and certificate , as said predefined connection works, but SSO option running into error.
we successfully configured AD SSO Kerberos , once we configure SNC, will do testing again and let you know. STS configuration steps also done.
Thanks,
Kris -
BO Universe on BeX Query in Lumira
Hi All,
I have a requirement of accessing a BeX query in Lumira and do visualizations on it. As Lumira is not capable of accessing BeX query directly, I think, I would need to create a universe on InfoCube, for that BeX query, and then consume that universe in Lumira. Thereafter, I would need to create different datasets for different queries.
Now, I have two questions:
1. Is this approach correct? Is there any other more efficient methos than this?
2. Can I create a universe on BeX query directly? Is it possible?
When I'm following first approach (universe on InfoCube using IDT) and trying to consume that universe in Lumira, I am getting below error:
And when I'm following 2nd approach (universe on BeX query using UDT), I am not able to view that .unv in List of Available universes in Lumira.
Please help.
Thanks Much,
PurnimaExplanation on the error you faced:
The data acquisition of medium-large, large, and very large datasets from UNV or UNX universes is not supported on default installations of both SAP BusinessObjects Business Intelligence platforms 4.0 and 4.1.
It is recommended for customers that want to acquire such datasets to install a SAP BusinessObjects Business Intelligence platform (SAP BIP) server dedicated to SAP Lumira and significantly increase the value of the Maximum Character Stream Size of the Web Intelligence Processing Server on that particular server. Note that increasing this value on a running SAP BIP server can impact the memory consumption and performance of any BI clients tool running on that installation, particularly Web Intelligence. While this practice is not formally discouraged, we advise customers implementing this solution that they might face memory consumption increases and longer document data refreshes so they will need to monitor the SAP BIP server's behavior adequately to control the impacts.
Can you try to place some filters to limit the data volume retrieved?
Best regards
Antoine -
How we create system for Bex query
Hi
I want to access Bex query in VC , I think we can do this by creating system in poratl. pls tell me how we create system in prtal for this.
Regards
AmitHi Naresh,
Pls send the Document for me also.
This is my mail id: [email protected]
Thanks & Regards
Prakash T -
Bex Query Transportation Error
Hi Guru's
While i try to access bex query for transportation using transport connection>queryElements>Query, sap throws Dump Error.
Is any body came across with this pls help me for solution.
Asap.Hi,
This happens whenever there is not a sufficient memory available for processing. This can happen with any activity in the system like data loading, deletion, creation of objects etc.
Please ask your basis team to make sure that there is sufficient memory (tablespace) available in the system.
This will solve the issue.
Regards,
Yogesh -
How to find out which connection is used for access to Bex query?
Hello,
in our BO 4.0 environment we have a lot of different connections to Bex queries.
There exist more connections to one Bex query.
For example to Bexquery1 we can access with 2 connections, connection : BX1 (connection specific for one query) and connection DEVcubes(generic connection to all cubes)
How can I check in Webi report over Bex query which connection is currently used?
Thanks a lot !
RudolfHi Rudolf,
Your requirement can be achieved using QueryBuilder.
Please refer to following QueryBuilder step-by-step post by Manikandan:
http://scn.sap.com/community/bi-platform/blog/2012/10/11/businessobjects-query-builder-queries
In bove post, Go to Universe Queries section -> All webi report using one connection
In case you dont know how to use QueryBuilder, please refer to following post:
http://scn.sap.com/docs/DOC-42952
Please let us know if you get any doubt. -
Access/display BW Document in BEx Query
Hello,
I have a request to create a BEx query to access BW documents. These BW documents are created in documents manager via WEB planning screens. I can see in Analyzer where we have queries created to do this but I am unable to get any of these to work. I have tried searching SAP Help and SCN and see no direction on how to do this. I am not sure if I am stating this request correctly. We are on BW/Analyzer 7.3.
Any help would be greatly appreciated.
Thanks,
RoseanneHi Roseanne,
well, if the document was created in BPS, I doubt that it can be shown in a query. I think the kind of document and the data it is connected to is different, but I am not sure about this.
This might be mor a question for portal or knowledge management, so maybe it´s better to find a forum for these topics here in SCN.
also have a look here
http://scn.sap.com/community/data-warehousing/business-planning
that´s where questions for BPS are asked. maybe you can find something about BPS-Dosuments.
Sorry, but it´s not my favourite topic ;-)
regards
Cornelia -
No of users accessing a bex query
HI Bw guys,
we want know no of users accessing our Bex query.Is there any procedure to find out that.Please give the solution for us because we are hurry about this.
Thanks and regards
Sreenivas.Hi Srinivas,
If your BI Admin Cockpit is Working Fine and getting loaded to 0TCT_MC01 this cube, then goto RSRT and Run this Query
0TCT_MC01/ZQUERY_FRONT_END_OLAP
The Count shows the number of hit for those queries for that month.
Similarly there are queries for day wise also.
Rgds
SVU -
Hi,
A user has been asking for access for running one of the query in BEX designer.
How do you grant access to a user for running a particular query in designer.
Can some please guide me.
Thanks.Hi,
If the report is assigned to specific role then you will have to assign that role to the required user then only he will be able to access that query, but if report is not assigned to any role then you will have to give the general developer or read access to user.
Using AGR_HIER and RSRREPDIR tables you can check whether report is assigned to any role or not.
Regards,
Durgesh. -
Leaf Node access in a BW OLAP Universe - BEX Query
How we can gain access in an universe to just the lowest leaf node in an bex query with hierarchies. If an infoobject has a hierarchy that is ragged, I just want to display that lowest level with a value.
Is there an MDX work around
An example is cost center or account which may be many levels.
The goal is to create a universe such that in webi or explorer, the user has to deal with one field for cost center or account and not 7 levels for each which make it very hard for the end user.
In this case the hierarchy is not important.Hi,
I assume that you want to say XML traces rather than SQL traces.
We provide SQL for relational databases and SAP BW Infocubes/DSO through Data Federator.
The MDX generated contains only the characteristics and key figures selected in the Query Panel.
However, there were an issue where all key figures were taken into account by SAP BW server even if not all have been selected.
This issue has been fixed in a fix pack (I don't remember which one).
Regards
Didier -
Can Business Objects Web Intelligency reports access NearLine Storage data Via BW Bex Query
Hi Gurus,
I am aware BEX queries can access NearLine Storage data for reporting but can Business Objects Web Intelligency reports access NearLine Storage data Via BICS connection ( Bex Query as a Source).
Thanks,
Shak.I would recommend to let your SAP Basis guys do a security trace on the SAP BW side and see if some authorization check for the user fails when trying to fetch data over the universe.
Regards,
Stratos -
API to access query structure / bad performance Bex query processor
Hi, we are using a big P&L query structure. Each query structure node selects a hierarchy node of the account.
This setup makes the performance incredible bad. The Bex query processor caches and selects per structure node - which creates an awful mass of unnecessary SQL statements. (It would be more useful to try to merge the SQL statements as far as possible with an group by account to generate bigger SQL statements.)
The structure is necessary to cover percentage calculations in the query, the hierarchy is used to “calculate” subtotals by selecting different nodes on different levels.
I am searching now for a different approach to cover the reporting requirement - or - for a API to generate out of the master structure smaller query structures per area of the P&L. It there any class to access the query structure?
We tried already to generate data entries per node level (duplicating one data record per node where it appears with an characteristic for the node name). But this approach generates too many data records.
Not using hierarchy nodes would make the maintenance terrible. To generate "hard" selections in the structure out of the hierarchy an API to change the structure be also useful.The problem came from a wrong development of exit varibale used in Analysis Authorization
Edited by: SSE-BW-Team SSE-BW-Team on Feb 28, 2011 1:46 PM -
Dear Experts,
is anybody know how BW Bex Query reads PSA data and reflict them to reports ?
thanks
JieYou cannot directly report on PSA instead create a remote cube and report on it by doing generate export datasource on PSA.
Check the below link for step by step :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/968dab90-0201-0010-c093-9d2a326969f1
Hope this helps.
Maybe you are looking for
-
"Error -2147352573 occured at Member not found" when trying to open an excel template
I'm trying to open an excel document as a template using the report generation tools but coming up with this error. I've traced the error to NI_ReportGenerationToolkit.lvlib:Excel_Open_Workbook.vi but have to idea why it's happening. The document s
-
Hi everyone, I have the following problem: The situation: An Air, tripleboot (10.9 with ntfs-3g, so full NTFS r/w + Ubuntu + Win7), with an additional 4th partition which holds a folder for the desktop (let's call it "desktop-data"). All systems use
-
IPhone 5 won't back up/update
I have an iPhone 5 and a MBA. My iTunes library is on an external harddrive. I need to clear up space on my iPhone as well as back it up. I can't update it because there isn't enough space on the phone. I can't clear space because most of it is pictu
-
Ship to address required for non-billable items?
Hi We are using order management but all our items are non-billable items. Orders are for Adverts in Magazines/Newspapers therefore not tangible items. Is it mandatory to assign Ship-to address to all our customers? We are not doing any shipping. How
-
Help needed:Synchronizing calls to canvas
Hello, I am trying to make sequential calls to a canvas object from my midlet, and I do not know how can I make the second call wait until the first is finished. Any help? Here is a piece of my code. The problem that I find is that the second call to