GL Account Number Logic

I am looking for a complete set of usable 8 digit Number Logic (X XX XX XXX) for GL Account Numbers. Please provide suggestions.
Thanks
Anand

Hello
GL account Logic is specific to the company code, its legacy policies and generally accepted standards.
The whole objective is present an uniqueness and meaningful
As an example:
12 can represent account group: P&l, material, asset, CA, CL etc
34 can represent country , business area, location etc
5 can represent expense or balance sheet
678 can represent the series.
No standard format or logic available. More based on legacy standards
Can extend by 2 more digits for more compatability
Reg
Suresh

Similar Messages

  • ME_PROCESS_REQ_CUST  GL Account Number

    I am running this BADI in the IF_EX_ME_PROCESS_REQ_CUST~PROCESS_ACCOUNT interface. My code is pasted below. I am able to retrieve our the GL Account Number from the cross-reference table and move it to wa_exkn-sakto. However, SAP issues a message that the GL Account need to be entered, thinking that it is not there. It is on the screen, and also in wa_exkn-sakto when I return to the Req screen after the BADI executes.
    I am thinking that since SAP does not regognize it as being populated, or, on the screen, I have to move it somewhere else as well. The commented out code was a test to see if somehow I need to introduce MEACCT1100-SAKTO into my logic.
      Thank-You.
    METHOD if_ex_me_process_req_cust~process_account.
    *                              D A T A                                   *
      DATA:  wa_exkn TYPE exkn,
             wa_exknx        TYPE mepoaccounting_datax,
             wa_item         TYPE mereq_item,
             wa_itemref      TYPE REF TO if_purchase_requisition_item,
             wa_exkn_hold    TYPE exkn,
             wa_exknx_hold   TYPE mepoaccounting_datax,
             wa_item_hold    TYPE mereq_item,
             wa_itemref_hold TYPE REF TO if_purchase_requisition_item.
    *                  P R O C E S S I N G                                   *
      IF im_count = 1.
        CLEAR:wa_exkn_hold,
              wa_exknx_hold,
              wa_item_hold,
              wa_itemref.
      ENDIF.
      CLEAR: wa_exkn,
             wa_exknx,
             wa_item,
             wa_itemref.
    *   get account classification data           *
      CALL METHOD im_account->get_exkn
        RECEIVING
          re_exkn = wa_exkn.
      move wa_exkn to wa_exkn_hold.
      CALL METHOD im_account->get_exknx
        RECEIVING
          re_exknx = wa_exknx.
      move wa_exknx to wa_exknx_hold.
    *           get item data                     *
      CALL METHOD im_account_ref->get_item
        RECEIVING
          re_item = wa_itemref.
      move wa_itemref to wa_itemref_hold.
      CALL METHOD wa_itemref->get_data
        RECEIVING
          re_data = wa_item.
      move wa_item to wa_item_hold.
      MOVE wa_item TO wa_item_hold.
    *   Get the Gl Account Number if needed       *
      DATA: ls_z4ppi_glmap TYPE z4ppi_glmap.
      IF wa_exkn-sakto IS INITIAL AND
         ( wa_item-knttp = 'F' OR
           wa_item-knttp = 'K' ).
        SELECT SINGLE * FROM z4ppi_glmap
          INTO ls_z4ppi_glmap
          WHERE zzmatkl = wa_item-matkl AND
           zzacc_assign = wa_item-knttp.
        IF sy-subrc = 0.
          MOVE ls_z4ppi_glmap-zzacc_no TO wa_exkn-sakto.
    *     move ls_z4ppi_glmap-zzacc_no to MEACCT1100-SAKTO.
        ENDIF.
      ENDIF.
    ** Cuenta Mayor
    *field-symbols <fs_sakto> type meacct1100-sakto.
    * Utilizo el truco de asignar el programa de control y el campo al field
    *move wa_exkn-sakto to SAPLMEACCTVI-MEACCT1100-SAKTO.    "' to <fs_sakto>.
    *assign ('(SAPLMEACCTVI)MEACCT1100-SAKTO') to <fs_sakto>.
    *if <fs_sakto> ne wa_exkn-sakto.
    *endif.
    *          set the  GL Account Number         *
      CALL METHOD im_account->set_exkn
        EXPORTING
          im_exkn = wa_exkn.
      CALL METHOD im_account->set_exknx
        EXPORTING
          im_exknx = wa_exknx.
    endmethod.

    I think you missed out the statement
    MOVE 'X' TO wa_exknx-sakto.
    Regards, Vinod

  • KSB1 field GKONT Offsetting Account Number not correct

    Hi experts,
    When I look at the KSB1 report, it seems that for some account, I have the wrong information in the column Offsetting Account Number.
    When it's an invoice, it's OK, it takes the supplier.
    If it is an asset operations (depreciation for example), the account in this column is not correct.
    The help for the field is:
    In this field, the system determines the offsetting account for the item, as long as the account is maintained in the corresponding account assignment.
    But i don't understand and have no idea where i have to maintain this....
    Someone could help me please?
    Thanks in advance,
    Chris

    Hello Chris,
    Note 39955 describes 2 algorithms for determining the offsetting account
    both of these are based on wether the largest amount is posted on the
    debit or credit side which determines the offsetting account.
    The offsetting accounts are determined on the basis of the FI dodument.
    Unfortunately, in standard there is no way to change the logic
    described in note 39955.
    However, for future postings, you would have influence in how the
    offsetting account will be set. This could be done with an FI exit
    as described in detail in note 354529. The corresponding correction
    instructuctions are already in your system but you would have to
    create the logic you want in the exit.
    Please check note 365478 too.
    br, Guido

  • ME21N -- User Exit to assign G/L Account number

    Hi All,
    The requirement is to assign G/L account number (EKKN-SAKTO) based on vendor account group, material type and account assignment category. I have tried with some user exits and unfortunately i was not succeeded in finding out the correct one.
    I request you to provide me the user exit/enhancement name or BADI name that I can use to assign the G/L account number.
    Thanks & Best Regards,
    Kumar.

    Create the field exit on field SAKTO.
    and write the below code in the field exit.
    DATA: i_dynpread TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.
    DATA: V_SAKTO TYPE EKKN-SAKTO.
    i_dynpread-FIELDNAME = '<Screen field name for Account assignment category>'.
    append i_dynpread.
    clear: i_dynpread.
    i_dynpread-FIELDNAME = '<Screen field name for Material Type>'.
    append i_dynpread.
    clear: i_dynpread.
    i_dynpread-FIELDNAME = '<Screen field name for Vendor Account Group>'.
    append i_dynpread.
    clear: i_dynpread.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = '<Screen name>'
    DYNUMB = '<Number>'
    TABLES
    DYNPFIELDS = i_dynpread.
    IF SY-SUBRC = 0.
    loop at i_dynpread.
    <Write the select statement logic to retrieve EKKN-SAKTO based on the other field values which will be available in the internal table I_DYNPREAD and put the value into the variable V_SAKTO.>
    IF SY-SUBRC = 0.
       output = V_SAKTO.
    ENDIF.
    endloop.
    ENDIF.
    Hope it helps.
    Reward if it is useful.
    Thanks,
    Srinivas

  • Need exit for ME51N G/L account number automatically populated

    Hi ,
    i have the issue with  Enhancement.
    <b>The requirement is   in the tcode ME51N or ME52N .</b>    They will enter maerial and Qty ,Plant, Purchase group.
       i need to get G/L account number with respect to Purchase group automatically.
       pls do the need ful  if u know the procedure...
    regards
    devi

    Transaction Code - ME51N                    Create Purchase Requisition
    Exit Name           Description
    MEREQ001            Customers' Own Data in Purchase Requisition
    No of Exits:          1
    Transaction Code - ME52N                    Change Purchase Requisition
    Exit Name           Description
    MEREQ001            Customers' Own Data in Purchase Requisition
    No of Exits:          1
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Exits are basically the hooks whcih SAP has provided to add your own code. There are two types of Exits:
    1. Customer exits: Implemented as Function Modules within z includes. Anybody can change it and no access key is required.
    2. User Exit: Implemented as subroutines within includes (any include except y or z includes). You need access for the specific include and then you can any subroutine (user exit) within that Include.
    BADIs are the enhanced version of user exits where the same logic is implemented via classes and object (OOP)
    Enchancement point is the latest once introduces with ECC6.0 . Not very sure about that but you can change it without any access key.
    Please go through the following link which will help you understand the exits in a much better way:
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec07a25db911d295ae0000e82de14a/content.htm
    http://www.sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm
    http://sap.niraj.tripod.com/id21.html
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.sap-img.com/ab038.htm
    User Exits.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    customer exits
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Menu Exit.
    http://www.sappoint.com/abap/spmp.pdf
    http://www.sappoint.com/abap/userexit.pdf
    http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
    http://www.sapdevelopment.co.uk/enhance/enhanceh
    Rewards if useful.........
    Minal

  • ME52N: Purchase Requisition Change GL Account Number

    Requirement: ABAP auto-change the GL Account field number in a Purchase Requisition after the Material Group is changed.
    Background: This custom logic has been successfully applied to all types of Purchase Requisitions using  BADI ME_PROC_REQ_CUST, with the exception of a Purchase Requisition type that is called a 'Service Limits'. There are differences that are important to note between a 'Service Limits' Purchase Requisition and the other Purchase Requisitions that had custom code added without any problems.
    1)This type of Purchase Requisition uses a item category of 'B', and the logic has a tendency to flow through SAP differently.
    2)This type of Purchase Requisition's GL Account number is under-intensified on the 'item' subscreen, and cannot be changed manually on that screen like the others..
    3)In order for the GL Account to be changed manually, or for the GL Account to be changed once my code has changed the GL Account Number, the user must select the 'Limits' tab and select the Account Assignment arrow, then a popup appears where the GL Account can be changed manually, or, my coded GL Account number change then occurs.
    Problem: I want the custom code to be able to change the GL Account NUmber without having to go into thge 'Limits' tab, where the icon has to be selected. I believe the problem is that the field is protected, because it displays as under-intensified, thus, preventing my new GL Account NUmber from displaying. I also have the subsequent SAP code below that appears to reject set_exkn because protect is set to 'X'.
    CODE1: Is my custom code.
    CODE2: Is the SAP code that my will flow into where this field appears to be unchangeable.
    My question:
    I am thinking that this GL Account field is protected and cannot be changed because it is under-intensified on the subscreen on the Purchase Requisition. Can it be changed with custom code, a way to 'unprotect it'? Or, are there settings that should be changed in SPRO for the Purchase Requisition to allow this functionality to change the GL Account number.
       Thank-You
    (CODE1)
    METHOD IF_EX_ME_PROCESS_REQ_CUST~PROCESS_HEADER.
    *Purchase Requisition Item Declarations
      DATA: LT_ITEMS        TYPE MMPUR_REQUISITION_ITEMS.
      DATA: LS_ITEM         TYPE MEREQ_ITEM.
      FIELD-SYMBOLS: <FS_ITEM> TYPE LINE OF MMPUR_REQUISITION_ITEMS.
    *Purchase Requisition Accounting Declarations.
      DATA: LT_ACCT         TYPE MMPUR_ACCOUNTING_LIST.
      DATA: LS_ACCT         TYPE EXKN.
      DATA: LS_SETX          TYPE MEPOACCOUNTING_DATAX.
      FIELD-SYMBOLS: <FS_ACCT> TYPE LINE OF MMPUR_ACCOUNTING_LIST.
      CALL METHOD IM_HEADER->GET_ITEMS
        RECEIVING
          RE_ITEMS = LT_ITEMS.
      LOOP AT LT_ITEMS ASSIGNING <FS_ITEM>.
        LS_ITEM = <FS_ITEM>-ITEM->GET_DATA( ).
        LT_ACCT = <FS_ITEM>-ITEM->IF_ACCT_CONTAINER_MM~GET_ITEMS( ).
        LOOP AT LT_ACCT  ASSIGNING <FS_ACCT>.
          LS_ACCT =  <FS_ACCT>-MODEL->GET_EXKN( ).
          LS_ACCT-SAKTO = 'N500300   '.
          LS_SETX-SAKTO = 'X'.
          <FS_ACCT>-MODEL->SET_EXKN( LS_ACCT ).
          <FS_ACCT>-MODEL->SET_EXKNX( LS_SETX ).
        ENDLOOP.
      ENDLOOP.
    ENDMETHOD.
    (CODE2)
    METHOD if_accounting_model_mm~set_exkn.
      DATA: ls_buffer     LIKE LINE OF my_data_input_buffer,
            ls_bufferx    LIKE LINE OF my_data_input_bufferx,
            l_buffered    TYPE sy-subrc,
            l_data_old    TYPE exkn,
            l_data_oldx   TYPE mepoaccounting_datax,
            l_data_newx   TYPE mepoaccounting_datax,
            l_indx        TYPE sy-tabix.      "1478013
      *PROTECT EQ 'X'
      CHECK my_state->protect EQ mmpur_no.
    Edited by: Tom Matys on Dec 12, 2011 10:55 AM

    Your PO release strategy must have been based on Cost Center as one of characteristics.
    Pl check & confirm.
    Regards
    Bhavesh Mistry

  • From GL account number to amount

    Hello,
    May I know if I have a particular GL account number, how can I get the amount posted to that GL account from a particular period using logical database PNP? Thanks a lot!
    Regards,
    Anyi

    Hello all,
    Thanks a lot for all the quick replies.
    But I think I am more inclined to find a field in a particular table that is of type betrg or the amount posted to this GL account number, instead of some detailed breakdown of transactions.
    Could anyone offer me any information about that?
    Thanks a lot!
    Regards,
    Anyi

  • Vendor Master Enhancement: Add '-'  in Bank account number

    Hi Experts,
    I Have one small requirement where I have to add '-' at second last letter in Bank account number in FK02 whenever user will hit the Enter key.
    kinldy suggets how can I achive this, I have used user exit 'SAPMF02K' but not able to trigger the same.
    Best regards,
    Omkar

    Hello,
    Go for BADI's,
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    Regs,
    Venkat

  • Enhancement for validating bank account number

    Hi,
      I have written code for validating bank account number based on bank Key.In the enhancement <b>SAPLSSRV</b>. Now i have a requirement that when the enhancement is triggered, i need to check whether the <b>account holder</b> field is entered or not in the transaction.
    But in the enhancement i have only BANK_ACCOUNT, BANK_CONTROL_KEY, BANK_COUNTRY and BANK_NUMBER as the import parameters, no more changing or tables parameters.
    i.e., i dont get account holder name as input. Is there any way to capture the <b>account holder</b> field.   
    Regards,
    Vidya.

    Hello,
    Go for BADI's,
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    Regs,
    Venkat

  • Error 'Specify account number' while posting a parked document through FBV0

    Hi,
    I am getting an error 'Specify account number' while posting a parked document through transaction FBV0.
    I am not able to figure it out as to what account number it is referring to. Since the document is parked I assume the GL account used has no problem. Please help.

    Hi,
    Try to change the Account number and then save or post the data. I think Once We Parking the Document it wont allow to post the data without changing.
    Try same scenario in the development its be useful
    Regards,

  • Error  in Creation of Group Account Number Through FS00 or ob_glacc11

    Hi
    Experts
    I am creating group account number in fs00 nothing but group chart of accounts that can be done individually in fs00 or through ob_glacc11. There is balance in all the G/L accounts but for some particular G/L accounts the system is through.
    I am maintaining three ledgers one is for 16 periods, second one for 48 periods, third one is for 365 days.
    while running FS00 i am getting an runtime error : Packed field contains incorrect BCD format.
    DO glt0-rpmax  TIMES
         varying  saldo from glt0-hsl01 next glt0-hsl02.
         gesamtsaldo = gsamtsaldo + saldo.
    ENDDO.
    when i trace FS00 This glt0-rpmax is having value of 48. (periods) .
    please give me a solution how can i get the solution.
    Thanks in advance.

    Hi,
    You have activated group account number. If you have any grp account number of your company please provide the group company account number.
    Else if you dont want to give group account number
    In T-code: OB13 remove group chart of accounts from your chart of accounts
    Best Regards
    Ashish Jain
    Message was edited by:
            Ashish Bohara

  • Do not enter an account number for a masked account type

    Good Morning
    1)
    I am trying to give some account number in open / close posting period window. From acount field (Lower limit of the G/L account numbers ) is not accepting the value. I have also tried with ZZZZZ and many other options. Can any one help what could be he reason ?
    This is the Error Message
    Do not enter an account number for a masked account type
    2) Who is responsible to create the Authorization Group? What is FICO consultant role here ?
    Eg: I want to give some privileges to one of the users in Management to open and close the posting period for all the nominals for all posting periods.
    who creates the Authorization Group
    Regards
    Amar

    Hi,
    1, For account group the error may be comimg because already data is created. In lower limit donot enter ZZZZZ as it is considered as the highest value.  You can try the lowest account number.
    2. Creating a role is job of bais based on the FICO tcode given by FICO consultant. For special privilages to a role you can ask to basis guy to create a separate role and assign to user.
    Regards
    Milind Sonalkar

  • Drilldown report FGI0 Account Number and compounding Chart of Accounts

    Dear all,
    I created a drilldown report in FGI0 for FAGLFLEXS (Reporting for Table FAGLFLEXT). I am showing the field Account Number. However the field display is [Chart of accounts][Account number] in the corresponding column, but I want to display only the Account number.
    If I remove the compounding field RKTPL from table TKAFD, then the program cannot find the Account Number Text.
    Is there a way to show only the Account Number, without the Chart of Accounts in its 4 first fields, and also show the account text?
    Thank you in advance!

    Dear All
    I need to change the GL accouts in Drilldown report FGI0. In FGI2 tried but i couldn't able to find the exact location to chage can you please help me. On how can change means regroup the GL account and need to add the new GL account in Drilldown report..
    Regards
    Chandrasekhar G

  • Customer open items, transfer to new account number

    Does anyone have experience in transferring customer open items to a new account number?

    Thanks for the reply, the situation I have is there are existing postings on a customer account in SAP. The client wants to create a new account number and transfer the balances from the old account to the new account. There are a significant amount of items on the old account. Normally I would use transaction F-30 for a small number of postings but this requires posting each line item individually to the new account. I was hoping there was a more systematic solution.

  • Relationship between FINANCIAL STATEMENT ITEM and GL ACCOUNT NUMBER

    hii experts...
    can anyone tell me the relationship between FINANCIAL STATEMENT ITEM (FIELD NAME: ERGSL) and GL ACCOUNT number corresponding to that FSV..
    and if these fields are present in any table... den please do tell...
    thanks in advance.

    Thanks Raymond for giving me suggestion...
    bt wat actually is my problem na...
    i m creating a balance sheet in BAPI and in this I need FSV and GL account number...
    i got everyting bt i cant find the realtionship between these two fields...
    hope u understand my problem..

