DI API BP Add

Experts,
If i want to add a customer thru DI API, it does not add for WT Tax, how to make that WT tax not applicable and add a customer

Hi Arun
I need some help on adding a BP from VB.net
I've been reading the SDK and found the same code lines that you suggested here:
'Create the BusinessPartners object
        Dim vBP As SAPbobsCOM.BusinessPartners
        vBP = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners) 'Calls BusinessPartners object
         'Set values of the BusinessPartners object's mandatory and optional properties
        vBP.CardCode = "HU1003" 'Mandatory property in the BusinessPartners object
        vBP.CardName = "ABCD"
        vBP.CardType = SAPbobsCOM.BoCardTypes.cCustomer
But, I have defined a Series for the numbering of the BP when adding a new one on B1. The series is number 46. Therefore, I use this series with the line code:
vBP.Series = 46
That means, I don't need to define the CardCode. But I have some trouble, because everytime I reach that line, my app crash and says that it can't read or write on protected memory ¿¿??
This line only works IF and ONLY IF you unckeck the field "LOCK" on the Series Number definition for your BP. Doing that, the code works fine and, of course, I  need to add the CardCode manually. The problem is that my client told us not to uncked that field.
It's not an issue of permissions because my user have access to all.
Any  thoughts?
Regards!!

