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

trigger transaction with Enqueer action from ME activity

$
0
0

Hi there,

 

I'm trying to execute a transaction of MII from ME with an activity hook (MIITransactionExtension).

 

All actions in the transaction are well done until the enquerer action is in line.

 

This action returns the following exception


Enqueuer.execute(): Error in enqueing the message: while trying to invoke the method java.sql.Connection.prepareStatement(java.lang.String) of a null object loaded from local variable 'connection'.

 

Has anybody an idea?

 

Sebastian


Anomaly when query timeout in Data buffer

$
0
0

Hello experts

I'm using MII12.2 and query buffered (allow buffering flag) on a database with several tables locks.

When I get a query timeout (LastErrorMessage of the query is "Response timed out, request terminated"), the query is not queued in the buffer.

Just if I send the query to the buffer setting a wrong used id in the dataserver, then the manager works properly (when I restore the used id, the query completes its logic when the lock is released)

 

If anybody wants to replicate the enviroment, the query for table lock in SQL Server is

     BEGIN TRANSACTION

     SELECT * FROM [your table name] WITH (TABLOCKX, HOLDLOCK);

     WAITFOR DELAY '00:10:00'

     ROLLBACK TRANSACTION

You have to run it in SQL Manager, not in MII

 

Sequence:

- Create in MII a generic query with SELECT * FROM [your table name], and enable "allow buffering"

- Call it in a transaction (if you want, with exception handler)

- Run the lock query in SQL Server

- Run the transaction (while the table is locked by SQL Server query) and wait transaction/query error

- Check data buffer: the MII query is not buffered

 

Is it normal?

Is there any patch?

 

Thanks

Regards

Fabio

How to save PDF file in a particular shared location

$
0
0

Hi All,

I am trying to save generated PDF file in a particular location like C:/Documents and Settings/FolderName/My Documents/test.png.

But Its givinhg following error.

[ERROR] [Image_Saver_0]ImageSaver: Access to the file path /C:/Documents and Settings/FolderName/My Documents/test.png is not allowed .

 

I am Using Image Saver action block.

To this passing PDF_Document output as Input to "Encoded image" of Image saver action block.

passing  path as above in "Path" of Image saver action block.

 

MII version :14.0 SP4.

 

Can anybody suggest me how to give path to store PDF files in a particular location.

 

 

Thanks&Regards,

 

Rajee .

 


PCo Notification not reaching MII Transaction

$
0
0

Hi Friends,

 

I need some help to send Pco Notification messages successfully to MII. I have created a Pco Notification Agent and created the expression as below.

 

if('BA:TEMP.1'>44,  " right", "wrong")

 

I tried to test the delivery manually using Notification Test Dialog. When I click on the Deliver button, destination  Transaction at MII gets invoked successfully. But I do not get any value in the input parameter of the transaction. While creating the destination I have mentioned the input parameter correctly.

 

Also when click on View Sample button I get the below xml message

 

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

- <NotificationMessage>

- <Header>

  <Name>TestNotificationMessage</Name>

- <Description>

- <![CDATA[ Test Message

  ]]>

  </Description>

  <Destination />

  <CreatedDate>2014-09-04T11:57:47</CreatedDate>

  <ID>1afecce1-67d9-41aa-8296-27a5dc7c1046</ID>

  <Status>Created</Status>

  </Header>

- <Body>

- <Values>

- <Expression1 type="xsd:string" quality="None">

- <![CDATA[

  ]]>

  </Expression1>

  </Values>

  </Body>

  <Faults />

  </NotificationMessage>

 

I am using PCo Version 2.3 and MII version 14.0

 

Any help on this very much appreciated.

 

Thanks

Shaji

MII 12.1 - Getting String List from a single column xml document

$
0
0

Hello All,

 

I have a single column XML document. Is there an easy way apart from using a repeater to convert the single column XML document to string list.

 

Values
1
2
3
4
5
6
7
8
9

 

The output needs to be 1,2,3,4,5,6,7,8,9

 

Thanks,

 

Kiran

SAP MII 14.0 - Calling external REST service

$
0
0

