ICommand required to call the Xacute query

SCM380
SAP MII - Manufacturing-
Integration and Intelligence -
Basics
Solution 17: Using Transactions on a Web
Page
Task:
Use the "Addition" transaction to complete the source text on the page shown
below, which displays the result in a message box. The iCommand required to call
the Xacute query is already implemented on the page, so you only have to enter
the JavaScript code for the calculation.
Number1 TextBox
Number2 TextBox
Calculate Button
Does any body have the code syntax for res_Calculator.irpt?
SCM380_Resources_EN/WEB/UNIT4/Lesson2/Exercise3/ folder in the
WEB tab
I seem to have lost the CD
Thank you,

Hi,
For check your java console view the link:
http://www.holomatix.com/knowledgebase/frequently-asked-questions/how-do-i-display-my-java-console?/
change the code:
<form name="frmMain" action id="frmMain">
For
<form name="frmMain" id="frmMain" on submit="return false;">
<input type="submit" value="Calculate" name="Result" />
For
<input type="button" value="Calculate" name="Result" on click="calculate()" />
For more details about html view the link http://www.w3schools.com/html/
Hope this help.
Danilo Santos
Edited by: Danilo Santos on Nov 16, 2011 4:26 PM
Edited by: Danilo Santos on Nov 16, 2011 4:28 PM

