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

JCO error : BAPI not found

$
0
0

Hi all,

 

I am struggling with an error which tells me that a BAPI,  which I can run with the SE37 SAP transaction,  is not found using the JCO MII action block . MII connect to SAP ECC with a communication user who has SAP ALL permissions .  We have several MII apps running SAP JCO action blocks with no problems at all using the same user and connection configuration . When configurating the action ,  I can see a long BAPI list but not the one I need .

 

How come ¡?

 

Please help ,  thanks in advance

 

Note : We are running a 12.2.3 build 167 sp5 MII plataform


XMII 12.2 expression

$
0
0

Hi,

 

I have this expression where I change a date format for my condition. But I can not test for dates I get Convertion error. here is my condition:

 

stringif(dateformat(datenow,"yyyy-MM-dd'T'hh:mm:ss","MMM_yyyy")=="Aug_2013", "true", "false") - it returns true but that is not how i need my condition.

 

I need to check if date is History, Present or Future date. I get conversion exception error when I use any date method e.g:

 

datecompare(dateformat(datenow,"yyyy-MM-dd'T'hh:mm:ss","MMM_yyyy")=="Aug_2013", "true", "false").

 

Any suggestions on how I can convert string "Aug_2013" to a date data type?

Issues with printing applets with page breaks....xMII

$
0
0

Dear Experts,

 

We have a screen with somewhere about 29 applets. The applets have been displayed in <td>,<tr> with headers for each. While we print the page, it breaks out between header and the apple. Consider the case, header goes in page 1 and applet corresponding to the same goes to another.

 

We have tried setting page breaks dynamically, but that too is partially supported in IE, hence it works sometimes, and doesn't work sometimes.

 

Wouls appreciate if you can suggest some easy way of getting the print out.

 

Thanks in advance.

 

Regards,

Swaroop

RSLinx OPC Server to SAP MII

$
0
0

Dear Experts,

 

Need your suggestions on couple of questions I had.

Using MII 12.1 version build 46 , Pco 2.1 as OPC Client , RSLinx Classic as an OPC Server.

Customer is having 25 machines in the plant

 

 

  1. Client is asking for ShopFloor Monitoring System dashboard from SAP MII like machine on/off status,production figure etc.
  2. How to manage one RSLinx OPC server installed on one machine to SAP MII Dev,Quality and Production Servers.(Single OPC Server)

 

 

For Point1 , Is it a recommended approach from SAP MII to get the tags for every minute through Pco and show it on  MII dashboard

I mean to say is it ok to get the tags on every minute and build a live system from SAP MII ?

 

 

For Point2 ,  I am using RSLinx Classic as an OPC server(only one OPC server installed on a PC) ,

how  to refer to this single OPC server to SAP MII dev , Quality and Prod servers.

Can we run all the MII servers on this single point of OPC server ,Should this RSLinx software to be installed on different PC's ?

Is this is a recommendable approach ..?

 

 

Please guide me as I am new to this shop floor integration part.

Highly appreciate your early help.

 

Best Regards,

Eswar.

Transporting MII projects using CTS+

$
0
0

I saw a post by someone asking, whether MII projects can be transported using CTS+ or not. So, thought of trying it out.

 

We will start with brief introduction.

MII 14.0 and further releases support transportation of configuration files from one MII instance to another using CTS+.

MII does not officially support transportation of MII projects using CTS+.

 

I had also uploaded a document earlier mentioning all the steps required for transporting MII configurations from one MII instance to another using CTS+.

Have a look at it before reading this blog.

Using CTS+ with MII 14.0

 

When we use NWDI in MII for creating shared projects, an sda could be created for these projects.

So if you have an sda of projects, then you could transport it using CTS+.

This is what I did.

 

Prerequisites: 2 MII systems are configured for transporting MII configurations. You can find necessary steps for this in the aforementioned document.

 

Step 1:

Go to the Configurations screen of MII and choose CTS+ as the transport mechanism.

This will fetch a transport request for you from CTS+.

Also You would find a link "Transport Request" on the screen. Click the link and this would open a transport organizer UI popup.

SS1.JPG

 

Step 2:

In the transport organizer pop-up, select your transport request and attach the sda containing MII projects to the transport request using the "Object List"

tab. For attaching the object, first bring the transport request in "change" mode using the "Display<>Change" button. Also save the request after attaching the sda using the "Save Changes" button.

ss2.JPG

Release the transport request by using the "Release Selected Item" button.

If you  want to transport the configurations also with the request, then don't release the transport request. Come back to the MII configuration screen after           saving the transport request and choose the configurations in the Configurations screen and then export the files using the export button in the           Configurations screen.

 

Step 3:

Now the process is same as importing the configurations. Go to the CTS+ system and import the request from the import queue of the MII system into which you want to import the configurations and project. You can find the steps for this in the above mentioned document.

 

