Help Me  : Import Chart of account

Hi all .
I prepare file chart of account , type .txt  , I use data transfer workbench to import , so I received a messenge : "Legal parent number Application -defined or object-defined error65171" , please help me .
Thanks alot .

You need 5 columns in an Excel spreadsheet as follows:
     1. Code
     2. Type (0, 1, 2) for Other, revenues or expenditure
     3. Currency
     4. Account Name
     5. Parent (level above - title)
The first row with data is row 2, row 1 is for headings. In VB Macro turn on the DI API by selecting Tools > References > SAP Business One DI API Version 2007 (or 2005).
In VB Macro the code for non segmented COA for 2007 is as follows:
Sub Macro1()
Dim vCmp As SAPbobsCOM.Company
Dim lRetCode, lErrCode As Long
Dim sErrMsg As String
Set vCmp = New SAPbobsCOM.Company
vCmp.Server = "XXXX"
vCmp.CompanyDB = "XXXX"
vCmp.UserName = "manager"
vCmp.Password = "manager"
vCmp.DbUserName = "sa"
vCmp.DbPassword = "xxxx"
vCmp.DbServerType = dst_MSSQL2005 '(Change if not SQL 2005)
vCmp.Language = ln_English
row_no1 = 2
vCmp.UseTrusted = False
lRetCode = vCmp.Connect
If lRetCode <> 0 Then
            vCmp.GetLastError lErrCode, sErrMsg
End If
Dim vCOA As SAPbobsCOM.ChartOfAccounts
Set vCOA = vCmp.GetBusinessObject(oChartOfAccounts)
Get_COA:
coa_code = Range("A" & row_no1 & "").Value
If coa_code = "" Then GoTo End_sub
coa_type = Range("B" & row_no1 & "").Value
coa_curr = Range("C" & row_no1 & "").Value
coa_name = Range("D" & row_no1 & "").Value
coa_fath = Range("E" & row_no1 & "").Value
GoSub Write_parent
GoTo Get_COA
Write_parent:
vCOA.AccountType = coa_type
vCOA.AcctCurrency = coa_curr
vCOA.ActiveAccount = tNO '(Change to tYES for Active accounts or leave as is for titles)
'vCOA.AllowChangeVatGroup = tYES
vCOA.Details = coa_name
vCOA.Name = coa_name
vCOA.Code = coa_code
vCOA.FatherAccountKey = coa_fath
vCOA.Update
row_no1 = row_no1 + 1
  vCmp.GetLastError lErrCode, sErrMsg
Return
End_sub:
If (0 <> vCOA.Add()) Then
MsgBox ("Failed to add item")
End If
End Sub
Give me a shout if you don't come right or if your COA is with segments.
Kind regards
Peter Juby

