GL account number based on plant number

Dear All,
Please let me know how can we find the GL Account assigned for a plant.
I fetch some data(say A) based on WERKS(plant 101) in ITAB1 and some data(say B) based on GL account number( 0001130101   Estoque Loja Matriz).
A = 100
B = 200
Now , i need to add A and B comparing WERKS and GL account number.
Is there any way i can relate these two fields ??
I can explain it clearly if i am not clear .
Thanks in Advance
SSK

Hello,
To make all things clear. The issue regards regular sale process in ERP, I mean we have sale order, delivery and invoice. There are two financial documents related to it. One of them is a reference to sale invoice and the other one to goods issue material document. In case first of those documents the case is easy, proper financial accounts for posting can be done by settings account numbers in transaction VKOA (Assign G/L account) where among the others I can set account based on customer number. The same thing I need to for my financial document related to MM document. I know I can achieve it by setting additional movement type and assigning to it account number using OBYC general modifications and so on. The point is that I donu2019t like this idea. As a result Iu2019ll get a bunch of movement types created only for FI purposes but I have no slightest idea how to do it any other way.
Iu2019ll be grateful help and advice.
Regards
Pawel Kobylinski

Similar Messages

  • Finding Accounts/Customers/Vendors based on Legacy Account Number

    Hi Guru's,
    Is there an easy way to get the SAP Account number based on account number provided from the legacy system?
    Appreciate your help.
    Regards,
    Ved

    Hello Vedratna,
    It is much easier to find the SAP account number based on account number provided by leagacy data but for this in the background you need to know the data structuring rule which was followed during the data transfer from legacy to SAP system.
    The data to be transferred to the SAP system is prepared in a sequential file. A file may only contain data that can be processed with the same transfer program. This means that a file may not contain data for different master records, for example, customers and vendors, since there are separate transfer programs for these records. The program creates batch input sessions from this file.
    For every file, there are three types of structures:
    Session header record
    This structure contains data that applies to a session that is to be created. Here you enter information such as a batch input session name, the client key, and a user name. By entering a lock date, you can set a latest date for the session to be processed by.
    Header data
    These structures contain data that applies to one transaction only. Here you specify the data that you must enter on the initial screen when manually selecting the transaction. Among other items, this includes the transaction code and key fields, for example, Account group, Company code key, Account number, Purchasing organization, or Division.
    Subsequent data
    These structures contain data from the master records. This includes, for example, the address data for your customers/vendors, the company code data, or the sales area data.
    The different structures are indicated by record types. For subsequent data, you have to specify the structure name in addition to the record type.
    Hope I had been able to help you. Please assign points.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    The other way could be to take a dump of customer master(general data) KNA1 in one excel file and also take the dump of legacy data. then use the Vlook up in excel. But for this to happen there must be some link between the two sets of the data like in search term u could have used the legacy number of customers or their leagcy name or any link.
    Hope I had been able to help you. Please assign points.
    Rgds
    Manish

  • Billing document number based on plant

    Hi friends, I have new requirement from customer
    Billing document number should be based on plant
    Ex: Range start from 900000 u2013 for plant ABC1
          Range start from 800000 u2013 for plant  ABC2
    How to achive this
    regards
    Satish

    Create a zee table say ZV_NUMRANGE for the combination of plant, billing type & number range object.  There maintain some objects according to plant and save.
    Next go to VN01 and maintain number ranges according to requirement and save.
    Finally apply USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ) and trigger the above table as and when VF01 or VF04 is executed.
    thanks
    G. Lakshmipathi

  • Number range based on plant

    Hi All,
    I have requirement, cliant wants number range based on plant, for example
    we have three plants under 1 company code AXXX,BXXX,CXXX the requirment is when we create a PO the PO number should start with Aor B or C starting letter of the plant.
    we know that we can use differnet document type but here we want to use only one document type I.e NB document type.
    Please let me know steps to do this,
    Thanks in advance.
    Thanks&Regards,
    Chand

    Hi
    It is posibel to create number ranges per plant
    But my suggestion you have only three plant then create differnt doc type for plant,there are many report depend on plant,and we can use differnt plant in po also so it will effect
    chek following link
    [Purchase order number ranges plant wise;
    Regards
    Kailas ugale

  • How to control Bank Account Number Length based on different countries?

    Using eBs 11.5.10
    We noticed that the bank account number when updated in under a bank within Austria pads extra zeroes in the beginning to ensure length is always 11. However, this padding of zeroes does not occur in a bank within United Kingdom.
    This leads to believe, there is some possible configurable setup that controls this validation. Please advise, where this setup is and if its configurable.
    Thanks.

    Hi Mahesh,
    If it is 19 for china then check with sap service market place or any sap notes available, otherwise you need to change the length and also you need to analyse the impact of changes in the system.

  • Using delivery type lfart from likp to write out the GL Account Number

    Hi Guys,
    I am writing a report for the bill of lading. Now I have to take in the GL Account Number from the user at input which can be either say 852342 or 853243 for two types of shipments 1. Plant to customer or 2. Intercompany. Now I have been asked to use LFART (NL - Replenishment Goods) field from LIKP to decide after taking in the user input for the GL Account Number what kind of shipment it is and write the GL account number in the report. Can somebody explain how to do it. I can't make out how one type of delivery can decide which kind of shipment it is based on the GL Account Number entered by the user on a selection screen? Can somebody give me some code or example?
    Please help.
    Thanks in advance.
    AM

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

  • 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

  • Length of G/L account number

    Hi.
    I have a question, i hope someone can help me..!!!
    I just create a new chart of account with "Length of G/L account number = 2", then i define an account group = 1000 to 1999
    Group name = Assets. And finally I create a G/L account = 1010 with the tx FSP0
    So my question is, why I can create that account (1010) in my new chart of account if I put "Length of G/L account number = 2"..???
    I think that SAP  has to show me an error message.
    Thanks..!!

    GL account lenght control is based on the number range maintained in OBD4 .
    OB13 provides room for how you want to view the GL account , for eg. it your lenght is 6 , you have created a GL say 3445 then system will show it as 003445 .
    System adds up preceeding zeros in case of numeric accounts and following zeros in alphanumberic accounts.
    Regards ,
    Dewang

  • Change GL account number in PO

    Hello Friends,
    I have tried to change GL account number in PO throug executing a program(BAPI). I am getting error message "Releases already effected are liable to be reset". What could be the reason for this?
    Please help me in resolving this issue.
    Thanks,
    Ram

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

  • 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

  • Offsetting account number field

    Hello,
    I have account based COPA. When I post a billing document I have a profit segment for account 704000 postings because account 704000 has profit segment mandatory in its field status, but there is another account in the accounting document that shouldn't have profit segment and has it.
    We have noticed that the second account is related to 704000 account through the field "offsetting account number"
    It is possible that the system post the second account to PA because of this relation?
    Thank you very much
    Regards

    Hi,
    Offsetting entries wil not post until you specify in automatic account determination i.e OKB9, Here you select rpofitability segment, then it will able to post in profitability segment.
    regards,
    sreekanth

  • Financial Statement and Alternative Account Number (China)

    Hi all,
    I have created a nice financial statement based on "normal" GL account number, and through this I can have a nice formatted balance sheet and profit and loss account.
    For china, I need the financial statement with the alternative account number displayed.  For example: My normal GL Account is 181000, and alternative account number is 10010101 .
    During running the F.01 - Balance sheet, I check the options of "alternative account number" under the tab of special evaluations, but the output of the balance sheet and profit and loss does not give me a nice format.
    All of the accounts are displayed under section Account not assigned (This is because alternative account number is 10010101 is not assigned to the financial statement version).
    Could anyone advise how to overcome this problem?
    Thanks.

    Ok ...
    I half way solve my problem with the following reference:
    http://sap.ittoolbox.com/groups/technical-functional/sap-acct/country-specific-coa-1453275
    There is another issue of my Financial statement:
    The following is my scenario:
    I have Operational Chart Of Account, OCA1, and GL's are as followings:
    GL1000 linked with alternative GL account (GL9001 - Chart of account - ACA1)
    GL2000 linked with alternative GL account (GL9002 - Chart of account - ACA1)
    GL3000 linked with alternative GL account (GL9003 - Chart of account - ACA1)
    GL4000 No link to any alternative GL (because does not use or need this)
    My Financial statement version is FSV9, made up (must be, based on my testing) using GL Account (which are GL9001 and GL9002) and chart of account is ACA1.
    During the financial statement F.01, the GL4000 ends up with the following message at the bottom of the financial statement: <b>No alternative acct no.maintained for G/L acct 4000 in co.code ....</b>
    Note: GL4000 does not have any balances.
    Note: If GL4000 has balances, it is displayed under un-assigned section, and the value does not affect the profit and loss od the statement.
    Question: How can I solve the issue:
    1) Do not display the GL4000, which does not have alternative GL account.

  • 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

