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

Similar Messages

  • How to pass parameters from html to xacute query

    hi experts,
    I need to pass a variable from  html to xacute query.i need the correct syntax for that .
    Thanks in advance.
    lokesh

    Hi Lokesh,
    I apologize if my message came off sounding rude - passing parameters to queries is fundamental to xMI, one of the basic concepts.  I only meant that if you haven't had xMII training, you could benefit greatly
    Kind Regards,
    Diana Hoppe

  • Executing BLS Transaction through Xacute query template?

    Hi Experts,
    Am having a SQL query template for which am passing value from web page after user input and i have added this SQL in my BLS transaction in illumSQL action block. I have created Xacute query template and display template(iGrid) for displaying output from transaction.
    Problem am facing is that am not able to execute my transaction after passing values to SQL query. How to get this working?
    Regards,
    Ravi Shankar

    Hi som sarkar,
    Let me explain my problem this way, let say am having SQL Fixed query and am doing some field selection based on the parameter which is been passed to the query template.
    -Checked the query template returning values, working good.
    created one Display template to display whatever been fetched by query template(iGrid).
    -Generated applet working good.
    Now if i pass the parameters from webpage to SQL query(parametes are mapped in query template) and update the grid, it should work right but its not...
    Thats what i was trying to ask you so far.
    Regards,
    Ravi Shankar

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

  • Cash Journal : Business Transaction Query

    Hi Experts,
    does it mean that Business Transactions in cash Journal are nothing but a type of grouping? please correct me if i m going wrong.
    please lemme if based Cash Journal's Business Transaction, will i be able to generate a MIS/Cash Book analysis, to track the cash outflow Business Transaction wise.

    Hello,
    I have NOT seen any report that you can segregate the reports based on business transaction. For any analysis purpose, these business transactions may not be much relevant.
    But, if you ask me these business transaction will help the user who is entering the cash journal to easily identify the transactions.
    Regards,
    Ravi

  • EDI X12 Business Transactions query...

    Hi,
    What are the EDI X12 Business Transactions
    (ANSI X12 Standards)for QM module....
    Can any one list out...?
    and also for Transfer order and transfer requirement...
    is 943 /944 (Warehouse stock transfer shipment advice/receipt advice)...?
    Thanks,
    Larry

    Hi Ahmad,
    Thanks for your interest in my question.
    The use case is fairly simple at this point. For a given incoming EDI X12 file, we would like to store all of the data it contains into a database for real-time lookup (web front end) and auditing/reporting purposes. My basic question is about the creation of the relational database model and whether (a) there exists "somewhere" pre-built relational database models that correspond to EDI X12 implementation specifications that are available for purchase or (b) if there is a product that can take a description of an EDI X12 implementation and produce such a relational database model (that last being the somewhat harder problem it would seem to me.)
    Regards,
    Ed

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

  • 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

  • Short dump "Time limit exceeded" when searching for Business Transactions

    Hello Experts,
    We migrated from SAP CRM 5.2 to SAP CRM 7.0. After migration, our business transaction search (quotation, sales order, service order, contract etc) ends with the short dump "Time limit exceeded" in class CL_CRM_REPORT_ACC_DYNAMIC, method DATABASE_ACCESS. The select query is triggered from line 5 of this method.
    Number of Records:
    CRMD_ORDERADM_H: 5,115,675
    CRMD_ORDER_INDEX: 74,615,914
    We have done these so far, but the performance is still either poor or times out.
    1. DB team checked the ORACLE parameters and confirmed they are fine. They also checked the health of indices in table CRMD_ORDER_INDEX and indices are healthy
    2. Created additional indices on CRMD_ORDERADM_H and CRMD_ORDER_INDEX. After the creation of indices, some of the searches(without any criteria) work. But it takes more than a minute to fetch 1 or 2 records
    3. An ST05 trace confirmed that the selection on CRMD_ORDER_INDEX takes the most time. It takes about 103 seconds to fetch 2 records (max hits + 1)
    4. If we specify search parameters, say for example a date or status, then again we get a short dump with the message "Time limit exceeded".
    5. Observed that only if a matching index is available for the WHERE clause, the results are returned (albeit slowly). In the absence of an index, we get the dump.
    6. Searched for notes and there are no notes that could help us.
    Any idea what is causing this issue and what we can do to resolve this?
    Regards,
    Bala

    Hi Michael,
    Thanks. Yes we considered the note 1527039. None of the three scenarios mentioned in the note helped us. But we ran CRM_INDEX_REBUILD to check if the table CRMD_ORDER_INDEX had a problem. That did not help us either.
    The business users told us that they mostly search using the date fields or Object ID. We did not have any problem with search by Object ID. So we created additional indices to support search using the date fields.
    Regards,
    Bala

  • Report Painter- Restricting Business Transactions

    Hi,
    I'm creating a report using report painter & would like to prevent Actual Overhead Distribution data (business transaction RKIV) from being reflected in this report. I can add business transactions in the report through Edit -> General Selection data. How do I block a particular business transaction in this report ?
    Regards,
    Sangeeta

    Hi Sanjeeta,
    there's several ways to do this:
    (1) On the report characteristics window, enter range of values limited the values you want. To add more range, click on the more button, and keep restricting until you have what you want. Then select "no explode".
    (2) My recommended way to do it is to create a basic SET via GS01. Table = GLPCT, Field=ACTIV.
    On the set header, Select "Suppress". Enter the values that you want included, and leave out the excluded values. You can use range of course!
    Then back on the report characteristic screen, enter you SET name and check the flag for entering sets. Select "no explode". With this option, if you ever need to change your Business transaction values, just change the SET and the report will query the updated values.
    If you use a report variant to carry out the same solution, just note that everytime you need to change the values, you have to change the variant, transport, and regenerate the report (assuming that you do not change enterprise level variants directly in production)
    Hope this helps,
    Sam

  • Copy of Business Transaction (CRM Service Request)

    Hi Forum,
    I created a transaction that uses the CRM Service Request as leading Transaction Category. I configured the IMG step "Copying Control for Business Transacation" in order to copy the transaction as a follow-up.
    The problem is that the transaction does not appear in the list when we choose the link  "create follow-up".
    Any idea ?
    Thanks a lot !!!

    1. Activate Copying Control of Activities
    CRM - Transactions - Settings for Activities - Activate Copying Control of Activities
    This will cause that only transactions defined in your Business Transaction Profile (which is assigned to your Business Role and defined in CRM - Interaction Center Webclient - Business Transaction - Define Business Transaction Profiles) are visible in dropdown list.
    2. Define Copying Control of Transaction Types
    CRM - Transactions - Basic Settings - Copying Control of Transaction Types - Define Copying Control of Transaction Types
    Here select Source Transaction and choose Target Transaction.
    Always follow CRM Best Practices documentation as all of the customizing steps are described there...
    Link - http://help.sap.com/bp_crmv12007/CRM_DE/HTML/index.htm

  • 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

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

  • 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

  • Using MAP parameter type through Xacute Query

    Hey All,
    I have a transaction that has an input parameter of type Map.
    My question is what is the format I have to pass to the transaction through an xacute query.
    I've tried
    Key=[string:Value]
    Any help would be appreciated.
    Jasper
    Edited by: Jasper Vander Velden on Nov 8, 2010 9:54 PM

    Hi Jasper,
    This worked for me, give it a try and let me know. Obviously, substitute your own key/value pairs   I added a Tracer inside the transaction, and this is the format that was display in the Tracer Message.
    {myInt=[[integer:22]], myString=[[string:burp]]} 
    Pardon all my edits, for some reason, the brackets weren't showing, should be brackets around integer:22 and string:burp
    I think I got it fixed!
    Kind Regards,
    Diana
    Edited by: Diana Hoppe on Nov 8, 2010 6:10 PM
    Edited by: Diana Hoppe on Nov 8, 2010 6:11 PM
    Edited by: Diana Hoppe on Nov 8, 2010 6:11 PM
    Edited by: Diana Hoppe on Nov 8, 2010 6:12 PM
    Edited by: Diana Hoppe on Nov 8, 2010 6:14 PM