Similar Messages

  • OIM 11g R2 - API to add organization to an Application Instance

    Hi,
    In OIM 11g R2,we have a requirement to create application instance using API (from a csv file) and assign some default organizations to these application instance.We could able to create Application Instance but couldnt find any API to add organizations.Is it possible to do thia?.Thanks

    One of the ways to do it would be to decrypt the current password and then compare with the new password. Where are you doing this check? Depending upon where you want to do this, you can use different ways to decrypt the current password of the user.
    There are various posts in the forum about decryting the password.
    On a side note, if your policy does not allow same password, then new password validation against the policy should suffice your requirement.
    -Bikash

  • Is there any API to add and remove certs from acrobat trusted identities?

    Is there any API to add and remove certs from acrobat trusted identities? if this is not possible any work around for this. Please help me

    No, there is not – that would be a security concern.

  • API to add a user to a group

    By calling Engine.NewUser we can create a new user:
    Set user = Eninge.NewUser(userProfile)
    But the new user is not added as a member of any user groups. What are the APIs to add a user to a user group?
    Thanks for the help!
    Message Edited by Support on 03-07-2007 12:29 PM

    Thanks, Jon! I tried it out, and it worked. I have further questions about Teststand user management:
    1) I create a new user in sequence editor, say op. User op has no privileges when created. But if I log on as op, I still can acess Configur menu which I think I shouldn't. Is this a bug?
    2) Then I log on as administrator and add user op to two groups: Administrator and Technician, and then log on as op. Now op looks like administrator. What's the rule of user privileges overriding if a user is in a group or in more than one group?
    Message Edited by Support on 03-07-2007 02:50 PM

  • API to add/delete summary templates.

    Kindly provide the name of the API to add/delete summary templates.
    Regards

    Hi,
    >>However, as configured, zone security levels are locked down, but so is the ability to add sites.
    It’s true that if we enable the setting
    Security Zones: Do not allow users to change policies, users will not be able to add sites for security zones.
    A workaround is that instead of preventing users from changing Internet Explorer’s security zones settings, we can lock down security levels of security zones by configuring
    their corresponding zone templates.
    For Trusted Sites Zone, the setting should be:
    Computer Configuration\Administrative Templates\Windows Components\Internet
    Explorer\Internet Control Panel\Security Page\Trusted Sites Zone Template 
    The  template policy setting allows us to configure policy settings in this zone consistent with security level, for example, Low, Medium Low, Medium, or High.
    Note, the policy settings don’t prevent users from moving slide bar of security level in the trusted site zone in IE, but if we enable the template policy
    setting and select a security level, all values for individual settings in the zone will be overwritten by the standard template defaults.
    Another workaround is that we can still enable the setting
    Security Zones: Do not allow users to change policies, but we can predefine the trusted site lists of trusted site zone for users via group policy. Note, in this way, users can’t edit the trusted site list.
    Regarding this point, the following article can be referred to for more information.
    Managing Internet Explorer Trusted Sites with Group Policy
    http://deployhappiness.com/managing-internet-explorer-trusted-sites-with-group-policy/
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,
    Frank Shen

  • JAVA API to add header and footer in MS Word

    Hi,
    please help me out, I am hanging with this concept.
    The problem is I need to add a headers in ms word file using java. I come to know that the API is support for this task is 1.apache POI 2.jacob
    I dont know which class file I need to use to do this, If anyone knows about this please let me know or send the URL's
    Thankyou,
    Baskaran.k

    ya i have used POI but i don know the class file in POI. i just now trying jacob., can u send the API and Class file to add header and footers in ms word.

  • API to add lines to an existing Standard Purchase Order on 11.5.8 version

    Hello All,
    Is there any API in Oracle 11.5.8 Version using which we can add a line to an existing open Standard Purchase Order.
    In 11.5.10 we can do that using Purchasind document import program, how about 11.5.8, i am not able to find one.
    Pls let me know the details, it is bit critical.
    Regards,
    Adarsh

    Yes see http://oracle-ebspro.blogspot.com/2011/12/how-to-programmatically-close-po-using.html
    Sandeep Gandhi

  • Why can not find "NationalInstruments.Teststand.Interop.API" when add it from C# referenes

    Hello experts,
    I would like to learn to how to use C# IN teststand,and find an instructio about how build dll in C#.
    It said add  "NationalInstruments.Teststand.Interop.API" reference in C# references.
    However,it can not be found as attached.
    Who can help about this,appreciated for your help.
    Attachments:
    0140710152735.png ‏127 KB
    0140710152735.png ‏127 KB

    Hey Albert,
    The corresponding assembly is in your first screenshot, listed as "TestStand 2013 API Primary Interop Assembly". 
    Hope it helps, and let us know if you have any more questions about it!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • API to add Image for an Item in PIM Module

    Hi,
    I'm working on PIM (Product Information Manager) Module.
    Is their any API to upload attachments & Images while creating Items in PIM Module??
    Thanks in advance.
    Thanks,
    Santhosh

    i have copied the jinitiator zip file and copied those two files in to java and edited the config file like this
    # Sample configuration for deploying WebUtil. Note that WebUtil is shipped with
    # DS but not AS and is also available for download from OTN.
    [webutil]
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar
    archive=frmall.jar
    archive_jini=jcalendar.jar
    archive_jini=JCalendarJinit.jar
    lookAndFeel=oracle
    i have changed like this,but it still not working

  • API to add member Assets to a Group Asset

    Hello Everyone,
    We've a requirement to attach all the assets that we receive in a excel to a group that we have already created. Since the count of assets is more, is there any API which could possibly do this. Any help on this would highly appreciated.
    Thanks
    El

    Hi EI,
    See if the below note helps:
    - Suggestions for Converting into the Group Asset Structure in 11i and/or R12 [ID 456064.1]
    Regards,

  • Unable to use di api to add a journal entry

    Hi All,
    I had trouble with adding a journal entry
    the following are my codes:
            oJournal = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
            oJournal.DueDate = Now
            oJournal.ReferenceDate = Now
            oJournal.TaxDate = Now
            ' first line
            oJournal.Lines.AccountCode = "11110101"
            oJournal.Lines.ContraAccount = "C00001"
            oJournal.Lines.Credit = 1000
            oJournal.Lines.Debit = 0
            oJournal.Lines.ShortName = "11110101"
            ' second line
            oJournal.Lines.Add()
            oJournal.Lines.AccountCode = "C00001"
            oJournal.Lines.ContraAccount = "11110101"
            oJournal.Lines.Credit = 0
            oJournal.Lines.Debit = 1000
            oJournal.Lines.ShortName = "C00001"
            ' add journal entry
            lRetCode = oJournal.Add()
    The error message is " [JDT1.Account][line: 2] , 'Tax account has not been defined for the selected tax code'"
    Cheers

    I've tried the following codes but I got the same error
            Dim oJournal As SAPbobsCOM.JournalEntries
            oJournal = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
            oJournal.DueDate = Now
            oJournal.ReferenceDate = Now
            oJournal.TaxDate = Now
            oJournal.Series = 1023
            ' first line
            oJournal.Lines.AccountCode = "11110101"
            oJournal.Lines.Credit = 1000
            oJournal.Lines.Debit = 0
            oJournal.Lines.DueDate = Now
            oJournal.Lines.TaxDate = Now
            oJournal.Lines.ReferenceDate1 = Now
            ' second line
            oJournal.Lines.Add()
            oJournal.Lines.AccountCode = "C00001"
            oJournal.Lines.Credit = 0
            oJournal.Lines.Debit = 1000
            oJournal.Lines.DueDate = Now
            oJournal.Lines.TaxDate = Now
            oJournal.Lines.ReferenceDate1 = Now
            ' add journal entry
            lRetCode = oJournal.Add()

  • Add external users to WAAD Tenant with Graph API

    Hello,
    is there a way to add an external user to my tenant in WAAD using Graph Api. In Azure Portal when I'm adding new user there are several options (Hotmail acc, User from existing AD) and those are the actions I'm looking for in Graph Api. Is there any way
    to do that programmatically?
    Thanks,
    Andrija

    Hi,
    I am not sure you could use Graph Api to add external user.
    The API only provides operations on objects inside the AD of your tenant.
    https://msdn.microsoft.com/en-US/library/azure/hh974476.aspx
    Regards.
    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 Support, contact [email protected]

  • Restful API add role not working - receve 202 accepted but not VM was created

    Hi.
    I am using the Windows azure restful api to add a new role to my vm deployment.
    I have already added a cloud service and a deployment, I can list the deployments fine with the  https://msdn.microsoft.com/en-us/library/azure/ee460804.aspx and is all OK , but when I want to add a new VM to this deployment and I call the api using https://msdn.microsoft.com/en-us/library/azure/jj157186.aspx
    I get a 202 Accepted, but nothing happens, no VM was created , I dont know what I am missing .
    This is the XML that I am sending together with the add role api
    <PersistentVMRole xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                      <RoleName>vm-azure-lti3</RoleName>
                      <RoleType>PersistentVMRole</RoleType>                  
                          <ConfigurationSets>
                            <ConfigurationSet i:type="LinuxProvisioningConfigurationSet">
                              <ConfigurationSetType>LinuxProvisioningConfiguration</ConfigurationSetType>
                              <HostName>vm-linux-3</HostName>
                              <UserName>xxx</UserName>
                              <UserPassword>xxx</UserPassword>                                    
                            </ConfigurationSet>
                          </ConfigurationSets>   
                          <OSVirtualHardDisk>
                            <MediaLink>https://xxxx.blob.core.windows.net/vhds/communityimages2.vhd</MediaLink>
                            <SourceImageName>xxxx</SourceImageName>
                            <OS>Linux</OS>
                          </OSVirtualHardDisk>                  
                    </PersistentVMRole>
    Hope someone can give me some litght into this as I am kind of lost now.
    thanks

    Hi Victor,
    For called the REST API, I suggest you can use
    Fiddler to catch and monitor your error message. If you got 404 error, it is possible that your authentication has something wrong. I suggest you can try to use fiddler to troubleshooting.
    Any results, please feel free to let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Using Java, How can I Update, Add, Delete nodes in XML Files.

    Hi,
    I want to store the student record (like Name, Age, school name, total mark etc.,) as nodes in the XMLfile. Also I should able to Update, Add, Delete any nodes (student record) in the XML file. How can I achieve this...using Java
    I am able to read the content of the xml file using xml-parser. But my problem is
    updating the xml file.
    pls suggest some solutions or links with " example source code"
    Thanks :-)

    There are 2 kinds of XML parsers : SAX and DOM. DOM seems to suit your need. You can use JAXP APIs to add, delete or change nodes or attributes.
    http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/TOC.html provides contents that would satisfy most of the needs.
    To save a DOM modified XML file use java IO APIs to write to the same file from which it was read using a Document object ( doc.getNodeValue() ).

  • Error while installing add on

    Hi Experts,
    error while installing add on
    in add on installation wizard
    setaddonfolder(c:\.....)returned 1
    even i tried as run as administrator
    also tried creating a new folder but same error is showing
    Please help

    Step 1:
    Ensure that the Company Databases are upgraded to the same patch as
    the SBO-COMMON.
    Please see the SAP Note 979083.Also
    check that the DB Version which is displayed in the 'Choose From'
    window is the same for all databases. Please select the Refresh button
    to ensure the information is up to date.
    Step 2:
    Ensure that the DI API is updated to the same patch as the databases.
    Please do follow the steps described below to make sure the DI Version
    is updated on the affected machine:
    1. Disconnect from the DI (close all AddOns)
    2. Deinstall the DI API via Add and Remove Programs
    3. Open the temporary folder via
    > Start > Run > enter %temp%
    4. Locate the folder SM_OBS_DLL and delete this folder.
    5. Install the DI API of the same Patch than the Software version of
    the system. The Setup.exe is located in the folder:
    ...\Packages\DI API
    6. Connect to the DI again.
    See SAP Note 870207.
    Step 3:
    Recreate the SBO-COMMON.
    0. Ensure that no user or addon is connected to any Business One
    database.
    1. Create a backup of the current SBO-COMMON.
    2. Delete the SBO-COMMON from the Server.
    3. Create a new SBO-COMMON by running the Upgrade.exe for the
    Business One Installation Files under
    ...\Packages\Upgrader Common
    Step 4:
    Reinstall the ServerTools. The installation files can be found under
    ...\Packages\Server Tools
    Step 5:
    Test if there are any open connections which might prevent the new connection.
    Please test to restart the server and connect to the database where you were getting the error first.
    I think this might resolve ur issue.