Hello All,

 

Can you call an external rest service in SAP MII 14.0 ?

 

Which action block can be used to do it ?

 

I saw the JSON to XML convertor block in SAP MII.

 

But how do I call a REST service in the first place ?

 

Thanks,

 

Kiran

MII BLS Trasaction calling SAP RFC call - How to pass XML document as input parameter

$
0
0

Hi,

 

1. I am very new to the SAP and SAP xMII workbench.

 

I have a webpage with iGrid applet embedded on it. We have multiple rows in the iGrid applet that can be selected by user.

After selecting single or multiple grid rows user clicking a 'button' on the web page.

 

We are using iCommand applet (ExacuteQuery] to call the BLS transaction.

Using iCommand applet on the webpage we are passing parameters to BLS Transaction.

 

Would like to pass on the single/ multiple selected grid row values as a XML document to BLS Transaction variable which is an Input parameter for SAP RFC call.

 

I am using SAP JCo Session to make the RFC call. 

Any pointers will be helpful.

 

2. Which is a best track in SAP training courses to get formal training.

 

Thanks,

 

Senthil

Wrong WSDL for MII WSDLGen

$
0
0

Hi There, I am having hard time to generate right WSDL for the BLS transaction.

I tried couple of things -  When i don't assign XSD to OP variable. WSDLGen generates wsdl document but looks it is wrong,i don't see Rowsets node.( Ref att: WSDL with out XSD)

 

When i attach XSD(refer att:XSDDOC) to OP variable with element ROWSETS. WSDDGen is generating different WSDL but that one also looks wrong to me.(Ref att: WSDL with XSD assigned to OP var.wsdl) .In this Row node referring Rowsets node which is wrong.

 

Output i am trying to get is like below

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

<Rowsets>

    <Rowset>

        <Columns>

            <Column Description="SITE" MaxRange="1" MinRange="0" Name="SITE" SQLDataType="-9" SourceColumn="SITE"/>

            <Column Description="ITEM" MaxRange="1" MinRange="0" Name="ITEM" SQLDataType="-9" SourceColumn="ITEM"/>

        </Columns>

        <Row>

            <SITE>0123</SITE>

            <ITEM>abcd</ITEM>

        </Row>

        <Row>

            <SITE>3456</SITE>

            <ITEM>efgh</ITEM>

        </Row>

     </Rowset>

</Rowsets>

 

So, My question here is ,Is there any thing wrong with XSD ? or Any other thing need to be done to generate right WSDL ?

Thanks in advance for your help.

 

 

Thanks

Hari


SAP MII to SAP ME integration using MEINT component

$
0
0

Hello Experts,

 

I am currently studying the integration part between ERP and ME using ME INT component. I am done with configuration necessary for meint in MII. I am quite clear with workflow from ERP to MII using IDoc. But workflow from MII to ME is confusing me a lot. So please help me on this issue.

 

Target: BOM data has to be transfered from ERP to ME.

 

Understanding till now:

1. ERP will send a BOM (via IDoc) to MII.

2. MII will send it to a queue in ME INT database.

 

Queries:

1. After an IDoc is added to MEINT message queue, how will it be passed to ME?

2. Also, if I send BOM data to ME before ITEMs are configured in ME, will ME through an error?

 

I have gone through "SAP MEINT Overview anddata communication between SAP ECC and SAP ME via SAP MEINT" help documentation but I didnt get enough clarity over sending data to ME.

 

Your reply will be appreciated.

 

Thanks.

 

Regards,

Minakshi.

Multiple SAP ME PAPI calls happening at the same time

$
0
0

Hello,

 

Brief description:

We trigger notification from SAP PCo for every start and end of operation at each station. The data is received in the form of xml file to SAP MII transaction. In SAP MII we call SAP ME PAPI block to send data to SAP ME.

 

This end to end scenario works fine until we do not get more than one trigger at the same given instance. When we get multiple triggers at the same time calling the same PAPI the transaction fails and then continuous to fail for all the triggers coming after this.

 

Request your kind help or inputs for resolving the below issue on priority.

 

