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

Similar Messages

  • 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

  • Account code strategy

    Can anyone explain the account code strategy (mainly numeric) in chart of accounts of SAP B1 2005?

    Hi Sibasish
    As you are probably already aware, SAP Business One does not force any specific sequence or structure in terms of G/L account numbers, along with the fact that codes can be alpha, alphanumeric or numeric. As a result of this, numbering is up to your creativity or your customers requirements.
    If you look at Level 1 accounts, you will notice that these do have a numbering sequence. For example Assets start with a 1 (100000000000000). If you want, you can follow this "internal" number sequence but it is not necessary.
    I would not be too concerned about any of the numbering structures used in the demo databases as these are just guidelines of system usage. Also, the default COA's that ship with each localization are not Compulsary to use.
    My suggestion would be to work out a structure from level 2 to 5 that suites your customer and if possible, use Export Code, or Code for export to record the current G/L account number that they are using, should the new COA not be the same as the current system. This way you can display the old code, or even with Formatted Searches and UDF allow users to capture the old G/L codes they are used to and translate these into the SAP standard fields for them.
    Hope this helps
    Kind regards
    Peter Juby

  • Account Code & Name in XL Reporter

    Dear,
    I want to fetch the Account Code & Account Name in XL Reporter.
    So please help me for this issue.
    i use  =ixDimGet("FIG", "BatchNum_0") formula
    but it's give me the 0 as Account Code.

    Dear Shwu,
    Thanks for reply.
    But i want the display Account & name wise whole Purchase report.
    For example,
    if Purchase Invoice No  : 5 & Item No : 10 (Acct Code : 101),11(Acct Code : 102)
    Purchase Invoice No : 6 & Item No : 10(Acct Code : 101),12 (Acct Code : 103)
    so now report will be diplay as below format.
    Acct Code  Purchase DocNo Item No
    101
                           5                          10   
                           6                          10

  • 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

  • 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...

  • 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.

  • 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!!!!!!

  • Invalid Account Code Message 173-9 when posting Outgoing Payment

    When attempting to post an Outgoing Payment our customer recieves the following error: Invalid Account Code Message [173-9].  The local currency is CDN and Invoice currency is US.  The error occurs only when back dating the outgoing payment to Jan 31, 2011 on Posting, Due and Doc Date.  If the Posting/Doc date are left as the current date and the Due is set at Jan 31, 2011 then there is no issue.
    I've checked the posting periods, G/L determination and BP setup. 
    Note: this exact process has been completed many times in the past.
    Version:
    SAP B1 2007A SP01 PL11
    Any assistance would be appreciated.
    I've seen another post with a similar question but the answer did not solve our issue.
    Invalid Account Code when adding outgoing payments

    Hi,
    You may check this: Invalid Account Code error when posting AP Credit Note
    Thanks,
    Gordon

  • Aging AR / AP based on AR / AP account code

    Dear All,
    when running selection criteria either for customer receivable and vendor payable aging, is it possible to filter them based on their AP / AR G/L account code ? many of the customers have two AR G/L accounts code, e.g. in year 2006, the code is 12000-HQ. in year 2007, the code is 13000-HQ. meanwhile, there are still some unpaid invoices and any other transactions in the 12000-HQ G/L account code and need to be included in the customer receivable aging report. It is also needed to be reconcile. How to do that ? is it possible ? pls give advice. TIA
    Rgd
    Steve

    Steve,
    I did not understand what you meant by update ... set .... where ....= '..'
    But you can try using the import transactions functionality to transfer the balances to this AR account.
    Technically to be correct, you actually should Credit the Invoices from the Original AR Account and create new invoices from the New AR Account.
    Suda

Maybe you are looking for

  • How much ram will a late 2011 mac book pro 17inch upgrade?

    These are the specs for my Macbook Pro MacBook Pro 17-inch, Late 2011 Processor  2,4 GHz Intel Core i7 Memory  4 GB 1333 MHz DDR3 Graphics  Intel HD Graphics 3000 384 MB Software  OS X 10.8.2 (12C60) My Macbook Pro contains 2 memory slots, each of wh

  • My MacBook pro won't turn on.

    It worked fine last night. Now it wont work.  When I plug it in it gives me a green light on the chord, but I know it's not fully charged.  When I hit power nothing happens. Please help!!

  • Problem with Wireless N WRT300N please help?

    OKay so everything in router is up to date on its firmware the only problem is that everytime i try to connect to the router the signals keep on changing for example it maybe be 100% now and and a few seconds or mintes later it gets down to 40% or 20

  • How to access c5 phone from pc ?

    I have the c5-nokia phone and there is some files on my phone itself not on the memory card ,I want to remove them , but they not appear throw file manager through my phone and throw ovistore there no such file manager for the phone only for the memo

  • Mailman sending wrong url in emails

    Hi, I migrated from 10.4.11 awhile back and all was well, but I have just added 3 new mail list to the 10.5.6 server. It is sending out the wrong url in the emails to my moderators. How can I change this? It is sending out domain.com when it should b