After import, the project would be deployed on the MII system and all the contents of the projects would be in read only mode as happens with other deployed projects.

SAP MII Not able to use repeater on IDOC's XML received in SAP MII

$
0
0

Hello All,

 

 

 

I'm receiving a custom IDOC from ECC which has 5 segments. each segments can have multiple rows. I need to push this data to SQL.

 

When I'm repeating through XML elements, it is inserting blank rows instead of the values I am providing in [Param.1],...etc. in BLS.

 

My XML is attached.

 

 

XPATH expression in repeater's config I'm giving is -- Transaction.Receive_HCM_Details{/ZSACO/IDOC/ZSACO_ORG}

 

Transaction.Receive_HCM_Details - is my Transaction variable in which details are coming.

 

 

I am assigning Repeater_0.Output{/ZSACO/IDOC/ZSACO_ORG/FLAG} in [Param.1] of insert query.

 

My XML coming from IDOC is :

 

 

 

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

<ZSACO>

    <IDOC BEGIN="1">

        <EDI_DC40 SEGMENT="1">

            <TABNAM>EDI_DC40</TABNAM>

            <MANDT>110</MANDT>

            <DOCNUM>0000000000205215</DOCNUM>

            <DOCREL>731</DOCREL>

            <STATUS>30</STATUS>

            <DIRECT>1</DIRECT>

            <OUTMOD>2</OUTMOD>

            <IDOCTYP>ZSACO</IDOCTYP>

            <MESTYP>HRMD_A</MESTYP>

            <STDMES>HRMD_A</STDMES>

            <SNDPOR>SAPZID</SNDPOR>

            <SNDPRT>LS</SNDPRT>

            <SNDPRN>ZIDCLNT110</SNDPRN>

            <RCVPOR>XMIIIDOC01</RCVPOR>

            <RCVPRT>LS</RCVPRT>

            <RCVPRN>XMIIIDOC01</RCVPRN>

            <CREDAT>20130829</CREDAT>

            <CRETIM>081257</CRETIM>

            <SERIAL>20130826151623</SERIAL>

        </EDI_DC40>

        <ZSACO_ORG SEGMENT="1">

            <FLAG>U</FLAG>

            <OTYPE>O</OTYPE>

            <OBJID>10010160</OBJID>

            <STEXT>Black Mountain test</STEXT>

            <BEGDA>20080101</BEGDA>

            <ENDDA>99991231</ENDDA>

        </ZSACO_ORG>

        <ZSACO_EMPLOYEE SEGMENT="1">

            <MASSN>01</MASSN>

            <FLAG>I</FLAG>

            <PERNR>00000083</PERNR>

            <NACHN>hjgjhj</NACHN>

            <VORNA>gll</VORNA>

            <ORGEH>10010027</ORGEH>

            <PLANS>10021527</PLANS>

            <BUKRS>1000</BUKRS>

            <SCHKZ>1007-01S</SCHKZ>

            <BEGDA>19990616</BEGDA>

        </ZSACO_EMPLOYEE>

        <ZSACO_EMPLOYEE SEGMENT="1">

            <MASSN>01</MASSN>

            <FLAG>I</FLAG>

            <PERNR>00000084</PERNR>

            <NACHN>AHAHAHAH</NACHN>

            <VORNA>AHAHAAJ</VORNA>

            <ORGEH>10010027</ORGEH>

            <PLANS>10021386</PLANS>

            <BUKRS>1000</BUKRS>

            <SCHKZ>1007-01U</SCHKZ>

            <BEGDA>19910616</BEGDA>

        </ZSACO_EMPLOYEE>

        <ZSACO_LEAVE SEGMENT="1">

            <FLAG>I</FLAG>

            <PERNR>00000081</PERNR>

            <SUBTY>1000</SUBTY>

            <BEGDA>20130826</BEGDA>

            <ENDDA>20130826</ENDDA>

        </ZSACO_LEAVE>

        <ZSACO_MEDICAL SEGMENT="1">

            <FLAG>I</FLAG>

            <PERNR>00000081</PERNR>

            <CERT_CODE>18</CERT_CODE>

            <EXP_DATE>20120501</EXP_DATE>

        </ZSACO_MEDICAL>

        <ZSACO_MEDICAL SEGMENT="1">

            <FLAG>D</FLAG>

            <PERNR>00000081</PERNR>

            <CERT_CODE>18</CERT_CODE>

            <EXP_DATE>20120501</EXP_DATE>

        </ZSACO_MEDICAL>

        <ZSACO_SHIFT SEGMENT="1">

            <FLAG>I</FLAG>

            <PERNR>00000081</PERNR>

            <BEGDA>20130901</BEGDA>

            <ENDDA>20130901</ENDDA>

            <TPROG>999</TPROG>

        </ZSACO_SHIFT>

    </IDOC>