Please find attached the screenshot of the error.

 

Regards

Suhas

Packing specification error

$
0
0


Hi everyone,

 

can someone help me with this error ( I can save specification with no issue, but the moment when I try to activate this error shows) thank you

 

Pack. spec. 10000023 not
activated, because no condition record exists

Issue during Passing parameter for Tag query for I5 chart

$
0
0

Dear All,

                  I am facing issue during passing parameter for tag query. coding is given below:

 

var d = TagStatisticlist.getGridObject().getSelectedCellValue(8);

var addProps = '{'+

    '"DisplayTemplate":"NRC_2010/Notifications/UI/TagStatisticChartUI5",'+

    '"QueryTemplate":"NRC_2010/Notifications/Queries/TagStatisticDetail1",'+

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

    '}';

  var TagStatistic = new com.sap.xmii.chart.hchart.i5Chart('NRC_2010/Notifications/UI/TagStatisticChartUI5','NRC_2010/Notifications/Queries/TagStatisticDetail1',addProps);

  TagStatistic.setChartWidth("800px");

  TagStatistic.setChartHeight("200px");

 

var oDateFormat = sap.ui.core.format.DateFormat.getDateTimeInstance({pattern: "yyyy-MM-ddTHH:mm:ss"});

 

 

 

  TagStatistic.getQueryObject().setTagName(1, d);

  TagStatistic.getQueryObject().setStartDate(oDateFormat.format(stDate.getDateValue()));

  TagStatistic.getQueryObject().setEndDate(oDateFormat.format(endDate.getDateValue()));

 

  TagStatistic.getChartObject().setValueColumns(d)

  TagStatistic.getChartObject().setLabelColumns("DateTime")

   TagStatistic.draw('TagStatistic');

  TagStatistic.update(true);

});

 

system is not getting data as per given parameter.

 

 

Thanks

Muhammad Ashfaq

MII Localization Javascript

$
0
0

Hello All,

 

I want to use a localization Meta-inf at workbench in the irpt page. Is it possible?

 

I created a bundle files in the root and i use the code below to get the text:

 

var oBundle = jQuery.sap.resources({url : "/XMII/CM/Test/i18n.properties"});

oBundle.getText("Title");

 

But i want to use meta-inf in the workbench and i get a error if i use this location.

 

Regards,

Marcelo

Extra gray space above Grid Header

$
0
0

Hi

 

iGrid displays extra gray space above Header in MII 14.0 SP4 Patch 5 Whereas in iChart it is not there.

 

I tried all options checking and unchecking but in vain. Any help will be appreciated.

 

[This is not because of any div or html component. When you execute iGrid directly from workbench then also it is there.]

 

I  have attached image of the iGrid.

 

Grid_BackgroundColor_Above_Header.jpgI

 

Thanks and Regards

Khaleel

Folder path for developing custom UI in SAP OEE

$
0
0

Hi,

recently I was developing in a scenario where I need to add a custom UI in OEE Dashboard. For that I followed the SAP How to guide for Custom UI. As per the guide I developed the view.js file controller.js file and then set them in activity configuration. It was stated in the how to doc that we have to put upto the name of the view page not the extension. Interestingly I found one thing here.

 

OEE always expects a folder path for that view file is such a way http://<host>:<port>/<Project name>/Web/WebContent/customActivity/<View page>.

Main problem to use that is, we can't add any specific folder in between any of the folder and even we can't change the name of the folder. I have tried with "customactivity", it didn't work.

I think this kind of limitation anyone can't expect while developing. I just post this here to explore that if I am doing anything wrong or that is a issue. Another point is in the how to doc it is not mentioned anywhere.

 

Thanks and Regards,

Suman


SAPUI5 Layout which accepts MII I5charts/Grids

$
0
0

Hello,

 

I am trying to create a page with several I5Charts and normal UI5 tables and use them in a matrix layout to align them.

 

I get below JS error when I try to place I5charts to a matrix/virtical/horizontal layout.

 

Which layout container in UI5 that MII charts can be placed in?

 

Regards

Suneel

 

 

