Hi Expert,Bad company name

Hi,
I am using sap b1 2007 pl14 and my addon working fine.
but  when i register addon on another pc as same configuration
it giving error Bad company name and not connecting with company.
Regards
Rajkumar

Sub MakeConnection()
        Try
            Dim Cookie As String
            Dim conStr As String
            Dim ret As Long
            Dim Counter As Integer
            Counter = 0
            oCompany = New SAPbobsCOM.Company
            '  oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English
            'Acquire the connection context cookie from the DI API.
            Cookie = oCompany.GetContextCookie()
            'Retrieve the connection context string from the UI API using the acquired cookie.
            conStr = SBO_Application.Company.GetConnectionContext(Cookie)
            'Before setting the SBO Login Context make sure that the company database is not connected
            If oCompany.Connected = True Then
                DestroyConnection()
            End If
            'Set the connection context information to the DI API.
            ret = oCompany.SetSboLoginContext(conStr)
            If ret <> 0 Then
                'the operation has failed.          
                ' ShowErrMsg("No SAP Business One Application was found")
            End If
            Dim Status As Integer
            Dim ErrorMsg As String = ""
            ' oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English
            'Establish the connection to the company database.
            While oCompany.Connected = False
                ret = oCompany.Connect()
                If ret <> 0 Then
                    oCompany.GetLastError(Status, ErrorMsg)
                    ShowErrMsg(ErrorMsg)
                    Counter = Counter + 1
                    If Counter > 10 Then
                        Exit While
                    End If
                    System.Threading.Thread.Sleep(Counter * 50)
                End If
            End While
        Catch ex As Exception
            MyErrorMsg(ex.Message)
        End Try
    End Sub

