BIG PROBLEM: Multiple (loop) NOTIFY COMMITS for same VO instance

Dear forum,
I have a big problem with 1 of my VO.
When I insert a record using AddProjectView this works fine. The record is persisted successfully.
When I insert another record using AnotherView (e.g. different table) a commit is also done on AddProjectView.
In de log I can see: AddProjectView notify COMMIT ...
I wouldn't have found any problem if I didn't had a afterCommit on AddProjectView which inserts some records in a table. The inserts fail because UK violations.
Now the problem is, why is AddProjectView being committed again?
If I keep updating records in AnotherView, everytime the AddProjectView is commited. If I stop the running OC4J instance and restart it, the AddProjectView is not committed anymore! It seems the VO instance is keeps 'hanging' around....
As I don't have any idea, any help is appreciated.

Hi,
When exactly you are creating and inserting record in destVO?
mere destVO.first() won't work, first() works if records are already fetched using query.
If I understand correctly, you should be creating new record in destVO (albait the only record) as follows:
Row row = destVO.createRow();
//defaulting logic should go here
row.setAttribute("Attr1", value);
destVO.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
Thanks,
Hrishikesh

Similar Messages

  • Multiple web catalog files for same rpd

    Is there any way to run multiple web catalog files for same rpd in OBIEE?

    Why do you want to do that? Why not merge them into one? You run seperate presentation servers againt the same RPD.
    Regards
    John
    http://obiee101.blogspot.com/

  • I have got big problem. i have iphone 4 for a few day (it was new and packed) and now i realised that the screen during the conversation doen't block and turn up black. please help me, i don't knwo what to do!

    I've got big problem. i have iphone 4 for a few day (it was new and packed) and now i realised that the screen during the conversation don't block and turn up black. please help me, i don't knwo what to do!

    Connect to the Computer you Usually Sync with and Follow the Steps Here...
    Recovery Mode
    http://support.apple.com/kb/HT1808

  • Multiple PR's generating for same material after MRP

    Hi Guru's,
    As per my business scenario, i am creating project with WBSE, Activities and BOM.
    By using the reference points, i am transferring the BOM to Project, then executing MRP run.
    But after MRP run i found that multiple PR's generated for the same Material.
    Please find my BOM structure
    BOM-->Assembly + raw material
    Assembly is consists of
    Sub-Assembly+ 2 raw materials
    Sub-Assembly consists of
    1 Raw Material.
    as per this i should have 4 PR's after MRP but system is generating 8 PR's.
    Please tell me where i am doing wrong
    Regards,
    Bhadra

    Hi,
    I find the reason why it is creating the multiple PR's for the same component.
    It is because of the BOM status. Please find the attached scree shots for the BOM structure and BOM status.
    As per my requirement the Planned Orders should be created for "BOM" and "Assembly" and 3 PR's should be generated for Components.
    Initially i maintained BOM status as "4" for "BOM" due to that system is exploded the BOM twice i.e., for "BOM" and "Assembly" and generated PR's twice and two planned orders for "BOM" and "Assembly" along with their components.
    Now to avoid the duplicates PR generation, i have maintained BOM Status as "5" for "BOM"and run MRP.
    This time system is generated 3 PR's and 2 Planned Orders.
    As per as PR's is concerned there is no issue. Coming to the Planned Orders there is a issue that, the components are not copied into order which is generated against "BOM" (BOM Status-5) and components are copied into order which is created against "Assembly"(BOM tatus-4)
    But as per my requirement, the components should copied in both the orders.
    So please tell where is the wrong in this..
    Regards,
    Rao

  • Multiple APP run's for  same vendor

    Dear Friends,
    I would like to know whether it is possible to do multiple payment proposals for a vendor on same dates.
    here is the scenario:
    Each business area would like to creat and edit payment proposals for the same dates, for ex: Run date is 1.1.08, next payment date will be 02.01.08 and schedule the actul payment run on say 03.01.08.
    The actual payment runs will be processed by different paying coc.ode on 03.1.08
    so for a given vendor say we have 2 open items which are due for each business area. I tried giving Business area in free selections .
    when I try to create a secong payment proposal system gives me the message saying no payment proposal found for the co.code Message nO.FZ349
    Yes it does makes sense to this meesage in the sense system wants to check that no invoice is paid twice by mistake.
    But my question is since I am restricting open items by Busines area in the selection parameters itself shouldnt that be considered by system.
    Hope I am clear.
    Please let me know your inputs on the same.
    Points assured for useful replies.
    Thanks,
    Vamsi

    Hi Chandra,
    Thanks for your inputs.
    When you say that same vendor can be paid more than 1 once in a given day by APP, I belive you meant that once paymnet run has been done we can create another APP process for the same vendor.
    Yes I dont see any issues there.
    I also have no doubt that we can create multiple payment runs for a given vendor for 2 different co.codes on the same day.
    But the issue I have is a case of centralised payment for all regions  which are represented by Business areas.
    Each region will do business with the same pan india vendor and would like to create thier payment proposals. The payment runs for these proposals will be done by the head office.
    while trying to the second payment proposal, thi sis the message:
    "Vendor 54 222 is contained in proposal 24.01.2008 SB1; no editing"
    Hope I am clear.
    Thanks,
    Vamsi

  • Multiple records are present for same key in lookup DSO

    Hi,
    I want to populate quantity value from lookup dso in target dso. I have written code to populate it in start and end routine. While populating value in target It is taking first value of quantity. there are two records in lookup and target DSO with same key and different Quantity value. there is not any common key field in lookup and target dso. So that I can not populate correct values in the target DSO.
    Can anyone suggest me for this?

    Hi All,
    I have written below code for populating Qty:
        LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
          IF <RESULT_FIELDS>-/BIC/ZSHPCRTID IS NOT INITIAL.
            CLEAR  : WA_ITAB.
    READ TABLE IT_ITAB TRANSPORTING NO FIELDS WITH KEY
            /BIC/ZSHPCRTID = /BIC/ZSHPCRTID.
            IF SY-SUBRC = 0.
              TMP = SY-TABIX.
            ENDIF.
            LOOP AT IT_ITAB INTO WA_ITAB FROM TMP.
              IF WA_ITAB-/BIC/ZSHPCRTID <> /BIC/ZSHPCRTID.
                EXIT.
              ELSE.
                <RESULT_FIELDS>-BBP_SCQTY = WA_ITAB-BBP_SCQTY.       
              ENDIF.
            ENDLOOP.
          ENDIF
        ENDLOOP.
    in this case my output/target DSO is:
    key1  key2    key3  qty
    1000   10       200   30
    1000   10       300   30
    1000    20      400   30
    Below is the lookup DSO data:
    key1   key2  key3   qty
    1000   10      1        10
    1000   10      2        20
    1000    20     3        30
    It is taking last record's qty value and putting it for all records.
    Please suggest something for this issue.

  • Apple Mail syncing while typing, multiple updates on BB for same message.

    First of all, thanks for looking and helping. Second, it's probably my fault as I am a tweaker often to my detriment. So, with disclaimers out of the way, here's what is happening:
    I have a MacBook Pro and my mail is IMAP from my GMail account. When I respond to an email on the Apple, using Apple Mail, WHILE I AM TYPING, the BB retrieves a NEW email with the latest installment of the email!!! Here's an example that just happened:
    Open email, start replying... "Paul, I wanted to explain"
    BB announces new mail with that sentence
    I continue typing... "why I like pasta"
    BB announces new email with "Paul, I wanted to explain why I like pasta"
    Etc., etc., etc.
    So, my work around it to go to gmail.com and write the email within that program as opposed to using Apple Mail on laptop.
    My BB is Tour 9630 with 4.7.1   and the Gmail app is 2.0.7, if it matters.
    The Apple is running OS X 10.6.2 and Apple Mail is 4.2
    Oh, Bluetooth is not turned on on either device.
    Let me know if you need any further info. Thanks again for looking!
    Peace.
    Solved!
    Go to Solution.

    I have the same problem.
     Just bought the MAC book Pro and while typing on Apple mail everything is syncing on my Blackberry,...This will go on until I finish the mail..Depending on the length of the mail, I can heave more than 15 copies of the same mail that is redundant and constantly updating. Frustrating. I did unchecked the box under preferences, mail box behavior but nothing happened. Has anyone figured out what is the solution?
    Thanks

  • Multiple Excise Invoice No for same Return Material Document

    Dear All,
    While generating excise invoice throu J1IS for Return Material document (Mov Type 122 - Return of Quality rejected material to vendor), it is observed that multiple excise invoice nos are getting generated for the same Return mat doc no.
    System is not preventing in doing so.
    Pl. advise how to restrict such excise invoice generation.
    With Thanks & Regards
    Ratna

    Hi,
    Use: J1I7 , In selection range you can give Excise Group, Excise Transaction Type as GRPO , Vendor Number, Material Document , Material or Purchasing Document , select  Part 1 and part 2 Posted , Off.No is Excise Invoice No entered at the time of Excise Capturing.
    Regards,
    Vikas

  • Multiple Custom Synch Plugins For Same Business Object

    Can I make multiple plugins for the same business object? The main reason I'm asking is because I want to have one item plugin that runs before the core item data synchs and another item plugin that runs after.
    Since the topic's here, if multiple plugins can be written, which order would two plugins run if they are both set to go off after the core synch?

    That answers half of my question, although just to verify:
    The only issue is the before synch plugin may not have it's data in SBO (eg new order from webtools). If the data initiated in SBO then you should be fine.
    As far as I can tell, you're basically saying that if you're working with data in SBO in a plugin that's set to PluginExecutionLocation.BeforeSynch, be cautious of the fact that new data from Web Tools will not have the plugin run against it because it will arrive after the standard synch brings it over. I would assume the same would be true for the reverse, in that any new data in SBO that's not yet in Web Tools will also not have the plugins run against it for the same reason.
    Also, let's say I create two SynchPlugins for Items and set both of their SynchRunTime fields to PluginExecutionLocation.AfterSynch - which one runs first? Or is it indeterminable each time?

  • Dnt want Auto Multiple Ship Costs items for Same Vendor

    Hi All,
    I have a problem..
    In my shipment my header as well as Legs are cost relevant.
    And i have given automatic determination of item categories in my shipment costs.
    Now the problem is when i have say 2 stages in my route den in my shipment costs
    determines 3 line items automatically and gives the same price for all based on the condition
    records..
    I dont want this to happen coz the charges are the same and paid once only.
    My scenario works fine if vendors are diffrent stage wise.
    But when the vendor is same for the entire route then this leads to duplication of costs.
    Plz any inputs on this.
    Rgds

    Hello,
    Where would I go to set different pricing for the item? We've negotiated different pricing for the same item number at different vendors? Right now the solution addresses only the allocation of product.
    With regards to the % split; let's say I set the split to 50/50. The Planners override mrp and create a PO for the full 100pcs to 1 vendor and not the system suggested 50pcs to vendor A and 50pcs to vendor B.
    Will the system be able to figure out that the allocation has been ignored and re-adjust? Will MRPto buy 100pcs at vendor B and 0pcs at vendor A?
    Or
    Will the system only look forward and say "Whatever the next requirement is, I'm splitting the order 50/50 between the 2 vendors"?
    Thanks again,
    BG

  • Multiple physical inventory counts for same storage loc

    We have a plant where the same SAP storage location is used for multiple physical locations (e.g. individual build stations). We would like to be able to count by physical area rather than by part number per se. So the goal would be to enter multiple counts against the same part and post differences only when all counts are done, as defined by the aggregate of the individual counts.
    Is this possible? I tested it using MI31 to create phys inventory doc, then Mi04 for count 1 and MI09 for count 2, but received a message M7700 "Physical inventory for XX is already active"
    Any ideas would be appreciated.

    How do you know in your SAP in which area the material is?
    can you know this from MMBE or MB52?
    if not, then I do not see any chance for MI31, except you just create one inventory doc for the entire location and make copies of the document for each area you have. after counting you have to consolidate each copy into one and post then the count in MI04.

  • Why does show isakmp sa shows multiple ISAKMP key exchanges for same peer

    I have a site-2-site vpn tunnel between a Pix 506e 6.3(3) and an ASA 5510 running 9.0(3)6. I can control both sides of the config.
    This tunnel worked fine until we did a firmware update on the ASA which was originally running 8.4(2).  I have 3 tunnels which terminate at our ASA with peer Ips that are on device  pix 506e models having issues and I cant figure out why. I will focus on one tunnel in particular in hopes that someone can help me fix it and I can try to apply the fix to the other two acting up.
    The symptoms are as follows:
    Tunnel will come up with Phase 1 and Phase 2. Everything will work fine for a variable amount of time then the tunnel will drop. I see this over and over again in the logs of the ASA
    Tunnel Manager has failed to establish an L2L SA. All configured IKE versions failed to establish the tunnel
    If I go into the ASA and I remove the crypto map and then re-add it. The tunnel comes back up and remains active for a variable amount of time once again. And when I say variable I mean it can stay up and working for as long as a half a day or as little as 15 min .
    During the outage if I do a show isakmp sa on the pix I get the following
    pix# show isakmp sa
    Total     : 6
    Embryonic : 0
            dst               src        state     pending     created
       66.1x3.93.212   207.207.x.146    QM_IDLE         0         115
       66.1x3.93.212   207.207.x.146    QM_IDLE         0         254
       66.1x3.93.212   207.207.x.146    QM_IDLE         0         123
       66.1x3.93.212   207.207.x.146    QM_IDLE         0         108
       66.1x3.93.212   207.207.x.146    QM_IDLE         0         224
       66.1x3.93.212   207.207.x.146    QM_IDLE         0         129
    On the ASA doing the same cmd will get me
    IKE Peer: 66.193.93.212
        Type    : L2L             Role    : initiator
        Rekey   : no              State   : MM_WAIT_MSG2
    If I want to bring the tunnel back up right away, I can remove the crypto map from the ASA and then re-add it and everything will work again for a bit. What should I be checking?
    Is there some kind of difference I should now be aware of between the isakmp config on pix and ikev1 on ASA? It was all working before when the ASA was on 8.4(2) and this is ONLY happening to my tunnels that are terminating on the PIX 506 e devices running 6.3(3) . Thats a clue I know, I just don't understand what I should be looking at to figure out how to fix it.

    There are several things that could cause these symptoms, and we do not have enough information provided to identify which one it is.
    - Certainly it could cause these symptoms if the peer ASA5520 is not yet configured.
    - It could also cause these symptoms if the peer ASA5520 is configured but some of the configuration parameters do not match what you have configured.
    - I am puzzled why there are two addresses configured on the interface. If the peer ASA5520 configured its peer address to use the secondary address it might cause these symptoms.
    - I see that address translation is configured. Some mistakes in configuring address translation might cause symptoms like these.
    As a first step I would suggest that you contact the administrator of the ASA5520 and ask if their configuration is complete. If they believe that their configuration is complete then you might ask them to specify what parameters they have configured and compare them to your parameters.
    As a follow up step, running debug crypto isakmp might provide some insight into what is happening and what is the problem.
    HTH
    Rick

  • Report with multiple choice in column for same dimension......

    Hi All,
    We have a report with two dimensions in col , one in row remaining in pov...user want to select multiple members [its more than 10 members..so we thought prompts will not be good.] for one column for different members in second dimension of column and want see the variance between them.
    can anyone suggest me how can i achieve this. thank you
    regards,
    Ravi

    Hi All,
    Can any one suggest me on this. thanks inadvance.
    Regards,
    Ravi

  • Multiple Alerts getting raised for same Error

    Hi All,
    I have a Management Pack Which will will trigger an Exe. The Exe takes an input and that input is being provided as a parameter from the MP. Whenever the exe raises throws an error an event in the event viewer and also  we are raising an Alert.
    Now suppose say there are 3 inputs for which the Exe has to run. Now the Exe failed for Input 1 and passed for the rest 2. Since we have a exe failure we are raising an  event and firing an alert. But in the SCOM alerts i see 3 alerts with the Source
    Name as all the three inputs, but the error message and all other stuff are remaining the same
    Am I missing out on anything here?
    Any Help in this regard is much appreciated
    Regards, Mahadev Sundeep Maruvada

    <?xml version="1.0" encoding="utf-8"?><ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Manifest>
    <Identity>
    <ID>AlertTestMP</ID>
    <Version>1.0.0.36</Version>
    </Identity>
    <Name>AlertTestMP</Name>
    <References>
    <Reference Alias="Windows">
    <ID>Microsoft.Windows.Library</ID>
    <Version>7.5.8501.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Health">
    <ID>System.Health.Library</ID>
    <Version>7.0.8432.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="System">
    <ID>System.Library</ID>
    <Version>7.5.8501.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    </References>
    </Manifest>
    <TypeDefinitions>
    <EntityTypes>
    <ClassTypes>
    <ClassType ID="SDMonitoringSyntheticTest.SDDepot" Accessibility="Public" Abstract="false" Base="Windows!Microsoft.Windows.ApplicationComponent" Hosted="true" Singleton="false" Extension="false">
    <Property ID="ServerDetails" Type="string" AutoIncrement="false" Key="true" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
    <Property ID="SDType" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
    </ClassType>
    <ClassType ID="SDMonitoringSyntheticTest.SDWatcher" Accessibility="Internal" Abstract="false" Base="Windows!Microsoft.Windows.LocalApplication" Hosted="true" Singleton="false" Extension="false">
    <Property ID="SDType" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
    </ClassType>
    </ClassTypes>
    <RelationshipTypes>
    <RelationshipType ID="SDMonitoringSyntheticTest.SDWatcher_To_SDDepot_Relationship" Accessibility="Internal" Abstract="false" Base="System!System.Hosting">
    <Source ID="Source" MinCardinality="0" MaxCardinality="2147483647" Type="SDMonitoringSyntheticTest.SDWatcher" />
    <Target ID="Target" MinCardinality="0" MaxCardinality="2147483647" Type="SDMonitoringSyntheticTest.SDDepot" />
    </RelationshipType>
    </RelationshipTypes>
    </EntityTypes>
    </TypeDefinitions>
    <Monitoring>
    <Discoveries>
    <Discovery ID="SourceDepot.SDMonitoringSyntheticTest.SDWatcherDiscovery" Enabled="true" Target="Windows!Microsoft.Windows.Computer" ConfirmDelivery="true" Remotable="true" Priority="Normal">
    <Category>Discovery</Category>
    <DiscoveryTypes>
    <DiscoveryClass TypeID="SDMonitoringSyntheticTest.SDWatcher">
    <Property TypeID="SDMonitoringSyntheticTest.SDWatcher" PropertyID="SDType" />
    </DiscoveryClass>
    </DiscoveryTypes>
    <DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
    <ComputerName>
    $Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$
    </ComputerName>
    <RegistryAttributeDefinitions>
    <RegistryAttributeDefinition>
    <AttributeName>AppExists</AttributeName>
    <Path>Software\SDSynthetic\SDServers</Path>
    <PathType>0</PathType>
    <AttributeType>0</AttributeType>
    </RegistryAttributeDefinition>
    <RegistryAttributeDefinition>
    <AttributeName>SDType</AttributeName>
    <Path>Software\SDSynthetic\SDServers\SDType</Path>
    <PathType>1</PathType>
    <AttributeType>1</AttributeType>
    </RegistryAttributeDefinition>
    </RegistryAttributeDefinitions>
    <Frequency>600</Frequency>
    <ClassId>$MPElement[Name="SDMonitoringSyntheticTest.SDWatcher"]$</ClassId>
    <InstanceSettings>
    <Settings>
    <Setting>
    <Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
    <Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
    </Setting>
    <Setting>
    <Name>$MPElement[Name="SDMonitoringSyntheticTest.SDWatcher"]/SDType$</Name>
    <Value>$Data/Values/SDType$</Value>
    </Setting>
    <Setting>
    <Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
    <Value>SD Util Depot ($Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$)</Value>
    </Setting>
    </Settings>
    </InstanceSettings>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Values/AppExists</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">true</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </DataSource>
    </Discovery>
    <Discovery ID="SourceDepot.SDMonitoringSyntheticTest.SDWatcher.SDDepotDiscovery" Enabled="true" Target="SDMonitoringSyntheticTest.SDWatcher" ConfirmDelivery="false" Remotable="true" Priority="Normal">
    <Category>Discovery</Category>
    <DiscoveryTypes>
    <DiscoveryClass TypeID="SDMonitoringSyntheticTest.SDDepot">
    <Property TypeID="SDMonitoringSyntheticTest.SDDepot" PropertyID="ServerDetails" />
    <Property TypeID="SDMonitoringSyntheticTest.SDDepot" PropertyID="SDType" />
    <Property TypeID="System!System.Entity" PropertyID="DisplayName" />
    </DiscoveryClass>
    </DiscoveryTypes>
    <DataSource ID="PS" TypeID="Windows!Microsoft.Windows.TimedPowerShell.DiscoveryProvider">
    <IntervalSeconds>600</IntervalSeconds>
    <SyncTime />
    <ScriptName>SDSyntheticServerDiscoverDepot.ps1</ScriptName>
    <ScriptBody>
    param($sourceId,$managedEntityId,$computerName,$SDType)
    $api = new-object -comObject 'MOM.ScriptAPI'
    $Script:LOG_ERROR = 1
    $Script:LOG_WARNING = 2
    $Script:LOG_INFORMATION = 4
    $Script:ScriptName = "SDMonitoringSyntheticTestSDDiscovery.ps1"
    function Write-ErrorInfo([string] $msg)
    $api.LogScriptEvent("$ScriptName",1728,$Script:LOG_ERROR,"`r$msg")
    function Write-OnlyInfo([string] $msg)
    $api.LogScriptEvent("$ScriptName",1727,$Script:LOG_INFORMATION,"`r$msg")
    Write-OnlyInfo "in SD servers discovery"
    $discoveryData = $api.CreateDiscoveryData(0, $SourceId, $ManagedEntityId)
    $SDServerList=Get-ChildItem "HKLM:\SOFTWARE\SDSynthetic\SDServers" | ForEach-Object {Get-ItemProperty $_.pspath}
    Foreach ($SDServer in $SDServerList)
    $Name = $SDServer.PSChildName
    $DisplayName = $SDServer.PSChildName
    Write-OnlyInfo $computerName
    $ServerDetails =$SDServer.servername+":"+$SDServer.port
    $instance = $discoveryData.CreateClassInstance("$MPElement[Name='SDMonitoringSyntheticTest.SDDepot']$")
    $instance.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computerName)
    $instance.AddProperty("$MPElement[Name='SDMonitoringSyntheticTest.SDDepot']/ServerDetails$", $ServerDetails)
    $instance.AddProperty("$MPElement[Name='SDMonitoringSyntheticTest.SDDepot']/SDType$", $SDType)
    $instance.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", $DisplayName)
    $discoveryData.AddInstance($instance)
    Write-OnlyInfo "$Name $ServerDetails"
    Write-OnlyInfo $discoveryData
    $discoveryData
    </ScriptBody>
    <Parameters>
    <Parameter>
    <Name>sourceID</Name>
    <Value>$MPElement$</Value>
    </Parameter>
    <Parameter>
    <Name>managedEntityID</Name>
    <Value>$Target/Id$</Value>
    </Parameter>
    <Parameter>
    <Name>computerName</Name>
    <Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
    </Parameter>
    <Parameter>
    <Name>SDType</Name>
    <Value>$Target/Property[Type="SDMonitoringSyntheticTest.SDWatcher"]/SDType$</Value>
    </Parameter>
    </Parameters>
    <TimeoutSeconds>300</TimeoutSeconds>
    </DataSource>
    </Discovery>
    </Discoveries>
    <Monitors>
    <UnitMonitor ID="AlertTestMP.AlertDiscTestMonitor" Accessibility="Internal" Enabled="true" Target="SDMonitoringSyntheticTest.SDDepot" ParentMonitorID="Health!System.Health.EntityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="false">
    <Category>AvailabilityHealth</Category>
    <AlertSettings AlertMessage="AlertTestMP.AlertDiscTestMonitor.AlertMessage">
    <AlertOnState>Error</AlertOnState>
    <AutoResolve>true</AutoResolve>
    <AlertPriority>Normal</AlertPriority>
    <AlertSeverity>Error</AlertSeverity>
    <AlertParameters>
    <AlertParameter1>$Data[Default='']/Context/EventDescription$</AlertParameter1>
    </AlertParameters>
    </AlertSettings>
    <OperationalStates>
    <OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success" />
    <OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Error" />
    </OperationalStates>
    <Configuration>
    <FirstComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
    <FirstLogName>Application</FirstLogName>
    <FirstExpression>
    <And>
    <Expression>
    <RegExExpression>
    <ValueExpression>
    <XPathQuery Type="String">EventDescription</XPathQuery>
    </ValueExpression>
    <Operator>ContainsSubstring</Operator>
    <Pattern>WSAETIMEDOUT</Pattern>
    </RegExExpression>
    </Expression>
    <Expression>
    <Or>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7017</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7015</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7013</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </Or>
    </Expression>
    </And>
    </FirstExpression>
    <SecondComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
    <SecondLogName>Application</SecondLogName>
    <SecondExpression>
    <And>
    <Expression>
    <RegExExpression>
    <ValueExpression>
    <XPathQuery Type="String">PublisherName</XPathQuery>
    </ValueExpression>
    <Operator>ContainsSubstring</Operator>
    <Pattern>$Target/Property[Type="SDMonitoringSyntheticTest.SDDepot"]/ServerDetails$</Pattern>
    </RegExExpression>
    </Expression>
    <Expression>
    <RegExExpression>
    <ValueExpression>
    <XPathQuery Type="String">EventDescription</XPathQuery>
    </ValueExpression>
    <Operator>ContainsSubstring</Operator>
    <Pattern>executed Successfully</Pattern>
    </RegExExpression>
    </Expression>
    <Expression>
    <Or>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7012</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7014</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="UnsignedInteger">7016</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </Or>
    </Expression>
    </And>
    </SecondExpression>
    </Configuration>
    </UnitMonitor>
    </Monitors>
    <Overrides>
    <MonitorPropertyOverride ID="OverrideForMonitorAlertTestMPAlertDiscTestMonitorForContextSDMonitoringSyntheticTestSDWatcherf3454dfab84141b68e1f7cda55c641f5" Context="SDMonitoringSyntheticTest.SDWatcher" Enforced="false" Monitor="AlertTestMP.AlertDiscTestMonitor" Property="Enabled">
    <Value>true</Value>
    </MonitorPropertyOverride>
    </Overrides>
    </Monitoring>
    <Presentation>
    <StringResources>
    <StringResource ID="AlertTestMP.AlertDiscTestMonitor.AlertMessage" />
    </StringResources>
    </Presentation>
    <LanguagePacks>
    <LanguagePack ID="ENU" IsDefault="true">
    <DisplayStrings>
    <DisplayString ElementID="AlertTestMP.AlertDiscTestMonitor">
    <Name>AlertDiscTestMonitor</Name>
    <Description>Description for the new unit monitor.</Description>
    </DisplayString>
    <DisplayString ElementID="AlertTestMP.AlertDiscTestMonitor.AlertMessage">
    <Name>TestAlertMonitor</Name>
    <Description>Event Description: {0}</Description>
    </DisplayString>
    <DisplayString ElementID="AlertTestMP.AlertDiscTestMonitor" SubElementID="FirstEventRaised">
    <Name>FirstEventRaised</Name>
    <Description>FirstEventRaised</Description>
    </DisplayString>
    <DisplayString ElementID="AlertTestMP.AlertDiscTestMonitor" SubElementID="SecondEventRaised">
    <Name>SecondEventRaised</Name>
    <Description>SecondEventRaised</Description>
    </DisplayString>
    </DisplayStrings>
    </LanguagePack>
    </LanguagePacks>
    </ManagementPack>
    Hi Yan,
    Attached is the MP that iam using.
    SourceDepot.SDMonitoringSyntheticTest.SDWatcher.SDDepotDiscovery is the class which actually discovers the inputs. As of now there is no probe action to trigger the exe, iam doing it manually, but still i see an alert raised for all of the inputs discovered
    even if only 1 input has failed.
    Regards, Mahadev Sundeep Maruvada

  • Multiple fax/email contacts for same Vendor - How to set it up for Output

    Hi All
    We have two different plant using same vendor A but their contacts are different.
    for example. Plant 1000 has the contact as Rep1 with fax 1 and email1
                       and Plant 2000 has the contact as Rep 2 with fax 2 and email 2
    We would like to send the PO output to corresponding contact persons w.r.t.plant.
    in our communication block in vendor master we have standard communication type to only one email address.
    Please suggest
    Thanks
    Sasi

    Hi
    In vendor master you need to use either vendor subrange or data retension at plant level. It is available in purchasing data additional view. (Check in top menu).
    Then you need to have partner function with different ordering address. Because for every vendor subrange or data retension at plant you can have different purcahsing data and partner function.
    Read SAP libraray and test in development cycle, it will help you.
    Regards
    Antony

Maybe you are looking for