Maybe you are looking for

  • Security Error: Content at about:blank may not load or link to chrome://browser/content/browser.xul.

    I CANNOT ACCESS ANY OF MY NORMAL PROGRAMS AND WHEN FIREFOX IS CLICKED ON, IT GIVES ME A BLANK SCREEN AND THIS MESSAGE POPS UP. I CAN'T EVEN GO INTO MY CONTROL PANEL TO REMOVE IT AND THEN REINSTALL.

  • Automatic output of method parameters

    Hi, Sometimes I find myself System.out'ing all parameters of a method. Is there a one-step way to do this? A one-liner that will output all method parameters (using reflection I guess) of the method the code is running in. for e.g public Car makeCar(

  • How set Url path in include .css or .js

    Dear Pakar i have .css with content below #pageWrapper {      /*background: #5b93cc;*/      background:#999999;      background-image:url(/image/background.jpg); how to set url directory in apex style directory ? Thanks Imansyah

  • Constant Error Messages

    One of my friends is on his 2nd iPhone, both had the same problem. They both have the screen filled with text on startup, and when you plug the iPhone into iTunes, it says that it's in recovery mode and has to be restored. When restored, it has the s

  • Can not view alerts at Database Control Page

    Dear Gurus, I have upgraded database from 9i (9.2.0.7) to 10g (10.2.0.4) but I am unable to view alert on Database Control home page although STATISTICS_LEVEL parameter is set to TYPICAL any idea what should I do in this regard, thanks asif