Similar Messages

  • How to change purchase order logo & company name in runtime

    Hi Experts,
              In Sap B1 9.0 i am adding a purchase order.after that i want to take a preview of that puchase order to take print out.but in my situation am having 2 logos and company names.while adding first purchase order i need a logo1 and company 1 routinly its keep on going after that am adding a purchase order 7 in that i want to change logo2 and company2 how to acheive this in crystal report.
    Regards
    Vinoth

    Hi,
    Not possible to select layout (run time). You have assign default layout for each vendor to get correct logo and company name.
    Why you want different logo and company names? Is it same DB or different DB?
    Thanks & Regards,
    Nagarajan

  • Email PO - Has anyone configured the Company Name in the Subject Email?

    Hi experts,
    I have configured the following in the subject of the email for all of our PO's being sent via email. 
    PO  &EKKO-EBELN& - &EKKO-BUKRS&
    This shows the PO Number and the Company Code in the subject line.  My clients do not want the Company Code to go into the subject becuase it is meaningless to our vendors / suppliers.  I need to find out how I can add the company name into the subject. 
    NOTE:  We have more than 1/2 dozen company names.
    Thanks

    hi
    pass the company code to the company code table get the description and pass on to a local variable from there display in subject email.

  • Company Name

    Hi Experts,
    I am facing an issue in the system with the company name. I had registered a company A B C in the system, however on request of the client i had to change it to ABC.
    The changes have taken place and the name appears as ABC in the company list as well. However if  i try to create a master agreement in the system it still takes the old name i.e. A B C.
    Is there anything that could be done so that the name appears as ABC in the master agreement as well or is this a system bug?
    Kind Regards,
    Anshuman

    If this is in SAP Sourcing/CLM, there is an XML script that will fix the object references. Please review the SAP note:
    SAP KBA note 1992162 - Changes to Master Data not reflected in associated documents
    Regards,
    Gary

  • Issue related to Company name and Ip address

    Dear Experts,
    When a user click the SAP icon the company name is not appearing, shown below
    When user enters the correct userid and password automatically the  system will pop the IP Address screen
    When the user enter the correct Ip address user gets an error saying the user code is and password is invalid
    However the company name appears then user has to login again then SAP Opens.
    Problem is why is not storing the company name once it is opened.and why the error comes everytime the user logins freshly.
    I have tried in Admin login it has come. But other users login its same error, even though the rights have been given to SAP folder in C-drive
    SAP Version is 8.82 PL 7
    Thanks&Regards
    Darshan Desai

    Hi,
    Thanks for the reply, i tried the above method ,but when the user clicks the SAP Icon and
    Run as Administrator then only the Company name will be stored and it doesn't ask the IP Address.
    But when the icon is clicked directly the company name is not stored and the IP address pop up.
    The user can't dially use as Run as Admin, as its an admin login.
    But its happening only in some systems, other system are working even without admin privileges.
    I also have provided full access to the SAP Folder in C-drive where SAP B1 is installed, even then the problem persists.
    Kindly let me know if there is any other folder apart from SAP folder in C-drive of the local system. where full access is to be provided.
    Thanks&Regards
    Darshan Desai

  • SMARTFORM Printing: Invoice header company name does not appear

    Hi Experts,
    I have a problem with the invoice SMARTFORMS whereas when the invoice exceeds more than 1 page, the company name at the left topmost part of the form doesn't appear. The window that contains this should only appear in the first page and when I'm printing an invoice of more than 1 page, the company name doesn't appear in the print-out.
    Any idea what would be the problem? or how to resolve this? Thanks in advance
    Best Regards,
    Kurtt

    Hi Experts,
    Thanks for taking time to help on this. Yes indeed it is appearing on the first page only. The problem is that the text element that contains the company name in that window doesn't appear if the invoice exceeds 1 page.
    Let say if the invoice to be printed has 2 pages then the company name doesn't appear.
    But if there's only 1 page to be printed, the company name appears.
    No condition specified in the text element nor in window.
    Any idea? Thanks!
    Best Regards,
    Kurtt

  • Problem on the company name field at ACH file

    Dear Experts,
    We have a problem at our ACH file.
    There is no company name information (third column) at batch header record (Record type code = 5).
    Do you know where this company information comes from?
    FYI, we are using SAPFPAYM program.
    Thanks.
    BR,
    Chris Kim
    Edited by: Chris Kim on Aug 21, 2009 1:56 AM

    Hi Chris
    Go Payment program Config FBZP, Then open payment method in Company Code. Open the relevant payment method for ACh in a company codes. Here you can expand the "Form Data" section, then then under the box "Drawer on the form" write the company name in the first row
    Thanks
    Ron

  • Centro Search by Company Name

    How can I search by company name on the Centro? I can "sort" by company but I haven't found out how to search for a specific company name. Of course I can search by the person's name, but I don't always remember the person.
    Paul Gipe
    centro, unblocked, T-mobile 
    Post relates to: Centro (AT&T)

    IrreducibleM31 wrote:
    Thank you for using the Palm Help Forums
    Hit the black or white button on the bottom left next to the letters (A), (S) and (Z) keys. Then hit the button with the UP arrow and magnifying scope under the (Z) and (X) key. You should then see a prompt with a find; enter the company name and all the people who work at that company will show up.
    I hope this works if not post back.
    Message Edited by IrreducibleM31 on 07-25-2008 02:39 PM
    Using the O/S's Find function is NOT a decent answer or a fix for this problem.  Only a very clumsy workaround.
    See my message at this thread on this forum as to why it is such a bad way to have to do this.
    Why can't Palm get this fixed?  It should work the way it use to so that typing a company's name takes you to the company's record, EVEN IF YOU DO HAVE ENTRIES IN THE FIRST NAME OR LAST NAME FIELDS.  This bug has existed going on over 3 years now. 
    There is no way this thread should be marked as solved, IMHO.
    The journey of a thousand miles begins with a broken fan belt and leaky tire.
    Post relates to: Treo 680 (Cingular)

  • Company Name Change/Renaming

    Hi Experts,
    Here we have one challenge.
    Scenario: - We have X & Y Company joint venture. X is acquired Y. After that Company Name changed to X Company, but all other TAN/PAN and government records name changed from X & Y Company to X Company. This is Only in papers not in Oracle R12.
    Required advice:
    1) How to change name in Oracle R12?
    2) If we rename LE & OU, historical data also will changing to New Company Name (X Company)
    3) Suppose today we are changing name till yesterday historical data should show
    X&Y Company. Today onwards Data should show in X Company only. How is it possible?
    4) Here we want to use existing data to X Company means:- Only Name change, but not data (like PO, Assets, Liabilities/Outstandings)
    Kindly advise

    Adigopula wrote:
    Hi Experts,
    Here we have one challenge.
    Scenario: - We have X & Y Company joint venture. X is acquired Y. After that Company Name changed to X Company, but all other TAN/PAN and government records name changed from X & Y Company to X Company. This is Only in papers not in Oracle R12.
    Required advice:
    1) How to change name in Oracle R12? please see this Renaming of Business Group, Legal Entity, Ledger & Inv Org
    2) If we rename LE & OU, historical data also will changing to New Company Name (X Company)
    3) Suppose today we are changing name till yesterday historical data should show
    X&Y Company. Today onwards Data should show in X Company only. How is it possible?
    4) Here we want to use existing data to X Company means:- Only Name change, but not data (like PO, Assets, Liabilities/Outstandings)
    Kindly adviseplease raise SR with oracle to confirm as they are the best to answer you
    :) AppsMasti :)
    sharing is Caring

  • Bad package name of main-class, javafx 1.3, java 7u15

    Hello,
    I'm facing the same problem as what I read in this previous thread from someone else:
    Bad package name of main-class
    I originally tried to hijack it and rip ownership of that thread away for my own issue but a kind forum moderator has split my post away to let it stand on its own, as I should have done to begin with.
    My question is ...
    ... and I don't have any solution. I am using a javaFX app (1.3) which works perfectly with jre 1.6_11 and 1.7_11, but not with 1.7_15. The exception "Bad package name of main-class" is logged in the console.
    I read on the Internet that fixes in java 1.7_13 cause problems to all self-signed applet. So I signed mine with a trusted certificate delivered by my company, and I checked what pmgrundy said 2 posts before, but it didn't solve the problem.
    My jnlp file is corresponding to the example given in the official tutorial for applet deployment (http://docs.oracle.com/javafx/1.3/tutorials/deploy-applet/#configure), so the main targeted class is "com.sun.javafx.runtime.adapter.Applet".
    Do you have information that can help me in solving this problem ?
    Thanks in advance,
    Sébastien.

    Some additional information to the problem, if it can help :
    With JRE 6u43 : the applet is initialized and working properly. So the problem might not be due to the security fixes, as this version is including them.
    With JRE 7u15 & 7u17 : I tried to run the applet with the runtime v1.3.0_b412, then v1.3.1_b101a, but the problem is the same.
    When tracing is enabled through the Java Control Panel, the following lines are displayed at the end of the log :
    basic: passing security checks; secureArgs:true, allSigned:false
    basic: continuing launch in this VM
    preloader: Delivering: DownloadEvent[type=verify,loaded=1, total=1, percent=100]
    preloader: Start progressCheck thread
    basic: exception: Bad package name of main-class.
    ExitException[ 3]java.lang.SecurityException: Bad package name of main-class
         at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    preloader: Delivering: ErrorEvent[url=null label=Bad package name of main-class cause=Bad package name of main-class
    preloader: Stop progressCheck thread
    ui: Show default error panel
    security: Reset deny session certificate storeI think that the lines preceding those lines are about the validation of the different jars included, using the certificates. When the certificates are not installed on the user workstation, 2 dialog boxes are displayed during the applet validation, so as to ask the users if the applet should be run (and the JavaFX runtime). The certificates are well displayed as trusted. Then, after acceptance, the error occurs.
    Edited by: sebadavi on Mar 13, 2013 5:07 AM

  • How to find BAdi implemention name

    Hi Experts,
    In SE18, I am able to find out the BAdi definition name and interfaces and in SE19 I am able to see implementation name and BAdi definition name. The implementation name is customized one. It starts from 'Z*'. But having only BAdi def. name and interface name how can I find out customized implementations. Is there any table which maintains it?
    Thanks and regards,
    Venkat.

    Dear Venkat
    in  se18
    give the def name and then menu -> enhancement implementation->display
    u can see all implementations for this badi
    hope u r clear
    regards
    Sajid

  • Company Name not getting Displayed in the incoming screen

    I changed my blackberry from earlier 0S 7 to Z10 two days ago, but to my surprise it is not displaying company name in the incoming call screen. I have more than 20 people whose name is repeating and not able to identify, how come this feature is not available in the new model, what is solution ?

    @ is a default value as per ALV internal process. This is used in icons .
    I think this is causing the confusion.
    Check in the fieldcat if there is any adjsutment to be made to handle this.
    Br,
    Vijay

  • How do I change the way that my company name appears when googled?

    How do I change the way that my company name appears when it is googled?  Currently it only shows up as part of my company name followed by the website listed below and then the start of a description.  I would like to make it so my entire company name show up as the title when searched.  I used iWeb to create the site.  Please Help!  Thanks:)

    Put the whole company name in the title tag...
    http://www.iwebformusicians.com/Search-Engine-Optimization/Tags.html

  • Is there a way of having the email name show and not the Company name.

    I have a few address listing for Companies that have 7 or 8 names.
    I have them listed with the custom names for each person separately.
    I really do not need separate e-mail listings for each person.
    Is there a way that would list the individuals name on the email header and not the Company name.
    IOW's : ABC company and a listing for John Smith shows ABC when I mail it.
    I gather also that it would show ABC when John Smith received it.
    I am trying to give it a more personal touch without creating dozens of additional address's.
    Thanks,
    Greg
    null

    Thanks for replying Dan, you're right, I should provide more context.
    I want to be able to duplicate a shape inside a layer a number of times, and with every duplicated shape, I want that shape to evaluate what number it is (based on a name I give it so I could name it '1' and then use something like 'eval(propertyname)' to return a number or perhaps use an index to count the number of shapes in the layer) and multiply that number by some set of rules that I can define and control through a list of expression controls on another layer. This would allow me to duplicate a square 10 times and have each square's position do something like
    x = thisShapeNumber + shapeLength * TranslateExpressionControl;
    y = 0;
    [x,y]
    which would form a long line of squares for instance. Does that make sense?
    thanks in advance!

  • How can I sync only the company name with a sony cellphone

    I've a problem to sync my adressbook with a sony cellphone.
    In the adressbook there is sometimes only the company name and the phonenumber.
    when I'm syncing with the sony cellphone the name looks like that " -, apple"
    that's not what I want. Is there a way to repair this bug, or do I have to copy the company name into the surname field?

    It's not a bug - it's a limitation of Sony Ericsson phones.
    When programming the operating system of the phones, Sony Ericsson obviously took the decision to store contacts first and last names in one field not two.
    So, unless you can persuade Sony Ericsson to change this operating system feature, and release upgraded firmware for all affected phones, you'll have to live with it.

Maybe you are looking for

  • Passing Nested internal table to GUI_DOWNLOAD

    Hi All I have got a nested internal table, I want this whole report in excel format, I tried using GUI_DOWNLOAD , it gives error. Does any body have any idea how can I solve this. regards AJ

  • Label is not printing in 5 th page and item data appering before the morgin

    Hi friends, In script. All pages comming prperly.. but  last page the labels are not prining and item data is printing upside the morgin only.. what is the problem?.. All pages its comming properly...except last page.. if soem body knows .. please he

  • Why can't I download Tumblr on my iPod 4 anymore??

    I can't download the app anymore! I had to delete the app from my ipod touch gen. 4 in order to make space for an update, so now I'm trying to get it back. But when I attempt to download it, it says that I need iOS 7 or something like that in order t

  • FCPeffects Leveler

    I get a message Video frames were dropped during playback. I never used to get this and if I turn off the plugin it plays just fine. Any ideas? Thanks ahead of time... Mike

  • Jim Rome podcast direct to iphone?

    I subscribe to the Jim Rome show (paid) podcast.  Is there a way to download the show directly to my iphone, or must I download on my mac, then sync with my iphone?  I've tried to search podcasts on itunes (on my iphone), but can't find the Jim Rome