Quantcast
Channel: SCN : All Content - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all 1775 articles
Browse latest View live

Testing Web pages from MII workbench

$
0
0

I am not able to display a web page from the MII workbench when clicking on the Test button. There are users with the same role access as myself that have no problems using the Test button. No page of any kind opens, when attempting to test it.

This is occuring in MII12.2. NW 7.3

I am running IE9.

Has anyone come across this problem before.

 

Thanks,

 

Bob Koshalek


MDO Query errors in log -[Cannot fetch column 22, which has JDBC type DOUBLE, into a Java variable of type ]

$
0
0

Hello,
We are seeing a lot of log messages like the one below when an MDO select query is run. There is a message for every numeric column. There doesnt seem to be any issue with the queries working properly its just creating a lot of log messages. Has anyone else had this issue?

 

 

Exception of type com.sap.sql.log.OpenSQLException caught:
Cannot fetch column 22, which has JDBC type DOUBLE, into a Java variable of type
float..
[EXCEPTION]
com.sap.sql.log.OpenSQLException: Cannot fetch
column 22, which has JDBC type DOUBLE, into a Java variable of type float.

at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:83) ...

How to pass tag name and value dynamically in the output of PCo notification?

$
0
0

Hi,

I have a requirement to develop such a scenario where there can be multiple no of tags in PCo (Say 10) but there will be single notification to push the tag name when the value got changed and the changed value to MII. for any value change for any of the tag, the notification will be trigger. So As per my knowledge I have to pass the tag name and value dynamically in the "output" tab of the notification. But need your support to find out how to pass them dynamically.

 

Thanks in advance.

 

Regards,

Suman

Using a webservice

$
0
0

Hello EveryOne,

 

I am currently working on consuming a webservice from an P2 system. P2 service should call a transaction on some trigger using webservice call.

 

The wsdl link i am using is

http://<url>:<portno>/XMII/WSDLGen/ProjectFolder/TRX/SampleTrx?IllumLoginName=LogingName&IllumLoginPassword=LoginPwd

 

This link is giving an 500 Internal Error on Internet explorer 9.

 

Now if I remove the Login Name and Password and give link as:

http://<url>:<portno>/XMII/WSDLGen/ProjectFolder/TRX/SampleTrx

 

then MII authentication page opens. After entering the credentials, I am able to login and see me response.

 

So please let me know if there are any Firewall settings or similar reasons for this issue.

Correct me if I am wrong.

 

 

Regards,

Minakshi

Adding applet events to i5Grids and i5Charts

$
0
0

Hi Experts,

 

I have been trying to add a RowSelection event to a UI5 grid and am unable to.

 

I am not using MVC but adding charts and grids in the HTML pages in place of applets.

 

I have seen through the discussion in thread Re: How to define SAP UI5 Event Handlers while not using MVC Pattern?

 

But I am unable to find the right property to use to add these events.

 

I have tried to find the property in the UI5 libraries but I guess this is of no avail as the chart I am using (com.sap.xmii.grid.init.i5Grid) is MII specific.

 

I couldnot find any mention of properties in MII help.

 

I have also tried to add these in addProps as

 

var addProps = '{'+

    '"QueryTemplate":"<path to template>",'+

    '"DisplayTemplate":"<pathe to template>",'+

    '"RowSelection ":"<function>",'+

    '"Content-Type":"image/png"'+

'}';

 

Please advise.

 

Maaz

Can MII host a Webservice of third party system?

$
0
0

Hello Everyone..!!

 

Can MII host a Webservice of third party system?

 

Is yes, please let me know how to do that.

 

Regards,

Minakshi.

Upload File To Oracle

$
0
0


Hello experts,

 

From an MII web page, what is the easiest way to allow a user to browse to a file and then insert the file into a row in an Oracle database?  The file browsing part is easy with the HTML input tag but what is the easiest way to get the file into Oracle (as a BLOB or CLOB)?  Does MII provide any help?

 

Thank you,

Mike

Transaction Execution from URL

$
0
0

Hi Experts,

 

Need Your help to know how i can get the transaction output in Plain Text form using the URL.

 

Currently I am trying the following URL :


http://<server>/XMII/Runner?Transaction=Default/TDLF/TestTrxforYUI&Server=XacuteConnector&Mode=Query&OutputParameter=Text&type=text

 

 

Output :

 

<?xml version="1.0" encoding="UTF-8" ?>

 