</ZSACO>

Update Command Problem

$
0
0

Hello

 

Well, recently I had to add two new columns to an already created table in my xMII DB (MS Sql Server). After that I had to modify a few of the querys to show the new info available. I'm facing a weird issue with the one used to update the records of said table. This is the query I have in xMII defined as a command. (table and columns name had been change for security issues):

 

UPDATE       Table_Name
SET      Table_Name.paramA  = '[Param.1]',     Table_Name.paramB = '[Param.2]',     Table_Name.paramC = '[Param.3]'
WHERE      Table_Name.paramID  = '[Param.4]'

 

When I call this query from the CRUD page, it executes successfully but when I reload the grid data only one of the parameters is updated. This parameter is the one that was originally meant to be updated before the two new columns where introduced. If I hardcode the values in the query, the table values are updated so I know the query is OK. I'm really confused with this behavior and would appreciate any insides you could have on this.

 

Regards

Ximena

Send E-mail issue in SAP MII 12.2.5 built 80

$
0
0

Dear Experts,

 

Emails are not getting sent out our SAP MII system. In the send mail step we get an error : Authentication failed. We checked and know that our SMTP mail server does not ask for any credentials to connect and is working fine with the older version of MII 11.5 without need to provide any login credentials. We applied a service pack to ver. 12.2.5 (from earlier 12.2.3) but no help.

 

  • [INFO] Started Execution: '05/27/2013 15:48:59'
  • [ERROR] [Send_Mail_0]Unable to send mail Exception: [Authentication failed]
  • [WARN] [Send_Mail_0] Skipping execution of output links due to action failure.
  • [ERROR] Uncaught exception from Send_Mail_0,
  • [INFO] Transaction Completed '05/27/2013 15:48:59'
  • [INFO] Statistics [Load = 5 ms msec, Parse = 3 ms, Execution = 72 ms, Total = 82 ms]

 

Is there any other configuration required to get this working?

Is there any impact from the system built (currently built 80) on this?

 

Any pointers are highly appreciated.

 

Regards,

Saumya Govil


How to change column width in PDF table

$
0
0

Hi All,

 

I would like to know if it is possible to change the width of PDF Table columns dynamically so that columns with different label descriptions will fit without any wrap.I need to set each column width differently

 

 

I can see a parameter Widthpercent but this set the size uniformaly for all the columns.

 

Let me know if there is any way to alter individual column width.

 

System in Use : 12.2.4 Build(92)

 

Thanks

Nikhil

MII action http post

$
0
0

Hi,

 

what is the difference between ProcessingMode 1,2,3

1 => synchron, ok

2 => asynchron, ok

3 => asynchron with failure => ?

 

it seems that 3 reacts on errors although the call is asynchron, how can this work?

 

regards

Meex

Print options in MII

$
0
0

Hi All,

 

Please share your experience, what is the best way to print a page from MII weather it is a PDF,Web based print set up, etc...

 

Appreciate your response.

 

Nikhil

SAP MII Applet error--java.lang.IndexOutOfBoundsException: Index: 0,Size: 0

$
0
0

Dear Experts,

 

I am facing java error while running an iCommand applet through irpt page in SAP MII 12.1

 

By forum ,  I came to know ,the error occurs because of using the method "document.AppletName.getRowCount()" before executeCommand().

 

if(document.AppletName.executeCommand()){

  rowCount = document.AppShopfloorCmd.getRowCount();

}


 

any idea on how to resolve the following error :

 

Message: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

 

Should I need to re-install the java ?

 

this error is machine or Application specific ?

 

 

 

Regards,

Eswar

 


 


MII customer reference from discrete manufacturing

$
0
0

Hi

 

I need some withe papers about MII and a list of references from discrete manufacturing.

 

Appreciate your support.

 

Regards

Hossein

Pco Logs notification

$
0
0

Hi expert,

I installed Pco 2.3  to connect MII 12.2 to the shopfloor.

Sometimes happens that the PCo goes in error when it try to get the data from the shopfloor.

I can see this kind of error only on Pco Log.

 

Example :

Dispatcher - Could not dispatch Message [id = e6eda5b6-f6bc-43a8-8b19-37845598a282]

OpcDaAgent - Retrieve for Tag H_C1F1_ToPlc_Bo_Timestamp [HERSHEY.The_Link.H_C1F1_ToPlc_Bo_Timestamp] failed due to Quality Error, Expecting: Good, Received:Bad, Non-specific, Not limited.

 

My question is: Is there a mode to get this error and run a  notification to MII?

 

thnaks in advance

 

Andrea

Need help on SAP MII projects.

$
0
0

I got trained in SAP MII. But, till now i haven't done single project, just i am practicing in the tool itself. I want to learn things like how the projects will be, how the requirements will be and what we have to do in developement.
If possible please share me some REAL TIME PROJECTS or else just tell some requirements which came from clients, so that i will get real time knowledge on it.

 

