XMII Queries

Hi All,
I've gone through WIkis, sdn ,weblogs but not able to find the information which i required.
1) plant-->xMII--
> SAP ERP(  fine it can be connected)
My Qusetion-
plant-->xMII--
>non sap Application( If it can be conected, what are the technology we can can use? jdbc,web services etc. Please provide the complete list)
2) xMII can connect to shop floor systems through MES using B2MML schema. But wat is the technology interaction point? Is it FTP,JDBC,WEB SERVICES,XMl or ????
3)xMMI can connect to SAP through JCO connections.Does it supports Web SErvices with SAP erp?
4)Where UDS stands and when it shiuld be used?
5) What are the different components of XMII and one line description of it.( eg. XI has IR,ID,RWB,SLD etc)
6) Is it contain any database and what type of data it stores?
Regards,
Piyush

Hi Piyush,
Please find answers in bold ...
1) plant-->xMII--
>non sap Application( If it can be conected, what are the technology we can can use? jdbc,web services etc. Please provide the complete list) - You can connect databases to xMII - Use menu path Data Services -> Data Servers and configure accordingly
2) xMII can connect to shop floor systems through MES using B2MML schema. But wat is the technology interaction point? Is it FTP,JDBC,WEB SERVICES,XMl or ???? - The interaction point is the database. Suppose if you are having 10 MES systems, they should be connected to a common database server and then xMII can be connected to that server
3)xMMI can connect to SAP through JCO connections.Does it supports Web SErvices with SAP erp?-
*It depends on which version of SAP you are in. If you are having EP, then web services are possible.
If you are having only SAP R/3 it can be called via RFC connection type G*
4)Where UDS stands and when it shiuld be used? - UDS is Universal Data Server, this helps xMII to connect and transmit data from different data sources like OLE,OPC,SCADAs,Historians etc
5) What are the different components of XMII and one line description of it.( eg. XI has IR,ID,RWB,SLD etc)
Refer to SAP Help on xMII - http://help.sap.com/saphelp_xmii115/helpdata/en/SAP_xMII_Help.htm
6) Is it contain any database and what type of data it stores?
xMII does not have a database on its own, it uses the historian/central database

