Update accounts receivable of business partner

I want to update the accounts receivable of business partner through codng.For this I have used the following code-
Dim objBP As SAPbobsCOM.BusinessPartners
Dim lngStatus As Long
     Dim boolFlag As Boolean
boolFlag = objBP.GetByKey("CA009")
If boolFlag = True Then
objBP.AccountRecivablePayables.AccountType = SAPbobsCOM.BoBpAccountTypes.bpat_Receivable
                objBP.AccountRecivablePayables.AccountCode = "140000"
                objBP.AccountRecivablePayables.SetCurrentLine(0)
                lngStatus = objBP.Update
End If
But the business partner is not getting updated.What is the error in the above code ?

Alexander,
      I am updating the account.For this I am using following code,
objBP.AccountRecivablePayables.SetCurrentLine(0)
objBP.AccountRecivablePayables.AccountCode = "_SYS00000000254"
lngStatus = objBP.Update()
Now I am not getting any errors,but the business partners are not getting updated.

Similar Messages

  • Update Accounts Receivable in Business Partner

    Hi.
    I'm trying update the the following field in the business partner form:
    Business Partner - Business Partner Master Data - tab Accounting - field "Accounts Receivable"
    How can i update this field?
    I  also try this:
    BP.AccountRecivablePayables.AccountType = SAPbobsCOM.BoBpAccountTypes.bpat_Receivable
    BP.AccountRecivablePayables.AccountCode = 21120000
    but the system update the field "Control Accounts" and not the field "Accounts Receivable"

    I found.... its the field DebitorAccount

  • Accounts receivable on Business Area level

    Hi,
    Is there a way to report accounts receivable on Business Area level?
    I want to use the InfoCube 0FIAR_C02 for reporting transactional A/R data - the customer has 1 company code and below this 7 business areas on which receivable reporting should be realized.
    Thanks in advance,
    Alex

    Hi Alexander,
    Its very easy to do on the line item cube/DSO. You need to customize the datasource 0FI_AR_4. Its a very simple activity because the field GSBER (Business Area) is already there AR line item tables so you dont need to write a routine to puplulate this field.
    Just go to RSA6, double click on 0FI_AR_4 and then open the extraction strucutre by double clicking on it. Click on 'Append Structure'. Add the field GSBER there and save and activate the structure. Go back to RSA6 and unhide this field if its hidden. Check this DS in RSA3 if it's populating the correct values.
    Now on the BI side just add this characteristic (0BUS_AREA) in your infoprovider and the remaining data flow (Transformations/update rules/transfer rules etc).
    Hope this will help. Thanks.
    Sumit

  • SD Account determination for business partner items

    Hi All!
    I need to understand how does the account determination works for business partner items. I know that al trx VKOA is where I can customize the account that is gonna be used at the GL items, but I can't find where is the customizing of the accounts for the business partner items. Could you help me?
    Thanks in advance!
    Fred

    Hi
    When you create a billing document (trx VF01) in SD, you can then go to trx FPE3 and the this document from a finantial point of view.
    In trx FPE3 you will see the ducument splited in two parts, the business partner items and the GL items. If you doble click over any line of the GL items (excluding taxes) you will see more information about this line and one of it is the GL account. This account is set via trx VKOA.
    Going back, if you doble click over any line of the Business partner items, you will see more information about this line and one of it is the GL account. But in this case I don't know where it should be customized.
    I hope I was clear enoght.
    Regards,
    Fred

  • Change account receivable account in a business partner

    hello
    We have a series of customers with transactions posted to the wrong account. Do you know if there is a way to change the account receivables account ? We are ready to cancel all documents and reenter them but when we do this, it still blocks the modifications.
    Any help would be welcome.
    Thanks
    Fabrice

    Hi Fabrice,
    As you are aware, the A/R account cannot be changed once there is a transaction to the BP.
    One possible workaround in this scenario is -
    1. Cancel all documents relating to BP
    2. Put the BP on hold for an indefinite period.
    3. Duplicate the BP with a different code and change the A/R account.
    4. Use this new BP to key-in transactions.
    Hope this helps.
    Regards,
    Hamsa

  • Account group and Business partner link

    Hi all,
    Is there any relation maintained for Account group (From R/3)  and Business Partner Role in GTS system?

    Hi Balu,
    In GTS, system does not consider the Account group while creating a BP role for a BP whereas it only considers the classification of Vendors or Customers. If a Customer master is created in R/3 irrespective of Account Group, BP role SLLCPC will be assigned whereas if a Vendor is created in R/3, then BP role SLLCPS will be assigned.
    Hope this answers the query.
    Regards,
    Shiva Shankar

  • Changing GL Control Account of existing Business Partner

    Hi, We have created and processed against some business partners. However the "Accounts Receivable", under the "Accounting" tab, the wrong GL account was selected. Now it is greyed out because there is postings. Is there anyway to reallocate the transactions to the correct account as well a fixing the "Accounts Receivable" account?

    I don't think so it is possible to change the control account for a BP after transction are done.
    Alternatively put the BP on hold and create a new BP with proper control accout.

  • Table for link between conttract account no and business partner

    Hi,
    can anyone let me know abt any table that defines relation between contract account and business partner.
    so dat for a contract account no i can get 1 business partner .
    Thnx,

    Hi
    Use the table
    <b>VVKKFOPT and VVKKFOP</b>
    both business partner and Contract account fields are there.
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Gl Account Determination For Business Partner

    Hello Experts .
    I have 2 control accounts namely .Sundry Debtors [ Local ] & Sundry Debtors [ Foreign Buyers ].
    In Gl Acount Determination in Sales tab for " Domestic accounts receivable  " i have given account as " Sundry Debtors [ Local ] "
    and in Foreign Accounts receivable i have given as " Sundry Debtors [ Foreign Buyers ] ".
    Now when i add new customers by default it is taking  * Sundry Debtors [ Local ] * in accounts receivable/payable.
    Where as it should take * Sundry Debtors [ Foreign Buyers ] * .
    But when i put the * Sundry Debtors [ Foreign Buyers  ] * in * Domestic Accounts Receivable * then it is taking properly .
    But how is this happening .
    is there any thing i have to set to make * Sundry Debtors [ Local ] * come automatically.Because my clients customers are of foreign that is other than INDIA.
    Please help experts.
    Regards
    krishna Vamsi*

    Hello Rahul Sir
    Thanks for prompt reply .
    Yes as u said for foreign customers we should input foreign control account , where as for local we input domestic control account.
    But how does the SAP comes to know that the customer which we are going to add is either of foreign origin or local origin .
    For E.g:
    When we try to add new customer , automatically in accounting TAB the control account is selected automatically .
    and by default domestic control accoount is getting selected.
    What i want to know is how sap recogonises that the customer which we are going to add is either of foreign origin or local origin.
    or it is the default behaviour of SAP.
    as said above that domestic control account is selected automatically . where as i need foreign control account.
    whether i should select it manually when trying to add new customer or what .
    because we give local CA in domestic control account & foreign in foreign control account.
    What is the logic behind this that while adding new customer sap takes local control account automatically.
    Please experts i am confused with this , can any body help me out.
    Regards
    Krishna Vamsi

  • DTW problem when updating business partner

    Hi Experts,
    I want to update business partner master data via DTW.
    I only want to update the Remarks.
    In my import file only the fields RecordKey, CardCode and FreeText are filled.
    Example:
    RecordKey: 1
    CardCode: C20000
    FreeText: My Remarks
    The import is successful and the remarks were filled but the DTW has also updated other fields in the business partner master data.
    Before update via DTW the business partner has no payment methods included on the payment system tab but after update via DTW the payment method is included and is defined as Standard.
    Any idea?
    Thanks for help.
    Jacqueline

    Hi,
    yes, the existing payment methods were defined manually before update.
    But the payment method was not included for that business partner.
    Here are some hardcopys before update and after update.
    [BP Master Data Before Update DTW|http://www.sap-potsdam.de/BoneUpload/BP_before_Update.JPG]
    [BP Master Data After Update DTW|http://www.sap-potsdam.de/BoneUpload/BP_after_Update.JPG]
    Jacqueline

  • No G/L account selected for Asset Account in Business Partner Master Data

    Hi All,
    When i tried to raise A/P invoice for an Asset Item the system is raised the following error"  why?
    " No G/L account is selected for Asset Account in Business Partner master data "
    thanks
    SV Reddy

    hi Giri,
    When you choose from list against the Asset Account in the business partner master data it is only displaying the Trade Creditors Account domestic and foreign acounts only.  which one to choose in this case?  i presume trade creditors account is the one to choose.  but what is the logic for asset items to choose this Trade Creditors Account?   Or  else can we create a separate control account for purchasing the Asset items?  what is the logic again here choosing a separate account through option create new ?
    thanks
    SV Reddy

  • Business partner changing in contract account

    Hi, all.
    Inform, please, somebody by experience, whether it is possible business partner change in contract account?
    At creation of the contract account the incorrect business partner was wrongly specified. In result one business partner had two contract accounts (one not him), and other business partner - any. This error was detected not immediately and exists several already billed and invoiced periods for today.
    Whether it is possible somehow assign to the contract account of other (correct) business partner (instead of existing) or transfer the contract account (without change its number) with all contracts from one business partner to another?
    Thank in advance.

    You have a few options:  execute a customer change or use the account holder functionality, or reverse all transactions and redo with correct partner.
    The account holder would enable you to keep the account number, but it only allows you to add a new business partner as related.  You cannot remove the current business partner relation, and thus might not be appropriate.
    The customer change process moves the contracts and account from one bp to another.  This will result in a new account number.
    Lastly, you can reverse the bills and moves, and then re-execute them with the correct bp. 
    regards,
    bill.

  • Change in Business Partner Master Data

    Dear all,
    i got a massage if i want to update the control Accounts for a *Business Partner.
    *"Another user-modified table 'Business Partner (OCRD) (ODBC- 2039) Message 131 - 183"
    The Business Partner has no transactions till now!!
    Thank you all and Best regards

    Hello Serkan Er 
    1.Does the error only happen to one BP?
    2.please read 1041482, this should apply to your case. if it does't help, please try the following:
    3.can the query return any results?
    declare @table                   nvarchar(16)
    declare @field                          nvarchar(256)
    select @table                    = 'OITM' -- parameter
    select @table = ltrim(rtrim(@table))
    create table problem_fields (field nvarchar(256))
    declare fldCursor1 cursor scroll optimistic for
    select [name] from syscolumns
    where [id] in (select [id] from sysobjects where [name]=@table) and [xtype] in (select [xtype] from systypes where [name] in ('char', 'varchar'))
    declare fldCursor2 cursor scroll optimistic for
    select [name] from syscolumns
    where [id] in (select [id] from sysobjects where [name]=@table) and [xtype] in (select [xtype] from systypes where [name] in ('nchar', 'nvarchar'))
    declare fldCursor3 cursor scroll optimistic for
    select [name] from syscolumns
    where [id] in (select [id] from sysobjects where [name]=@table) and [xtype] in (select [xtype] from systypes where [name] in ('datetime'))
    declare fldCursor4 cursor scroll optimistic for
    select [name] from syscolumns
    where [id] in (select [id] from sysobjects where [name]=@table) and [xtype] in (select [xtype] from systypes where [name] in ('nchar', 'nvarchar'))
    open fldCursor1
    fetch next from fldCursor1 into @field
    while (@@fetch_status = 0)
    begin
    exec(
    insert into problem_fields select ''' + @field + ''' where exists (select 1 from ' + @table + ' where len(' + @field + ')>0 and left(' + @field + ', 1) in ('' '', ''\t'', ''\n'', ''\r''))
    fetch next from fldCursor1 into @field
    end
    close fldCursor1
    deallocate fldCursor1
    open fldCursor2
    fetch next from fldCursor2 into @field
    while (@@fetch_status = 0)
    begin
    exec(
    insert into problem_fields select ''' + @field + ''' where exists (select 1 from ' + @table + ' where len(' + @field + ')>0 and left(' + @field + ', 1) in (nchar(0x0020), nchar(0x0009), nchar(0x000A), nchar(0x000D), nchar(0x00A0)))
    fetch next from fldCursor2 into @field
    end
    close fldCursor2
    deallocate fldCursor2
    open fldCursor3
    fetch next from fldCursor3 into @field
    while (@@fetch_status = 0)
    begin
    exec(
    insert into problem_fields select ''' + @field + ''' where exists (select 1 from ' + @table + ' where datediff(millisecond, cast(ltrim(rtrim(str(datepart(year, ' + @field + ')))) + ''-'' + ltrim(rtrim(str(datepart(month, ' + @field + ')))) + ''-'' + ltrim(rtrim(str(datepart(day, ' + @field + ')))) as datetime),' + @field + ')<>0)
    fetch next from fldCursor3 into @field
    end
    close fldCursor3
    deallocate fldCursor3
    open fldCursor4
    fetch next from fldCursor4 into @field
    while (@@fetch_status = 0)
    begin
    exec(
    insert into problem_fields select ''' + @field + ''' where exists (select 1 from ' + @table + ' where len(' + @field + ')>0 and right(' + @field + ', 1) in (nchar(0x0020), nchar(0x0009), nchar(0x000A), nchar(0x000D), nchar(0x00A0)))
    fetch next from fldCursor4 into @field
    end
    close fldCursor4
    deallocate fldCursor4
    select * from problem_fields
    drop table problem_fields
    Wilma Wang

  • Difference between Business Partner (General) and Contract Partner

    Hi,
    How is a business partner different from a contract partner with respect to IS-U?
    Thanks
    C

    General Business Partner:
          The general business partner is only stored for information purpose.
    Contract Partner
         A contract partner is linked to the company through contract accounts and contracts. This makes  
         you to possible to allocate contract account to a business partner and bill for services if the 
         business partner was created with the role contract partner.
    Please Allot points if it helps
    Please let me know if you need any more clarifications on this.
    Regards,
    Shiva Kumar

  • Remove of contacts, addresses, ... of a business partner with B1if

    I wrote a scenario to synchronize business partners between 2 companies.
    When i try to remove contacts, addresses, payment installments, bank accounts of a business partner,
    these records are not removed in the target company
    So, no removement of contacts, addresses, ...
    Has somebody already made a scenario which is able to remove contacts, addresses, ... ?
    Thx,
    Mario

    Hi Mario,
    Currently there is no possibility to remove a line from a collection inside an object through XML with the DI API. From B1 8.82 on you will be able to remove a line inside of a collection for Business Partners and Documents by using a new XML method called UpdateFromXML available on that objects. Please have a look to the SDK Help File for B1 8.82 for more information about it.
    Inside B1if there is a workaround that has been implemented but this workaround only works when you create an extra atom containing a B1 object call. When you defined the B1 object call you can specify the usage of the method "updateWithSubDeletion" for BPs and "updateDocWithSubDeletion" for Documents in order to remove a line in a collection. The workaround for documents remove all lines and add them again. For BPs it seems there are some limitations. Please have a look at it and let me know any feedback, it is a workaround while the new SDK method wasn't available.
    Regarding the new SDK feature released in 8.82 there is no exact information regarding the B1if patch level that will include that feature to be used automatically in a B1 outbound call. I'll let you know as soon as I have more information around it.
    Hope it helps,
    Trinidad.

Maybe you are looking for

  • Why won't the app store download apps to my i phone

    I just got an IPhone 4S and the app store won't let me download any apps. It keeps giving me an "Sorry your request can not be processed at this time." I keep signing in to my Apple ID account and still won't work. Need help!

  • How to configure VPN with Cisco ASA 5505 behind Actiontec MI424WR

    I'm trying to test my Cisco VPN client from my workplace to my home where I have a Cisco ASA 5505 (VPN server) behind the Actiontec MI424WR.  I'm able to Ping the Actiontec external IP.  I also have Port Forwarding for IKE and IPSec configured on the

  • Trackpad erratic since upgrade

    Hello, Soon after I upgraded my mid-2010 macbook pro to Mavericks, the trakcpad started acting erratically. The cursor follows my commands for some time, but after the computer receives some load, it starts to drift towards either right or left of th

  • Looking for toolbar preset files... (CS3)

    Since there's apparently no way to have CS3 work properly under Leopard - where are the files for the tool bar positions and key short cuts I need to backup and replace after one of the very frequent crashes of Ai, Id and Ps?

  • Difficulty sending out email from OSX Mail

    iMac 700 MHz PowerPC G4 with OSX 10.4.11 I have a problematic email message that won't send and it hangs up the Mail program.  I cannot delete the email or close it's window and the usual server won't send it out. The server dialog box keeps reopenin