Please help me....

 

Thanks & Regards
Ravitieja


unable to send email - 503 5.5.2 Need Rcpt command.

$
0
0

Hi,

I created a new transaction in MII for sending emails.

 

I created the transaction variables for To address, Subject and for the body of the email. Configured the SMTP server details and the from address in

the transaction.

 

While I hardcode the values in the xacutequery of the transaction, the transaction is working fine and the email has been sent to the specified email address.

 

I am using MII 12.1.10 Build (71)

 

But while passing the values from the web page where other transactions are being executed before this send email transaction, the send email transaction is not working. I am getting the below error.

 

All your support/help in solving this issue are appreciated.

 

 

Unable to send email
[EXCEPTION]
com.sun.mail.smtp.SMTPSendFailedException: 503 5.5.2 Need Rcpt command.

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1515)
at com.sun.mail.smtp.SMTPTransport.data(SMTPTransport.java:1308)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
at com.sap.xmii.storage.connections.MailConnection.sendMail(MailConnection.java:206)
at com.sap.xmii.bls.executables.actions.mail.MailActions.send(MailActions.java:223)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.sap.xmii.bls.engine.ReflectiveAction.doExecute(ReflectiveAction.java:788)
at com.sap.xmii.bls.engine.BaseNode.executeNode(BaseNode.java:200)
at com.sap.xmii.bls.engine.BaseAction.execute(BaseAction.java:86)
at com.sap.xmii.bls.engine.runners.ProductionRunner.runAction(ProductionRunner.java:147)
at com.sap.xmii.bls.executables.sequences.Sequence.execute(Sequence.java:50)
at com.sap.xmii.bls.engine.runners.ProductionRunner.runSequence(ProductionRunner.java:126)
at com.sap.xmii.bls.executables.sequences.RootNode.execute(RootNode.java:39)
at com.sap.xmii.bls.engine.TransactionInstance.execute(TransactionInstance.java:1012)
at com.sap.xmii.bls.engine.TransactionInstance.run(TransactionInstance.java:687)
at com.sap.xmii.Illuminator.connectors.Xacute.XacuteRequestHandler.processQueryRequest(XacuteRequestHandler.java:346)
at com.sap.xmii.Illuminator.connectors.Xacute.XacuteRequestHandler.QueryRequest(XacuteRequestHandler.java:137)
at com.sap.xmii.Illuminator.connectors.Xacute.XacuteConnector.doProcessRequest(XacuteConnector.java:86)
at com.sap.xmii.Illuminator.connectors.AbstractConnector.processRequest(AbstractConnector.java:83)
at com.sap.xmii.Illuminator.server.QueryEngine.run(QueryEngine.java:41)
at com.sap.xmii.Illuminator.services.handlers.IlluminatorService.processRequest(IlluminatorService.java:74)
at com.sap.xmii.Illuminator.services.ServiceManager.run(ServiceManager.java:69)
at com.sap.xmii.servlet.Illuminator.service(Illuminator.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
at com.sap.xmii.system.SecurityFilter.doFilter(SecurityFilter.java:96)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
at com.sap.xsrf.filter.XSRFProtectorFilter.doFilter(XSRFProtectorFilter.java:62)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:469)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:299)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:399)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:388)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:84)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:244)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:327)

Array as an input parameter

$
0
0

Hi All

 

Can someone please guide how can i set an array as an input parameter to a BLS transaction,Lets say for eg: I need the user to enter multiple plants as an input on the input scree,How will i pass this array of plants to the web service in my BLS transaction?Should i consider a XML for the same?

 

Thanks for your suggestions in advance

 

Regards

Shweta

Dyanmic RFC call using SAP_JCo_Function in MII (12.2 or 14.0)

$
0
0

Hi Experts,

 

Just wanted to know if there is any way to call Function Modules using SAP_JCo_Function dynamically ?

 

I wanted to call FMs ZMII_PURCH_ORDER_COMMENT_CHANG and ZMII_DELY_ITEM_COMMENTS_CHNG using only one instance of SAP_JCo_Function (only once action block). Is it possible ??  Both are having the same input structure.

 

 

Please let me know.

 

Thanks

Shashank Shrimal

PCo Monitoring

SAP.manufacturing.connectivity.destinationException

$
0
0

Hi to all,

I installed  PCo 2.3 SP2.

I'm trying to configure a destination system, MII 12.0 but when i test the connection i receve this error: SAP.manufacturing.connectivity.destinationException was thrown.
I tried with machine name, ip address, machine + domain but nothing, always the same error. If I try to connec to MII 12.2 all works fine. Why?

Any idea?


Thanks


Andrea

Viewing all 1775 articles
Browse latest View live


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