Similar Messages

  • Problem with to import Chart of Accounts through DTW

    Hi
    I am using DTW to import Chart of Accounts in SAP B1. in CSV file in ACTIVE ACCOUNT  field ,i set tNO.
    while importing through DTW its giving error:  " is not a valid value for field 'Postable' .The Valid Values are : 'Y' -'Active Account' -'N'. "
    Thanks in Advance
    Rupinder

    You can check this thread to see if it helps:
    Re: Import G/L Title Accounts Through DTW?
    tNO means title account.  Is it what you are uploading?
    Thanks,
    Gordon

  • Import Chart of Account via DTW - field ReconciledAccount doesn't work

    Hi all,
    I'm importing Chart of Accounts (segmented) via DTW.
    I want to set the SAP LocManTran field to YES
    so in the Excel file, I populate the  ReconciledAccount field with tYES
    The importation works fine but the SAP LocManTran field is not ticked after the import
    Someone could help?
    Thanks in advance
    Christian

    Hi Christian,
    ReconciledAccount is the field RealAccount.  There is LockManualTransaction in the template you should set tYES.
    Thanks,
    Gordon

  • Importing Chart of Accounts using DTW

    Dear Sir/Madam,
    I've a problem While importing chart of accounts, I get error like
    "illegal parent number Application -defined or Object-defined Error65171"
    I'm using SAP Business One 2005 B (7.40.252)  SP: 00  PL: 32
    I kindly request you to provide me a solution as early as possible.
    Regards,
    Murali

    Murali,
    I believe you has posted this question earlier too.  Please check my reponse to that.  I have sent the details to your email
    Suda

  • Import Chart of Account Data from other system

    Hi FICO Gurus,
    I am a new student in FICO, here i have a question as following, ask for help,
    In my new rollout system, i need a chart of account. these data is existing in the other system, i want to import it from there, other then input one by one manually. can anyone tell me how can i do that?
    can anyone help me to solve it?
    Any responses will be awarded.
    Thanks a lot!
    Samson

    Use T Code FS15 in the old client/company code and give a file  ex 1234.
    Note the file and path generated from the message.
    Advise your basis team to copy the file in the same path of the required client.
    After copying use t code fs16 and generate the GL accounts through Batch input session.
    All the GL accounts will be copied in your new server.

  • Import chart of account

    when i import the chart of account through DTW i got an error that is Data is too large for the fieldoChartOfAccounts please help me i am stuck there

    Hi,
    <<OACT-Chartof accounts>> This is the template for importing the Chart of Account.Place the cursor at top of every column in .exl sheet and you can find here the length and type for every column.Here you can check which column has large than allowed.
    Regards
    Deepak tyagi

  • Field limitations - import chart of accounts

    Hello All!
    I have a client that has decided they would like to import their general ledger chart of accounts.  They have decided on a segmented chart of accounts, with the first segment being 8 characters.  In that segment they want to use a '.' in the number.
    Example:
    6114.000-01-00
    Is it possible to import the decimal in the first segment of the account?
    Thanks
    Kathy

    Hello Kathy,
    The field is a nVarChar field.  That means any character should be fine.  However, I strongly discourage this practice since it is better to make the segment as short as possible with numeric values whenever you can.
    Thanks,
    Gordon

  • Cannot import  chart of account via DTW

    Hi experts,
    I have read a lot posts regarding my dtw message, but no success.
    "The namespace of element must be from the schema  namespace"
    If  You can see whats wrong,then thank you in advance. Here are some rows of my txt file.
    Code     Name     ActiveAccoutNOt     FatherAccountKey
    AcctCode     AcctName     Postable     FatherNum
    11000000     Immateriális javak     tNO     10000000
    12000000     Ingatlanok és kapcsolódó vagyoni értékű jogok     tNO     10000000
    13000000     Műszaki berendezések, gépek, járművek     tNO     10000000
    21000000     Alap- és nyersanyagok     tNO     20000000
    22000000     Segéd- és egyéb anyagok     tNO     20000000
    23000000     Befejezetlen termelés és félkész termékek     tNO     20000000

    Hi,
    Leave code field as blank.
    both the lines should same header.
    try in below format:
    Code  accountType  ActiveAccount FatherAccountKey
    Code  accountType  ActiveAccount FatherAccountKey
    and also check Re: DTW template of COA thread
    thanks,
    neetu

  • DTW chart of account

    how to import chart of account through DTW?????
    means there are types of chart of account like title a/c, active a/c n control a/c.
    n there are five draw like assets, liability, equity, revenue, expenditure.
    i am confuse in the chart of account templates.

    Hi,
    Try this wiki
    [http://wiki.sdn.sap.com/wiki/display/B1/SAP%20Business%20One%20...To%20Go%20-%2010.%20Data%20Transfer%20Workbench?bc=true]
    Hope this helps,
    TVSon

  • Import Segmentation Chart of Accounts

    Hi,
    Can anyone help with some tips or link which describe how to Import segmentation chart of account ,the definition of Account segmentation is done and I have import Account segmentation categories .
    Best Regards
    Grayson

    Please check SAP Note 888905 and this thread:
    Re: Uploading of Chart of Accounts through DTW
    There are many threads discuss this topic. Find it out.
    Thanks,
    Gordon

  • Import is always in progress 88% in Chart of Account Distribution screen

    Hello,
    When we perform importing in Chart of Account Distribution screen, the progress is alway 88% and never complete.
    Is there any one that facing this issue ? Please help me to fix this issue.

    Hi,
    Check this thread:
    http://scn.sap.com/thread/3562601
    Thanks & Regards,
    Nagarajan

  • Importing in Chart of Accounts distribution SAP INTERCOMPANY

    Hello
    I am configuring the consolidation company. I just inside the Consolidating company and executed Administration> Setup > Intercompany > Chart of Account Distribution. I did an export and and Check Status and received 100% Complete percentage and status Success. BUT when i try import ffrom the branches, the percentage is always 100% and status In progress, even after several hours. What should i do ? I am using SBO 9.0 PL05

    I just configured both companies (it was missing in one DB) with the next configuration
    But again i see the importa status screen with the same time and date even though i pressed import again
    What else can it be ?
    Regards
    Hector

  • ERPi Intialize Source System is not extracting any chart of accounts.

    Hi Gurus,
    I have an issue while Initializing Source system in ERPi. Any help fixing this issue is greatly appreciated.
    Issue is, When i Intialize source system in ERPi, its just kicking off only one scenario in ODI. And when i browse to process detail to check the status, its still showing as running.
    But i don't see any scenarios in ODI in running state.
    So, obviously we can guess it didn't go to that far extent to show the chart of accounts.
    So, here my questions is:
    1. I believe there should be multiple Scenarios which should have been kicked of in ODI. But why only one Scenario have been kicked off?
    2. And how long will Source Intialization process take.
    Version of software using (ERPi- v.11.1.2.2) and ODI (v.11.1.1.3) Source System (EBS v.11i)
    Any help is greatly appreciated.
    Thank you,
    Mike.

    Totally agree with you.
    Found this out after digging more into the issue. Finall passed through this issue.
    Yes, i Imported the Master and Work Reps which we will get as a part of FDM Installation.
    Surprising but true that ODI V.11g is only supported for Hyperion system greater than V.11.1.2.1.501.
    Also, by any chance do you know any Knowledge base or forums where we can find good material for Erpi Implementation, like Tips or pitfalls to avoid in Erpi Implementation.
    I know this is one of the good place.
    Found that admin guide doen't fully cover everything.
    Thank you,
    Mike.

  • Loading Chart of Accounts from SAP into Account dim in BPC automatically

    Hi,
    for my client I would like to take a predefined flat file from SAP containing chart of account details (account id, description and parent) and load and  process them automatically using dtsx packages in BPC 7.0 MS.
    Also, I want the package to able to be able to change details when it finds an already existing account id (e.g. if the description changes) and only for the properties contained in the flat file (i.e. keep the property values the same in BPC for those properties which are not in the extract for existing account records), or to add new accounts for those that don't exist.  I don't want the existing dimension completely replaced, as the SAP file won't contain info for fields like ACCTYPE, or TYPEELIM for example.
    I find the help in Data Manager extremely confusing and am not sure which bits are current or have been superceeded.
    I am an application consultant with limited knowledge of DTS/ SSIS and I wonder if someone can give me a step by step detail of  what I must do to achieve this. I am sure that many people would like to do something similar.
    regards
    Scott.

    Here is what you need to do in the SSIS package.
    1. You need to create exactly same structure as MBRAccount Table. Let's say tmpMBRAccount
    2. Export Account data from SAP as FlatFile
    3. You need a Script to fill in ACCTYPE or other properties that doesn't exist in SAP but mandatory for BPC account dimension. This script will change exported Flatfile.
    4. Import step3 flatfile into tmpMBRAccount table.
        Some users import data into MBRtable directly but it is not good because if error happens,
        there is no way to roll back until restore table from backup database.
        If users use temporary table as we do, Admin task will backup and roll back if error happens.
    5. Run Admintask and point tmpMBRAccount table as source table.
    6. You need another script to update Excel member sheet from updated mbr table.
        If you don't have this script, data member will be inconsistent between excel member sheet and MBR table.
    Some customer add more steps to validate members or error handling.
    If you are not an expert of SSIS, I think you need a technical consultant for doing this.
    There are an example package in BPC sample package folder but it is very basic one.
    Thank you.
    James Lim

  • Change in Chart of Account Code

    Dear All,
    I want to change Chart of Account Code with Discription is this possible
    for example :
    Currently my Chart of Account code is ABCD with discription : Chart of Account - C COMPANY
    I have to change ABCD code with WXYZ.
    Is this possible please advice
    Thanks
    Vijay

    Hi
    What Implications that may have applied reset to a company code that has been productive and has therefore are posted from FI, CO, MM, SD, PM, PP and WM.  (Reset Transaction: OBR1 for Delete Company Code Data)
    It is important to point out that the company began to operate with the modules MM, SD, PM, WM and PP without considering its effects on FI and CO and therefore the data that is in financial accounting and cost is not to relevate for the company. This is to be done with the intention to start with a new Plan of Accounts for this company code.
    thanks for the help they can give me!!!!!!

Maybe you are looking for

  • Mass upload Create External doc URLs using Services for object-Inspmethod

    Hi All, Services for object is not active during SHDB recording or ECATT recording in order to mass update Create External doc URLs using Services for object. Any body know how to Upload this for any master data 9Insp plan/Material master etc..)

  • Strange error displaying swing frames

    A client reported a strange error with our swing application - screenshot http://i.imgur.com/zmQNB.png . It turned out all swing apps are showing up like this on his machine. He runs Windows XP Profesional SP2 with a Nvidia 5500 card. Has anyone seen

  • How can I get my DV-60I video out of my JVC HD-100u and into FCP6

    The title says it all. I shot three football games on the JVC hd-100u Camcorder in DV-60I, and another tape in HDV-SD60P. Does anyone know how to properly set up FCP6 to recognize the camera and the footage? I've tried everything I can think of, and

  • Why don't i have

    why don't i have Slo-mo on my iPhone 4s as one of the camera featuers

  • Determining number of rows in blocks

    Hello Assume 8k blocksize How can I know, how many rows will fit into one block? Cheers