on ‎2013 Jun 03 11:50 AM
Hi,
I am facing issue in passing the parameter values to the webservice transaction through the Xacute Query.
My requirement is to invoke the SAP ME webservice through MII by passing the arguments to the webservice from the webpage to the Xacute Query where in the Xacute query is invoking the webservice transaction.
While I hardcode the values in the Xacute query and execute the webservice it is working fine.
But while I pass the values from the webpage to the Xacute query parameter, i am facing issue where in the call was not executed and no action has been happened. I am not even getting the alerts after the statement of setting the parameters.
Find below my code.
<HTML>
<HEAD>
<TITLE>Invoke webservice</TITLE>
<SCRIPT language="JavaScript">
function testwebservice(){
alert("insidewebservice callmethod");
document.webserviceCall.getQueryObject().setParam(1,"PI04");
alert("TEST");
alert(document.webserviceCall.getQueryObject().getParam(1,"Site"));
document.webserviceCall.getQueryObject().setParam(2,"TESTA9");
alert(document.webserviceCall.getQueryObject().getParam(2,"SFC"));
document.webserviceCall.getQueryObject().setParam(3,"1");
document.webserviceCall.getQueryObject().setParam(4,"404");
document.webserviceCall.getQueryObject().setParam(5,"test immediate hold
webservice");
document.webserviceCall.getQueryObject().setParam(6,"DEF_FHOLD_RC");
document.webserviceCall.getQueryObject().setParam(7,"MESYS");
document.webserviceCall.getQueryObject().setParam(8,"DevSAPME52");
alert("result::"+document.webserviceCall.executeCommand());
}
</SCRIPT>
</HEAD>
<BODY>
<APPLET NAME=" webserviceCall "
CODEBASE="/XMII/Classes" CODE="iCommand"
ARCHIVE="illum8.zip" WIDTH="1" HEIGHT="1"
MAYSCRIPT>
<PARAM NAME = "QueryTemplate"
VALUE="Default/MYProject/Transaction/SFCImmdhold_ExQuery">
</APPLET>
<input type="button" id="GetShopor"
value="FetchSFC's" onClick="testwebservice()">
</HTML>
Kindly help me out in solving this issue.
Thanks for your support in advance.
Note: the MII version which I am using is 12.2 and 12.0 in both
the environments I am facing this issue.
regards,
Senthil
Request clarification before answering.
Hi,
Thanks for all your support.
It finally worked. instead of using the icommand, i tried with igrid and invoked the execute query by passing the values and updating the igrid.
regards,
Senthilmanivenkatesh.B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.