-<Rowsets DateCreated="2014-04-09T23:41:19" EndDate="2014-04-09T23:41:19" StartDate="2014-04-09T23:41:19" Version="14.0.0 Build(802)" TransactionID="-1">

 

 

<Rowset TrxID="-1">

 

 

<Columns>

 

 

<ColumnDescription="Text" MaxRange="0.0" MinRange="0.0" Name="Text" SQLDataType="1" SourceColumn="Text" />

 

</Columns>

 

<Row>

 

 

<Text>HelloWorld</Text>

 

</Row>

</Rowset>

</Rowsets>

 

But i need the output in plain text format as

 

HelloWorld



Thanks

Shashank


res://ieframe.dll/acr_error.htm in IE 9 and IE 10

$
0
0

Our MII .irpt web pages look just fine on IE8, but with IE 9 and IE 10, if the page contains any applets, the browser refuses to open the page and redirects you to an error page whose URL begins with "res://ieframe.dll/acr_error.htm". Screenshot below is from IE 10.

 

This problem only occurs when trying to view a page containing applets (iGrids, iBrowsers, etc). If IE 9/10 users try to view one of our few applet-free .irpt pages, it works fine.

 

Is there any way to change this? Hopefully a setting that can be changed in IE 9/10?

 

User was trying to open this URL:

http://saptmd:50100/XMII/CM/TRMIIReport/Machine/MachineHistorical.irpt?JSESSIONID=kvec7TQYZOgjm3wHwaU8XqJps1JHRQEKydsA_SAPWBpvbVeu8pAJGfhVpXDDLO9h

 

Was redirected to this URL (see screenshot below):

res://ieframe.dll/acr_error.htm#,http://saptmd:50100/XMII/CM/TRMIIReport/Machine/MachineHistorical.irpt?JSESSIONID=kvec7TQYZOgjm3wHwaU8XqJps1JHRQEKydsA_SAPWBpvbVeu8pAJGfhVpXDDLO9h

 

We are running Java 6, specifically 1.6.0.18 (because later versions of Java will refuse to run applets).

 

Our version of MII is 12.2.4 Build(92) and it is running on a Linux server.

 

mii-ie10.png

Create XML file in network folder

$
0
0

Hello All,

 

I am reading data from SQL tables and getting  in the form of XML. I need to create a xml file with the same data and store the file in network folder.The name of the file should be with timestamp.xml.

 

Please suggest.

 

Regards.

Anshul

Strange switch error

$
0
0

Hello

I'm encountering a strange error when a transaction is executed.

It has a switch block with three cases. The match type is string. There are 3 standard boxes for each case and the "else" block.

In InputValue variable there is a stringtrim of string value.

In each MatchValueX there is static strings.

 

Sometime the transaction throws exception with the following error:

     while trying to invoke the method com.sap.lhcommon.common.VariantData.intValue() of an object loaded from local variable 'count'

 

If I run again the transaction with the same input, everything is completed without errors.

 

Do you have any idea about the problem?

 

System: MII 12.2

 

Thank you a lot

Best regards

Fabio

SQL Transaction support in MII 14.0

$
0
0

Recently I faced a scenario where I had to insert values in 2 different tables and both the insert statements should be in a transaction i.e. either the values are inserted in both the table or should fail for both. To be more specific about the scenario, first I had to insert values in one table then fetch some values from ERP System and then insert these values into the second table with Foreign Key Relation to the first table.

 

So I used the SQL Transaction Support feature of MII which got released with 14.0 SP0 Release.

This feature enables the user to group SQL queries within a JTA transaction.

You can find these action blocks under the 'SQL Transation Support' category.

Capture.JPG

As we can see, there are 4 actions available and their names suggest what they do.

1. SQL Transaction Begin: This action block starts the Transaction. Here you have to specify the data server on which this transaction would run.

2. SQL Transaction Commit: Commit the transaction

3. SQL Transaction Rollback: Rollback the transaction

4. SQL Transaction End: End the transaction

 

Here is the sample transaction I used for my scenario:

Sql Transaction in MII.JPG

The logic shown in the screen shot of transaction is the simplest way of showing how to use the MII transaction support in MII.

If any exception happens any where in the transaction then it is cached by Catch action block and the SQL transaction is Rollbacked by the Rollback action block.

 

Another point to take care of is mapping the query to the SQL transaction i.e. add the query in the SQL transaction. For this go to the Link Editor of SQL query and map the 'SQLTransaction' link of the query to the 'SQLTransaction' link of the 'SQL Transaction Begin' action block.

Link Editor.JPG

