Where do we exactly use tag query & alarm query??
hi all,
can anybody pls. clarify as to in what situations we actually use tag query, alarm query, & OLAP query & xml query???
Hi Sushma,
OLAP query is used to use get the data from all the OLAP sources. But in xMII case it is preferably used to fetch data from SAP-BW. Using xml query we can get the data from xml files and also we can get the data from other query templates and business logi transactions. Using the following URL's
for query template : <b>http://<server name>/Lighthammer/Illuminator?QueryTemplate=<Query Template path>&Param.1=..</b>
for business logic transaction : <b>http://<server name>/Lighthammer/Runner?Transaction=<Transactin path>&InputParameter=<value>&OutputParameter=<OutputVariable defined in Transaction></b>.
Where as Alram queries are used in the case process systems as expalined by Ravi.
For tag queries you can find other threads already available. I think you want exact difference between the purpose of tag query and alarm query usage.
The alarm queries are used to store the events and actions related to the process systems, where as the tag queries store the process values with respect to time.
Thanks,
Rajesh.
PS : Please award points if answer is useful.
Similar Messages
-
Hi,
I am having an issue where when I insert a Content Query webpart into a page, and filter to managed metadata, all the right documents show up except one document that happens to have two metadata tags attached to it. The content query webpart is set
to only look through a specific document library. I'm not sure what I am doing wrong.
Here is the one document with two metadata tags:
Below is the Content Query:Hi,
As I understand, you did not get the results with multiple metadata tags through Content Query web part in SharePoint 2013.
Check things below:
1. Check if you have set the item limit more than the display items in Presentation section of the web part. If the item number more than item limit, the rest items will not show.
2. Check if the item you cannot find uses the content type you have set in the content type section of content query web part.
When you edit the properties of the item, you will see the content type the item is using.
Best regards
Sara Fan
TechNet Community Support -
How to numberformat when using sql:query alogn with c:forEach JSTL tags
Is there anyway to format the numeric values returned from the database when using <sql:query> alogn with <c:forEach> tags
Here is my jsp code
<sql:query..../>
<c:forEach var="row" items="${queryResults.rows}">
<tr>
<td><c:out value="${row.COL1}" /></td>
<td><c:out value="${row.COL2}" /></td>
</tr>
</c:forEach>
Col1 values are numeric without any formats Eg: 1000, 10000, 1000000 etc.
how can i format them to 1,000 , 10,1000 , 100,000 etcIt is polite to mention what your answer was. These posts are not just here for you to ask questions, but to be used as a resource for other people to find answers. Saying "I solved it" with no details helps noone.
I presume you discovered the JSTL <fmt:formatNumber> tag? -
We have a tag query that works in our sandbox environment, but not in dev. I loaded the same JDBC drivers on both systems.
The project was exported from the sandbox, and imported into dev.
I have verified the Data Server set up is identical in both environments. Connection status in both environments is identical - running, same number of connections, etc.
When I try to run the query on sandbox in workbench, the query returns data. I get this error on the dev system -
SQL error has occurred on query java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'tag'.
Detailed error -
java.lang.Exception: SQL error has occurred on query [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'publicgrouptag'.
at com.sap.xmii.Illuminator.gui.workbench.populators.IlluminatorPopulator.get(IlluminatorPopulator.java:114)
at com.sap.xmii.Illuminator.gui.workbench.populators.TagListPopulator.get(TagListPopulator.java:47)
at com.sap.xmii.Illuminator.gui.workbench.components.desktop.custom.TagQueryBuilderPanel$6.construct(TagQueryBuilderPanel.java:723)
at com.sap.lhcommon.gui.ThreadCreator$2.run(ThreadCreator.java:94)
at java.lang.Thread.run(Unknown Source)
Any suggestions??One of your included JDBC driver archives has a class that matches the path provided by the JDBCDriver setting for the data server (likely the sqljdbc.jar file).
If you take the JDBCDriver setting:
com.microsoft.sqlserver.jdbc.SQLServerDriver
and replace the periods for sub directories and add a .class on the end you'll have:
com\microsoft\sqlserver\jdbc\SQLServerDriver.class
So if you unpacked the jar file you'd find this java class (and the other ones included with the driver).
Do you get the same error about 'publicgrouptag' and 'tag' objects when you test a tag query request for GroupList mode? These tables/views would be used by the underlying queries used to populate the tag details tab in the WB. Do you see these tables or view within the SQL Server? Does the sa user have appropriate permissions? -
Using the Tag Query's Statistics Mode
I've tried to come up with the average of tag values over a span of a month two different ways:
1. using the Statistics mode
2. using the HistoryEvent mode and averaging the resultant data with an average function.
For most tags the two results are quite similar. I have one tag however that contains a lot of zero values and for that tag, the Statistics mode average is about 10% higher than the HistoryEvent mode average. It's like the Statistics mode ignores the zero values when doing it's calculations.
Is this correct? My tag query is returning data from six tags - does this cause the Statistics mode any heartache?
David MacindoeDavid,
Martin K - if you are listening please feel free to correct or confirm the following:
The PI UDS uses native Statistical method calls to the PI API/SDK, so the results are coming directly from PI. In this case, xMII is not doing a HistoryEvent call and then doing the average calcs on the raw event records, like it would be if you did it in BLS.
Regards,
Jeremy -
To get list of Structure, CKF and RKF where used in query
Hi All,
We are going to migrate the queries from BW.3.5 to BI 7.0.
Our aim is to get list of Structure, CKF and RKF that are being used in the Info provider along with Queries of these Structure ,RKF's and CKF' s .Is there any way
to get the where used in query.
Thanks,
MohanIt's been discussed so many times: Check these forums>>
http://scn.sap.com/thread/2029042
BEx metadata tables - how to list Query/Chars/KFs
Rgds..
Shambhu -
Can u tell me where we exactly use the logical file.
hi,
this is pandu,can u tell me where we exactly use the logical file,
what is the use of the logical file in detailed explanation.
regards,
pandu.http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/8d/3e4ec2462a11d189000000e8323d3a/content.htm -
SAP MII 14.0 Tag Query Findings
Hi Everyone,
We has just migrated from 12.2 to 14.0 MII, we did not got any issue in BLS or any Queries. The only issue we faced was the tag Query. So, after migrating from 12.2 to 14.0 we need to re load the Tag query and save it after migration to 14.0 otherwise it will not work as expected.
Am sharing as many of us may be working for Migration of MII 12.2 to 14.0, this may be useful.Where are you querying the data from?
For example, if you're reading tags from an OSISOFT PI Historian, the "mask" attribute should be tag='AB*'
Note the single quotes!
The mask value in PCo queries is dependent on the "source" system masking procedure and format. -
Dynamic Tag Query with dynamic tag name.
Hi,
In our implementation we have 10+ users. Each one want to monitor only one production line ( eg. one tag value ) in the dashboard by default when they login.
I was able to design this requirement CONCEPTUALLY but facing some trouble technically.
Here is my issue.
Tagname will be coming from one of the BLS Transaction input parameters (Transaction.Tagname). I am able to build tag query using xMII Tag Query block, able to configure repeater. Here is the spot where I was struck. While assigning tag value to XML Row
i.e IlluminatorRow_0.Tagvalue = Repeater_0.Output{/Row/AssetUtil1}.
In the above assignment link it requires a hardcoded tagname. In my case it will be dynamic. I tried different ways like
1. IlluminatorRow_0.Tagvalue = Repeater_0.Output{/Row/@Transaction.Tagname}.
2.IlluminatorRow_0.Tagvalue = Repeater_0.Output{/@Transaction.Tagname}.
But no luck.
Can someone help in how to do this dynamic tagname assignment.
Thanks,
Srinivasa.Hi Srinivas,
another option is to use "Dynamic Links" which from your sample code is what you were trying to do. For this, the proper syntax is:
Repeater_0.Output{/Row/#Transaction.Tagname#}
Make sure that the tag name you pass to the historian is the same as the tag name returned by the historian as part of the data set, and make adjustments for that. For example, some historians escape non-alphanumeric characters when they process your request (e.g. passing "abc.def 12-rt" as the tag name can be returned from the historian as "ABC.DEF_12_RT", etc.).
Hope this helps,
Sascha -
How to use WQL query with SCCM console.
Hello,
Sorry for my dumb question, but how can I run a wql query in SCCM console.
Usually I use SQL query's from google to create new reports, I also find WQL query but where exactly should I place them:Go to General tab and select "Show Query Language".
Paste in your statement and you're good to go.
Gerry Hampson | Blog:
www.gerryhampsoncm.blogspot.ie | LinkedIn:
Gerry Hampson | Twitter:
@gerryhampson -
Hi,
We are using SAP MII 12.1.5 ( build 83).
We have been connecting to a PI historian to get data and performing some calculations.
Since the client gives more important on the accuracy of data, we are using the history event mode.
( With history event , we could not get the results as expected)
While querying a particular tag, the value is not as expected.
After doing all the testing, We found out the For the particular period PI has some where around 18000 rows. and we are only getting 9999 rows since we have specified this in the tag query row count.
In the transaction I tried to increase the rowcount to 20000. It is not working.
The maximum count is 10000. After that the query gives unknown error Java LH exception.
Is there a limitation on the rowcount property?
If we fix the row count for a certain limit and the query returns more than those number of rows, how to get all data?
I am sure handling these huge number of rows is not a very good thing to do. But the algorithm to calculate the end result requires each and every data as registered in PI.
Any input is appreciated.
Thanks in Advance,
Kishore kumar P SHi Mike,
We have initially told about the performance issues if we go with this approach.
But once we have shown the demo last week, they agreed with the modified approach.
Now we are using the Statistics with TOT. Still the totalizer value is not taking effect.
As I know from the help docs, the totalizer factor is used to change the from one unit to another unit.
the help Doc says
"The area under the curve (effectively a "totalizer" value) can be calculated by multiplying the time-weighted average by the width of the time interval in seconds. However, quite often, the instrument or measurement is in different units (perhaps gallons per minute versus per second), and the TotalizerFactor parameter can be used to perform the correction."
But there is no effect on the totalizer value. There is one more point in totalizer value is depend upon the connector. We are using the UDC connector. Currently I am not getting anything on this connector type.
Any inputs will be appreciated.
Thanks & Regards,
Kishore kumar P S -
Modes and Methods in Tag Query and SQL Query
Hi,
Can someone explain me about the modes available in <b>TAG Query and SQL Query.</b>
TAG Query has modes such as <b>Current, CurrentWrite, GroupList, History, HistoryEvent, ModeList, Statistics and TagList</b>
SQL Query i still have doubt on <b>FixedQuery with output , Modelist and TableList</b>
I also need to know why methods are used?
Thanks in advance
Regards
MuzammilI'll try to explain to the best of my knowledge :
<u><b>TagQuery</b></u>
<b>Current</b> : Gives you the current value of the Tag you are reading.
<b>CurrentWrite</b> : Let you write a Value as the Current Value of the Tag.
<b>GroupList</b> : Generally Tags are grouped under different groups. Returns you the name of the Groups.
<b>From the xMII Help Document :</b>
<b>History</b> : History Mode returns interpolated data. Interpolation can be accomplished by specifying either the # of rows desired or the retrieval resolution. If the mode is "History" and a value is provided for the Resolution parameter (which is in seconds), the connector will retrieve evenly-spaced values starting at the beginning of the time interval, up to the maximum # of rows specified in the RowCount parameter. If no value is provided for the Resolution parameter, the connector will return an evenly-spaced number of values based on the value of the RowCount parameter.
For example, if the time interval is 1 hour, Resolution is 15, and RowCount is 240, the connector will return evenly spaced values each 15 seconds, up to 240 values (which would span the entire hour).
If the time interval is 1 hour, Resolution is not provided or is set to zero, and RowCount is 120, the connector would return 120 evenly spaced values, at an effective interval of 30 seconds.
<b>HistoryEvent Mode</b> : The connector can provide historical values "as they were stored" the database. This mode provides no interpolation of values.
<b>Statistics Mode</b> : When retrieving data for statistical calculations, the connector utilizes the same techniques as in the "HistoryEvent" mode. It is important to note that the first two returning columns in the HistoryEvent query must be the timestamp and the value, in that order. The SAP xMII Statistical processor expects that order, or errors will occur. This ensures precision of statistical measurements, particularly time-weighted average, by using the exact storage time and values from the historical database. The SAP xMII system provides the statistical calculations.
<b>Modelist</b> : Basically returns the modes of the Query Available. The Data returned is same as the data in the Modes list in the Quert Template Editor.
<b>Taglist</b> : Returns all the Tags in the Datasource.
<u><b>SQL Query</b></u>
<b>Modelist</b> : Same as above.
<b>TableList</b> : List of all the tables in the database to which the connector connects.
Again from SAP xMII Help Documentation :
<b>FixedQueryWithOutput</b> : This mode is used to execute an Oracle stored procedure or function that returns a REF CURSOR as output. The position of the REF CURSOR is marked by a "?" in the query. For example:
<b>Create a table.</b>
<i>create table usage (id int, name varchar(50));
insert into usage (id, name) values (1, 'test1');
insert into usage (id, name) values (2, 'test2');
insert into usage (id, name) values (3, 'test3');
insert into usage (id, name) values (4, 'test4');
insert into usage (id, name) values (5, 'test5');
insert into usage (id, name) values (6, 'test6');
insert into usage (id, name) values (7, 'test7');
insert into usage (id, name) values (8, 'test8');</i>
<b>Define the stored procedure.</b>
<i>DROP PACKAGE foopkg;
CREATE PACKAGE foopkg IS
TYPE cursortype is ref cursor;
PROCEDURE test (mycursor in out cursortype);
END foopkg;
CREATE PACKAGE BODY foopkg IS
PROCEDURE test (mycursor in out cursortype) AS
BEGIN
open mycursor for select * from usage;
END;
END foopkg;
</i>
Define a query template for calling the stored procedure. Enter the following in the FixedQuery tab:
<b>call foopkg.test(?)</b>
This template returns all rows from the Usage table. -
I have tag values that are steps or alarm codes in a process and I want to create a cross reference SQL table for these values. Using BLS, how do you link these tables to have an Xacute query that will return the cross referenced values from the tag?
I appreciate any help that can be provided.
Thanks
LarryRick,
One other note I missed in my last e-mail, the Tag Query does not return the TagName as a value in a column but as the column header for the value of the tag. How is it possible to get this as the value of its own column to be used as a link in the Joiner action.
Current query returns
DateTime XV43003 -
(header row)
03/22/2007 03:30:00 0
03/22/2007 03:31:00 2
03/22/2007 03:32:00 8
Preferred method
DateTime TagName Value -
(header row)
03/22/2007 03:30:00 XV43003 0
03/22/2007 03:31:00 XV43003 2
03/22/2007 03:32:00 XV43003 8
This would give me both the tagname and value to join to the sql table.
Thanks for your help!
Larry -
Hi all,
I need to write complex select statements on Tag database.
Can anyone please let me know how and where in query template to write.
Thanks
Ravi Kumar.Once setting up the UDS connection as above, you'll need to connect your datasource to the exposed port of the UDS using a "OLEDB Connector", port must match that of the SAP UDS.
from there you can simply drop a PI tag query into the query template to extract data.
SELECT "tag", "time", "_index", "value", "status", "questionable", "substituted", "annotated", "annotations" FROM "piarchive".."picomp2" WHERE tag = 'sinusoid' AND time BETWEEN '-1h' AND '' -
How to get tax break up of TDS using SQL query ?
Hi all,
We are developing a TDS report using SQL query
Report will contain VendorCode,Date(ap inv date),Vendor name,
Bill value,TDS Amount,
Bill Value 100.000,
TDS (2%) - 2.000,
TDS Surcharge(10% on TDS) - 0.2,
TDS Cess(2%(TDS+TDS Surcharge)) - 0.044,
TDS HeCess(1%(TDS+TDS Surcharge)) - 0.022.
We have developed this report which displays upto
VendorCode,Date(ap inv date),Vendor name,
Bill value,TDS Amount.
How to show tax break up of TDS in SQL query ?
Thanks,
With regards,
Jeyakanthan.Hi gauraw,
Thank for your reply.
I modified the query , pasted the query
as below in query generator,
Select T0.DocNum,T0.DocDate,T0.CardCode as 'Ledger',T1.TaxbleAmnt As 'Bill value',T1.WTAmnt as 'TDSAmt',(TDSAmt * 0.1) as 'TDS_Surch',
(((TDSAmt0.1) + TDSAmt)0.02) as 'TDSCess',
(((TDSAmt0.1) + TDSAmt)0.01) as 'TDSHCess'
FROM OPCH T0 INNER JOIN PCH5 T1 ON T0.DocEntry = T1.AbsEntry
WHERE (T0.DocDate >= '[%0]' and T0.DocDate <= '[%1]')
on clicking execute its showing error message invalid column
name 'TDSAmt'.
With regards,
Jeyakanthan
Maybe you are looking for
-
How to bring material description in case of planned order in CM25 trnx?
Hi All, On CM25 for Process Orders, the material description is what is displayed on the bars of work. For Planned orders it displays the planned order number and material desciption filed remains empty. Is this SAP standard behaviour when it comes
-
Select returns negative values for unsigned datatypes in MySQL DB
Hi, I have a table in a MySQL database where some fields are declared as "unsigned". Example: CREATE TABLE countries ( Country_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, Number SMALLINT UNSIGNED NOT NULL My problem is when inside a .xs
-
Where are the actual documents stored in solution manager (KW)?
Hello, I have a question regarding Solution Manager and storing documentation. When we in our process structure in a project uploads a word document (as documentation), where are the file then physically stored? I have checked the table SA01PHIO (a K
-
When trying to download the free applications from itunes app store its asking about billing information. Billing popup will display and navigating to billing detail page.
-
I tried to update my iphone 5s but it reset itself?
I tried to update to ios 8. something and my phone said i needed to plug it into itunes? so i did that and i have been doing so for the last hour but it just downloads the update from itunes and stops and repeats and i need to use my phone