Rounding PR00 in header level (+1 item with the same material)

I have currently a problem, my customer prints the invoice by sumarizing the materials (line items with the same material and pr00), but by doing this the unit price by the quantity is not correct because the rouding at line item is not the same when we put all together.
e.g.
line 1 - qty = 7,5 and pr00 = 0,15 ->total of 1,125 -> stays in line item with 1,13
line 2 - qty = 7,5 and pr00 = 0,15 ->total of 1,125 -> stays in line item with 1,13
in the layout we have a total of 2,26, but in real we must have 2,25 if we see this like a header group.
Can we have a rounding solution for the PR00? like we have for discounts using a rouding routine?
thanks in advance,
joao

in the layout we have a total of 2,26, but in real we must have 2,25
Since the issue is only in output of billing document, you have to take the help of ABAPer and modify the smart form.
thanks
G. Lakshmipathi

Similar Messages

  • SharePoint Search Service upgrade to 2013 fails: "Inner Exception: An item with the same key has already been added."

    Here's the situation:
    Upgrading a SharePoint Server 2010 Search Service Application dB to our SharePoint 2013 SP 1 development environment, using the Management Shell
    Running the following commands: 
    $applicationPool= Get-SPServiceApplicationPool -Identity 'SearchService_AppPool'
    $searchInst = Get-SPEnterpriseSearchServiceInstance -local
    Restore-SPEnterpriseSearchServiceApplication -Name 'SearchServiceApplication' -applicationpool $applicationPool -databasename 'SearchServiceApplicationDB' -databaseserver SERVERNAME -AdminSearchServiceInstance $searchInst
    Creates the search dBs (crawl, links, analytics) successfully; however, in the end, I get....
    "Exception: Action 15.0.107.0 of Microsoft.Office.Server.Search.Upgrade.SearchAdminDatabaseSequence failed."
    Looking at the ULS logs, I find the following:
    Inner Exception: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)     at Microsoft.Office.Server.Search.Administration.OOTBSchemaDefinition.FindAndFixExistingManagedProperties()     at Microsoft.Office.Server.Search.Administration.OOTBSchemaDefinition.InstallManagedProperties(Boolean
    upgrade)     at Microsoft.Office.Server.Search.Administration.OOTBSchemaDefinition.Upgrade()     at Microsoft.Office.Server.Search.Upgrade.UpdateAllOOTBProperties.Upgrade()     at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()
    Exception: Action 15.0.107.0 of Microsoft.Office.Server.Search.Upgrade.SearchAdminDatabaseSequence failed.
    at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()     at Microsoft.SharePoint.Upgrade.SPDatabaseSequence.Upgrade()     at Microsoft.Office.Server.Search.Upgrade.SearchDatabaseSequence.Upgrade()     at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Upgrade(Object
    o, Boolean bRecurse)
    Anyone encounter anything like this during their search upgrade process? I'm not honestly even sure what duplicate value to look for at this point, if I were to run a SELECT Id, ClassId, ParentId, Name, Status, Version, Properties FROM Objects on
    "SharePoint_Config" in SSMS. Any insight or opinions on the matter are welcome; and thanks to those who choose to reply to this, in advance.

    Hi ,
    You can enable the ULS log on verbose level (note, remember to reset to default level after finished troubleshooting) for more information per the following article, then check there should be more useful message for helping solve the issue.
    http://www.brightworksupport.com/enabling-verbose-logging-to-compare-against-c/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/12c99279-d3aa-46de-bc57-d5d250692ff0/upgrade-of-search-service-application-from-2010-to-2013-failure?forum=sharepointadmin
    https://www.simple-talk.com/blogs/2014/04/22/sharepoint-2010-to-2013-search-service-application-upgrade-issueaction-15-0-80-0-fails/http://blogs.msdn.com/b/biyengar/archive/2009/10/27/psconfig-failure-with-error-an-item-with-the-same-key-has-already-been-added.aspx
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added

    Hi there,
    I recently had the following situation, where I changed the source of my CSV file in Power Query.
    Once I had reloaded the file, it would then not load into Power Pivot. So I disabled the loading from Power Query into Power Pivot. I then enabled the loading to the Data Model. Which then successfully loaded the data into Power Pivot.
    But once I went into Power Pivot, had a look, then saved the Excel file. Once saved I closed the Excel file. I then opened the Excel file again and all the sheets that interact with the Power Pivot data work fine.
    But if I go and open Power Pivot I get the following error: Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added.
    This is what I get from the Call Stack
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(DataModelingColumn column, SynonymCollection synonyms)
       at Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
       at Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
       at Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
       at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
    I would assume that the issue is with the synonyms and for some reason, when I disabled the loading of my data into the Power Pivot Model, it did not remove the associations to the actual table and synonyms.
    If I renamed the table in Power Pivot it all works fine. So that was my work around. Fortunately I did have a copy of the Excel workbook before I made this change. So I could then go and add back in all the relevant data to my table.
    Has anyone had this before and know how to fix it?
    http://www.bidn.com/blogs/guavaq

    Hi there
    I can share the work book, if possible to send me an email address. As the workbook size is about 9Mb.
    Thanks
    Gilbert
    http://www.bidn.com/blogs/guavaq

  • Crawl Error GetVirtualServerPolicyInternal - An item with the same key has already been added

    Hi,
    I did an index reset and now I can't start any crawl. It's complaining "An item with the same key has already been added".  Exception seems to from Microsoft.Office.Server.Search.Internal.Protocols.SharePoint2006.CSTS3Helper.GetVirtualServerPolicyInternal. 
    What should I check? Thanks.
    The SharePoint item being crawled returned an error when requesting data from the web service. ( Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: 9e69ff9c-f925-50bf-5110-d1b0e74c77bc; SearchID = 522CB441-0028-4E7D-BED4-4230D7ADD14B
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dm1k Medium   Exception Type: System.ArgumentException *** Message : An item with the same key has already been added. *** StackTrace:    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean
    add)     at Microsoft.Office.Server.Search.Internal.Protocols.SharePoint2006.CSTS3Helper.GetVirtualServerPolicyInternal(String strStsUrl, WssVersions serverVersion, sPolicyUser[]& vUsers, sPolicyUser& anonymousUser, String&
    strVersion, String[]& vServerWFEs, Boolean& fIsHostHeader, Boolean& fIsAllUsersNT, Boolean& fIncludeSiteIdInCompactURL)     at Microsoft.Office.Server.Search.Internal.Protocols.SharePoint2006.CSTS3Helper.GetVirtualServerPolicy(String
    strStsUrl, sPolicyUser[]& vUsers, sPolicyUser& anonymousUser, String& strVersion, String[]& vServerWFEs, Boolean& fIsHostHeader, Boolean... 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93* mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dm1k Medium   ...& fIsAllUsersNT, Boolean& fIncludeSiteIdInCompactURL) 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     fsa0 Monitorable GetVirtualServerPolicy fail. error 2147755542, strStsUrl
    http://serverurl 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvt6 High     SetSTSErrorInfo ErrorMessage = Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7 hr = 80042616  [sts3util.cxx:6988] 
    search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvi3 High     Couldn't retrieve server
    http://serverurl policy, hr = 80042616  [sts3util.cxx:1865]  search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvu0 High     STS3::StoreCachedError: Object initialization failed.  Message:  "Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7"
    HR: 80042616  [sts3util.cxx:7083]  search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvg4 High     Server serverurl security initialization failed, hr = 80042616 error Message Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7 
    [sts3util.cxx:1591]  search\native\gather\protocols\sts3\sts3util.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dv5x High     CSTS3Accessor::InitServer: Initialize STS Helper failed. Return error to caller, hr=80042616  [sts3acc.cxx:1932]  search\native\gather\protocols\sts3\sts3acc.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dv3t High     CSTS3Accessor::InitURLType fails, Url
    http://serverurl, hr=80042616  [sts3acc.cxx:288]  search\native\gather\protocols\sts3\sts3acc.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvb1 Medium   CSTS3Accessor::Init fails, Url
    http://serverurl, hr=80042616  [sts3handler.cxx:337]  search\native\gather\protocols\sts3\sts3handler.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Connectors:SharePoint        
     dvb2 Medium   CSTS3Handler::CreateAccessorExD: Return error to caller, hr=80042616            [sts3handler.cxx:355]  search\native\gather\protocols\sts3\sts3handler.cxx 7a91de3b-a271-43c3-9f1a-935558902623
    04/22/2015 19:37:10.93  mssdmn.exe (0x1A34)                      0x225C SharePoint Server Search       Crawler:FilterDaemon         
     e4ye High     FLTRDMN: URL
    http://serverurl Errorinfo is "Error from SharePoint site: *** An item with the same key has already been added., CorrelationID: ae5aff9c-2940-50bf-5110-da6764f258d7"  [fltrsink.cxx:566]  search\native\mssdmn\fltrsink.cxx 
    04/22/2015 19:37:10.93  mssearch.exe (0x1118)                    0x0628 SharePoint Server Search       Crawler:Gatherer Plugin      
     cd11 Warning  The start address http://serverurl cannot be crawled.  Context: Application 'Enterprise_Search_Service_Application', Catalog 'Portal_Content'  Details:  The SharePoint item being
    crawled returned an error when requesting data from the web service.   (0x80042616) 
    04/22/2015 19:37:10.99  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x06B4 Search                         Fuzzy Name Search            
     ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to 
    load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. ab403221-f69c-43ef-a8cc-7df384f6a4b3
    04/22/2015 19:37:10.99  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x06B4 Search                         Fuzzy Name Search            
     ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. ab403221-f69c-43ef-a8cc-7df384f6a4b3
    04/22/2015 19:37:10.99  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x06B4 Search                         Fuzzy Name Search            
     ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. ab403221-f69c-43ef-a8cc-7df384f6a4b3
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to 
    load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. 2bbbeea9-aeb8-4497-a774-2927bd21ba98
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. 2bbbeea9-aeb8-4497-a774-2927bd21ba98
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. 2bbbeea9-aeb8-4497-a774-2927bd21ba98
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x10E4 Search                         Fuzzy Name Search            
     ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to 
    load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. e15da110-f86d-4e3d-8d73-a67dccaa82cd
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x10E4 Search                         Fuzzy Name Search            
     ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. e15da110-f86d-4e3d-8d73-a67dccaa82cd
    04/22/2015 19:37:11.00  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x10E4 Search                         Fuzzy Name Search            
     ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. e15da110-f86d-4e3d-8d73-a67dccaa82cd
    04/22/2015 19:37:11.03  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyfa Unexpected CCANameProjector : Exception:Exception : Access to the path 'C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl' is denied. encountered while attempting to 
    load the Projection Model Catalog C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\CanonicalResources\ProjectionModels\EN_EN.mdl for Language : en encountered while attempting to load the projection model. 58d54385-497b-466d-9f02-aeba664bc1b6
    04/22/2015 19:37:11.03  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyd9 Unexpected CCAMetadataProducer : Fuzzy metadata generation failed to load resource for language: en. 58d54385-497b-466d-9f02-aeba664bc1b6
    04/22/2015 19:37:11.03  NodeRunnerContent1-84b5adb7-0d6 (0x2090) 0x240C Search                         Fuzzy Name Search            
     ajyed Monitorable CCAMetadataProducer : Fuzzy metadata generation failed for the current record. Check logs for more details. 58d54385-497b-466d-9f02-aeba664bc1b6

    Hi,
    For troubleshooting your issue, please take steps as below:
    1. Try to crawl your content source using farm admin account.
    2.
    Disable loopback check .
    3.Add reference  SPS3s://WEB into your content source start addresses.
    For more information, please refer to these blogs:
    http://sharepoint.stackexchange.com/questions/5215/crawling-fails-with-404-error-message-but-the-iis-log-tell-a-different-story
    http://www.cleverworkarounds.com/2011/07/22/troubleshooting-sharepoint-people-search-101/
    http://blogs.msdn.com/b/biyengar/archive/2009/10/27/psconfig-failure-with-error-an-item-with-the-same-key-has-already-been-added.aspx
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • HT5767 My mail all of a sudden would not allow me to delete messages in my inbox saying, "couldn't be copied to "Messages" because an item with the same name already exists." Found it duplicates the message I wanted deleted in trash.

    Still  using the @mac.com   mail  address and up   to date on everything, but have not gone to Maverick.  All of a sudden Mail wouldn't let me delete.  Said that title of email was already in trash.  And sure enough it was.  Clicking on the help button on the message gets Nothing.
    The selected topic is currently unavailable.
    The topic you were trying to view could not be found.
    "couldn’t be copied to “Messages” because an item with the same name already exists."
    Any ideas.  My mail is not tied to gmail etc.. just all by it's lonesome.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Cannot delete read mail. Keep getting the following message "926540.emlx" couldn't be copied to "Messages" because an item with the same name already exists.

    I am trying to free up room on my hard drive but keep getting the following message. “926540.emlx” couldn’t be copied to “Messages” because an item with the same name already exists. 926540.emix is the number given to the email I want to delete. This message appears (with a different .emix number) when I try to delete any mail. I have junk mail from 2014 to 2009 that I want to delete

    Back up all data. Rebuild the mailbox. Try again to delete the message.

  • When deleting messages I get this message:"74608.emlx" couldn't be copied to "Messages" because an item with the same name already exists.  How can I fix this problem?

    When trying to delete messages in mail, I've been getting this message:“74608.emlx” couldn’t be copied to “Messages” because an item with the same name already exists."  The numbers at the beginning are always different but the ".emlx" and the rest of the statement is always the same.  How can I fix this problem?
    Thanks
    Candy777

    HT2500 Error when deleting email: Apple Support Communities

  • "91590.emlx" couldn't be copied to "Messages" because an item with the same name already exists. How do I fix this?

    The delete button in Mail gives me this message: “91590.emlx” couldn’t be copied to “Messages” because an item with the same name already exists. The only thin that has changed is an OS update last evening. (Mountain Lion)

    Thanks...it was spooky seeing the mail in my box suddenly disappear and blank after going to Mailbox and Rebuild.  But "poof" it was up again and was able to delete without the messages telling me it had a duplicate in trash (which it did).  Solved the problem.

  • Messages could not be moved to the mailbox "Trash - "122730.emlx" couldn't be copied to "Messages" because an item with the same name already exists.

    Cannot move messages from mail to trash.  Get the following message:    messages could not be moved to the mailbox “Trash — “122730.emlx” couldn’t be copied to “Messages” because an item with the same name already exists.

    I just started having the same problem but have found no solution.

  • Automatic batch determination when more items have the same material

    Hi guys,
    I have a problem with automatic batch determination in the delivery note where more items has the same material number.
    For example:
    Sales order items
    Item   Material   Q
    1        130         5 kg
    2        130         4 kg
    Stock for this storage location is:
    material    batch    Q
    130           1000     3kg
    130           1001     7kg
    When I create delivery note I get this:
    Item   Material   Q   Batch
    1       130            
    90001 130       3     1000
    90002 130       2     1001
    2       130
    90003 130       3     1000
    30004 130       1     1001
    As you can see, both items has the same batches. This is not good, when post goods issue. Normally there is no stock availaible for both items.
    Is there any customizing to do this correctlly?
    Thanks for an ansver.
    BR, Matic

    What is the purpose of giving the same material as second line item.
    specify in the first line item itself.
    or els the condition record which you have specified that for 100 material of A gives 10 material of B modify it to 10 of A should give 1 material of B
    The first you will be useful for you.

  • Free Goods for multiple line items of the same material

    Hi Friends,
    We have configured Free Goods to a particular material in such a way that if the customer orders 100 qty of Material A then he gets 10 qty of Material B free. This is working fine if there is only one line item of Material A with qty more than 100.
    However, if the order is created in such a way that there are two line items of material A for 50 qty each then the system is not giving the free material B, even though the total ordered qty in the sales order for material A is 100.
    How can this be configured in the system? Please Help.
    Regards,
    Abhishek

    What is the purpose of giving the same material as second line item.
    specify in the first line item itself.
    or els the condition record which you have specified that for 100 material of A gives 10 material of B modify it to 10 of A should give 1 material of B
    The first you will be useful for you.

  • Update other items with the same value when when column contains Y

    CREATE TABLE TEST
       (     "QUATINTY" NUMBER(17,2),
         "AMOUNT" NUMBER(17,2),
         "ERRORRED" VARCHAR2(16 BYTE),
         "PO" VARCHAR2(12 BYTE),
         "LINE" VARCHAR2(10 BYTE),
         "SEQ" VARCHAR2(14 BYTE),
         "INVOICE" VARCHAR2(16 BYTE)
    Insert into TEST (PO,QUATINTY,AMOUNT,ERRORRED,LINE,SEQ,INVOICE) values ('123',5,50,'Y','1','1','inv1');
    Insert into TEST (PO,QUATINTY,AMOUNT,ERRORRED,LINE,SEQ,INVOICE) values ('123',5,50,null,'1','2','inv1');
    Insert into TEST (PO,QUATINTY,AMOUNT,ERRORRED,LINE,SEQ,INVOICE) values ('125',5,50,null,'1','1','inv2');
    Insert into TEST (PO,QUATINTY,AMOUNT,ERRORRED,LINE,SEQ,INVOICE) values ('125',4,50,null,'1','2','inv2');If you notice by the table above what im trying to acomplish is update the errorred column with 'Y' if any of the po and invoice are the same and have a 'Y' on the errored column.
    in other words, i should end up with 'Y' in the errorred column for INV1.
    Can someone point me in the right direction i cant for the life of me figuered this one out.

    Hi,
    Here's one way:
    UPDATE     test
    SET     errorred     = 'Y'
    WHERE     NVL (errorred, 'N') != 'Y'
    AND     (po, invoice)          IN (
                              SELECT  po, invoice
                         FROM      test
                         WHERE      errorred  = 'Y'
    ;This assumes that po and invoice are not NULL. If either column can be NULL, then the solution might be a little messier, depending on the results you want, but only a little. Post some sample data (with NULLs) that shows what kinds of situations you need to handle, and the results from that sample data.

  • Mac Mail, can't move to Trash : error "227845.emlx" couldn't be copied to "Messages" because an item with the same name already exists.

    this just started popping up last weekend? Any ideas?
    Mac Mail on Mtn Lion.
    POP email acct
    No changes to settings in Months
    thanks.

    if it has something to do with moving my Applications folder away from the SSD drive and to the HD drive
    HI ...
    Absolutely.
    Apps must be stored in the Applications folder on the startup disk they were downloaded to.
    It's not a permissions issue. 

  • What does this message mean? "185605.emix" couldn't be copied to "Messages" because an item with the same name already exists."  I am not able to move incoming email messages to Trash

    How can I send messages to Trash.  I have been able to do it for two years, until this morning. Thank you.

    Back up all data. Rebuild the mailbox. Try to delete the message again.

  • TS3276 "23354.emlx" couldn't be copied to "Messages" because an item with the same name already exists.

    I'm getting this message when trying to delete an email; can't figure out what is causing alleged 'duplication'.  Has anyone seen this before?   

    I just started having the same problem but have found no solution.

Maybe you are looking for