UI invisible after updating 5000 business partners

hi,
i'm updating about 5000 business partners in my addon.
I do this in a thread, so the user can do other things in sap.
If there is no user interaction the screen will be locked, but that doesn't matter because the addon will go on as i can see in the status bar.
After 1-2 hour the user cannot acess SAP anymore. The UI will not been refreshed. The only way is to kill the process.
Is there a way to handle this?
SAP 8.8 SP00 PL19
best regards
Markus

Hello Marcus,
When i had this kind of error, i done the following: spliited the records to be updated as 1000 per group, and executed a them in  a cycle.
Also a good idea it the following:
for 1 to 5000
call updateBP  (params)
next
Sub Updatebp (params)
oBp = moSBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
oBp.update
'release object
GC.Collect() 'Call the garbage collector for good measure
end sub
no more data required, and stable.
Regards
János
pS: use GetDICompany to connect via UI Addon if necessary in 2007 / 8.8
Edited by: János Nagy on Feb 10, 2011 12:33 PM

Similar Messages

  • Needs to consolidate twice after updating a business rule

    Hi All,
    I created a business rule to pull an nonconsolidated entity to an consolidated entity without realizing an existing rule is doing the same thing but using the parent instead. This cause the consolidation process to do it twice.I stopped the rule, added a new nonconsolidated entity and a new rule going to the same consolidated entity. This way the history data wouldn't be impacted. I would assumed that because I stopped the first rule that causing the data to impact twice I don't have the same problem but once I tested it, it is still doing the same thing. I am using HS.ImpactStatus on the BR. Please see below:
    Old to stop the rule:  
    'case "global_chain"
         'HS.ImpactStatus "E#Global_Chain_Corp"
    New rule:
    case "global_chain_corpnc"
         HS.ImpactStatus "E#Global_Chain_Corp
    any ideas why still need to consolidated twice?
    thanks
    sandy

    Hi Sandy,
    HFM is calculating the entities based on the order in the hierarchy structure.
    I assume that you have this issue because entity global_chain_corpnc is calculated after entity Global_Chain_Corp and as a result Global_Chain_Corp will end up as impacted.
    Based on my understanding HFM will:
         On the first consolidation:
         1.1) Calculate Global_Chain_Corp
         1.2) Calcuate global_chain_corpnc which will result in Impacting Global_Chain_Corp
         On the second consolidation
         2.1) Calculate Global_Chain_Corp but not calcuate global_chain_corpnc because it is already calculated from the first consolidation
    Regards,
    Thanos
    http://thanos-onetruth.blogspot.co.uk

  • DTW Error65171 when Updating Business Partners

    I have gotten the following error multiple times when attempting to update Business Partners in the DTW:  "Can not find this object in B1Application-defined or object-defined error65171".  I have tried many different things as well as only trying to import one record with only the line num, card code, and card type and still I get this error when trying to update BP's.  I have also tried using both a tab delimited and a comma delimited file.  Pleae let me know if you have any related information.  Thanks!

    Hi Sarah,
    a typical situation where this kind of error occurs is when there is data in the line to be imported/updated which is not defined in SAP, e.g. in the import-file I used a tax-code which was not defined in SAP.
    Furthermore I had problems with a newer version of DTW (no time to look for the version number right now). With this version it is NOT possible to UPDATE business partners. I installed an older version of DTW which was part of SAP BO 2005A SP01 PL16 (if I remember it corretly) and did the update of business partners.
    To solve your problem you should inform us on the versions of SAP and DTW you are currently using, as Suda already asked you for in his reply!
    Regards,
    Frank Romeni

  • DTW Import Business Partners and Contacts

    Hallo,
    I want to do an import via DTW for the Contact of the Business Partners. The Business Partners were loaded via the Import Excel in SBO. I created two files using the templates. For the BP file I only want link the Contact Persons. With the Contact person file, the Contact persons are loaded.
    Using these file gives me the message that the client number already exists. That is correct, I only want to ad contact persons. Where is the missing link in my files? My BP numbers are starting with.30000.
    MY BP files can be found on:
    ftp.rikas.nl
    user: sbo
    password: sbo

    hello M. Meulendijk,
    you need the Update of Business Partners template of DTW. you found this templates in C:\Program Files\SAP Manage\Data Transfer Workbench\Templates\Data preparation examples\20. TestCase2_Test Data for update function\BusinessPartners
    if u wish i can send you the templates. just give your email address.
    your ftp does not work, invalid password.
    hope it helps..
    FIDEL

  • After updating my iPad 2 it locked up and now displays an apple and a rotating busy symbol, for hours now. What can I do ?

    after updating my iPad 2, through itunes, the iPad has locked up and diplays an apple and a rotating "busy" button
    hours later it is still the same and dosen't respond to any switches. Any ideas?

    Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    Otherwise you could try this page http://support.apple.com/kb/HT4097

  • DTW Updating Business Partners

    Hello Guys
    I am trying to upload the Business Partners via DTW to SAP B1, its returning me with an error key="DocEntry" Reason="Can not find this onjects in B1Application-defined or object-defined error65171" i used the same template lastime to upload and it worked fine i dont know what the problem is, do you guys have any clue on this one.
    Thanks

    Well one thing you should take note of is if you're using a CSV file to import in your data, you should make sure there arent any comma's in the sheet as B1 DTW will 'flow' the data into a new field after the comma. We've seen this happen over and over again.
    The values in the whole column of 20 000 BP codes are fine, empty, all good. Then 12 000 BP codes into the DTW and it starts kicking up a fuss.
    Best way to trouble shoot this is to do a test and cut out the last row BEFORE the error line, the actual error line and 1 row after the error. Then do a test import and see if there are any errors. If there isnt, then you should focus on the 3 rows of data

  • Problem updating business partners - "Bank does not exist in the company"

    Hi
    I have written a small program to update business partners ( SP01 PL 34 ) and I am getting a message saying "Bank does not exist in the company"
    I am only updating simple information such as telephone, fax and email addresses.
    Does anyone know why I am getting that error ?
    Thanks
    Regards Andy

    Paul,
    Other than the code that you have written, are there any other add-ons installed with Business One such as the Payment Engine?
    I have not heard of this issue.  You may want to create a message with SAP Support since you are getting the same error through the DTW which also uses the DI API.
    Also, is there any difference between what you manually key in and what you try to push in?
    Eddy

  • Error updating business partners

    Hi,
    I have a routine to add/updat business partners, but when I update them I get the message  "Cannot add multi bill.to address to non supplier BP", but I am doning nothing with the addresses.
                    If bp.GetByKey(rs.Fields.Item(0).Value) Then
                        bp.CardType = SAPbobsCOM.BoCardTypes.cLid
                        bp.CardName = compname
                        bp.Phone1 = telnr
                        bp.ContactPerson = contactp
                        bp.Website = website
                        bp.UserFields.Fields.Item("U_HUIDPAKK").Value = huidigpak
                        If bp.UserFields.Fields.Item("U_BELVERSL").Value.length > 0 Then
                            bp.UserFields.Fields.Item("U_BELVERSL").Value += contact
                        Else
                            bp.UserFields.Fields.Item("U_BELVERSL").Value = contact
                        End If
                        bp.UserFields.Fields.Item("U_MAILDATM").Value = caldate
                        Dim rc As Integer = bp.Update
                        If rc <> 0 Then
                            SBO_Application.MessageBox("UPDATE: " + oCmp.GetLastErrorDescription + vbCrLf + bp.CardCode)
                        End If
                    Else
                            SBO_Application.MessageBox(rs.Fields.Item(0).Value + " niet gevonden")
                        End If
                    End If

    Hey Ad,
    Looks like it is not possible.
    BusinessPartners Object has a BPAdresses object, which contains all adressses (ship to and bill to). But The BPAdresses object only contains an add function, no remove function.
    So you'll should delete the business partner, and add it again...
    Good luck!
    Edit:
    You'll can also delete the address entry in table CRD1 (that's the adresses table according to the DI-API. Not supported by SAP though, (you'll lose support) so take care with it...
    Message was edited by: R. Schwachofer

  • [Special Prices for Business Partners] and [Hierarchies and Expansions]

    Dear Sirs,
    I am running into three problems.
    1.) I loaded 313 items Special Prices by DTW however I can not locate where it went?
         I searched via the path [Inventory>Price Lists>Special Prices>Special Prices for Business Partners]but find nothing in there.
    2.) I can not find DTW templates for Hierarchies and Expansions data load.
         Also I searched via the path [Inventory>Price Lists>Special Prices>Hierarchies and Expansions] to see if the Special Prices I loaded with DTW maybe there but find nothing there.
    3.) I can not find any information related to Hierarchies and Expansions in the [diapi] help file.
    Could it be these two functionalities require "manual" input?
    If so, how on earth the 313 Special Prices DTW data load went through "successfully" and find no trace of it?
    I am pulling my hair off to find some advice.
    Would appreciate it greatly if someone could enlighten me on these two functionalities.
    Kuni - Tokyo
    Edited by: furuya kunitomo on May 15, 2009 2:28 PM

    Hi Kuni,
    To quickly answer your questions:
    1.) I loaded 313 items Special Prices by DTW however I can not locate where it went?
    The path is correct. If you can't find anything probably something went wrong in the DTW import.
    Check that the "Test Run" checkbox was not checked and all required keys are entered in the templates.
    2.) I can not find DTW templates for Hierarchies and Expansions data load.
    The relevant templates are:
    SpecialPrices.xlt
    SpecialPricesDataAreas.xlt
    SpecialPricesQuantityAreas.xlt
    the default location when installing DTW is:
    C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates\oSpecialPrices
    When entering Hierarchies and Expansions (renamed to Period and Volume Discount in Version 2007) you must enter *x for CardCode where x is the price list number.
    3.) I can not find any information related to Hierarchies and Expansions in the diapi help file.
    The information in the DI API file is under the SpecialPrices Object.
    See below some general information regarding special prices:
    SpecialPrices is a business object part of the Inventory and Production module under
    Select Inventory > Price Lists > Special Prices > Special Prices for Business Partners.
    OR
    Select Inventory > Price Lists > Period and Volume Discount (Hierarchies and Expansions in previous versions)
    Interesting points:
    Source table: OSPP
    DTW Template: SpecialPrices.csv
    Mandatory fields in SAP Business One: CardCode and ItemCode.
    PriceListNum is a foreign key to the PriceLists object - source table OPLN, field name ListNum.
    CardCode is the Business Partner CardCode to enter Special Prices for Business Partners.
    Child object of the SpecialPrices Object: SpecialPricesDataAreas (source table: SPP1)
    DTW Template: SpecialPricesDataAreas.csv
    LineNum (Field name LINENUM) - Always enter the appropriate LineNumber you want to update (starts from 0).
    Child object of the SpecialPricesDataAreas Object: SpecialPricesQuantityArea (source table: SPP2)
    DTW Template: SpecialPricesQuantityAreas.csv
    LineNum (Field Name SPP2LNum). Always enter the appropriate LineNumber you want to update (starts from 0).
    Hope that information helps a little. If you have any fruther questions enter the following information:
    1. SAP Business One Version including Patch level
    2. Do you get any error message after the import? What is the message returned?
    Kind Regards,
    Friederike Mundt
    SAP Business One Forums Team

  • Cannot retrieve business partners in SAP mobile iPad

    Hello Colleagues,
    since some days I'm not able to retrieve business partners in my SAP mobile App.
    Neither in iPad nor in iPhone.
    I tried it on 2 different test servers.
    A couple of day's before I saw all the business partners.
    The only change I did in the last days was executing the steps regarding the Java JRE that was recommended by SAP Note 1582526.
    In the Message-Log I've found the following:
    The SQL-Exception with the ErrorCode 242 points to a conversion error from the given Date-String to a DateTime Value.
    The Date-String is automatically inserted by the (whatever) system, it is the current date.
    Is there a possibility to change the DateTime Format so the query can pass thru and I can see the business-partners?
    Thank you in advance
    Rudy.

    Problem solved
    After setting the language of the sql server "sa" from german to english, everything works fine.
    I don't know why this problem occurred. I never changed the language before...
    Cheers
    Rudy

  • Many contacts are not visible to alphabetical browse on Contacts after update to OS 10.2 on the Z10

    After updating to 10.2 on Z10  many contacts do not appear on the Contacts list, but if I search for them, I get them one at a time. I can't browse for them, but they are still in a file somewhere. That file is no longer fully connected to the Contacts app, it seems. I'm going to call the two alternatives the "browsible" list when I refer to the Contact app working correctly and lsiting the contact alphabetically; and the "non-browsible" list, when I can only find them by a search.
    One other thing of interest. When I add a contact that is in the same name as one on the non-browsible, I will get a message asking me if I want to replace the [old] contact. If I say yes, the new contact listing joins the hidden list and replaces what was there. If I say no, I get the contact added to the browsible Contact app. Thereafter, if I search on that name I get two hits: one is the old, non-browsible entry and the other is the new one that is browsible.
    I did the 10.2 update when I was running the older BB link on a WinXP computer and it did not work to create a back-up, so I can't try restore. I now run Win7 64-bit and the new link seems to work okay,  but that was installed after I upgraded to 10.2..
    Any suggestions as to where I go to find the hidden contact entries on the non-browsible list? And how I get them to appear on the alphabetical, browsible, list when Contacts is opened?
    Thanks for all answers.
    Ken 

    That's another odd thing. I did make a big effort to back-up the Z10 before the update to OS 10.2.1.  But, it appears to me that by downloading the new OS to my computer [T-Mobile never does push the BB updates, not as long as I've owned it, which was a few days before the US distro, when I got hold of one for the South American market in Miami Breach] it seems to have removed my installed BB Link from my laptop. And my back-up files are empty.  
    Last time something like this happened. there was a workaround. Do this, do that, and suddently the contacts that are lurking somewhere on the phone, appear. I was hoping for this again.
    If this is a known issue, why is it not featured on the BB page where the installer was located? I would never have downloaded OS 10.2.1, if I was warned I might lose my contacts and texts. 
    A sorry mess.
    Ken
    PS Note I corrected "visible" to "invisible" in the title of  this thread

  • How to delete Business partners in use

    Hi All,
    I have accidently removed some  business partners from table BUT000. After I realized it I tried creating them again but I got the error that Personal Address does not exist. After some help from experts I realized that this is because entries for those business partners were still there in some tables like BUT020. Now i tried deleting these business partners entirely using BUPA_TEST_DELETE. But i got an error saying that these BP's are in use in some transactions and hence cannot be deleted.
    Please advice how can I achieve this.
    Thanks in Advance,
    Saket

    Hi Saket,
    Check the Tcode - BUPA_DEL.

  • After updating Apple TV from 1.1 to 2.0, no longer shows up in iTunes 7.6

    My Apple TV was working fine with sw ver 1.0 and then 1.1.
    After updating it to sw ver 2.0, it no longer shows up in my
    iTunes 7.6 on my Powermac, running the latest Tiger updates,
    10.4.11
    I've been following the trouble shooting guide, and have power
    cycled the Apple TV. I've ensured that the Firewall allows
    iTunes, iPhoto, and Bonjour (UDP 5353) through. I've tried
    disabling the Apple firewall.
    I have not yet power cycled my computer, because it is busy
    running iPhoto, importing my photos. I have not yet removed
    and reinstalled iTunes. Will do both of those after iPhoto
    finishes importing.
    Any other suggestions?
    Thank you,
    Chris Shaker

    Got it working!
    Besides the Apple specified debugging items for ATV not showing up in iTunes,
    I ran disk warrior on my disks, and repaired the permissions on my boot disk.
    At some point, ATV running 2.0 showed up on iTunes. Then, it went away, and
    would not come back.
    I restored ATV to factory defaults, sw 1.1. This time, it did not show up in iTunes.
    Found that at some point NetBarrier X5 decided that the ATV was a computer attempting a DOS attack on my Mac, and decided to drop all packets from the ATV. Fixed that, and got ATV 2.0 working with iTunes 7.6
    Chris Shaker

  • HT1222 my iphone 4S no longer plays music output to speaker after updating to version 6.1.3.  I am unable to reset the phone to an earlier version!  How do I get my audio output to speaker back? (music, audible, youtube, netflix))

    my iphone 4S no longer plays music output to speaker after updating to version 6.1.3.  I am unable to reset the phone to an earlier version!  How do I get my audio output to speaker back? (music, audible, youtube, netflix)

    So you have business contacts that were lost... do you not have these on a Database in some shape or form? Sounds like you need to invest in a RAID1 backup setup for your computer so you dont have this issue in the future.
    As for repairing your problem, sounds like you are going to need to start from scratch at this point or if the data is still on your phone look into a program that can take the information from the phone onto iTunes.

  • BADI / User Exit after Saving of Business Partner

    Hi Experts,
    Is there a BADI / user exit that is triggered after saving / updating of Business Partner using transaction code "BP"?
    We want to send a XML file thru ALE after creation/modification of BP. We are using CRM WinClient 4.0.
    Thanks.

    Hi Mikhail Khorpyakov,
    Thank you very much for your reply. It was a helpful answer.
    BUPA_GENERAL_EXPORT is triggered before database update of table BUT000 and other related tables.
    Is there a BADI that is called after saving which contains general data of business partner?
    Thanks in advance..