Maybe you are looking for

  • Regarding smartforms erro

    hi experts, i have developed a driver program for the smartforms ,in the driver program i am displaying with the help of final internal table and with the help of structure i m declaring an internal table in the smartforms,the structure is containg t

  • Need help with backed up photos-now cannot view..?

    Using iphoto 6, super duper, seagate external hd. Drive has already been set-up and backed up several times-been working well........until....... Last night, I saw that out of 120gb I have about 5gb left on my G4.! "decided" to back-up iphotos and "d

  • Images are not visible in the client

    Hi All, I have created a Web Dynpro application for laptops using SAP Netwever Composition Environment 7.1 . I have put the images in src\mimes\Components\com.utility.comp.UtilityComp (utility is the name of the application)  folder and have specifie

  • Need common interface across devices for word processing and spreadsheets with shared files

    Need software for Mac, PC, iPad & iPhone with common word processing interface across devices (spreadsheet as well). Need shared access to files through home NAS or cloud. Trying MS Office 365, Google Docs & Sheets, OpenOffice, Trying iCloud, Google

  • Help!! Log on & off email - Nokia N8

    Hi I have successfully opened my Hotmail account on my Nokia N8 and it now shows on one of my homescreens.  However, I don't know how to log in and out of my account so that I choose when to read my emails as they are currently visible at all times w