Substituting G/L account

Hello, i need to replace the G/L account for indirect costs when creating the invoice. The default account for indirect costs is defined in OBYC, say acct XXXXXXXX. Based on PO type, accounts AAAAAAAA or BBBBBBBB must be charged.
I've used the substitution functionality (transaction OBBH)
The condition is:
IF sy-tcode = 'MIRO' and BSEG-KTOSL = 'UPF'.
For the substitution :
G/L account substituted by ZUPF.
In the program ZRGGBS000, i've created a form ZUPF.
FORM ZUPF.
BSEG-HKONT = 'AAAAAAAA'
ENDFORM.
However, it is not making any changes to my accounting document when i created the invoice.
The a/c defined in OBYC is still used.
Can anyone  help on this.thx

Hi,
maybe you have to save as complete/post the document.
If you hold/park the document you don´t have an FI document yet (that is an entry in BKPF/BSEG).
Best regards.
Edited by: Pablo Casamayor on Nov 2, 2009 10:33 AM

Similar Messages

  • Substitute G/L Account when posting Accounting Document

    Hello Everyone,
    I am an ABAP consultant.
    I want to know if there is any way to substitute a G/L account which is already determined by the system.
    When we post MIRO, when there is a price variance with GR, then a material price variance account will be determined and the variance gets posted to the material price variance account. Something like below.
    Credit  Vendor Account
    Debit   GR/IR  Clearing Account
    Debit   Material Price Variance Account
    I want to replace the Material Price Variance Account for certain scenario.
    I tried with
    1. BADI AC_DOCUMENT - But G/L account cannot be replaced with this
    2. BTE - Able to change the G/L account, but it gives error "Internal error: Entry in COKA-Buffer not found". I found a SAP note for this. It seems G/L account and Fiscal year data gets transferred to COKA buffer and if there are any changes it does not allow to proceed.
    I also found enhancement spots where i can make changes, but i want to know if this can be achieved in a standard way (Either Exits, BADI or FI Substitutions)
    Regards
    Rajvansh

    Hi:
       Why don't you change your MM config , it would be better to have this defaulted by MM account determination. but if you still want to do this, then you can try MM exit that instead of changing the account, reduce the amount to zero in the "wrong" account, and insert a line with the "right" account.
    Substitution GBB1 might not work here which can also induce MM/FI consistency issues. Hence find an MM exit and refer to the BADI's in note 1156325.
    I hope it will help you.
    Regards

  • Apple id - delete on iphone and substitute another existing account

    I have multiple apple id's. the one on the iphone goes to a me.com email and to a non functioning e-mail address and one of thesecurity questions is wrong in apples records
    I want to delete the me id and replace it with my other account.
    Help
    jim

    Settings > Store > tap ID > sign out > sign in with new ID.

  • Reconciliation account  defaluted automatically in Customer master XD01

    HI
    When we are trying to create customer master in XD01/FD01, the reconciliation account is automatically showing 155230, and when we tried to change to our reconciliation account even after saving customer master, it is again going default to 155230. I am using ECC 6.0. Please help us how can we solve this problem.
    Thanks
    Balu

    Hi Balu,
    Please check any enhancement has been written to substitute the reconciliation account.  Please check with abaper.
    Regards,
    Ramana

  • Multiple substitution for a GL account

    Hi all,
    The requirement is to substitute a GL account with two different GL accounts, there by when settelment happens through CJ88 it shud affect to these new accounts. We are trying to do using substitutions. Can anyone guide me how to do (multiple substitutions) using this? or any other suitable way for this...?
    Its urgent..Plz help.
    Thanks,
    Balaji

    Hi,
    I thought so, when i have created a new validation and try to assign to the company code in GGB4 it says object already exist as the company code got one validatation assigned to it.
    When i am trying to assign my new validation it is not getting assigned.
    Can you please help me.
    Thanks

  • Substitution of GL account during MIRO?

    Hi,
    Is it possible to substitute an gl account during posting to FI with the MIRO transaction?
    If so, what are the steps?
    Thank you very much,
    Eric van Zundert

    Hi,
    You only can change the G/L account number when MIRO, which the PO was generated with account assignment category! For example, the PO with account assignment category -- K Cost center, when you do MIRO, you can go to item line's column "G/L account No.", change the G/L No. to the substitute one; or find one column with name account assignment, then click the button, you can change the G/L account No. as well.
    Regards
    Z.T

  • Substitute Customer number on PCA doc

    Hi All,
    We have a requirement to populate Customer# on the Profit Center document which is not happening through standard program (for rebate processing). We are using 4.7 and PCA module.
    We are using a FI substitution calling user exit. What we intend to do is substitute customer# on Accounting doc (Assignment field of BSEG) and also substitute Customer# on GLPCA-KUNNR field (Customer field) of PCA document.
    We have written the user exit and it is working fine up to substitution on BSEG field on Accounting doc. However the customer# is NOT getting populated on PCA document.
    Anyone has any ideas on how to accomplish this?
    thanx

    we developed a z program to populate customer # in GLPCA table.
    thanx

  • Account determination for COGS account by customer

    Dear gurus
    I’d like to get advice about account determination for COGS account.
    I have requirement to determine COGS account based on “Customer”.
    If the customer is outside the group, we want to charge to
    “Sales: Third-party” and “COGS: Third-party” accounts.
    And if the customer is in the group, we want to charge to
    “Sales: Intercompan” and “COGS: Intercompany” account.
    However, since COGS account is determined from Valuation class in
    Material master (OBYC), it cannot be determined from “Customer”.
    (Because same material can be sold to third-party and intercompany too)
    Do you know any solution for it?
    Yoshi

    Hi
    The only other way I could think of is to do an enhancement at the time of delivery to read the customer and substitute the GL Account for COGS based on Customer recon Account.
    The sales can easily be seggregated based on Customer Account Assignment Group in the customer Sales Area. Assuming the material account assignment group is 01 and customer account assignment group are as under:
    External Customer 01
    Group Customer    03
    Now in VKOA you can seggregate the revenue account determination for Group and external customer based on different customer account assignment group.
    The only issue is for COGS GL for which you might want to look at Enhancement or Split Valuation that I talked about earlier.
    Thanks & Regards
    Sanil Bhandari

  • OBYC account determination

    Hi Experts,
    Please help me in mapping the following customer requirement in SAP.
    The customer is a having specific valuation class of materials that they want a separate account determination for.
    The account determination they want is for the DIF key in transaction OBYC.
    They want to Different accounts to be picked up per valuation class in this DIF key.
    But sap has not provided the rule for the DIF key to segregate by valuation class.
    SO one alternative would be to substitute the account number while doing the posting, but sap will not allow us to substitute the gl account number as it is not in the substutable fields in the ggb1 transaction.
    For this substitution we also tries to remove the check box in the GB01 table as per the note 42615. But that has some side effects that we cant get by with.
    We also tried using a user exit in substitution but that didn't work out well because of some function module being called.
    So please suggest me a way out or a working solution for this...

    Closing as the requirement is met using condition types...

  • FI-GL: Question regarding "alternative account no." - Why in BSEG?

    Hi all,
    I have another question. I think this is really a little bit tricky this time (I spend a lot of time investigating this question but couldn't find an answer).
    It's regarding the field "alternative account no." in FS00 (table SKB1-ALTKT) and it's about the design of the SAP system regarding this feature (alternative chart of account).
    We've one company code (Belgium) in the system which uses alternative account numbers for a country specific local chart of accounts. The country specific chart of accounts BE01 is assigned to this company code in OBY6 besides the operative chart of accounts. The company code is in production for some years so there are many postings up to now. So far so good. Now, they have found an error in the assignment from alternative account to operative account. As a result, they want us to evaluate the option to change the alternative account number for this account in the transaction FS00.
    For sure, it's not possible to change the alternative account no. in FS00 as long as there is a balance on this account. But if you post this balance to a temporary / technical account, it's possible to change the alternative account no. If you do this, SAP will give you the message FH 165 which is a warning and not a error message (so you can save the changes). After that, it's possible to create an inverse posting in order to get the balance back to this account.
    Now to the strange part (for me): Why does SAP record this alternative account no. for each document line item in the BSEG table in the field BSEG-LOKKT? This is also what the message FH 165 is about. For me, this does not really make sense, but I'm sure that I miss a detail somewhere.
    I mean, you know for example that the alternative account A belongs to the operative account B (via FS00 / SKB1-ALTKT). Therefore, why do you need to write this account to every single line item in BSEG? Why doesn't SAP just substitute the operative account no. with the alternative account no. in all relevant reports (RFBILA00, balance display S_ALR_87012277...).
    The background of my question is now: If I zero out the balance and change the alternative account number in FS00, then all postings up to now won't be changed automatically. So for all postings up to now, the old alternative account no. remains in the BSEG table. For all new postings, the new alternative account no will be in the BSEG table. So from my understanding, there will be an inconsistency in the database if I change the alternative account no.
    In order to evaluate whether I can change the alternative account no. without risking inconsistencies, I would now need to know how this field (BSEG-LOKKT) is used in the SAP system. Is it used in any special reports or for what purpose is it in the BSEG table? What about the balance table GLT0? Is there also a special balance table for the alternative account no. in the system or how are the balances (e.g. for RFBILA00) calculated for the alternative chart of accounts?
    I would be very glad for any help as I am really at the end with my SAP knowledge on this point.
    Thank you in advance and sorry for the long (and maybe confusing?) posting.
    Regards,
    Peter

    hi Peter,
    I believe the system is perfectly designed in this case
    Let's say you have G/L account A in Operative CoA, which is linked to account 1 in Alternative CoA. Than the local law changes and you have to link account A to account 2 from 01.01.2008. The system works perfectly: All the items which were posted earlier are still shown on Alternative account 1 (according to local law for last year), while the new items will be shown on account 2 (according to local law for the new year).
    BSEG-LOKKT is only used for reporting, does not control anything. On the other hand there won't be any inconsistency in your system, if you change the alternative account number acc. to business needs.
    hope this helps
    ec

  • HT203998 If I login from one account and logout from them

    If I login from one account and logout from them, I can not see the user which I made hidden using the above commands, but when I restart my mac I can see that hidden user on login screen, please help, I don't want to see the hidden user even after restart.

    Hi uddipatel,
    Welcome to the Support Communities!  Here is how you hide a user account in the login window on your Mac:
    How to hide a user account in OS X - Apple Support
    http://support.apple.com/en-us/HT203998
    Hide a user account in OS X Yosemite
    You can prevent a user account from appearing in the login window in OS X Yosemite by using these steps:.
    1. Log in as an admin user.
    2. Use this Terminal command, substituting the short account name name of the user you wish to hide for “hiddenuser”:
    sudo dscl . create /Users/hiddenuser IsHidden 1
    If you later want to show the hidden user, set the user’s IsHidden attribute to 0 like this:
    sudo dscl . create /Users/hiddenuser IsHidden 0
    You can optionally delete the IsHidden attribute instead of setting it to 0.
    Additional Options
    You can also move the hidden user's home directory to a place not visible from the Finder, and remove the hidden user's Public Folder share point.
    The following command moves the home directory of "hiddenuser" to /var, a hidden directory:
    sudo mv /Users/hiddenuser /var/hiddenuser
    The following command updates the user record of "hiddenuser" with the new home directory path in /var:
    sudo dscl . -create /Users/hiddenuser NFSHomeDirectory /var/hiddenuser
    The following command removes the Public Folder share point for the user with the long name "Hidden User”:
    sudo dscl . -delete "/SharePoints/Hidden User's Public Folder"
    Hide a user account in earlier versions of OS X
    There are three ways you can hide a user in versions of OS X earlier than Yosemite.
    Set the Login window to display name and password fields
    In the Users & Groups preferences pane (Accounts pane in Mac OS X v10.6 and earlier), click Login Options, then select "Display login window as: Name and password".
    With this enabled, no user accounts are listed in the Login window.
    If changing the Login Window to only display the name and password fields does not meet your needs, then you can use the following steps in this article to hide a user account.
    Add users to the HiddenUsersList (advanced)
    With Mac OS X v10.4 and later you can hide users from the Login window by adding them to the HiddenUsersList array in the /Library/Preferences/com.apple.loginwindow.plist file. The following command will hide the users "mei" and "anne" from the Login window:
    sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add mei anne
    Note: These users will still appear in the Accounts (Mac OS X v10.6 and earlier) or Users & Groups (OS X Lion) pane in System Preferences.
    Lower the user's UID and enable the Hide500Users option (advanced)
    You can use the advanced steps below to change a user's UID, adjust their home directory permissions and enable the Hide500Users option. An example user account "tom" is used below.
    The following sample Terminal command changes the user tom's UID to 401. Note: Check to make sure the new UID is not in use before making this change.
    sudo dscl . -create /Users/tom UniqueID 401
    This command adjusts the permissions of the user's home directory:
    sudo chown -R tom /Users/tom/
    Enable the Hide500Users option with this command:
    sudo defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool YES
    Last Modified: Dec 8, 2014
    All the best,
    - Judy

  • JDBC & MS Access

    The following code is from "Java 2 for Dummies":
    import java.sql.*;
    public class CreateTable
    public static void main(String args [])
    throws SQLException, ClassNotFoundException
    Connection connection;
         Statement statement;
         Class.forName
    ("sun.jdbc.odbc.JdbcOdbcDriver");
         connection = DriverManager.getConnection
    ("jdbc:odbc:AccountDatabase");
         statement = connection.createStatement();
         statement.executeUpdate(
         "create table ACCOUNTS " +
         " (NAME VARCHAR(32) NOT NULL PRIMARY KEY, " +
         " ADDRESS VARCHAR(32), " +
    " BALANCE FLOAT) ");
         statement.executeUpdate
         "insert into ACCOUNTS values " +
         "('Barry Burd','222 Cyberspace Lane', 24.02) "
         statement.executeUpdate
         "insert into ACCOUNTS values " +
    "('Jane Public','111 Consumer Street',55.63)"
    statement.close();
    connection.close();
    The code compiles with no errors but I get the following message when executing the code:
    C:\testbed>java CreateTable
    Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC Microsoft Acc
    ess 97 Driver] Syntax error in CREATE TABLE statement.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
    at CreateTable.main(CreateTable.java:18)
    =============================================
    I use the following steps to create the data source:
    1. In Win 98 I choose Start....Settings....Control Panel
    2. Double-click Data Sources (ODBC).
    3. In the ODBC Data Source Administrator, select DSN tab
    4. Then Add
    5. In Create New Data Source, select Microsoft Access Driver
    6. Click Finish.
    7. Type AccountDatabase in Data Source Name field.
    8. Type anything in Description field.
    9. Click the Create button.
    10. Browse directory where I want your database file to be created and
    type AccountFile the Database Name field.
    11. Click OK.
    Any clues, why I get the error message?
    Thanks,
    George

    Thanks,
    Based on what you told me, I did some
    research into Access 97 and
    its implementation of the
    SQL "CREATE TABLE" statement.
    I substituted
    "create table ACCOUNTS
    (NAME VARCHAR(32) NOT NULL CONSTRAINT
    MyFieldConstraint PRIMARY KEY,
    ADDRESS VARCHAR(32), BALANCE FLOAT)"
    for
    "create table ACCOUNTS
    (NAME VARCHAR(32) NOT NULL PRIMARY KEY,
    ADDRESS VARCHAR(32), BALANCE FLOAT)"
    Now it works. It seems I needed to include
    the CONSTRAINT command. I don't know why
    but I'll have to further research. I
    guess it worked for you, njrajesh, because your later
    version of Access implements SQL such that
    it accepts the original "create table."
    Thanks, njrajesh and DrClap, very much for your help.
    George

  • AFAB transaction SAP 4.6 x ECC6

    Hello everybody
    In SAP 4.6 we have a substitution rule for AFAB transaction. It works well. Now, we are in Upgrade to ECC6.
    In SAP 4.6, the AFAB generates a RABUSCH folder to be execute in SM35. These rules were executed this moment.
    ( ( SYST-TCODE = 'ABF1' ) AND ( BKPF-BLART = 'AF' )
    AND (  BSEG-HKONT = '0423013001' ) AND ( (
    BSEG-KOSTL = 'ACI' ) OR ...
    many others KOSTL
    In ECC6, there in no more RABUSCH folder and the accountin is using a new TCODE: AFAB. So, my rules in ECC6 are:
    ( ( SYST-TCODE = 'AFAB' ) AND ( BKPF-BLART = 'AF' )
    AND (  BSEG-HKONT = '0423013001' ) AND ( (
    BSEG-KOSTL = 'ACI' ) OR ...
    Substitution rules: change 0423013001 to 0513013001in BSEG-HKONT to some KOSTL.
    But it doesn´t works anyway in ECC6!!!
    I saw the debbuguing session and the substitution rules are OK (the accountins are changed in real time), but after this point something happening not happened (not chaged to correct accounting when I go to end of DBG)...
    Please, help me with something. Does anyone knows this process? There are another TCODE?
    OBS.: Rules are active in GGB4 and I run the program RGUGBR00
    Thanks in Advanced...

    Hi~
    Thanks for your attention.  I tried to substituted the cost accounts of depreciation according to the category of cost center, such as category  L(management), F(production) which would use a different account when doing AFAB.
    I used the standand user exits under OBBH, and it didn't work. In DBG mode, it showed account can be replace, but nothing happened in the real run.
    I had double checked the following, and the account can be replaced if I do the same thing in FB01.  (not in AFAB)
       IF bseg-hkont EQ '0066009999'and bseg-kostl <> ''.
        SELECT SINGLE * FROM csks WHERE kostl = bseg-kostl.
        IF sy-subrc = 0.
          if csks-kosar = 'L'.
            P_hkont = '0066020201'.
          elseIF csks-kosar = 'V'.
            P_hkont = '0066010201'.
          elseif csks-kosar = 'E'.
            P_hkont = '0066020801'.
          elseif csks-kosar = 'F'.
            P_hkont = '0051010201'.
          ENDIF.
        ENDIF.
      ENDIF.
    I just wondering why it works under DBG mode, and never work in real run?
    Can you kindly help me to solve this. Thanks in advance.
    Sincerely
    Locke.Zhang

  • Changing Permissions

    I cannot update my iPod Touch applications, or download content from the iTunes store because this notice appears.
    "You don't have write access for your iTunes media folder or a folder within it. Change permissions (in the Finder) and then choose Store > Check For Available Downloads."
    I appreciate it if someone can tell me what to do. Thank you.

    The contents of the /Home/Music/iTunes/ folder should all be:
    Owner=you with r/w privileges
    Group=admin with r/w privileges
    Everyone with r/o privileges
    Check the items in your iTunes folder as well as the iTunes folder itself to be sure they have the above privileges. In particular check the Mobile Applications folder since that is the one associated with Touch apps. To check select an item and Press COMMAND-I to open the Get Info window. The info you want is displayed in the Ownership and Sharing pane at the bottom.
    Or you can make a wholesale change to the entire structure as follows:
    Open the Terminal application in your Utilities folder and enter the following at the command line prompt:
    sudo chown -R yourusername:admin
    Put a space immediately after "admin" and then drag the /Home/Music/iTunes/ folder into the Terminal window. Press RETURN. You will be asked to enter your admin password which will not be echoed. Substitute your actual account username for "yourusername." The punctuation between "yourusername" and "admin" is a colon. The command line is case sensitive. You can also copy the above command line and paste it at the prompt.

  • Plant on WE doc type

    Hi gurus please help me with the below issue
    Let me explain in detail
    we create  2 Purchase orders. during intracompany stock transfer- STO.
    1st PO
    We have a delivery of goods from one plant to another with a PO from receiving plant to supplying plant.
    And this part is woring fine.
    2nd PO
    For the transporation of the material, SAP creates another PO for freight. And SAP is automatically posting goods receipt on this freight PO. When this posts, a "WE" doc type entry(on the freight PO) is created and when I look into the FI doc for this receipt, I see that there is a plant coming from PO on the credited line item and we are OK with this... BUT on the debit line item on this document, the plant is being populated, and I dont know where it is coming from and I want to know the configuration of populating the plant information on the goods receipt FI doc.
    please advise.
    Thanks for your time
    MSJ

    Hi
    There may be a substitution active whcih is determining the Plant and substituting in the accounting documents, Please take help of abaper in checking the same.
    Thanks & Regards
    Kishore

Maybe you are looking for

  • Non-english character display as square box

    Hi all, I'm not very sure if this question should be asked here or in the JRE board, thus I'm trying here also I have been trying an opensourced application called Alliancep2p (could be obtained from www.alliancep2p.com) using JRE 1.6 on an English W

  • Upgrade 46C to ECC 6.0 with CU&UC

    hi, For the CU&UC, do i need first to upgrade to web as 6.20 and the upgrade to ECC 6.0. If somebody know what to do? thaks, Sergio

  • SCSM 2012 -

    In SQL Report Builder I have put in the Problem.dom so I can see all of the below fields, see also the screen shot. How can I amend this code so that I can see everything listed in the Problem.dim as below but also the UserDim?  I need this as i want

  • I am stuck again, really tried hard, to no avail

    Dear applescript genius, I have had help, came a long way, but got stuck again. I am still facing a lot of problems, but this one is now top 1 prio for me. I am trying to automate creating a new event in facebook. When you click Create Event on your

  • Standalone Java client - Dynamic SAML is it possible

    Hi, We have the following working web service client using (Java 1.6). Can this be done using axis2 1.3, Java 1.4 stack? I have tried without success. Any help is appreciated. Thank you, package gov.fda.ora.marcs; import java.security.cert.X509Certif