Similar Messages

  • How to call both xacute query and xml query inside a single applet

    Hi,
    I am very new to XMII. Trying with a simple exercises now.
    1.  I have a Business Logic Transaction which will call external application using web services then it will get an output as xml and storing it in C:\.
    2. Then I created one xacute query which will call the transaction
    3. Then I created a xml query that will read the xml in c:\ and I too created a visual display template(ichart)  for it
    4. Created a html file -- created a applet , called all the 3 inside it. NOt getting any graph in IE
    5. But if I call only xml query and display query its working
    <b>following are my HTML file:</b>
    <html>
    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Order Percent Complete</title>
    </head>
    <body>
    <p>
    <APPLET NAME="MyApplet" WIDTH="640" HEIGHT="400" CODE="iChart" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>
    <PARAM NAME="QueryTemplate" VALUE="UserTemplates/POTxnTemplate">
    <PARAM NAME="QueryTemplate" VALUE="UserTemplates/POTemplate">
    <PARAM NAME="DisplayTemplate" VALUE="UserTemplates/POVisual">
    </APPLET>
    </p>
    </body>
    </html>
    6. In POTxnTemplate -- calling Transaction BL
        In POTemplate -- fetching xml from c:\
        In POVisual -- displaying the ichart (using POTemplate)
    Can any one help me with this?
    I am doing in the right path?
    Thanks in Advance,
    Murugappan.

    Hello,
    You can only enter one query template into an applet.  Use the xacute query template.  In the transaction assign the output of the web services results to a transaction property of type xml making sure you select the "Output Parameter?" option.  These results will need to be in xMII format.  Then open the xacute query template and verify that the output parameter you created is selected as an Output on the transaction tab.

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • Help required in generating the following query

    Hi all,
    i need solution regarding the following problem.
    we got many number of groups ,each group containg many number of names,each name containing some items under that
    i had written a query stating that select item where grp  =[0%] and name =[1%] from a table
    it will execute and dispaly a window with two fields at the first field i entered group and in the second field when i select for existing values it shows all the items of all groups
    but we need only items that belong to the group that we enter in the first field
    any one tell me the query regarding this requirement

    HI,
    The alternative solution is: develop your add-on, which get the filtering window, and connects the 2 parameters inside, then runs the query and displays it in a matrix/Grid.
    It is not takes so many time.
    Regards,
    J.

  • $.ajax(): what is the difference between calling a transaction and Xacute query?

    I can call either:
    $.ajax({
         type: "GET",
         url: "/XMII/Illuminator?QueryTemplate=somePathToXacute/someXacute&Content-Type=text/xml&Params...",
         dataType: "xml",
         success: function (result) {...}
    $.ajax({
         type: "GET",
         url: "/XMII/Runner?Transaction=somePathToTransaction/someTran&Content-Type=text/xml&Params...&OutputParameter=outXML",
         dataType: "xml",
         success: function (result) {...}
    When I call an Xacute query, the first execution works, but the second doesn't. I figured out that I have to add "cache:false" and then it is okay. If I use a transaction instead of Xacute query, it works with or without cache. Why is that? Transactions are not cached? Only Xacute queries?
    What is the cost difference in time if I call directly a transaction, instead of an Xacute query? What is the advantage to call an Xacute at all?
    Thx

    Hi Tibor,
    These points should clarify your doubts:
    1. Transactions are not cached but queries are.
    2. Advantage of using Xacute query is that the Illuminator service used to call Xacute query supports JSON from MII 14.0. Use content-type as text/json in the URL. But the restriction is that the transaction should return the XML in MII Rowsets-Rowset format.
    3. Though both the calls would take almost time(I think) but you should call transaction directly( no need to wrap it with Xacute query if not required).
    Regards,
    Rohit Negi.

  • Getting the input values in xacute query

    Hi friends,
       I have webpage which should send production order number to the xacute query.
         In the xacute query iam calling a BLT where i have defined a transcation property for this production order number of type input and defined tracer to check whether its getting any prodution number or not.
    When am testing the xacute query i was not getting any production number which i was passing thru webpage.
    Can anybody tell me how should i get the value from the webpage to the xacute query.
    Please help me out.
    Thanks in advance.
    Regards
    Sireesha.

    Hi,
    I hope you get the production order no from some applet.
    Include one more param and call a funtion in that applet
    For example:
    <param name="CellSelectionEvent" value="Functionname">
    Then add your Xacute query template in your webpage.
    In the function, You call this query and set the param.
    For example:
    If you enter some value through forms in webpage
    functionname()
    var x = document.<xacute applet name>.getQueryObject();
    x.setParam(1,document.forms[0].<value>);
    If you get values from applet(applet name)
    functionname()
    var x = document.<xacute applet name>.getQueryObject();
    x.setParam(1,document.<applet name>.getGridObject().getSelectedCellValue(columnno);
    You can also directly call this transaction in your web page via URL and pass the parameter.
    In this case thee is no need to create xacute query.
    Hope this helps you.
    Regards,
    P.S.Kishore kumar

  • Web Service to xml to bls to xacute query formatting

    Hi.
    I have a BLS calling a web service which returns a data set in the xMII XML format. I take that output and put it in a xml transaction output property and try to read it with an xacute query. (obviously I will be doing more manipulations to the data in the bls once i get this issue resolved). The query returns a blank page when tested.
    OK, so I take the same xml output, and in the same bls use the Write_File action to create an xml file, then use the XMLLoader action to read in that file back into the bls, assign the results of the xmlLoader to the xml transaction output property and try to read that output with an xacute query. I get the data when I test the query.
    Now, I don't touch the format between the web service and the file or after I load the file. How come the xacute query can read one transaction output and not the other?
    I have taken both transaction propertie values from a trace log and compared the strings and find no difference between the return from the web service and the result of the xmlLoader. I don't want to take the output of the web service and write it to a file just to get in into an xml format that works properly.

    I am sure that is the root cause, but how do I do an explicit type conversion without going through the output to file and load xml step? What else is needed?
    The return of the Web Service is an XML that contains an XML string in the xMII format. I can look at that string and it looks correct (Though xacute doesn't recognize the string as an xml structure). I can take that string and put it in an XML transaction property and it looks correct (the reference in the BLS is: SqlXml2.SQLXML2Response{/ns1:SQLXML2Response/ns1:SQLXML2Return}). I can take that XML variable and output to a file and then load that file and it actually is correct (though the content of the file and the return string from the web service are identical). So, I can see that the type conversion takes place when I load the xml file but I haven't found the action that will do the type conversion otherwise even though the "conversion" doesn't seem to require changing the content at all. Have I missed something?

  • HTML - Business Transaction - Xacute Query

    I have a problem in my HTML/JavaScript calling an Xacute query.  My business transaction gives me the expected results.  My Xacute query gives me the correct results.  However, when I run the HTML, I'm getting an error.  The error does not display on the screen.  Instead blanks display on the screen.  I've been looking at it for a couple of days.  I can't see the problem.  Any help you could provide would be greatly appreciated.
    Here's my JavaScript code:
    document.get_oper_cmd.getQueryObject().setParam(1,order);
    document.get_oper_cmd.getQueryObject().setParam(2,WrkCntr);
    // Execute the get operations applet (DSH_GET_OPER_DET_XQRY)
    document.get_oper_cmd.executeCommand();
    //If there are errors
    if (document.get_oper_cmd.getLastError());
         //Display the error then leave
         {alert(document.get_oper_cmd.getLastError());
         alert("Errors")
          return;
    When it runs - I get an alert that is blank, and then an alert that has "Error" assigned to it.
    Thank you for the help,
    Michelle

    Hi,
    Try something like this:
    I hope <b>get_oper_cmd</b> is your applet name.
    document.get_oper_cmd.getQueryObject().setParam(1,order);
    document.get_oper_cmd.getQueryObject().setParam(2,WrkCntr);
    if ( document.get_oper_cmd.executeCommand() )
    else
         alert("Some Problem has occured" + document.get_oper_cmd.getLastError())
         return;
    the statment <b>document.get_oper_cmd.getLastError()</b>
    will not return any boolean type to if statment it returns a String.
    Through this you will get know where error is going on.
    And you said blanks the screen. through iCommand applet you cannot display instead you need to use iGrid applet. But if you are Inserting/updating etc then use iCommand applet.
    Regards,
    Adarsh

  • Creating a print button to call a Report Query and pass filters

    If i use the REPORT QUERY option in APEX 4 to create an statement that is the same one used in an interactive report, can I create a link or button to the REPORT QUERY and pass all the session and filter information from the interactive report to the report query?
    This way I can have the interactive report screen where the user can do all sorts of modifications and such and then pass those to the REPORT QUERY so I can call that from a custom link or button.
    You may ask "why does he need another print button?"
    Answer: I am using a view that has some embedded HTML tags to format the output really nicely. The HTML download version created by the interactive reports works beautifully. The customer also wants a PDF version (meh) which does not render the HTML tags and actually echos them as part of the text. I found that I can create another view that uses the CHR function to create all the breaks and such I was doing with HTML and these do render properly in PDF. So, I figured just have 2 reports: 1 Interactive and 1 using a REPORT QUERY. I just want to call the REPORT QUERY version but use the Interactive Search form to set all the parameters.
    Or, am I over thinking this and there is an easier method?
    I made a previous post where I showed how I got the APEX printing to work and i hoped that helped someone out - fixing this issue would put the whole thing to rest.
    Thanks

    Is BI Publisher desktop (MS Word add-in) a possibility? This would allow you to use MS Word to create your output template (RTF) that would result in a properly formatted PDF. Of course, you'd have to right an updated version of the query without HTML embedded. Just thinking outside of the box.

  • Problem with Xacute Query.

    <b>
    Hi,
    When I pass the Input parameter to the Xacute Query,It is not giving any output.I mapped the Transaction Output to the Xacute Query.
    When I ran transaction with same input parameter (transaction  property),it gave successful results.
    Also all type of Queries (SQL,Tag) are working fine.
    Message in Java Console is : "Unable to connect to the web browser."
    I am unable to debug this problem.
    Please help me towards resolving this.
    Thanks and regards,
    Suresh Hiremath
    </b>

    Hi, Suresh.
    Completely different problem.  In your case, you are copying the wrong output structure to the Transaction output in your assignment block (Sam Castro sent me your transaction).  Although you are building an xMII Document in your transaction, if you look at your assignment, you are copying the XML that is returned from the JCO action directly to your transaction output.
    For transactions that will return XML data to other xMII objects (Xacute queries, user interface objects), the format of the XML must be valid xMII format (/Rowsets/Rowset/Row), with no invalid or missing columns, etc.
    In Brian's case, while he was using /Rowsets/Rowset/Row format, it was invalid (there were columns assigned to the document, but no data values provided for those columns in the rows).
    If you fix your assignment link, you should be fine.
    - Rick

  • Multiple records error in Xacute Query, xMII 12.0

    Hi Gurus,
    I am on xMII 12.0. I have a transaction where i am getting multiple line items from a BAPI is ECC system & want to display these on to the browser. I have an output parameter where I am passing all the values. In my tracer I can see all the values of the ouput parameters correctly being recieved from the bapi.
    I have created a Xacute Query to display my transaction output on the browser & linked it with my transaction. I am expecting to get the same output as i get in the tracer on the IE screen but i do not get it. The output parameter gives me the values of the last record only. But on individually executing the transaction the same variable gives me all the values.
    Can someone help please.
    Thanks & Regards
    Abhik

    Thanks guys for the extended help,
    My transaction has the following steps in sequence.
    1. JCO Interface to get details of BAPI (working fine)
    2. Repeator looped on the response table with data.
    3. Tracer on which global variable is displayed. In the Outgoing tab of the likns editor i am filling in the global variable (I have tried bothe types XML & String)
    The records are getting displayed correctly on the tracer message but when i link this to a Xacute Query then i am getting only the last record. I understand that the variable is getting overwritten.
    Amit I'll try to append all values to the row structure & then assign it to the output parameter of type XML. As from futher workings & your comments it sounds logical. I understand that the Xacute Query executes the whole transaction & gets the final value on to the screen so i get the last record only & this should solve when i always append the global variable in my transaction to the rowset. I will award the points once i finish the exercise. Logically i guess this should work.
    Thanks a lot for you help guys.
    Abhik

  • How to call the methods of JAR file into webDynpro Environment

    Hi All ,
             I have a requirement to call the methods of a JAR file into
             WebDynpro Environment. can anybody suggest me How this can be achieved. I Have a JAR file named FastTrack.API
    which contains few methods and i want these methods to be accessable into WebDynpro as other methods.
    Plz Somebody help me to sort this out.
    Regards,
    Deepak.

    Deepak,
    Please follow these 2 steps:
    1. Add jar into webdynpro project
            Right Click on ur project -> Select properties -> Java Buil path -> Choose Libraries Tab -> Add External Jars -> add the file from ur computer
    2. Use the jar
          write the import statement in your webdynpro code to utilize the properties of added jar.
    Thanks & Regards,
    Ram

  • Somehow ejbCreate method of an Entity EJB is not inserting a record into the database. I'm using BMP and calling the Entity bean method from a servlet. I'm using NAS 4.0 sp5 on Win 2k.

    Also if I call the insert query from within the servlet it works fine. I have disabled global transactions. Am I missing something out ? Please
    any help would be greatly appreciated.

    May be your servlet is not able to lookup the EJB. You can use some print statements and see whether lookup ok or not.
    Just a guess.
    Plese get back, if any queries.
    Thanks,
    Rakesh.

  • Configure Multi Batch Chart to Grid and eliminate Xacute Query

    I am using the Multibatch Chart example from my training class and I would like to change it.  I would like to use a grid instead of a chart.  Please eliminate the Xacute query from the equation and only include SQL queries.
    Thanks!!

    Chip,
    Create a new iGrid template and save it.
    Create a new SQL Query template to the training database in FixedQuery mode.  Under the "Fixed Query" tab, insert a sql statement like:
    SELECT * FROM TABLE
    WHERE BatchCOLUMN IN ([Param.1])
    ORDER BY COLUMN ASC
    Now in the html page, change the APPLET element's attributes from iChart to iGrid. Adjust the DisplayTemplate path to the new iGrid. In the Javascript function, which passes the selected batches from the first iGrid to the newly created iGrid, make sure to not only place a comma between the selected batches but also wrap each selected batchid in single quotes to satisfy the SQL statement above.
    Save the page and test.

  • RRI - How to edit the Receiver query

    Hello All,
    As per http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/156e3fefa13042e10000000a114084/frameset.htm
    I created a Target for my query (sender). The target or receiver query is also a BeX query in the same system.
    Now in my sender query, I have Department in my rows and Employees in the columns. When I double click on Department, it takes me to Target but it does not show the report in the format I want. How do I modify the receiver query?
    Also if someone has good knowledge in RRI, it would be really helpful if you can help me out with my query?
    Thanks in advance
    Regards,
    Abhishek

    Hi Abhishek,
    -- Characteristics that are to be filled from the sender query should be defined as free characteristics. A hierarchy node restriction, for example, can also be transferred to free characteristics as a property.
    -- Changeable variables for the receiver query are not filled by the RRI.
    -- Selections for various InfoObjects are transferred if the InfoObjects have the same reference characteristic.
    When the RRI is called, the sender query transfers the following filters to the receiver query:
    ·        global filters
    ·        values in the navigation block (dynamic filters including the presentation hierarchy)
    ·        filters from the restricted key figure selected
    ·        filters from the drilldown characteristics selected
    The system first fills the variables and then fills the navigation block. In order to do this, a unique characteristic assignment must be possible. Selections for various InfoObjects can then be transferred, as long as the InfoObjects reference the same basic characteristic. Hierarchy nodes are triggered in selections and can then be transferred to the respective InfoObjects.
    See this link and if any further questions get back to me :
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/bc2d38c4b3f205e10000009b38f8cf/frameset.htm
    Assign Points if Helps !!
    Regards,
    Naveen Rao Kattela

Maybe you are looking for

  • My macbook pro 2010 is really laggy and slow any help

    my macbook pro 2010 is really laggy and slow any help

  • How to handle an ADFC-12000?

    I've seen another post on ADFC-12000, but am not sure if I have the same problem or not. One of our QA testers sometimes gets this error moving between pages in our application, but usually there is no issue. I don't see any of our code involved in t

  • System migration / Cloning - Copying to temp HDD then copy back to new Mac

    Well, what I need... An instruction how and using what to copy/clone my system firstly to external USB drive then to other (same) Macbook. Precisely, I have MacBook black one, 80Gb, external HDD is 120Gb... used space on OS X (10.4.8) partition is 34

  • Auto-Answer Option

    I have always wondered wht the Thunderbolt does not have an auto-answer option.  I happen to be helping an employee with his Droid 3 (he upgraded from a basic phone) and noticed that it was a setting on that phone.  I was hoping that with the all the

  • HDTV Shows - Screen Tearing in iTunes

    I've noticed very minor screen tearing with HD shows when I watch them in iTunes. When I open the video file in Quicktime Pro, the issue goes away. Anybody else noticing this? I mean, it's a minor, minor issue. But I'm wondering if maybe iTunes is bo