Maybe you are looking for

  • New to Lightroom - Where do I set up my catalog?

    I just downloaded a trial version of Lightroom, been using Canon DPP, and I have my picture files stored in my "Pictures" library on my C drive and backed up to an external harddrive.  When I first tried to open Lightroom it indicated that I had Ligh

  • What is the best way to eliminate room hum in my video?

    I have a room hum in my clips that I wish to eliminate. I downloaded Audacity and it worked fine, right up to the point where I exported it to FCE. In Timeline the sound file was out of sync and nothing I have tried will synchronize it with the video

  • How to revert back from external display mode to laptop display mode?

    Hi, I'm new to this community. I'm not sure if this is where I should be posting my questions. Anyway, I accidentally pressed fn + f2, which switched my laptop into external display mode (I'm pretty sure), and the screen is now very narrow and small.

  • I can't find my plant in spro,however I can use them normally!

    Hi, In spro path: Enterprise Structure>Definition>Logistics-General-->Define,copy,delete,check plant,I can't find our plants in Define Plant,however when I select check plant,I find them and nothing wrong with them. I also find these plants in the ta

  • No Mail box found

    HI I AM TRYING TO OPEN OUTLOOK IN OFFICE 365 BUT GET THE NESSAGE NO MAIL BOX FOUND. CAN YOU HELP WTH THIS.