GL account substitution

Can GL account be substituted at line item level, using T-code GGB1.
I mean the boolean statement doesnt gives the option to select GL account for substitution at 'Line item level', and even if we have added a user exit it is not working for us.
Any pointers would be helpful.
Best regards,

Hi,
The field BSEG-HKONT is a critical field and therefore is not released
for substituting in GB01 as it could cause serious inconsistencies
because other applications use it and you will produce database differences with
this substitution.
Please refer to the note 42615 which explains this.
If you must change the flag for BEXCLUDE in table GB01 for BSEG-HKONT
then this would be considered a modification to the SAP standard
and is not supported, any problems resulting in this would require
remote consulting assistance which is a chargeable service.
Regards
Ravinagh Boni
Rewards me if it useful

Similar Messages

  • G/L account substitution with invoice reverse

    Hello Gurus,
    We have posted an invoice which is replacing G/L account value with the help of substitution ( substitution name = 'FPD_FNL') in MR8M tcode in which we have used the user exit 'U408' with some fixed value say 'X' but when we are doing the reverse invoice in that case its not showing sustituted G/L account value.
    Can anyone help are we need to use the different user exit for reversing the invoice apart from 'U408'?
    In the code, user exit is triggering for invoice reverse but for that particular document type EBELN is coming blank and hence it wont enter in our code.
    BR
    Sumeet

    Hi,
    I doubt if above note can be used.
    Please see below description from the note i.e the fields which can be used for the substitutio.
    You can carry out a substitution for some fields. If invalid values are
    substituted in this case, you may receive the wrong function o
    r error messages in standard programs. However, these errors are not
    particularly critical. You can currently release the following fi
    elds for substitution:
    BSEG-FIPOS, BSEG-HBKID, BSEG-MSCHL, BSEG-MANSP, BSEG-MADAT, BSEG-MANST,
    BSEG-MABER, BSEG-RSTGR, BSEG-ZLSPR
    But we want to substitute HKONT ( G/L account ) for the same.
    BR
    Sumeet

  • Accounting substitution during MIRO

    Hello Experts,
    I need to define substitution during MIRO
    Process is :
    When material is received from foreign vendor, exchange rate used is as on the date of mat receipt. But the requirement is to valuate the inventory
    with exchange rate prevailing on invoice date (ex rate declaration date)
    Currently, system takes difference between invoice date's ex rate and mat receipt date's ex rate to exchange gain/loss.
    During MIRO such exchange gain/ loss is posted to, say, account 611400 account
    I need to define substitution rule wherein system posts such gain/loss to different GL account,say, 520430. So that exchange gain/loss on only such transaction is readily available for reporting requirement.
    How such substitution rule can be defined.
    Thanks in advance.
    Regards      

    Hi
    Please, see these notes
    SAP Note 116250 - MR08/MR8M:Cancellation+exchange rate diffrnces(KDM)
    SAP Note 165635 - Documentation: Enhancement LMR1M001 (MM-IV)
    SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment
    I hope this helps you
    Regards
    Eduardo

  • Account Substitution in FB60

    Hi All,
    I have a requirement in which I need to substituted the intercompany GL accounts proposed by the system with vendor/customer accounts when a user enters an intercompany vendor invoice via FB60.
    I have tried substitution at call point 2( line item level ) and 3( entire document ) but it has not worked. The problem I am facing is that substitution is called at a point where I no longer have the  visibility to header and different intercompany item level information as it is posted in FB60. what I have visibility to are several FI documents that would be posted in SAP <b>per company code</b> ( that too one document at a time) when the user hit the save button.
    In order to meet my requirement I need visibility to item and header level of FB60 at the same time so that correct customer/vendor accounts can be substituted.
    Has anyone faced such a situation before? Is substitution the right way to go in this situation or would any user exit/BAdI help ? Any help would be greatly appreciated.
    Thanks,
    Divya

    Hi Divya ,
    u can do anything either at header level modification or at item level modification using following code in Substitution User Exit either with call point 2 or call point 3.
    hope this may be useful
    field-symbols: <fs1> type any.
    field-symbols: <fs2> type any.
    data: begin of i_BSEG occurs 7.
            include structure BSEG.
    data: end of i_BSEG.
    data : begin of i_BKPF occurs 2.
            include structure BKPF.
    data : end of i_BKPF.
            assign ('(SAPMF05A)XBSEG[]') to <fs1>.
            i_BSEG[] = <fs1>.
            assign ('(SAPMF05A)XBKPF[]') to <fs2>.     
            i_BKPF[] = <fs2>.     
    ***********Now Start your Read/Modification using Loop on i_BSEG and i_BKPF
    loop at I_bkpf.
       header_comp = i_bkpf-bukrs
    Endloop.
    loop at i_BSEG
    where bschl = '50'.
    i_bseg-bschl = '31'.
    concatenate 'ICV' header_comp into bseg-hkont .
    modify i_BSEG
    endloop.
    ****************End of you Logic
       <fs1> = i_BSEG[].
       assign <fs1> to  ('(SAPMF05A)XBSEG[]') .
      <fs2> = i_BKPF[].
      assign <fs2> to  ('(SAPMF05A)XBKPF[]') .
    Regards
    Ajay

  • Order settlement - Account substitution

    Hi SAP community,
    We need to create an substitution rule for the account number at the moment of the order settlement.
    We have some maintenance orders and service orders that we need to do the account reclassification when we do the settlement to cost centers. Is it possible? How can I do it?
    Thanks,
    Daniel.

    dear friend,
    please look here:
    http://help.sap.com/saphelp_47x200/helpdata/EN/66/bc7ff843c211d182b30000e829fbfe/frameset.htm
    regards,

  • Financial accounting substitution

    Dear all:
    I have a requirement to replace assignment field / item text for all items in the FI document from the item line 1, which like:
    Before Save:
    Item 1 Assignment = "11"
    Item 2 Assignment = "22"
    Item 3 Assignment = "33"
    After Save:
    Item 1 Assignment = "11"
    Item 2 Assignmnet = "11"
    Item 3 Assignmnet = "11"
    I create an exit for the subsitution exit:
    Callup point 3, Complete document
    Field: Only exit
    During debug, I confirmed the data is replace correctly.
    But at the end the changes is not save.
    Item 2 = "22" and Item 3 = "33".

    I am using Substitution and it seem not working.
    Is there any other user exit I can use to modify the data before save?
    We are using FB01 and FB02 to enter and change the document.  The major problem is when user change the assignment and/or item text in line 1, they want the changes apply to all other items in the FI document.
    Also, if user manually change the assignment / item text in line 2 or so, they want the system replace them by line 1 as well.
    Thanks.

  • Material ledger activity rate revaluation account determination modification

    Scenario:
    SAP ECC 617
    Material ledger activated with activity rate revaluation (i.e. cost center over/under absorption posts to ML and not to production orders)
    Standard SAP setup has PRV transaction key used to post both multi-level price differences to inventory and to capture the offset to the cost center clearing entries (GBB-AUI) causing the values to get comingled in the same account
    Question:
    For reporting purposes I would like to determine a unique account for the activity rate revaluation entries.  There is no relevant general modifier available for transaction key PRV. Is it possible and practical to modify table T169A for a specific value string / field name combination that represents this material ledger transaction?  If so, what is the combination?  Or will this cause major issues with ML processing?
    I'm trying to find a creative way to fill this gap without account substitution.

    Hi Eric,
    This is an interesting one.
    Modifying value string might be an option but in my opinion is quite a serious "brain surgery" on the system :-).
    You may want to try another option.
    In SPRO -> Controlling -> General Controlling -> Organization -> Maintain Versions
    for version 0, Controlling Area Settings, Settings for Each Fiscal Year in tab Price Calculation there is field Revaluation.
    One of the options there is 'Own business transaction'. With this option posting to sending Cost Centre resulting from actual activity price revaluation will be posted with different Business Transaction (although same secondary cost element as original activity allocation).
    In reports you can separate postings based on Business transaction.
    It definitely works for Activity Update 1 (revaluation of production orders).
    I'm not sure if it works for Activity Udate 2 (no revaluation of production orders).
    Please let us know the results of your investigation.
    Regards,
    Szymon

  • Profit center substitution on goods issue posting

    Hi all,
    When creating a sales order we substitute the profit center based on a standard profit center accounting substitution rule. This works fine for the sales order, the outbound delivery document, and the billing document. However, when we execute the post goods issue, the accounting document picks up the profit center from the material master.
    In this case, we would like the accounting document to use the profit center from the logistical document (outbound delivery), not the material master.
    Does anyone know what we can do to make this happen?
    All helpful answers will be rewarded!
    Best regards,
    MV

    Hi,
    Please try checking the Substituion Rules in TCode GGB1. There you have to check with an ABAPer the substituion rules defined and as per your requirement, the necessary changes need to be done.
    Please check and let me know if it helps.
    Thanks,
    Prithwiraj.

  • New General Ledger - Real Time Integration CO-FI

    Running Real Time Integration with Account Substitution.
    Works well when using a constant for RCL_ICCF-ACCOUNT.
    Does not work when calling an exit to substitue a value for the same field.
    Any clue ? Thx.
    Edited by: Alvaro Tejada Galindo on Feb 26, 2008 2:06 PM

    Declaration of table RCL_ICCF has to be global and not ocal.

  • Derivation rules

    hi all,
    while making stock posting it asks for derivation rules not defined what should i do to continue my programming?
    regards
    bye

    Hi,
    To begin with, the system determines a profit center on the basis of the origin of the document and any special conditions. It does so by one of the following methods:
    - The system assigns the profit center dynamically, on the basis of certain characteristics in the document itself.
    - The system assigns the profit center indirectly, on the basis of certain characteristics in a preceding document.
    For further detailed information on profit center determination, please refer the link mentioned below:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/91/de886af65011d2b4d7006094b9b0a5/frameset.htm
    For detailed information on how the system determines the profit center for an MM goods movement, please refer the link below:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/91/de886af65011d2b4d7006094b9b0a5/frameset.htm
    Substitution rules: It is sometimes not clear to which profit centers data should be posted based on the individual characteristics. In that case, you can use substitution rules to assign your data more exactly to profit centers.
    In Profit Center Accounting, substitutions are especially useful for assigning sales orders. Consequently, you have the option of maintain substitutions for sales orders when you set up Profit Center Accounting in Customizing. Substitutions can also be used for determining the function area if you are using the cost-of-sales method of calculating profits. For more information, see Calculating Profits Using the Cost of Sales Approach.
    I hope it will help.
    If helpful, please assign points.
    Regards,
    Manju

  • Substitution for "Cost of sales Accounting" not working with cycle-trx KSC5

    Hello togehter,
    I have a problem that it seems that a created Substitution for "Cost of sales Accounting" is not executed in our System when running a cycle for Indirect Activity Allocation (Trx. KSC5).
    Now I want to debug the Indirect Activity Allocation but I don't know how those Substitution Steps are generated as code that I can set a breakpoint when executing the cycle with Trx KSC5.
    I want to try a trace when activating the substitution with transaction OBBZ but I'm not able to analyze in which Forms/Functions the Code is generated.
    I also saw some OSS Notes that there are problems with "Cost of Sales Accounting" but I don't know concretely what to do to solve that special problem.
    Kind regards
    Udo

    thanks for your answer.
    I added the filed FKBER in table VWTYGB01.
    Now I can select field "functional area" for CO Substitution.
    nevertheless substitution does not work and set functional area on Dummy FB 9990 for CO postings to CO-object without Functional area.
    Thats curious because I maintained exactly the same Substitution on an other SAP System (IDES Test System) and here it works.
    Any ideas?
    Are there further settigs required after maintenance of table VWTYGB01??
    Thanks in advance

  • Cost-of-sales accounting / DUMMY-substitution for CO posting w/o func. area

    Dear experts,
    we activated Cost-of-sales accounting (special ledger - no use of NewGL functionalities).
    We use the SAP "Standard substitition" in FI to make sure that all postings on P&L accounts go to special ledger. If no functional area can be derived, posting is assigend to Dummy functional area.
    So far so good.
    My question is: Is it possible to set up a "similar" substituition in case of CO postings with secondary cost element (e.g. Internal activity allocation, Overhead Rates) on other CO-object without functional area.
    e.g. Internal activity allocation from Cost center to production order. No functional area assigned to production order.
    I hope you unterstand my question for this issue.
    Thanks in advance for your reply.
    regards,
    Butch

    thanks for your answer.
    I added the filed FKBER in table VWTYGB01.
    Now I can select field "functional area" for CO Substitution.
    nevertheless substitution does not work and set functional area on Dummy FB 9990 for CO postings to CO-object without Functional area.
    Thats curious because I maintained exactly the same Substitution on an other SAP System (IDES Test System) and here it works.
    Any ideas?
    Are there further settigs required after maintenance of table VWTYGB01??
    Thanks in advance

  • Exit or substitution GL account when posting goods issue

    Hi out there,
    does anyone know how to change BSEG-HKONT via a subsitution ? It seems to be blocked for that purpose. Although if I unblock it in table GB01 this does not work.
    If there is no possibility does anyone know a customer exit to change the account determination for GBB VBR when posting a goods issue ? It is needed for special postings and I want to program it either in a substituiton or exit.
    Thanks a lot for your help.
    Sebastian

    Dear Sebastian,
    It is possiable to change G/L through subsitution. But you will have to take help from abaper who will write code for the subsitution.
    Any subsitution which is realted to G/L can be written though the following path
    Financial Accounting (New)->>Financial Accounting Global Settings (New)->>Tools->>Validation/Substitution->>Substitution in Accounting Documents
    after that enter new line and double clik to write ABAP code based on your requirement.
    Hope you got the way.
    Rupesh

  • Substitution of account(HKONT) when posting in MIGO/MIRO

    Issue: Need to change account(HKONT) when posting in MIGO/MIRO
    example:       HKONT(GL Account)       KTOSL(Transaction type)
                   1000000001              XX1
                   1000000002              XX2
                   1000000003              XX3
    If XX3 exist then replace hkont of XX1 to hkont of XX2
    expected result is:
                   1000000002              XX1
                   1000000002              XX2
                   1000000003              XX3
    Solution with problems:
    1. Used substitution GGB1>Financial Account>line item for field HKONT. My problem with this is, since the data is in line item. How can I get the replacement of my account(shown above sample). if BSEG structure only shows 1 line item. I tried using bool_data-bseg. but its empty. Im assuming bool_data is used when callup 003(complete document) is triggered.
    I used subtitution field G/L - Exit <UXXX>
    Any Ideas or solutions would be great!!

    if your Substituion exit is called then you can directly change the value of
    BSEG-HKONT there according to your requirement.

  • Substitution rule for gl account text field in line item.

    Hi
    We have intercompany postings made for a no.range of GL accounts ex: 1000-1999.When ever this accounts are getting posted ,i.e the accounting doc,need to make substitution such that what ever the description is given in the offsetting entry(ex: vendor 10000 - Material vendor ) for this GL in the accounting doc should come in the text field .
    I want the description of the vendor account to be inb the text field in the line item of the gl account.Is it possible thru substitution.If so how.
    Please advise.

    Thanks for all your replies.
    I Want the field BSEG- KOBEZ i.e description field in the accounting doc of the offsetting entry to be replaced in the GL account  text field.
    Ex :
    PK    Account        Description                  Amount           Text
    31    100000         Furniture  Vendor             50             Sales
    40    1999             Inter Compy                     50             Furniture Vendor
    I want the description of offsetting entry vendor description i.e Furniture vendor (field BSEG-KOBEZ) to be replaced in GL line item text BSEG-SGTXT.
    I cant find the field BSEG- KOBEZ while i search in the substituion to replace in Text field.
    How do i write in substitution to say that the offsetting entry description should be in text field of GL account.

Maybe you are looking for