PCo Notification not reaching MII Transaction

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

Hi Shaji,
The Expressions in a Notificaion Output are not evaluated against tag values until the Notification is triggered; using the Test Notification Delivery requires you to manually enter a value for each Output value to be delivered.  If you want to test your notifications you will have to start the Agent Instance and have the Trigger fire the notification.
You can also set a Simulator Destination and have the Notification message delivered to a file in the Simulator Destination directory.  This will give you a way to examine the Notification message contents without having to use MII to capture and save it.
Regards, Steve

Similar Messages

  • Notification not reaching SAP inbox

    Hello All,
    I have created a new workflow. Everything is working fine in Developement System.
    I transported this to Quality system.
    Its showing workflow log is correct.But user is not receiving any notification in mail box.
    Task is dialog step. Agent is General.
    What can be the reason?

    Quick test, in SWU3, use the WF System Verification. You can do as yourself and should be able to ad-hoc create / test as the user in question. This will do several things right out of the box. Test you agents, batch jobs, background / foreground steps, WF sub system is running correctly...
    Also, run the ... darn. <forgot t-code>. The WF development testing t-code. Where you can do the tracing, testing agent assignment, etc en-mass. If you don't figure it out by moring, I will pop open an SAP cleint and forward along. It's cocktail hour! Tomorrow..
    Rick Sample
    p.s.
    I think you need to check the Agent assignment on those tasks in each client. Client specific when making them General Task.

  • PCo Notification

    Hi,
    Actually I have a question regarding PCo notification.While creating notification agents in Pco,how can we specify tags for a certain span of time rather than only a single point of time so that the notification will be sent for that span of time continuously and accordingly the monitoring can be done.It would be really helpful if anyone can help me out please.
    Thanks,
    Shawna

    Shawna,
    In PCo 2.0, you can use the [WhileTrue or WhileFalse |http://help.sap.com/saphelp_pco20/helpdata/en/d4/6c7a623e3041c5a004377a6bb31b9f/content.htm](depending on your expression) trigger types to force a notification. An MII transaction can receive it and then do a history query (via UDS for example) to get a time span of data. I don't know which version of PCo you have but PCo 2.1 does have a [ query capability |http://help.sap.com/saphelp_pco21/helpdata/en/20/54890ecc2e491d8e9c79c34c8ae636/content.htm]and is worth a look. In 2.1, you can simply query the data source via MII query and use the SD/ED times for your time span. However, depending on your scenario you may need the UDS.
    Regards,
    Kevin

  • How to read the tag values sent by PCo to MII transaction

    Hi everybody,
    I have an Agent created inside PCo and its listening to a data server. I have also created a notification object which triggers my MII Transaction (after certain condition is getting fulfilled).
    Now, I want to pass certain values from PCo to MII using the notification object. For this I have tried 2 options:
    1. I defined one input parameter in transaction of type 'XML'. But this did not work. When I used 'Tracer' to check the received values, it showed empty.
    2. Since XML variable did not work, I tried with 'String' variable. It worked but the entire input data was in 'String' format.
    Actually I used XML_Saver to save the string and given filename as '.xml'. When I opened that xml file, it was looking like this:
    <<unable to write XML here>>
    Considering the above 2nd option, how can I extract the particular 'Tag' values from XML string. Since the string is not in the format of 'Rowset/Row/Row', I cannot specifically assign/map those tag values to any other variable inside MII transaction.
    ===========

    Hi, I was trying to post the xml string. It was not possible yesterday (because, SDN editor has converted xml part into some irregular string).
    Now, I am trying to post the string by removing the special characters. Please try to understand it.
    Now, my question is how to retrieve the CDATA value 5599999999 using xpath. Please help.
    NotificationMessage
    Body
    Values
    Expression1 type xsd string
    CDATA 5599999999
      /Expression1
      /Values
      /Body
      Faults /
      /NotificationMessage

  • Issues regarding PCO Notification

    Hi experts,
    I have a question.Is there any way to make the notification of tags  time-based so that the notification will be generated only after a certain specified interval of time?Even if I specify the trigger type as WhileTrue the notifications are generated randomly whenever the value is changed without any specified time interval..
    Thanks,
    Suman

    Suman,
    Ok, I believe I understand your situation now. I have never done it but you should review the [date/time |http://help.sap.com/saphelp_pco21/helpdata/en/42/3550f08e2e444ea4d24a5e12bbfe54/content.htm]functions in PCo. You could try it with a complex trigger expression using the "if" expression, and then using the date or other time based functions in the condition part. However, since PCo doesn't store variables you wouldn't really be able to compare +-5 minutes. Even if you use the different trigger types I am not sure how you would be able to keep track of the baseline time (via minuteCtr) and compare it with future values (if threshold reached and minuteCtr==5).
    What some customers implement is a notification of the initial event to MII and then have an MII transaction run a query on the tag to monitor there. If the tag gets out of control they can alert via dashboard screen or email to a shop floor operator.  
    Regards,
    Kevin

  • Synchronize MII transaction - only one running instance at a time

    Hello,
    I have a scenario where I use an MII transaction triggered by PCO, and it may be the case that the same PCO notification triggers this transaction twice within a very short time, i.e., the second transaction instance starts its execution before the first instance has finished. But I really need to make sure that those calls are done one after the other and that they do not overlap.
    What is the best way to achieve this? Which MII technologies can I use? I do not want to use message services and schedule a job that handels the requests one after the other - I need real time action and  in this case I would need to schedule the Job every second. Im really looking for a kind of semaphore/mutex solution to make sure that the MII transaction call can be fired by PCO and in case the previous transaction call is still running, the current one should wait until the previous one has finished.
    Thank you for your input and ideas!
    Best Regards,
    Matthias

    Hi Steve,
    1. The PCO notification will be triggered when a PLC counter increases (which is actually the trigger that another piece has been produced on one of our production lines) - this happens in average every 10 to 15 seconds, but due to some special setup it can be the case that 2 or 3 consecutive pieces come out at the end of the line immediately one after the other, followed by a larger pause.
    2. The expected duration of the MII transactoin will be approx. 2 to 3 seconds.
    3. The exact software versions we use are PCO 2.1.6.1 and MII 12.1.9.123.
    to be precise, the serialization of the transactiona does not need to be for all instances, but only for instances of the same production line, i.e., transactions of different lines may run at the same time, but for a single production line the transaction calls must not overlap.
    The reason is the following: We want to implement a "difference posting" of produced pieces: each PCO message holds the  PLC counter value, and in the MII transaction I want to refer to the counter of the previously produced piece. If the difference is one, everything was OK, one additional piece needs to be recorded in the system. If the difference is greater than one (for the sake of example, lets say 3) I will record 3 new pieces in the system, and if the difference is less than one (wrong order in message delivery, should normally not happen) I will simply ignore the message. This gives us the possibility to not lose data during a PCO outage: PCO is up until PLC counter value 10, is down from PLC counter value 11 to 15, and comes back at PLC counter value 16. When I process the message with counter value 16, I will see that the last processed piece was for counter value 10, therefore I need to create 6 pieces - the 5 I have "lost" plus the current one.
    To be able to safely refer to the previously produced piece, there must not be any parallel transaction executions, since then maybe two instances read the same "previous counter" and therefore mess up the collected data.
    I hope this gives you an idea what I want to achieve.
    Best Regards,
    Matthias

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

    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

    Hi Suman/Jeedesh,
    As per Pco notification, it will trigger whenever any of the tag value changes in Agent instance subscription items.
    For above issue, My suggestion
    1. Create DB table name TAGLIST with 200 tags as rows in columns (Tagname, TagValue)
    2. Based on notification trigger, create a transaction and update values w.r.t TagNames in above table
    3. Next time, when notification trigger with fresh value for any of the tag, cross check with existing TagName with Value and update in DB table.
    4. And in the mean time, send those Tag details vie mail trigger or as per requirement
    Instead of creating 200 notification, above is a just alternate way suggestion to achieve dynamic tag value change notification.
    Hope it might solve your problem
    Regards,
    Praveen Reddy

  • Error while calling MII transaction as web service from ABAP

    Hello Experts,
    I want to call a MII transaction from ABAP program, as a web service.
    Following is output of http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX  (TAG_TRX is name of my transaction).
      <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.sap.com/xMII" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
    - <!--  Types
      -->
    - <types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII">
    - <s:complexType name="InputParams">
    - <s:sequence id="InputSequence">
      <s:element maxOccurs="1" minOccurs="0" name="WEIGHT" type="s:string" />
      <s:element maxOccurs="1" minOccurs="0" name="BATCHID" type="s:string" />
      </s:sequence>
      </s:complexType>
    - <s:element name="XacuteRequest">
    - <s:complexType>
    - <s:sequence>
      <s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string" />
      <s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string" />
      <s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams" />
      </s:sequence>
      </s:complexType>
      </s:element>
    - <s:complexType name="Rowset">
    - <s:sequence>
      <s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row" />
      </s:sequence>
      <s:attribute name="Message" type="s:string" />
      </s:complexType>
    - <s:complexType name="Row">
      <s:sequence id="RowSequence" />
      </s:complexType>
    - <s:element name="XacuteResponse">
    - <s:complexType>
    - <s:sequence>
      <s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset" />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:schema>
      </types>
    - <!--  Messages
      -->
    - <message name="XacuteSoapIn">
      <part element="s0:XacuteRequest" name="parameters" />
      </message>
    - <message name="XacuteSoapOut">
      <part element="s0:XacuteResponse" name="parameters" />
      </message>
    - <!--  Ports
      -->
    - <portType name="XacuteWSSoap">
    - <operation name="Xacute">
      <input message="s0:XacuteSoapIn" />
      <output message="s0:XacuteSoapOut" />
      </operation>
      </portType>
    - <!--  Bindings
      -->
    - <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="Xacute">
      <soap:operation soapAction="http://www.sap.com/xMII" style="document" />
    - <input>
      <soap:body use="literal" />
      </input>
    - <output>
      <soap:body use="literal" />
      </output>
      </operation>
      </binding>
    - <!--  Service mapping
      -->
    - <service name="XacuteWS">
    - <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
      <soap:address location="http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX" />
      </port>
      </service>
      </definitions>
    Now, when I am using http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX to create a Enterprise Service in SAP (i.e. SE80 transaction-> Create Enterprise Service-> Service Consumer-> URL/HTTP Destination-> URL ... I am getting following error.
    Incorrect value: Entity "<<document>>"(5 /93 ). unexpected symbol: '<'     
    But, whenever I am using the same URL in MII BLS, it does not give any error. It correctly shows all input and output parameters.
    Please help me to resolve this issue.
    Regards
    Neeta.

    Now, I am able to create the Web Service in SAP and it is now showing the respective class, attribute and methods to execute this web service (web service to call MII transaction).
    But when I am calling it from ABAP (a simple Web Dynpro for ABAP method), it is showing me the following error:
    Error (id=GET_BUSINESS_SYSTEM_ERROR): An error occurred when determining the business system (LD_ERROR)
    Thought this error is coming from ABAP program, but I am sure that this is related to some configuration at SAP level. (Let me inform you that there are two different servers for SAP Web Dynpro ABAP and SAP MII.
    Please help.
    Thanks in advance.

  • MATMAS01 IDOC not reaching to SAP XI via report program.

    Dear Experts,
    WE are facing small challenge.
    I searched on SDN on scenarios: IDOC not reaching to SAP XI. But could not find exact solution t oour scenario.
    Problem:
    MATMAS01 IDOC is not reaching to SAP XI via report program and is in status of 03 on SAP system. And there are not entries under SM58.
    Under SAP XI system IDOC entry is not reflecting under IDX5 transaction, I tried to delete meta data of MATMAS01 thru IDX1 and uploaded again but still IDOC is not reaching to SAP XI.
    The strange is that MATMS01 IDOC is reaching to XI via WE19 test tool. So PORT and RFC destination settings betweeen R3 and XI is also correct.
    What could be the wrong ?
    Thanks
    Divyesh

    When sending Idoc from R/3,
    Settings at R/3
    create one port at WE21,
    Create Partner Profile for Outbound Message type in WE20.
    settings at XI
    Create one port in IDX1
    Import Matadata in IDX2.
    Create complete scenario in ESR for Idoc sender, also import IDoc in Imported Objects.
    Check these settings & send test idoc using WE19.

  • FB99 check archiving status - Withholding tax life (455 days) not reached

    Hi to all,
    We are in process of archiving SAP data.
    Requirement: There are 2 company codes in one production client and we want both company codes to be separated as independent clients. So we are archiving one of the company codes in existing client.
    Since we want separate clients & require only one company code data in each client, we want to archive all the documents as on date.
    I am archiving FI documents through Archiving Object FI_DOCUMNT in SARA transaction. Before archiving we have to clear all open items for the FI documents, for that am checking document archiving status through FB99.I am getting following message for one of the line item
    u2018Withholding tax life (455 days) not reached u201C.
    I have set document life (OBR8) and account type life (OBR7) form 9999 to 1 day.
    Regards
    Govind

    Hi Govind,
    The document life and acount type life is not the same as the withholding tax life.  The witholding tax life is country-specific and cannot be overridden.  I do not believe there is a way around this.
    Best Regards,
    Karin Tillotson

  • Notification not coming in Portal

    I am facing a strange problem. In my workflow, there are few mail steps, and all are working well except one. In this, I've used a Position to send mail. Mail goes in the backend SAP Inbox, and when i open the user in Portal, it is not seen in his portal inbox. I tried putting other position no, also tried other user name  (US)...but the mail is just not reaching the portal. Looked for posts in SDN but couldn't find any specific to my issue. Any little help would be appreciated. Thanks in advance.

    Hi,
    To get the text mail in Portal you have to use SONiC (SAP Office Notification Connector).
    Check this [Link|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8525afd0-0d01-0010-aaa0-ac6b9e3a2907].
    Regards,
    Surjith

  • Sent mails from CRM are not reaching to destination..

    Hi experts, good afternoon.
    I have configured an action to trigger an email when the document is saved.  But the problem is action is shown as executed in transaction level, even in SCOT it is showing as completed but in SOST sent mails it is not shown and it is not reaching to my mail inbox also.
    Please help me out in this regard.  Please let me know what could be the problem.
    Regards
    Madhav

    Hi Maddy,
    I am facing the same issue. I was not able to see any of my entries in SOST. I went to the tab 'send status' in SOST and and clicked on the button 'Further' and selected 'Still Not Entered in Queue'. Now I can see it in SOST with status 'Still no entry in queue'.
    Are you also facing the same problem? When you find the solution, please let me know.
    Regards,
    Neena

  • Pass XML to MII transaction via HTTPService in FLEX

    Hi folks,
    I have a problem with a HTTPService call of a MII transaction in Flex3. It always worked fine, when I only had to pass simple parameters like strings etc. But now I have a transaction that expects 3 String parameters (they are received) and two XML parameters. I already tried several possibilities:
    1.) I put the XML data into an object in Flex and passed this object for the XML parameters - the XML is empty on MII side
    2.) I change the content-type of the HTTPService to application/xml and passed the XML parameters as XML - the XML is still empty on MII side.
    So my question is: Is it possible to send such a combined HTTPService call with Strings AND XML? Did anybody already do that? The XMLs have the typical MII-structure with Rowsets/Rowset/Row, but without the column-description at the beginning - could that be a point, that MII cannot deal without this column description? But I already tried to send an XML in an other structure and it was also empty on MII side.
    Would be great if anybody has any suggestion!
    Thanks,
    Anika
    EDIT: I now realized, that if I pass only one XML parameter, it works. As soon as I pass both XML parameters, it does not work and shows up a HTTP request error. Don't know why... Maybe it's limited to a certain string length in the transaction call, that is exceeded when I pass both parameters?
    Edited by: Anika Delzeit on Nov 25, 2009 5:54 PM

    If you think you're encountering URL length issues make sure you are using POST and not GET, although it looks like there may be additional issues:  http://www.javaworld.com/community/node/2307

  • Idocs not reaching SAP R3 from XI

    Hi All,
    I have a File to IDOC scenario, in which i need to process a text file of size 1 Mega Byte. The file from Leagacy reached XI and this has to create 12000 idocs in target R3 system. I can see the idocs(12000) in the IDOC Adapter but these idocs have not reached R3.
    In SM58 I see an entry for this with the status "Transaction Executing". This entry is pending since 3 days. This always results in "Time exceeded out", and Iam manually executing it with F6 but still the status shows "Transaction executing".
    There are no entries in SMQ1 & SMQ2
    I want to push these idocs to R3.
    Any suggestions on this will be helpful
    Regards,
    Santosh

    Santosh,
    Use IDOC packaging as shown in Michal's blog
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Also, try increasing time out values
    /people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
    Regards,
    Jai Shankar

  • IDOC is not reaching SAP from XI

    Hi all,
       The IDOC that I'm sending from XI is not reaching SAP.
    I have tried all most all possibilies. In SXMB_MONI I'm able to see the IDOC gets created successfully (with no error).
    I have re-checked the partner profile, SMQ1, Config etc.
    Please help me to debug.
    Thanks,
    AJ.

    AJ,
    Check if you have a chequered flag on both sides of your message ibn SXMB_MONI?
    Check the log of your TRFC in transaction SM58
    gards,
    Bhavesh
    Message was edited by: Bhavesh Kantilal

Maybe you are looking for

  • Mobile account won't complete setup, initial sync won't complete.

    I'm trying to setup a mobile account but it won't complete the sync process on the client MacBook Pro. Both the server and the MacBook Pro are running 10.5.5. When I login to client it prompts me to create a Mobile account and proceeds with the sync

  • Cant boot from USB or DVD to install WIN 8.1 ENT

    Hello, Im currently evaluating a Thinkpad tablet 10 at work. The installed OS is atm 8.1 Pro but we have to reinstall with 8.1 Enterprice in order to get everything to work within our network. But this have been more difficult than i thought. Im tota

  • Hi8 capture into FCP problem...

    FCP is not recognizing the camcorder I have connected to the computer in order capture Hi8 tapes. I believe that this setup should work, but perhaps someone knows more about it. I have a digital 8mm camcorder that plays hi8 tapes and has a firewire c

  • Installing Application

    Hi, Is it possible to install an application that is not in the ITunes Store? The thing is that I need to set up a password generating application to generate password to connect to my office VPN. And another question. Anyone can help me please with

  • Ipod Just Show me the Apple logo and iPod Discostic Screen

    Hi Again... I think that my ipod is near its death because just is show me the Apple logo or something weird like a Screen in black and white titled iPod Diagnostic. What' that .. is it? this mourning i was gonna use the ipod and his battery is very