Segmented account code in DIAPI

Hi,
I have developed an addon for SBO 2004B.
My addon is failing after we applied patch 40.
This failure occures in some places where i use DIPAI and try to pass account code information.
Example;
I am synchronising item master information between 2 databases.
When i try to create a new item in item master in current logged in company, i also create the item in the other company using DIAPI. While doing that, i pick up  the ExpenseAccount property in Inventory tab->warehouse information and call oSBO.GetObjectKeyBySingleValue(oChartOfAccounts, "FormatCode", Replace(sAcctCd, "-", ""), bqc_Equal) function to get the SAP string for the segmented account and pass it to DIAPI.
Before patch 40 it was working fine.
But now i see that the account code which i pick up from the form field is already in SAP string format(_SYS****)
hence when i call function GetObjectKeyBySingleValue, the account code cannot be found.This causes my function to fail.
My problem is how to know which form field return account codes in SAP string format and which ones return the segmented a/c code.
Any one having similar problem?
Any solutions?
Please help.
Thanks.

Hi Satish,
By default SBO works with the "account codes in SAP string format" (_SYS****). You should use this where ever you can (it's much easer than trying to resolve the segemented account code - which is really only for displaying purposes).
Hope this clarifies the situation a bit...

Similar Messages

  • PrintLayoutDesigner Account Code (with segments)

    Hi, Im trying to design the check print layout, I want to display the financial account codes that were involved in the journal. My problem is that when I select the account number, It gets displayed the internal _SYS00000 etc. account instead of format code.
    Is there a work arround?
    Is there a way to create or use a query in the print layout designer?
    Thanks!

    Hi,
    Instead of Print the AccountCode in the Corrosponding Place you select the FormatCode to print the GL Account Number.
    I had done this for my client.
    For Example.
    AccountCode is _sys0000.....19
    ForMatCode is   124536
    AcctName is :  ICICI BANK (Bank Account)
    Regards
    PL.Chdiambaram

  • How to display G/L Account code with separation symbol

    Hi, there
    I got a problem that I want to show formated account code in one column in grid, which formated with separation symbol, and i'd like to binding this column to one user defined field in UDT, user can input Acount code in this column. who knows if there is a simple way to show the formated Account code. I am using SBO 2004 and VB .Net.
    I did not find any function about it in SBO 2004 SDK, the "FormatCode" property in ChartOfAcctounts object only show Account code with out separator, so am I need find out the segment and separator information and format using code?
    Thanks for any help.
    Kathy

    Hi Kathy
    Not sure what you asking.
    The one part you asking "how can I show the link button in the Account code column". The answer to this is if you are using the xml form made by the screen painter you must open the xml file outside of screen painter and make that column of type 116 instead of 16. Obviously you still need to do the usual like bind the column and set LinkedObject = APbouiCOM.BoLinkedObject.lf_GLAccounts
    Then to the second part of your question
    A linked button for a gl account with dashes which are "-" should pull the chart of accounts window open. The format code with the dashes is CORRECT! You must make sure there is no unwanted spaces or any funny characters. Also i did the linked button in Screen Painter. Make your arrow, link it to a edit box.Then set linkedObject value to 1.
    Just for testing purposes make a edit text with the linked button linked to it. Type a gl account manualy in the box with dashes and then press the orange arrow. You'll see that it works with the dashes.
    Hope this helps

  • Chart of Account Import Template for Segment Account System

    Hi experts,
    I want to import COA with segmentation but don't have the template for importing. Would anyone send me the template?
    Your help would be highly appreciated.
    Pls, send to my address if you have the template: tranvanson1109 @ yahoo dot com
    Thanks in advance!
    Son

    Hi Son,
    Basically the template is the same as regular CoA without segmentation, except that for the active account the account code is blank, then fill it on the "FormatCode" column full with the segment code.
    Lets say :
    account code: 1010101
    segment 1 code: 01
    segment 2 code: 00
    format code: 10101010100
    And other difference is when you do an update, use the SYS_ code as the account code. Query the OACT table to see the SYS_ code assign by SAP to your g/l.
    Hope it's works
    Dody

  • Can change GL account code with transactions

    In Canadian Localization in CoA with segments I can change account code in account with transactions.
    An issue found in 2007 PL 35 and 41.
    Is it a bug oe new functionality?
    Thanks,
    Olga

    Hi Olga,
    If the G/L Accounts are set up as segmented accounts then it is
    possible to change the account codes. The code field of the G\L Accounts
    is a description field (non unique, the unique key is internal, this is
    only the case with segmented G/L accounts) and can be changed. This
    will not affect the reports, only the name/code will change. System will identify the accounts with an internal code.
    Regards,
    Vijay kumar
    SAP Business One Forums Team

  • Account Code Generator

    What am I missing with this tool? It seems like it is not too useful because you have to go thru and input all the info, that it would be easier just to go thru
    Financials -> Chart of Accounts
    I am just curious if I am missing some type of functionality.
    thank you,
    John

    John,
    The Account Code generator can be useful only if you are creating a fresh CoA with segments.  When you are trying to port an existing CoA account ACG might not be the best option.
    It is a tool to quickly create a number of active accounts from a combination of different segments.
    Suda

  • Formating account codes

    Hi,
    I am filling a combo box with valid values that include the account codes from the chart of accounts table (OACT).  The FormatCode is the field I am showing but it is not formatted in the table.  I would like to format it based on the account segment separator in table OADM and the segmentation specifications in table OASG.  Before I take the trouble to write the code to do this, I was wondering if SAP B1 had an object that formats the account code for you given the specifications in these two tables.
    The Chart of Accounts object doesn't have a method for this.
    Thanks,
    Mike

    Hi Mike,
    The following query should give you the full account, properly segmented:
    select
         Segment_0 + isnull( '-' + Segment_1, '') + isnull('-' + Segment_2, '')
         + isnull( '-' + Segment_3, '') + isnull('-' + Segment_4, '')
         + isnull( '-' + Segment_5, '') + isnull('-' + Segment_6, '')
         + isnull( '-' + Segment_7, '') + isnull('-' + Segment_8, '')
         + isnull( '-' + Segment_9, '')
         as Account
    from
         OACT
    Would that work for you?
    Kind Regards,
    Owen

  • Account code (gl_code_combinations) for tax based on the item code

    I would like to have invoice created (ra_customer_trx_all rcta, ra_customer_trx_lines_all) with the account code (gl_code_combinations) for tax depends on the item code (one of the segment in mtl_system_items).
    example: we have 5 segments in item code
    item A: 01-01-AAA-0001-01
    item B: 01-01-BBB-0002-01
    and when we do auto invoice(for sales order), system will create
    TAX account code for item A: xx.xx.xxxxx.xxxxx.101.xx (for item with 3rd segment=AAA)
    TAX account code for item B: xx.xx.xxxxx.xxxxx.303.xx (for item with 3rd segment=BBB)
    can anyone give me some guides to set this up?
    thanks.

    use autoaccounting

  • Segmentation accounts - Copy Express

    Dear experts,
    Client have total 4590 line item in the Chart Of Account in the old company database. When we do the copy express database, only 3558 line item copy over. Is there any limitation ie maximum number of General Ledger accounts that we can copy over?
    Regards,
    Sheon

    Hi kfsheon,
    I usually use delimited text and not csv to import data to b1 using DTW. Here is the example to import segmented account into B1:
    Code     AccountType     ActiveAccount     FatherAccountKey     FormatCode
    Code     AccountType     ActiveAccount     FatherAccountKey     FormatCode
              tNO     100000000000000     11.00.000.00
              tNO     11.00.000.00     11.10.000.00
         at_Other          11.10.000.00     11.10.001.00REERTLA
         at_Other          11.10.000.00     11.10.002.00REERTLA
         at_Other          11.10.000.00     11.10.003.00REERTLA
         at_Other          11.10.000.00     11.10.004.00REERTLA
         at_Other          11.10.000.00     11.10.005.00REERTLA
         at_Other          11.10.000.00     11.10.006.00REERTLA
         at_Other          11.10.000.00     11.10.007.00REERTLA
         at_Other          11.10.000.00     11.10.008.00REERTLA
         at_Other          11.10.000.00     11.10.009.00REERTLA
         at_Other          11.10.000.00     11.10.010.00REERTLA
         at_Other          11.10.000.00     11.10.011.00REERTLA
         at_Other          11.10.000.00     11.10.012.00REERTLA
         at_Other          11.10.000.00     11.10.013.00REERTLA
         at_Other          11.10.000.00     11.10.014.00REERTLA
              tNO     11.00.000.00     11.11.000.00
         at_Other          11.11.000.00     11.11.001.00REERTLA
         at_Other          11.11.000.00     11.11.002.00REERTLA
         at_Other          11.11.000.00     11.11.003.00REERTLA
    - Code column is empty
    - accounttype is defined for non titile account
    - active account is defined as tNO for title account and tYES for level 5 or non title account
    - fatheraccountkey and formatcode are defined. You do not use _SYS but you must use format code.
    extract the format code of COA segmented using this following sample query:
    select acctcode, formatcode, acctname, segment_0, segment_1, Segment_2 from oact
    the segment fields are use to separate format code
    you can use the above sample as guidance. You can contact me and get the contact info in my business card.
    JimM

  • Practical need of G/L Account Code in SAP B1

    Hi All,
    Is there any way to avoid the G/L Account Code in SAP B1?
    Is there any practical need of the G/L Account Codes when the Account Name itself is sufficient and unique in an organization?
    Thanx and Regards

    >> Have u used any time the popular accounting application named "Tally".... one of its popular functionality is "CODE-LESS ACCOUNTING"...
    >> if a user gets a account just by typing a few characters of the beginning of the account name then where's the utility of the G/L account codes?
    >> and to maintain the uniqueness and indexing in database level - the the tables may have several keys hidden to the users.
    If you/ user do not want to create journal entry by using G/L account code:
    Option 1: open form settings of journal entry/ corresponding document and uncheck visible for the G/L acct.
    Option 2: instead of using numbers(digits) for G/L acct code, use descriptive text itself as G/L acct code. This is not recommended practice. But, it is upto your implementation practive/ customer requirement. To do this, you either have to edit existing chart of accounts / create new coa.
    Hope these options will help you to resolve your query.
    Regards
    Satish

  • AP Service Invoice G/L Account Code

    Dear All
    I want ot generate the report in XL Reporter which contain
    Doc. No. / Doc. Date / BP Name / GL Account Code / Doc.Total
    This information is required from
    AP Purchase - Invoice type Service
    But I can't able to pick the proper GL Account code which I select in the invoice.
    Please hurry
    Regards

    Dear Suda
    Thanks for your reply.
    But I want to pick the G/L Account Code in XL Reporter.
    Regards
    Rajesh

  • Create a Crystal report to display the sum of G/L account code within a specific period

    Hi,
    Just wonder is it possible to create a crystal report to display the total of a G/L account code within a specific period?
    How to write the query to get the sum within a specific period?
    For example:
    Period: 2014-06-01-2014-06-10
    Account code A: USD "TOTAL"
    Account code B: USD "TOTAL"
    Thanks

    Hi Olga,
    Please check below Query.
    SELECT T1.[Account], T1.[ShortName], SUM (T1.[Debit]) as Debit, SUM (T1.[Credit]) As Credit, SUM (T1.[FCDebit]) As FCDebit, SUM (T1.[FCCredit]) As FCCredit, SUM (T1.[SYSDeb]) As SysDebit , SUM (T1.[SYSCred]) As SysCredit  FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.[TransId] = T1.[TransId] WHERE T1.[RefDate] >=[%3]  AND   T1.[RefDate] <=[%4]
    Hope this Help
    Regards::::
    Atul Chakraborty

  • Purchase ledger and General Ledger account codes

    I am looking for information about how Oracle Financials works in respect of "codes" if that is what they are called within the Module. I am an accountant as well as a developer, and I have equivalent information about a number of other accounting packages. Readers may need to translate some of my terminology into Oracle equivalent language.
    1. My expectation is that the purchase ledger transaction table has some sort of a "purchase ledger account code" column that is used for joins to the purchase ledger master table. If that is so, what sort of values are in that column or its equivalent? Are they values that are codes or original codes? Put another way, what sort of values are there in whatever column is used for joins to the master table?
    2. I have equivalent expectations in respect of the General ledger. What sorts of values are in whatever transaction table column is used for joins to the general ledger master table? Are these general ledger account codes?
    My interest is in how the applications process change, such as a change in the name of a supplier or the inclusion of a general ledger account where there does not seem to be space for one in the chart of accounts. My next enquiries will depend on the answers to these ones.

    Use SAP online library
    In any SAP screen:  Help > Application help

  • Difference in Account Code combination at Transaction and Accounting entry

    Hi All,
    We are working on Subledger Modifications (SLA) for a Client in order to meet few key business scenarios... Even though we were able to achieve the desired outcome through SLA, client is not pleased about the fact, there exists two different account code combinations for a transaction i.e.
    1) The account code combination that is defaulted or entered in the transaction
    2) The account code combination that is used for creating the accounting entry considering the modifications done at SLA.
    There is a difference between the above two, due to modifications carried out in SLA. 
    Since the scope of SLA is limited only to make changes at the Accounting entry level, such variations would exist, however client is not comfortable with such an approach.
    We are performing the SLA changes for three modules:  1) Cost Management 2) Accounts Receivables and 3) Accounts Payables
    If someone has worked on such similar situation in your previous assignments, perhaps you can share how the same was addressed.
    (Such as any customizations, Workarounds, irrefutable justifications etc ..)
    Thanks and Regards,
    Karthikeyan

    Hi,
    Check is there any restrictions are there . the data must be displayes if the data is there in infocube.
    Regards
    sivaraju

  • Changing a G/L account code from B/S item to P/L item

    Hi Experts,
    I created a G/L account code as a Profit & Loss item. After that some document transactions were posted in that G/L Account code.
    Later, I realized that that G/L account should have been a Balance Sheet item. So, when in FS00, I tried to change the radio button from P/L item to B/S item for the above stated G/L account code, it is not allowing because there are transactions / records in that G/L account code.
    What should I do to convert that G/L account code from P/L item to B/S item. Please guide.
    I will definitely award points to everybody who answers.
    Thanks & Regards
    Rajeev Sharma

    Hi Rajeev,
    It is a big thing to change a GL account from BS to P&L.
    First tip is, if you can avoid it please do, by this I mean, block the account and create a new GL account.
    Please review your account groups, you normally group similar accounts in the same number ranges and I would recommend that a single account group is only BS or P&L.
    The fact you have posted items to the GL account is the biggest problem.
    You need to have the account with a zero balance, this will mean either reversing the documents you posted or creating a journal to zero the account and then clear if possible all of the line items.
    You also need to consider the impact it has made on the documents you have created, especially if a period is closed.
    I think it is possible to change if there are no open items, but I would contact SAP via OSS to get the answer.
    Please publish the answer back on the forum.

Maybe you are looking for

  • File upload....How to find the user entered any file or not

    Hi Team, I am working on with file upload UI. Some times without clicking on browse button, I mean without entering any file they are cliking on upload button, which is giving the exception. I know there is no action for UI element, Then how to resol

  • Problem in layout, please help in correcting code

    Hello Friends, I am facing a very strange problem. I have 1 DespktopPane, say DT in which I have created two InternalFrames, say IF1 and IF2. Also there are two JPanels, say P1 and P2. P1 contains various controls and IF1s ContentPane is set to P1 an

  • Problem with Corelation in BPM

    Hi,    I am desighning the multiple idoc to file scenario with reference to following blog. https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2223. [original link is broken] [original link is broken] [original link is broken] in adition to above

  • How can i save a incomplete download

    when i want to turnoff my computer, but some other down loading going on computer. i wants to download rest of data before i have paused at the time of turnoff computer.

  • Avoiding if/else in a JTree

    I have Tree in which each TreeNode behaves differently. Suppose, if I right-click on Node1, it will show a popup menu and if i right-click on Node2, it will open a new Frame. Currently, what I am doing is if (theTree.getSelectionMode.getSelectedItem(