Maybe you are looking for

  • How to get Labview RT to Display a Front Panel on the Graphics port

    I suspect that this post belongs on the feature request board but I'll ask anyway. Most of my systems require a seperate PC for a SCADA/HMI/User interface linked to the RT controller using Network Published Shared Variables. I understand that Remote

  • How to look up the first line item value based on several line items

    Hi Expert, I have one start routine in my transformation. But, I want to optimize it and only extract the first required line item. Can anyone help? thanks SELECT number item char3 char4 char5 char6 FROM /bi0/adsoa00 t_dsoa into table t_itab FOR ALL

  • Mac Pro Keeps Rebooting itself

    Hello, I am trying to figure out what is wrong with a Mac Pro I have.  It is 2.1, 3Ghz Quad Core.  It will run for about 30 to 40 minutes then automatically reboot it self.  I got it from someone else who told me about the problem, and I am trying to

  • Javaon RedHat Linux 9.0

    Hi. I have currently installed Red Hat 9.0 Linux on my system and would like to try and run Java programs there. I have no idea on how to even start this. Please help.

  • Homesharing problem, my library is gone

    Alright, I just got a new laptop for Christmas. I was excited about it, because I had just imported around 1600 songs from my boyfriend's and my cd collections. After importing the songs to my Toshiba laptop from my Dell desktop, it told me my Toshib