If this linking of 'SQLTransaction' links is not done then that particular query would not be part of the SQL transaction and would be executed independent of other queries.

 

I also tested these action blocks with MDO Connector and MDO Query and it worked as expected.

The only short coming this functionality has is that it lacks support for KPI Connector and KPI query and I am hopeful that this would be done in future releases.

 

What I felt was that in my case I only had 2 insert statements and not a huge logic to handle thus I was not in the favor of writing a stored procedure. At this time these action blocks came to my rescue.

Changing MII WSDL Structure

$
0
0

Hi Experts,

 

When we expose MII transaction as web service using WSDLGen,it gives predefined format of WSDL.

 

Now my requirement is, in that predefined WSDL format i want to add some custom methods or i want to change the format of that WSDL.

 

Is it possible in MII to change WSDL format?

 

If yes,please guide me how we can achieve it?

 

 

Thanks in advance for your help.

 

 

 

Regards,

Neha

change the font size of Panel Title in SAP UI 5

$
0
0

Hello All,

 

How could i change the font size of Panel Control ---Title Element

I have tried using stylesheet also but it doesnot change the font size of Panel --Heading or title

also button could be introduced in Panel Heading , how could I use TextView in Panel heading

"

The buttons that shall be displayed in the Panel header"

similarly i want to use TextView in Panel Header

any help is appreciable

 

Best Regards,

Namita

How to set query parameters to i5Grid

$
0
0

Hello Everyone,

 

I am working on creating i5Charts.

I mapped query template and display template to i5Chart template but I need to pass the query parameters dynamically.

 

How to set query parameters to i5Grid?

Pls help with syntax.

 

Thanks.

 

Regards,

Minakshi


SAP UI5 Table---change the row color and dynamic addition of combo box

$
0
0

Hello All,

 

How could I change the complete row color of UI5 table

i know how to change of column by adding css class but want to change the color of row

 

2) In a table, column1 has text field in 4 rows .....in 5th row dynamically a combo box is added.....how could this change of text field control to drop box could be handled in UI5 table

 

Thank you

 

Best Regards,

Namita

Upload File To Oracle

$
0
0


Hello experts,

 

From an MII web page, what is the easiest way to allow a user to browse to a file and then insert the file into a row in an Oracle database?  The file browsing part is easy with the HTML input tag but what is the easiest way to get the file into Oracle (as a BLOB or CLOB)?  Does MII provide any help?

 

Thank you,

Mike

Transaction calling using JavaScript

$
0
0

Hello,

 

I have a requirement. I am calling an IGrid applet. The grid applet displaying the content in a table.

 

The user is selecting the row and the row content should have be been retrieved and send as input parameter for a Transaction . The transaction is an RFC call.

The one return value (Suppose XYZ)of RFC will replace the selected row one column (cell ) content with XYZ and display in the grid.

 

My questions are.

 

1. How to call /execute the transaction and get the returned value in Javascript?

2. How to replace the content of a cell of the selected table?

 

Regards.

Anshul

Using Crystal reports in MII

$
0
0

Related to http://scn.sap.com/thread/1806338

 

Just a question to make sure I understand this topic.

 

So yes, it is possible to use CR objects in MII 12.2.Does this mean that when I defined the datasource for the CR to be MII and I am using an IRP page in MII that contains the CR, the reports runs solely in MII (it does not need CR during runtime)?

 

regards Frank

Connection pool size limit error

$
0
0

Hi all,

 

I am trying to execute a BAPI function from MII, execution fails with the following message;

 

[ERROR] Unable to make RFC call Exception: [Problem retrieving JCO.Function object: Connection pool <ECC_Server>:800:02:EN:ECCUser is exhausted. The current pool size limit (max connections) is 1 connections.]

[WARN] [SAP_JCo_Function_0] Skipping execution of output links due to action failure.

[ERROR] Uncaught exception from SAP_JCo_Function_0, Problem retrieving JCO.Function object: Connection pool <ECC_Server>:800:02:EN:ECCUser is exhausted. The current pool size limit (max connections) is 1 connections.

 

 

Config:

1. In 'SAP MII: Connections' of type JCO and have given pool size to 100.

2. In 'SAP MII: Credential Stores' store is created and same is being used in Start Session.

3. In  JCO_Function block, we can search for the Function Module and set it.

 

 

MII Version:

14.0.2 Build(82)

 

Am I missing something?

Has any one seen this? please advise.

 

Thanks,

 

Message was edited by: Shridhar N

Viewing all 1775 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>