SAP MII PCo in 14.0

Hi Everyone,
I am trying to get the tags values for the desired datetime from historian , i tried to pass datetime dynamically in all the parameters of PCo (starttime, endtime,SelectedTagstime etc) but all the times i am getting the tags values for current time.
Can anyone suggest that in which parameter i should pass the desired datetime so that i can get the values of tag at that particular datetime from historians.
Thanks in advance.

Make sure you are using the right parameter names...the ones in the above are not properly defined.  For example starttime should really be StartDate.
Parameters supported by the Query template interface are listed here:
http://help.sap.com/saphelp_mii140sp02/helpdata/en/4c/d57d68f29560c6e10000000a15822d/content.htm
Sam

Similar Messages

  • SAPUI5 in SAP MII 14.0 - error on running index.html

    Dear All,
    I am working on SAP MII 14.0.
    I am trying to run a sample example on SAPUI5 implementation in SAP MII 14.0 taken from link: http://scn.sap.com/community/manufacturing/mii/blog/2013/03/21/making-engaging-ui-on-sap-mii-with-sapui5
    But I got an Error when I tested index.html page !!
    Problem Description:
    My index.html code is :
    <!DOCTYPE HTML>  
    <html><head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
    <script src="/sapui5/resources/sap-ui-core.js" 
                          id="sap-ui-bootstrap“  type="text/javascript" 
                          data-sap-ui-libs="sap.ui.commons,sap.ui.table,sap.viz, sap.ui.ux3" 
                          data-sap-ui-theme="sap_goldreflection" > 
    </script>
      </head>  
          <body class="sapUiBody" role="application">  
          <div id='plantkpiDiv'></div>
    <script>  
      alert("1"); // this comes
      //register the application  
    jQuery.sap.registerModulePath("kpidashboard", "/XMII/CM/547555/SAPUI5/kpidashboard/webcontent"); 
      alert("2");   // this comes
    //instantiate the view
      var plantView = sap.ui.view({id:"idPlantView", viewName:"kpidashboard.PlantView", type:sap.ui.core.mvc.ViewType.JS});  
       //add the view to the div 
    alert("3"); // this does not come
      plantView.placeAt("plantkpiDiv");    
       </script> 
           </body>
    </html>  
    Folder Structure in Workbench is as follows:  /XMII/CM/547555/SAPUI5/kpidashboard/webcontent
    Inside webcontent I have created three files i.e. PlantView.controller.js , PlantView.view.js and index.html.
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
    Timestamp: Tue, 11 Mar 2014 10:32:30 UTC
    Message: Unterminated string constant
    Line: 13
    Char: 260
    Code: 0
    URI: http://inpuneme01:50200/XMII/CM/547555/SAPUI5/kpidashboard/webcontent/index.html?JSESSIONID=G59R-clhqrId7QDW_a_VBOSXQqyvRAEC2ZsB_SAPqh1fgxWruoAQAKceTGLKZ-6J
    Message: failed to load 'kpidashboard.PlantView.view' from /XMII/CM/547555/SAPUI5/kpidashboard/webcontent/PlantView.view.js: SyntaxError: Unterminated string constant
    Line: 41
    Char: 11332
    Code: 0
    URI: http://inpuneme01:50200/sapui5/resources/sap-ui-core.js
    Thanks and Regards,
    Anshul Arora

    Hi Rohit,
    I checked and found that PCo Mgmt service was not started. SO I started it and now I am able to get the XML when I open PCO Mgmt URL in the browser of PCo Server
    But,
    When my agent is running, I don't get Browse button enabled in "Subscription Items" tab.
    When I stop the agent instance, I can see Browse button enabled in "Subscription Items" tab. But when I click on browse, it gives me following error:
    Not sure what's wrong?
    Soham

  • Barcode and PDF document printing in SAP MII

    Hi All,
    I am using SAP MII 15.0, one of my requirement is to print the Barcode and PDF file automatically.
    I have came across the link below which tells to print the label
    http://scn.sap.com/community/manufacturing/mii/blog/2014/08/17/industrial-label-printing-with-mii
    In the above document, I can send only the string as a message in the PCo query CALL SEND(address=’127.0.0.1’, port=’20000’, message=’Hello World’);
    Is that possible to send the document to the printer?
    I am using the PDF action block.Can any one tell me how to print the document automatically?
    Also, if my printer is connected to client, how it can be printed from client PC?
    Regards
    G.P

    Hi chris,
    I have to do via SAP MII and their is no other option.
    In the above document, I can send only the string as a message in the PCo query
    CALL SEND(address=’127.0.0.1’, port=’20000’, message=’Hello World’);
    Is that possible to send the document from MII?
    Is there any command like below for pushing the document to the printer so that it will be useful?
    CALL SEND(address=’127.0.0.1’, port=’20000’, message=’Hello World’);
    Also please let me know any idea of printer used, which will help ?
    Regards
    G.P

  • Seimens HMI Integration with SAP MII

    Dear MII Experts,
    We are trying to integrate shop floor systems with SAP MII for discrete manufacturing industry.
    I came across the client has 70+ machines in the plant .the vendor is "DMG"
    Seimens HMI is installed on each machine .
    What are the possible ways here to connect to PLC from MII
    I am very new to this integration part .
    Can MII directly connect to Seimens HMI .
    I am very new to this area , client is ready to pay extra cost for any extra interfaces .
    Please suggest me the architecture to follow .
    Please give me a detailed explanation here , please correct me if I my explanation is wrong here
    Please reply me for any other clarification

    Hi Eswaraiah,
       To access the PLC data in MII, you would need couple of things more.
    1. OPC Server where the PLC stores the data.
    2. PCo (SAP Plant Connectivity) that can read the data from OPC Server and send the data to MII for manipulation.
    From PCo MII can read the data and you can then perform your business logic. Also, PCo has built-in notification settings which can trigger MII's transactions based upon some conditions.
    So I believe, your landscape would look like
    Siemens HMI --> OPC Server  -> PCo --> MII
    Check these out...
    PLC Integration with SAP MII
    Connecting MII to PLC devices
    Communicating with PLC
    Regards
    Tufale Ashai

  • SAP MII Component Hierarchy : Customer Support System

    The SAP MII component hierachy in the SAP Customer Support System has been changed.  MII components will be listed under MFG (SAP Manufacturing) on November 22, 2008, instead of the previous XAP-MII component. 
    As of this date, all NEW messages can only be recorded under the new component identifiers.
    The new component hierarchy is as follows:
    MFG
    - MFG-MII   (SAP Manufacturing Integration and Intelligence)
      - MFG-MII-CON  (MII Content)
      - MFG-MII-CORE (MII Core Development)
          MFG-MII-CORE-BSC  (Business Suite Connectivity)
          MFG-MII-CORE-DTE  (MII Design Time Environment)
          MFG-MII-CORE-RTE  (MII Runtime Environment)
      - MFG-MII-SFC  (Shop Floor Connectivity)
          MFG-MII-SFC-PCO  (MII Manufacturing Data Services
          MFG-MII-SFC-UDS   (Universal Data Services)
    Edited by: Diana Hoppe on Dec 16, 2008 11:01 AM

    The SAP MII component hierachy in the SAP Customer Support System has been changed.  MII components will be listed under MFG (SAP Manufacturing) on November 22, 2008, instead of the previous XAP-MII component. 
    As of this date, all NEW messages can only be recorded under the new component identifiers.
    The new component hierarchy is as follows:
    MFG
    - MFG-MII   (SAP Manufacturing Integration and Intelligence)
      - MFG-MII-CON  (MII Content)
      - MFG-MII-CORE (MII Core Development)
          MFG-MII-CORE-BSC  (Business Suite Connectivity)
          MFG-MII-CORE-DTE  (MII Design Time Environment)
          MFG-MII-CORE-RTE  (MII Runtime Environment)
      - MFG-MII-SFC  (Shop Floor Connectivity)
          MFG-MII-SFC-PCO  (MII Manufacturing Data Services
          MFG-MII-SFC-UDS   (Universal Data Services)
    Edited by: Diana Hoppe on Dec 16, 2008 11:01 AM

  • IND780 Intergration with SAP MII

    Hi Experts,
    Greetings.
    previously,I have done integration with MES system but i have a new requirement to Integrate Mettler Toledo IND 780 with Ethernet/IP communication.
    I have visited the plant and this is the process they follow.
    They have connected the Terminal to a PC and they send orders to the Terminal by uploading the excel file to a batch program and retrieving data to excel file by connecting to terminal.
    I have gone through the blogs have know that Mettler Toledo IND780 uses SQL CE database to store data.
    Can SAP MII directly connect to SQL CE database which is embedded in Mettler Toledo IND780 for data querying ?
    Please guide me
    Appreciate your help
    Goutham

    Hi Goutham,
    According to the documentation available from Mettler Toldedo, the option to implement Ethernet/IP also includes the option to implement Modbus TCP.  You can use Modbus TCP with an OPC Server that provides a Modbus TCP driver (Kepware or MatrikonOPC both have this).   SAP Plant Connectivity (PCo), and SAP MII are the SAP components needed to integrate the scale and the OPC Server to SAP MES or ERP systems.
    Another option would be to implement the communications via the scale Serial Port if present. This would require an external Hardware Serial-Ethernet server to put the serial port on the plant network, and then PCo and MII for the SAP integration components.  there is an internal Ethernet port on the IND780 main board, but I did not investigate whether you can communicate with the scale using the same protocols as the serial port, If this is possible, then the Hardware Serial-Ethernet server is not required.
    Either solution will require detailed knowledge of the communication protocols to determine the OPC Server,  PCo and MII configuration, and MII transaction requirements, to implement the interface.
    I would recommend against trying to directly attach to the SQL CE database on the scale.
    Regards, Steve

  • How to log in to SAP MII by using a custom xApp?

    Hi there,
    I'm developing a custom xApp with a context root of /mycustomapp
    I use some security contraints for it so the user has to log in to view the xApp.
    As I use some MII services the user has to be logged in to SAP MII, too. However, logging in to SAP NetWeaver doesn't automatically sign in the user to SAP MII, too.
    Is it possible at all?
    Accessing /mycustomapp leads to a login mask, but the user should be logged in to SAP MII, too.
    Regards
    Tobias

    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      id="WebApp_ID" version="2.5">
      <display-name>mycustomapp</display-name>
      <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      <security-constraint>
      <display-name>Authentication of Users</display-name>
      <web-resource-collection>
      <web-resource-name>My Resource Name</web-resource-name>
      <url-pattern>/*</url-pattern>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      </web-resource-collection>
      <auth-constraint>
      <role-name>My_User_Role</role-name>
      </auth-constraint>
      </security-constraint>
      <login-config>
      <auth-method>FORM</auth-method>
      <realm-name>MyRealm</realm-name>
      </login-config>
      <security-role>
      <role-name>My_User_Role</role-name>
      </security-role>
    </web-app>
    web-j2ee-engine.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="web-j2ee-engine.xsd">
      <spec-version>2.4</spec-version>
      <security-role-map>
      <role-name>My_User_Role</role-name>
      <server-role-name>My_User_Role</server-role-name>
      </security-role-map>
    </web-j2ee-engine>
    Besides having the role My_User_Role my user also has the SAP_XMII_User role (and the corresponding developer roles).
    Regards
    Tobias My_User_Role

  • To Retrive Folder List in SAP MII 12.0

    Is there any option available in SAP MII 12.0 to retrieve List of Folders Available same as like Folder List Query in 11.5.

    Hello,
    try an XML Query with the following URL:
    /XMII/Illuminator?Mode=TransactionFolderList&Server=XacuteConnector&Content-Type=text/xml
    Filter the result by its "ParentPath" column to get a list of folders inside a provided parent folder. Make sure that you have increased the default query row count of 100 to get all folders on your system.
    Hope this helps - good luck!
    Matthias
    Edited by: Michael Appleby on Jan 5, 2011 2:38 PM

  • Error in /LogoPage.html  after deploying SAP MII 14.0 SP5

    Hi Experts,
    I am using SAP EHP1 for NW 7.3 SP07. Recently I upgraded from SAP MII 14.0 SP04 patch 5 to SP05 patch 2.
    After Upgrading I am getting many issues as below:
    1. When opening "http://hostname:port/XMII/" as file "/LogoPage.html" does not exist. When I checked the file its not exist in the server.
    2. When opening web pages I am getting java alert as "The application contains both signed and unsigned code"like that.
    I am using JRE v 1.6.0_21.
    Is that problem with the Patch that I deployed or any other issue.
    Please let me know?
    Regards
    G.Partheeban

    Hi Experts,
    I tried deploying with SUM,JSPM and telnet but no use. The file is not deployed properly. I guess this is the patch issue.
    I copied the Logopage and other file missing. Now the issue "1" is fixed but I am getting the below
    2. When opening web pages I am getting java alert as "The application contains both signed and unsigned code"like that.
    I am using JRE v 1.6.0_21.
    I also tried to revert back to SP04 using JSPM with the command "UpdateAll" and "UpdateSameand Lower" version. Can any one please suggest me how to revert back or how to solve the above errors?
    Regards
    G.Partheeban

  • SAP MII 14.0 unable to open workbench

    Hello Experts,
    I am facing issue while opening workbench .
    The exception thrown is as below :
    "com.sun.deploy.net.JARSigningException: Found unsigned entry in resource: http://[sever]:[port]/XMII/CMSLogicEditor/xalan.jar"
    I am using SAP MII 14.0 SP5 Patch 7 & Java 1.7 update 45.
    I have deployed pdf jar & fop jar yesterday but deleted back fop yesterday itself .
    In my temporary java resource files(control panel->Java->General ->Temporary Files -> View ) ,I see xalan & serializer jar updated date yesterday ,not sure if has anything to do with this.
    Please help on this issue.
    Thanks & Regards,
    Neha Kshirsagar

    Hi Swaroop ,
    We are currently using jre 1.6.31 or versions of 1.7.45.We have already tried few workarounds regarding this with enabling certain Java settings ,but nothing has worked till now.What I feel that this could be some java setting on server system issue or netweaver cache isn't cleared .
    Please fnd below screenshots as your request
    Thanks & Regards,
    Neha Kshirsagar

  • SAP MII 14.0 - Calling Transactions using SOAP Runner fails

    Hello All,
    We are calling transactions in SAP MII 14.0 from external apps using SOAP Runner and we are passing the login info in the payload. But we are getting the following error.
    We are passing the following in the payload.
    <xmii:LoginName>Username</xmii:LoginName>
    <xmii:LoginPassword>Password</xmii:LoginPassword>
    We are getting 401 unauthorized as the user name and password is not propagated to the MII.
    It works if we supply the info explicitly when we invoke the URL.
    Thanks,
    Kiran

    Hello Rajesh,
    I don't think that will be allowed. We usually pass the credentials in the payload and it has always worked for us in MII 12.1. But in MII 14.0 it does not seem to be working.
    Thanks,
    Kiran

  • Reading File from a Desktop/ShareFolder in SAP MII 14.0

    Dear Experts,
    I have a situation where I want to read a CSV file from a source different than SAP MII server. Basic intention is to read a file from a desktop or some shared folder.
    My first doubt is- Is it really possible in SAP MII 14.0 version?
    But still I tried doing the same. Used Get File Text Loader action and text loader and provided file path from desktop which gives me an error. Here's the syntax I tried with mask as .csv:
    C://Users/XXX/Desktop
    C:\Users\XXX\Desktop
    C:/Users/XXX/Desktop
    Error I get is as follows:
    [ERROR] [Get_File_List_0]GetFileList: Access to the file path /C://Users/XXX/Desktop is not allowed
    Please advise, if it is really possible in MII 14.0 . If yes, Am I missing any steps?
    Regards

    Hi Kirti
    To read/load a file from your desktop you will need to execute some form of client side program like HTML or JS or applets. MII Transactions run on the MII server and would point to the Server's C:/ if the server has such a folder. Usually users do not have access to C drive of servers. Hence you see the error.
    You will need to write some program that executes on your desktop and pulls the file from your system and then posts to the server.
    Regards
    Partha

  • Unable to Pass Parameters to I5Grid in SAP MII 14.0 SP05

    Hi Experts,
    There was a bug in SAP MII 14.0 SP04  where we were unable to pass parameters to I5Grid dynamically. I understand that this bug has been fixed in SP05 , so we applied following patches:
    Patches installed :
    a)      XMII05P_4-10008694.SCA
    b)      XMII05_0-10008694.SCA
    Note details mentioning this issue :
    2016927 - I5Grid does not take into account overridden parameters when updateGrid(true) is called
    But even after applying these patches, I am still not able to pass parameters to I5Grid dynamically from irpt page.  Does anyone have any insight to it? Is it working for any one of you?
    Regards,
    Kirti

    Hi Chirstian,
    I see this change working. I was doing a mistake while passing parameter to I5grid.
    What I was doing-
    Grid.getQueryObject().setParameter(1, linename);
    Correct Way:
    Grid.getQueryObject().setParameter("Param.1", linename);
    Thanks & Regards,
    Kirti

  • Generic Sort filter in SAP MII 14.0.5

    Hello,
    I am trying to use Generic Sort filter in SAP MII 14.0.5 and all i need to achieve is sort the XML nodes based on values. i am trying to give input as below XML and sort based on Value. but i am getting error. Input to Generic sort filter is mentioned below. i don't see much documentation for this block. any inputs will be greatly appreciated.
    Error:-
    "[Generic_Sort_Filter_0] Unknown property: <?xml version="1.0" encoding="UTF-8"?><Address>
    <Product>MAC_Address</Product>
    <value>78FF5700E419</value>
    <value>78FF5700E418</value>
    <value>78FF5700E420</value>
    </Address>"
    Input to Generic Sort Filter:-
    Source:-
    <Address>
    <Product>MAC_Address</Product>
    <value>78FF5700E419</value>
    <value>78FF5700E418</value>
    <value>78FF5700E420</value>
    </Address>
    Filter Colum1:- Local.OutputXML{/Address/value}
    -Adarsha.K.S

    I could be wrong but I seem to recall that Action only supported the MII xml document structure: /Rowsets/Rowset/Row etc.

  • SAP MII function issue in SAP MII 14.0

    Hi,
    Currently I was working on some content up gradation work in SAP MII 14.0 , but while working, I have got a strange think regarding SAP MII Functions. We have developed the same code in SAP MII 12.2 and faced the issue while migrating to 14.0. The issue is as follows,
    The function we have used in 12.2 is getvalue(name) as in the below screenshot,
    but while we have migrated to 14.0, then we saw the function has updated into getvalue(map, key) in 14.0
    I have no idea why parameter of the existing function got updated, but the problem is if someone want to migrate the existing code from 12.2 to 14.0 using such of function then he/she can get a "Conversion Exception" and at that time it will become bit hectic to identify the issue and change the logic to handle this in all the places.
    Regards,
    Suman

    Hello Suman,
       I guess it is a bug in MII 14.0. The help doc has the getValue(name) still. However, the newer function is not present in the same. I guess it was not documented. I guess, the getValue(map, name) is a newer function which somehow replaced the older one.
    I would suggest you to raise a support ticket. According to me, the getValue(name) and getValue(map, name), both should exist.
    Regards,
    Tufale Ashai.

Maybe you are looking for

  • Get report into PDF - with header logo

    I want to batch generate Discoverer reports into PDF files, with the company logo in the header. So, for batch generation - the easiest thing is to write a script which calls Desktop. Ok, no problem. Oh, sorry, you can't export to PDF using desktop.

  • Iphone 4 crashed while downloading latest ios 7 software and wont turn on, stuck on the picture of plug into itunes? what do i do now?

    Help me please

  • Transfer of added tax

    When i execut the transaction <b>S_alr_87012360</b> i have a table in the down with documents wich tax is not transferred, and i have these error codes : 2.The document contains items whose posting key is marked as payment 6.Tax account was posted to

  • One monitor/two computers???

    I have a 2005 Cinema Display which I use with my Power Mac G5 desktop. I recently purchased a Macbook Pro (13", 2011) which I would like to connect to my larger monitor from time to time for video editing. Can I do this in any way without severing th

  • Vension management

    when i try to release the po on account assingment catagory k(cost center) below error message is comming. -VERSION 0 IS NOT DEFINED FOR FISCAL YEAR 2008. When is try to change the year with tc:OKEV the error message -ACTIVATION OF THE INDICATOR IS N