Maybe you are looking for

  • After Upgrade OBI 10g to 11g:Odbc driver returned an error - SQLExecDirectW

    Hi all, for an OBI upgrade from 10g to 11g I used a RPD and Webcatalog based on a remote machine other than my local machine. Firstable I am making the tests on a Linux Virtual machine, which uses the Sample Lite version from Oracle. I made the follo

  • My hard drive is nearly full but I cant find whats  taking up all my hard drive space

    I have an intel macbook pro with 500 internal HD. I have 160gb of music in my itues folder with another 7gb on a previous library, I am unable to find the size info of my applications folder but I susspect it to be around 50gb, however I only have 59

  • Change dimensions of 'high resolution photos' for digital printing

    Hi, We recently placed a huge order, received our photos, and all of them had been blown up larger than what appeared in the album, heads were cut off, arms cut off, pictures were not centered. This was a problem for 4"by6" size, 5"by7", and 8"by10".

  • CC App not working

    I have a Mac running OSX 10.10.3 with a 5K monitor. Until recently the CC app has been running normally but since the Lightroom upgrade has been announced the CC app is not working. When I open my Creative Cloud App it just sits there with a little s

  • CR XI release 2 RDC license problems

    We are having problems deploying our VB6 app with the Embeddable Report Designer. We were, until recently, using CR XI release 1 with no problems. However a problem with sub reports caused us to upgrade to CR XI Release 2. We then found another probl