SAP MII XML xpath range

Hello All,
Is there a way to get  a range of nodes in SAP MII XML using xpath ? For example I have a query with 1000 rows and I want to take a batch of 2 rows and process them using a separate branch until I reach the end of the XML.
I am using a For Next Loop for it & I am using the following XPath based on what I found online. Its still not working. ?
Data.Results{/Rowsets/Rowset//Row[position() >= For_Next_Loop_0.CurrentItem and position()  < (For_Next_Loop_0.CurrentItem + 2)]}
Any ideas ?
Thanks,
Kiran

Thanks Christian !! I had figured out the adding the # part. But the range is getting a bit tricky
This is what I am looking for
XML Document
Name
Value
A
1
B
2
C
3
D
4
Batch 1
Name
Value
A
1
B
2
Batch 2
Name
Value
C
3
D
4
Thanks,
Kiran

Similar Messages

  • SAP MII Build Complex XML Structure

    Hi All,
    I have a requirement in which I have to fetch data from multiple queries and build a xml output.
    I m able to execute queries, put repeater on them, and able to trace the results.
    But now, I want to build an xml out of this and show it as transaction output. I used SAP MII XML Output Actions, but could not succeed.
    Posting a sample xml as required in output.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <xmii:pos xmlns:xmii="http://www.abc.com/test">
    <po>
      <ID>70001187</ID>
      <PlantCode>3100</PlantCode>
      <Code>Scheduled</Code>
      <operations>
       <operation>
        <OperationID>0010</OperationID>  
        <Code>Completed</Code>
        <PONum>70001187</PONum>
        <SegmentID>86</SegmentID>    
       </operation>
      </operations>
    </po>
    </xmii:pos>
    Please help me as to how can I build this XML. I m using SAP MII 14.
    Thanks
    N G

    I recommend doing this with an xsl using the XSL transformation action.
    XSL Transformation - SAP Manufacturing Integration and Intelligence - SAP Library
    Regards,
    Christian

  • 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

  • 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.

  • 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

  • SAP MII Navigation

    Hi all,
    I'm trying to change user's menu Navigation in real time.
    Do you have any idea how Navigation is managed ? How could we change it on the fly ?
    I couldn't find a SAP MII internal table corresponding to Navigationfor example... However in workbench, in Meta-Inf tab (under <project>/Profiles) I could find .nav files (content in XML) corresponding to roles with their Navigation Tree.
    Should we modify directly those XML ? Or are the "real" files, used for Navigation Tree display, stored on MII Server ?
    Regards,
    CM

    Hi Clement,
    MII provides making links dynamic according to the user or role of the user.
    Each Navigation Link is created for a particular Role or User.
    Also have a look at the following links to check how to create for Home page for MII.
    Home Page - SAP Manufacturing Integration and Intelligence - SAP Library
    How to Create a Customized Theme for MII
    Regards,
    Rohit Negi.

  • SAP MII Home Screen Shows Blank!!?

    Hi,
       We installed SAP MII 15.0 with MII Components (MII_ADMIN & XMII) on SAP NW 7.31 SP13 which is compatible version for SAP MII15.0.
    After completion of SAP MII15.0 on NW platform we try to login into MII using the url: http://<hostname>:<port>/XMII -> it shows login page, after logging into the page its automatically route to the url : http://<hostname>:<port>/XMII/goService.jsp but this shows a blank page and again it route to the another url: http://<hostname>:<port>/XMII/Illuminator?service=Personalization&sniffer=Unknown,1.0,600,800 its also showing same blank page!!
    If we try to login using http://<hostname>:<port>/XMII/Menu.jsp its showing MII Admin menu.
      Anyone please help me get out of this error and run the application smooth!!
    Thanks,
    Chandrababu Katta

    NW Errors: Cannot process an HTTP request to servlet [default] in [XMII] web application.
    For more details on the problem please check traces searching by logId: C0000AA87AB559080000000000001198
    and
    Error transfering attributes org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
    are the logs found in SAP NW.
    thanks,
    Chandrababu Katta

  • MII XML Schema

    Hello,
    Does anyone have (or can point me to) an XML Schema (.XSD) that describes the standard Rowsets/Rowset/Row structure of the MII XML document?  I presumed it to be installed somewhere during the 11.5 installation, but if it is I can't find it.
    Thanks in advance,
    Dave

    David,
    I don't know where the schema would be either, but you can reverse engineer it pretty easily by just building a sample.
    Build a Business Logic Services transaction similar to this:
    Sequence_0
    Create a SAP xMII XML Output action block of type Document .  Configure it with some fields.  I did it with field names same as their datatypes.
    Sequence_1
    Create a SAP xMII XML Output action block of type Row and configure it to Document_0.Output from the first action block.  Create links to map some data to a field or two or all of them.
    Sequence_2
    Link Document_0.Output to a Tracer and when you execute your transaction, you will receive:
    <?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2008-04-21T16:20:49" EndDate="2008-04-21T16:18:21" StartDate="2008-04-21T16:18:21" Version="12.0.2 Build(88)"><Rowset><Columns><Column Description="" MaxRange="1" MinRange="0" Name="DateTime" SQLDataType="93" SourceColumn="DateTime"/><Column Description="" MaxRange="1" MinRange="0" Name="String" SQLDataType="1" SourceColumn="String"/><Column Description="" MaxRange="1" MinRange="0" Name="Integer" SQLDataType="4" SourceColumn="Integer"/><Column Description="" MaxRange="1" MinRange="0" Name="Double" SQLDataType="8" SourceColumn="Double"/></Columns><Row><DateTime>2008-04-21T16:20:49</DateTime><String>String</String><Integer>99</Integer><Double>109.5446</Double></Row></Rowset></Rowsets>
    This is your basic xMII XML structure. 
    Hope this helps.
    Mike

  • 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

  • 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

  • How can I query TestStand Database quickly?

    Hello everybody I have a performance issue with default TestStand database what puzzled me for long time. In default database TestStand organize the different test item to different table, if I want to query a test record according to a special Seria

  • Hi! Since I've updated to os 10.7.2 I can't scan with my HP officejet 8500

    Please! Help. The printer is working but the scanner is not able to connect to the computer. I've updated the software too

  • Manual tax in billing

    Dear all, While creating sale order, as per my client's requirement, i had manually entered tax. But this manual entry doesnt have tax code.So while creating billing, it gives account determination error that is in account key MW3, gl account is miss

  • BAPI FM to set the  "Material Number used by Vendor" and the "Order Unit"

    Hi, is there any bapi or fm to set these two fields in the purchase view of the material? to create the material i've used the "BAPI_MATERIAL_SAVEDATA" but i don't have a clue where those field's can be set. thkzs to all in advanced Regards Jaime

  • Adobe Acrobat 11 does not open

    I have Installed Adobe Acrobat XI, but when I try to open it nothing happens. Any help. I have heard that giving it permission, how do I do that?