Similar Messages

  • Using [SD]/[ED] parameters in queries. xMII 12.1.1

    Hi All,
    I've been investigating usage of "[SD]" and "[ED]" parameters in Query Templates and now have some statements either for confirmation or for disproof.
    - Values only in XML-datetime format should be assigned to StartDate & EndDate parameters in xMII transactions?
      If SD & ED are unparsable I noticed that xMII assigns the following values: EndDate = datenow, StartDate = datenow - 1hour.
    - if EndDate is not in XML-datetime format it is built as StartDate + 1 hour?
    - EndDate which is earlier than StartDate is ignored and StartDate value is assigned to EndDate?
    - InternalDateFormat setting defines how the dates (SD/ED) are sent to the database server (in a SQL query) and to avoid localization problems (e.g. mm/dd/yyyy vs. dd/mm/yyyy) it should be used in conjunction with corresponding DatePrefix and DateSuffix.
    Thanks for your comments,
    Dmitry

    - Values only in XML-datetime format should be assigned to StartDate & EndDate parameters in xMII transactions?
    If SD & ED are unparsable I noticed that xMII assigns the following values: EndDate = datenow, StartDate = datenow - 1hour.
    By using the DateTime format for the transaction inputs it keeps your variable types consistent and all of the use cases within your transaction thereby have a known starting point for conversions.  In addition if you use an XacuteQuery template to call the TRX the Mapped Start/End Date properties will allow you to use the MII query time engine just like you would with [SD] and [ED] in a sql query and when using an applet it will allow the full time control bar to be used.  You'll also notice numerous action blocks, like the Document and Query actions have properties for direct linking these properties.  In the case of the query actions all of formatting is handled by the action block and you can link from Transaction.SD to SQLAction.QueryStartDate and it will automatically convert from the XML date format to the query template's DateFormat and assign to the StartDate parameter. (so in other words you have less work and hard coded string formatting to mess with - way more dynamic).
    - If EndDate is not in XML-datetime format it is built as StartDate + 1 hour?
    This depends a bit on where / how you are using the dates within the query or TRX
    - EndDate which is earlier than StartDate is ignored and StartDate value is assigned to EndDate?
    There is no time machine for going backwards and the Start must always come before the end, so when time is not chronological it will lock the dates to each other.
    - InternalDateFormat setting defines how the dates (SD/ED) are sent to the database server (in a SQL query) and to avoid localization problems (e.g. mm/dd/yyyy vs. dd/mm/yyyy) it should be used in conjunction with corresponding DatePrefix and DateSuffix.
    If your query is SELECT * FROM Table WHERE DateColumn BETWEEN [SD] and [ED] the query going through the DB driver will take the relevant date string format it with DatePrefix + Token converted into InternalDateFormat + DateSuffix (where the settings come from the Data Server settings).  SQL Server is simpler with single quotes and more forgiving for the date format, whereas with Oracle you have to deal with the format and the TO_CHAR prefixing, so this allows simpler queries to be built, and by using the date tokens in conjunction with the MII query time engine allow all of the formatting and conversions to be handled by the data server itself.

  • Program to execute BLT in xMII from SAP R/3

    Hi all,
    This an extension of [Calling Services and Queries in SAP xMII 11.5 from ABAP|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9f101377-0c01-0010-269f-c3ee905d583b] by Bimal Mehta.
    I have made the code ready to use since it takes lot of time to have the declaration and checking and all.
    Can anyone tell me how to post this as a Blog or in the Wiki ?
    REPORT  ZCALL_XMII_TRANS                              .
    parameters: p_trans(50) type c ,               " xMII Transaction
                p_rfcdes    type rfcdest DEFAULT 'SAP_XMII'," RFC Destination Created
                p_user(10)  type c ,               " xMII User Name
                p_pass(10)  type c .               " xMII Password
    * Data Declaration for RFC Connection
    data : i_rfc_destination type rfcdest.
    data : client type ref to IF_HTTP_CLIENT .
    * Data Declaration for Path, UserName, Password
    data : path type string.
    data:  if_query_field type TIHTTPNVP with header line,
           it_query_field type TIHTTPNVP .
    data:  i_user_name(5),
    * Transaction to be called in SAP xMII
           i_transaction type string,
    * Password of xMII
           i_user_password type string,
           if_str  type string,
           if_query type string.
    * This method checks for Existing RFC Connection of Name
    * i_rfc_destination and passes the parameters to CLIENT
    * Assign Parameters to Variables
    i_transaction     = p_trans.
    i_rfc_destination = p_rfcdes.
    i_user_name       = p_user.
    i_user_password   = p_pass.
    CALL METHOD
      CL_HTTP_CLIENT=>CREATE_BY_DESTINATION
      EXPORTING
        DESTINATION              = i_rfc_destination
      IMPORTING
        CLIENT                   = client
      EXCEPTIONS
        ARGUMENT_NOT_FOUND       = 1
        DESTINATION_NOT_FOUND    = 2
        DESTINATION_NO_AUTHORITY = 3
        PLUGIN_NOT_ACTIVE        = 4
        INTERNAL_ERROR           = 5
        others                   = 6.
    IF SY-SUBRC <> 0.
      write: / 'Destination Not Found'.
    ENDIF.
    * set request method
    CALL METHOD client->request->set_header_field
      EXPORTING
        name  = '~request_method'
        value = 'GET'.
    *build request path to XAcute Transaction
    path = '/Runner'.
    clear if_query_field.
    if_query_field-name = 'OutputParameter'.
    if_query_field-value = '*'.
    append if_query_field to it_query_field.
    clear if_query_field.
    if_query_field-name = 'Transaction'.
    * This is the Business Logic Transaction to be called in xMII
    if_query_field-value = i_transaction.
    append if_query_field to it_query_field.
    if not i_user_name is initial.
      if_query_field-name = 'XacuteLoginName'.
    * User name for the xMII
      if_query_field-value = i_user_name.                 " User Name
      append if_query_field to it_query_field.
      if_query_field-name = 'XacuteLoginPassword'.
      perform get_password
      using i_user_password
      changing if_str.
      if_query_field-value = if_str.
      append if_query_field to it_query_field.
    endif.
    * build query string
    if_query = cl_http_utility=>fields_to_string( fields = it_query_field
                                                  encode = 0 ).
    * build path
    */Runner?OutputParameter=*&Transaction=<Transaction Name>
    * &XacuteLoginName=<uname>&XacuteLoginPassword=<password>
    concatenate path '?' if_query into path.
    condense path.
    * Sets Header Field for the method with the Path
        CALL METHOD client->request->set_header_field
          EXPORTING
            name  = '~request_uri'
            value = path.
    * send request
        call method client->send
          EXCEPTIONS
            http_communication_failure = 1
            others                     = 4.
        if sy-subrc <> 0.
          call method client->close( ).
          WRITE / 'HTTP_COMMUNICATION_FAILURE'.
        endif.
    * get response
        CALL METHOD client->receive
          EXCEPTIONS
            http_communication_failure = 1
            http_invalid_state         = 2
            http_processing_failed     = 3
            OTHERS                     = 4.
        if sy-subrc <> 0.
          call method client->close( ).
          WRITE  / 'HTTP_COMMUNICATION_FAILURE'.
        endif.
        call method client->close( ).
        if sy-subrc <> 0.
          write 'NO_XML_DOCUMENT'.
        else.
          write:  / 'Execution Completed'.
        endif.
    *& Form get_password
    * get password string from base64 encoded value
    * -->i_password_encoded: encoded password
    * <--e_password: decoded password
    FORM get_password USING i_password
    CHANGING e_password.
      data: i_pwd type string,
      e_pwd type string.
      i_pwd = i_password.
      e_pwd = cl_http_utility=>decode_base64( encoded = i_pwd ).
      e_password = e_pwd.
    ENDFORM. " get_password

    https://www.sdn.sap.com/irj/sdn/submitcontent

  • Create a new user in xMII version 11.5

    I want to create a new user in xMII version 11.5 that has rights to view everything and create queries.  So far the user is part of the EVERYONE role and can view most of the items that the Admin can see.  My question what do I have to do in order to allow this user to create queries?  When I log in as this user and I click the query tab, it said that I do not have sufficient rights.

    I figured it was that simple.
    I haven't seen you on here in awhile.

  • Using Table Variables MSSQL with xMII 11.5

    I was trying an experiment with a query today where instead of creating a temp table in SQL, I used the T-SQL table variable.  For a simple example: 
    DECLARE @ProductTotals TABLE
    (  ProductID int,   Revenue money)
    INSERT INTO @ProductTotals (ProductID, Revenue)
    SELECT ProductID, SUM(UnitPrice * Quantity)
    FROM [Order Details]
    GROUP BY ProductID
    SELECT *
    FROM  @ProductTotals
    Well, this works fine in SQL Query Analyzer , but not in xMII.  I get a message that says "no results returned from this query"    So you ask, "why not just use a temp table"  Well on the real application, the query can take up to 30 seconds to run, and I have the chance of having multiple users execute the same query in that time, in which my temp table will get stomped on creating an error.  So I thought of using table variables as a possible alternative to avoid this.  
    I have already figured a work around, I put this code into a stored procedure and call that.  I could also do a similar workaround using separate queries / BLS.  However, I'm curious why xMII wouldn't execute this in the first place, being that it worked fine in Query Analyzer against the exact same database.

    Doug,
    I tried on my box with the "sqljdbc.jar" from 11.08.2006 (German Dateformat dd.MM.yyyy) and works also.
    For my test I had using the following SQL-Statement:
    DECLARE @ProductTotals TABLE
    ( ProductCount int, ProductID int, Revenue money)
    INSERT @ProductTotals
    SELECT count(O.ProductID) as ProductCount, P.ProductID, SUM(O.UnitPrice * O.Quantity)
    FROM [Order Details] O
    INNER JOIN Products P
    ON O.ProductID = P.ProductID
    GROUP BY P.ProductID
    SELECT *
    FROM @ProductTotals
    Did you get a result back in MII only for the SELECT statement
    SELECT count(O.ProductID) as ProductCount, P.ProductID, SUM(O.UnitPrice * O.Quantity)
    FROM [Order Details] O
    INNER JOIN Products P
    ON O.ProductID = P.ProductID
    GROUP BY P.ProductID
    ? My opinion is, that your select brings nothing back.
    Regards
    Pedro

  • How to pass runtime parameters to Oracle Query from xMII server

    Please can anybody  help me that how to pass runtime parameter to Orcle Query  from xMII server.

    It works the same way as I described in this thread [How to pass runtime parameters to MySQL Query from xMII server].  It does not matter the datasource MII will work the same for all queries, at least for passing in parameters.  How to write those queries and their datatypes will be the differences.

  • Scripting in xMII

    hi,
    Any one tell me about scripting in xMII.
    i have plast database with two tables like order(columns-order level,orderid,name of the order),product(productlevel,orderid,defactives).please tell me how i would be use this tables at Scripting

    Hi Murali,
    I do not know what a plast database is but here is the general knowledge about scripting in xMII.
    The source or destination datasource should first be defined as datasource in xMII. This data source can then be accessed using the query templates(QT) and this data can be visualised in the front end using various types of display template(DT). Any complex query can be created in the QT. But in order to keep it simpler, it is recommended that you use business logic transaction to create complex queries.
    The scripting(javascripting or VB scripting) can be used in order to change the parameters of the query and display template in runtime. All the properties of  QT and DT have corresponding parameters and these parameters can be set at runtime using scripting.
    Is this what you were expecting in aswer?
    regards
    Deepak

  • String Tag Types + History Mode - xMII 12.0.1

    Hi all,
    I'm really newbie in Tags but i'm with the following problem:
    I'm trying to access value from a specified data range in a Tag that returns just string to me,   but I can't use the HistoryEvent Mode like I was doing for Tag Queries that return me number, I would like to know how to retrieve "non-current" string data from a Tag Query.
    Thanks in advance.
    Pedro Sena
    www.neoris.com

    Sam, is this that you are looking for? :
    Connector InSQL
    ConnectorID  
    ConnectorType TAG
    DatePrefix '
    DateSuffix '
    DaysRetention 7
    Description ---
    Enabled T
    InternalDateFormat MM-dd-yyyy HH:mm:ss
    JDBCDriver com.inet.tds.TdsDriver
    MaxRetryCount 5
    Name Alicorp_InSQL
    PoolMax 100
    PoolSize 1
    RetryInterval 60000
    ServerPackage com.sap.xmii.Illuminator.connectors.InSQL
    ServerURL jdbc:inetdae:aliargsql1:1433?database=Runtime&sql7=true
    Timeout 15
    UseCount 256
    UseOLEDB true
    UserName wwAdmin
    ValidationQuery SELECT GETDATE()
    WaitTime 30
    Tnx

  • XMII query deployment

    Hi,
    Does anyone have information on what kind of query deploymeny strategy xMII has. If we have multiple xMII servers and a change in made to a query how can that change be deployed to multiple xMII servers.
    Thanks,
    Mahwish

    You can copy the Query Template xml file from server to server.  The file is in C:\Lighthammer\Illuminator\Templates.
    Or, why don't you create a Virtual Server connection to the server that has the same query template?  If the template calls the same database (or datasource) try this method.  Meaning if you have a database in Pennsylvania that the xMII server in Pennsylvania calls and you want to copy that query to a server in Texas that queries the database in Pennsylvania, just point the Texas xMII server to the Pennsylvania xMII server.

  • Siemens - Simantic IT Unilab / SAP Integration / xMII

    Hi all,
    Any experience in conducting integration between Simantic IT Unilab (LIMS) and SAP R/3 using xMII?
    Simantict IT offers connectors to achieve such integration with SAP R/3 by XI pathway. But we found this as an opportunity to explore xMII. I would appreciate any comments or suggestion in this particular.
    Thanks
    Tony
    Message was edited by:
            Tony Carrillo
    Message was edited by:
            Tony Carrillo

    Tony,
    I haven't personally seen or done interfaces to Unilab, but that doesn't mean it hasn't been done, and according to: http://www.cubetechnologies.com.au/Contents/sb_unilab_e.pdf
    "Standardized and scalable: Simatic IT Unilab has become the industry standard in hardware and software. The system is based on industry standards such as Oracle, Microsoft, NT, and Unix. You can choose an architecture with two or three tiers.  Simatic IT Unilab is standardized and was designed to interface with other enterprise systems (ERP, MES, etc.) through conventional and emerging technologies (such as XML)."
    LIMS systems in most cases just have an industry standard relational database underneath the vendor specific client application, which is no problem for xMII standard connectivity for running queries or calling procedures to access the desired information.
    Regards,
    Jeremy

  • Combining Two tag Queries

    I am trying to combine 2 tag queries with 5 tags in each one into one table to put in a web page.  What is the easiest way to do this.
    I am attempting to combine them with the xmii logic editor.  I can get one tag query in to an xml saver just fine but I am having trouble appending the 2nd tag query as a second column to the first tag query.

    Ken:
    This is a good use of the Union, Join, and/or Interpolator action(s).
    Does each query result have the exact same # of rows and exact same timestamp(s)?
    Also, if you're just sending them to an iChart, a Union action will fork fine.  If you are trying to merge them for a grid, it is slightly trickier.
    Describe the data and the desired UI look in more detail and we can help ya out.
    - Rick

  • What is SAP xMII

    Hi all
    I am SAP PS consultant.
    I want to know What is SAP xMII ?
    For what purpose it is used ? Just  eager to know it
    Thanks all
    shashank

    Hello Shashank,
    You can find plenty of material on xmii wiki and threads discussed over this topic and here are few for you,
    [XMII|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b7c79bd4-0a01-0010-4caf-bfb68ab98517]
    [xMII Wiki|https://wiki.sdn.sap.com/wiki/display/xMII/Guidelines]
    I hope the above links will give you some good start up...
    Also note that some threads are older so expand your date range to find more threads and answers for all your queries.
    Good Luck and Welcome to MII
    Regards,
    Adarsh

  • XMII system copy

    Hi,
    I am running xMII 11.5 in Windows 2003 server.
    I want to copy the application to another host running windows as like that of a system copy.
    Kindly guide me thru any notes or document for the same.
    regards,
    chandru.

    Graham,
    I quickly reviewed the 'System Copy for SAP Systems Based on SAP NetWeaver  7.0 Java' document and it is quite lengthy. The good news is that setting up an MII sandbox system is not that hard.
    Since you already have access to the SMP guides, you would follow the install guide to install 12.0. Once you install NW and MII, you will need to:
    - create/review user id's and passwords, and such (in UME)
    - upload the[ JDBC Drivers |http://help.sap.com/saphelp_xmii120/helpdata/en/45/b55462f7ce47f2e10000000a114a6b/content.htm](hopefully you have them saved from your prod system)
    - import [System Configuration |http://help.sap.com/saphelp_xmii120/helpdata/en/45/5a9346ec592a4de10000000a11466f/content.htm](exported from prod system)
    - import the necessary [MII projects |http://help.sap.com/saphelp_xmii120/helpdata/en/45/5a9afcec592a4de10000000a11466f/content.htm](exported from prod system)
    Follow up activities:
    - Test login credentials for various roles
    - Test data connections to data servers
    - Open and test MII objects in projects (queries, display templates, transactions, HTML/IRPT, etc.)
    - Check NW logs for any errors
    This process is common for 12.x. Hope it helps....
    Kevin

  • Parrallel Processing in xMII

    Hello All.
    I am designing a large scale Real Time Reporting solution using regional xMII servers to source data that is then fed into NetWeaver BI Virtual InfoProviders for reporting.
    My current problem is that I can't figure out how to make xMII do two tasks in parallel. Let me explain why I want to do this.
    Suppose I need data for a report from multiple source applications that are connected to a regional xMII server. I can have Net Weaver BI make a call to the xMII server for the data, and then xMII needs to collect the data from each of the sources. At the moment, xMII makes a request to the first source, waits for the response, then makes a request to the next source and waits for the response, and then the next...etc
    Ideally, I need to have xMII initiate each of the requests from the source systems and run the queries in parallel. When the last query has finished, then post the entire result set back to Netweaver BI.
    How do I spawn Multiple queries in parallel in xMII?
    Geoff.

    Hi, Geoffrey.
    I suspect that there is significant potential performance that can be gained from "intermediate content caching".  There is probably some overlap between subsequent user requests that could share a previous resultset.
    xMII's business logic service engine was designed such that multiple actions within a sequence could run in parallel (I designed it. ) , but this capability was not enabled for a number of reasons related to scaleability when the product ran on IIS (version 11.5 and older).
    I would suggest pushing this is an enhancement request - the infrastructure to do this would not be too substantial and would be useful if used carefully.
    Alternatively, it would be rather easy to write a standalone app/servlet that invoked xMII transactions in parallel (via calls the the Runner servlet) to make  the data requests (and persist the results to disk temporarily), then invoked the aggregrator/calculation transaction.  Not a perfect solution, but would work.
    Best regards,
    Rick

  • Initial need on xMII

    Hi Friends,
    I am new to xMII.
    I gone throu installation documents and completed xMII in my local sandbox.
    I Copied and Created a new Data Server using MS Sql Database. But when I try to Create a Query Template using TabQuery I unable to find out the Data Server name there.
    Can you please guide me what else I need to do and also please direct me how to integrate Frontpage/Dreamweaver in xMII?
    Thanks in advance
    dev

    Hi.
    With xMII version 11.5, we are using Frontpage as editor when making irpt pages for xMII. It is right, that there exists plugins for Frontpage and Dreamweaver, but we are not using them. When you have worked a little with xMII, I think it is quicker to do without them. You will copy and reuse instead.
    Some are using Visual Studio for editing, especially when making javascript files for your xMII pages.
    Another usefull tool is Stylus Studio if you are going to make style sheets, xslt's. With this, you can debug.
    xMII version 12 comes with editor for queries, transactions and irpt pages. I would still use stylus for xslt's
    BR.
    Poul.

Maybe you are looking for

  • Can't find the beatles ringtones

    on the front page of the itunes store it says exclusive beatles ringtones are available, yet when i click on it i'm taken to the beatles albums. there is then a picture there talking about the ringtones but no way to click on that and i don't see the

  • What does speed 0Mb mean?

    I've just upgraded to BT Infinity and it seems to be working just fine. I decided, as a matter of interest, to run the speed test. In the resulting diagram, two results were reported - exchange to my home and home hub to computer. On the right hand s

  • What we can do by SAP Interactive Forms by Adobe and What we cannot do

    My question is what we can do by SIFbA and What we cannot do. Means advantages and disadvantages of SIFbA in online and offline scenarios. Regards Iftikhar Ali

  • How to reinstall  J2SE 5.0 on 10.5

    Hi, I have some troubles with netbeans. After some experiences e decide that i should reinstall J2SE 5.0. After removing J2SE 5.0 e download the last version J2SE 6.0 for OS X 10.5 from apple. After installing, safari doesn't run applet and some java

  • Field Exit va01

    Hi, I want add ZAUFNR to VA01 screen in header area ( additional fields- b). and i have Appended field in VBAK table .till hear fine . and when i try to add field in screen 8309 it is asking for Accses key . please some one suggest me how to i procee