Error: "[object Object]" is not valid for aggregation "rows" of Element sap.ui.commons.layout.MatrixLayout#__layout0 @ https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js:134

 

Below is the code snippet

 

 

 

        var a  = new sap.ui.commons.layout.MatrixLayout ( { widths : "100%" } );

 

 

        var graph = new com.sap.xmii.chart.hchart.i5Chart("Mii/Common/Avail", "Mii/PM/Query/Avail");

        graph.setChartWidth("640px");

        graph.setChartHeight("400px");

       

 

        a. addRow(graph);

Web Services Reliable Messaging

$
0
0

Hello Experts,

We are trying implement Web Service Reliable Messaging concept in MII 14.0.Could you please help us getting the step by step procedure to implement this concept?

 

Regards,

Shanmugam K

Fetching SAP ME PAPI in SAP MII using PAPI interface block

$
0
0

Hello Experts,

 

I am trying to fetch data from SAP ME to SAP MII using SAP MII "SAPME_PAPI_Interface" action block.

 

1. I have created a credential alias in credential store with a user linked to a site in SAP ME.

2. Mentioned correct site name.

3. Entered "*" in search pattern.

4. Fired search button.

5. Now, many modules, services and methods are loaded.

6.  Even if I select any of these, and click on ok, and generate request/response xml.

7. Then I go the Configure screen, I get only "test" node under request and response xml.

(Attatching a screenshot for you reference)

 

The same happens even if I choose any other method.


Please help me with this issue.

 

Also can you please post the link of downloading mii-erp-integration custom action block jar file.

Regards,

Minakshi.

Unable to make RFC call Exception

$
0
0

Hi,

I am running into a problem calling a specific BAPI in SAP called BAPISDORDER_GETDETAILEDLIST.

 

I would like to use this BAPI to pass in a Sales Order number and get back various information about that Sales Order. It works great in SM37, but I run into a problem when calling with MII.  If I pass in a Sales Order number that doesn’t exist then I do not receive an error. But if I pass in a Sales Order number that does exist then I receive the following error: [ERROR] Unable to make RFC call Exception: [Character reference "&#00" is an invalid XML character.]

 

I have tried several unrelated Sales Orders and they all behave the same way

I have tried both defining values within the Link Editor and passing in the Request XML structure directly. Both methods act the same way.

 

Below are my Link Editor definitions.

XPathExpression
SAP_JCo_Interface_0.Request{/BAPISDORDER_GETDETAILEDLIST/TABLES/SALES_DOCUMENTS/item/VBELN}"0200006366"
SAP_JCo_Interface_0.Request{/BAPISDORDER_GETDETAILEDLIST/INPUT/I_MEMORY_READ}"A"
SAP_JCo_Interface_0.Request{/BAPISDORDER_GETDETAILEDLIST/INPUT/I_BAPI_VIEW/ITEM}"X"
SAP_JCo_Interface_0.Request{/BAPISDORDER_GETDETAILEDLIST/INPUT/I_BAPI_VIEW/HEADER}"X"

 

Any help you can provide to steer me into the correct direction would be greatly appreciated.

Thank you

-Chris

 

MII Version: 12.2.4

Unable to get Tag Values when request more than 1100 tags together in PCo

$
0
0

Hi Experts,

 

We are unable to get Tag Values when Try to query more that 1100 Tags in one shot in  PCo.

Below is the error :

  • [ERROR] com.sap.xmii.Illuminator.logging.LHException: Query execution failed due to following: [Tag] : Exception [ParserException] - Parse Error occured in directive number 1, 'Directive #2': Maximum Iteration Loops Occured.

 

  • [ERROR] Uncaught exception from TagsUpdatePcoQuery_0, com.sap.xmii.Illuminator.logging.LHException: Query execution failed due to following: [Tag] : Exception [ParserException] - Parse Error occured in directive number 1, 'Directive #2': Maximum Iteration Loops Occured.

 

Is there any configuration setting to get this or do i need to modify logic in MII and send limited Tags at once ?

 

Any help will be highly appreciated.

 

Thanks

Shashank

Viewing all 1775 articles
Browse latest View live


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