Substitution Rule - OBBH

Gurus,
I wrote a substitution rule for a BA - ZY
if it finds a vendor xxx and plant xx and GLxxxxxx. For some reason the when an invoice is generated, the FI document is posting to BA - AB instead of ZY.  
Also, the FI document doesn't have the plant.  Is this why it's posting to a different BA?  How can I fix this?

Hi Sri,
You can activate the trace function (In OBBH>Extras>Activate Trace) for the substitution rule and try posting the the FI document. The trace will take you to the applicable substitution rules, there you can check if the pre-requisite condition is read as true or false.
You can de-activate the trace once you are through with your testing.
Hope this helps.
-Pradeep

Similar Messages

  • Substitution Rule not working for invoice receipt

    Hi All,
    I have written a Substitution rule using OBBH T.code for Call point "2" - Line item, The rule details are as below
    For Account "GR/IR Account" And "Business Area=XXXX" Substitute "Profit Center = YYYY"
    When I do Goods Receipt the my substitution is working, it is replacing the existing cost center to "YYYY", but when i do Invoice Receipt the profit center is being derived from the account assignment of the WBS element.
    I tried writing a derivation rule 3KEI and it didn't work either,
    How can i make my above substitution to work on both (GR and IR) accounting documents.
    Any help is greatly appreciated.
    Thanks
    Shasha

    Hello,
    Perhaps your prerequisite need to contain other BKPF values like, company code, t-code, etc (if any).
    Also please run program RGUGBR00 in SE38 to activate programs.
    hope this helps
    Regards
    Ajith

  • FI substitution rule for Business area  on New GL view(FAGLFLEXA)

    Hi Gurus,
    Need a your expertise guidance.
    We have a requirement to substitute u2018Business areau2019 field on GL view(table u2013 FAGLFLEXA) for all FI postings.. I am trying to achieve this by OBBH substitution rule using user exit, Is this possible anyway??
    I have already worked with my developer, but he is not getting any clue to write a logic in the user exits available in OBBH.. can anyone please guide us..
    Actual requirement is to update u2018Business areau2019 field on all FI postings at new GL view for some of the company codes (not all), I am not sure if we can achieve it by activating document splitting by business area field.. we have document splitting active already by profit center and segmentu2026
    Please guide me..
    Many thanks in advance..
    Prasad

    HI pampana,
    If you add the Business area is document splitting char's  with Mandatory check box
    then reach and very line will update the business area value in Doc splitting.
    But you allready have profit center as a doc splitting char's
    If you want to Business area is new doc splitting char's then you need
    go for NewGL migration.
    Please refer the NewGL migration scenario 6, 7 for your case.
    please check the link
    http://wiki.sdn.sap.com/wiki/x/JghNCw    (NewGL Migration Secnarios)
    Regards
    Madhu M

  • FI Substitution rule on completed document

    Hi Everyone,
    We're trying to create a substitution rule to change the payment terms on our invoices (fields BSEG-ZTERM and BSEG-ZBD1T).  We're having trouble with our prerequisite:  If any of the expense distributions are being charged against a federal grant (BSEG-GRANT_NBR) then call the substitution rule.   We want our exit to loop through all distribution lines and if it finds any being charged to a grant it should set the condition to true and substitute...if it doesn't find any it should be set to false. 
    We've done all of the necessary steps:
    -Activated the fields on GB01
    -Defined the substitution rules on OBBH
    -Build and compiled the user exit.
    Problem we're having is that when there are multiple lines it only seems to be reading the last line item to make the determination.
    Example 1:
    Line 1 Grant
    Line 2 No Grant
    Result is that payment terms are not substituted.  It should be substituted because line 1 hit a grant.
    Example 2:
    Line 1 No Grant
    Line 2 Grant
    Result is that payment terms are substituted correctly. 
    My ABAPer says that the problem seems to be that on the completed document he can only see the last line (not all the lines)....does anyone know a way to loop through all the records on a completed document?  It seems that substitution gets called before records get inserted into the database so we're not sure how to make our pre-requisite work.
    thanks for your help

    Hi,
    here is the solution.
    Create your user exit.
    FORM u280 USING bool_data TYPE gb002_015.
    FIELD-SYMBOLS: <ls_bseg> LIKE LINE OF bool_data-bseg,
    LOOP AT bool_data-bseg ASSIGNING <ls_bseg>.
    * Here is your logic needed
    ENDLOOP.
    Create a substitution for the complete document in GGB1 and choose no field but "Only exit'.

  • Substitution rule in FI

    Hi all,
    I ve written a subroutine in Substitution rules for FI in GGB1 tcode for F110 transaction to replace the section code (bseg-secco) while posting a fi document.
    but the substitution rule is not getting triggered as F110 runs a background job to post the document...
    Could u please suggest how to get it triggered for a background job...
    thanks..

    hi Arun,
    check in transaction OBBH, if the substitution is turned on, and if yes, if it is active all the time (activity = 1)
    hope this helps
    ec

  • Business Area - Substitution Rule?

    Hi Gurus,
    I need help with creating a substitution rule for a business area.
    The scenario is as follows-
    We have multiple company codes in different regions that sell their product system wise to company code XXXX. We are using one business area YYYY. What i need to do is create a substitution rule that when ever an invoice passes into accounting it automatically picks up the business area YYYY from all those other company codes selling to company code XXXX.
    I am not sure how to create this rule? meaning how it should read. When i attempted to create the rule via OBBH I am not seeing the field BSEG-GSBER in the selection? This is where you chose the field & is substituted by a constant value YYYY
    I tried reading some other messages that we posted online by other members. One of the suggestions made was to go SM30 or SE11 and pull table VWTYGB01 and uncheck a flag. I tried to do that but I was unsuccessful. When i go there the message i get is that it does not exist.
    Please can someone help me...suggest what I can do to solve this issue?
    Thank you
    Mahima

    Hello,
    You have to go in the edit mode as suggested by Eli. You are NOT going in the edit mode but going in display mode.
    Please go to SE16N
    Enter the Table GB01
    Maximum number of entries change to 9999
    Press ENTER button on your key board.
    Put your cursor on Transaction Bar (where normally you enter transaction codes to go to particular activities). Enter &sap_edit
    Then press enter on your key board
    You will see a message "SAP editing function is activated"
    Now click on execute button.
    The table will open in edit mode now. You can make changes now.
    Please make sure you are changing the right entries. This is not the recommended way of doing, but sort of last means. Any erronous changes will not be reversable. I would not recommend doing this in production. Always we should be cautious when we are doing by this way.
    Regards,
    Ravi

  • Profit center substitution rule not overriding OKB9

    There is an automatic assignment of a cost center to an expense GL account in OKB9.
    This is cost center is not assigned to any profit center because it is a generic cost center.
    When we try to post to the same account manually using FB50 and when we put the same cost center in, it will of course post to a dummy profit center since the cost center is not assigned to a profit center. The profit center field cannot be changed manually as it gets greyed out after derivation.
    In order to override it , we have created a substitution rule using OBBH where we have introduced the business area.
    We have mentioned that if GL a/c = XXX and business area = YYY , the profit center = ZZZ
    When we now try to post into the a/c using FB50 , it does derive profit center as ZZZ from the substitution rule when you press the enter key.
    But when you try to post the document, it gives a message saying, it has replaced the profit center to dummy profit center and when i click on the message for more info , it says, it will use the automatic assignment rule and so it will by dummy and not ZZZ.
    I would appreciate any help in getting the substitution rule to override the OKB9 in this scenario

    Hi Rajaram,
    First of all profit center field is available in cost center master data and you are saying you have maintained default cost center for the respective GL Account in OKB9.
    Now you are substituting the profit center after OKB9 has derived the Cost Center & Profit center.
    Yes, sap standard behaviour will not allow you to do that even if you notice that in simulation mode you are able to see that substitution is changing the profit center as in complete call it gets reset to the original profit center again back.
    So you can not achieve that with standard boolean logic but only through exit and thats too probably the exit need to get called after the line item value is passed but before posting.
    Thanks & Regards
    Subhasish

  • Substitution rule for Business area in F-02

    Dear SAP gurus,
    The client has 2 plants at different locations. 2 plants are created as business areas.
    Our requirement is, when users at bus area 1 are posting expenditure in f-02, the field business area should be automatically filled with '1000'(bus area 1). the users need not manually update the field Business area since they only operate and post in that location. Same functionality is needed at plant 2 also.
    I came to know that this requirement can be fulfilled with Substitutions in SAP.
    Can anybody please tell me how to write a substitution rule for the above requirement. Any other ideas are also welcome.
    Please help me in this issue.
    Thank you very much in advance.
    Regards,
    Vishnu
    VST-ITPW

    Hello,
    You have to do two things.
    1. First you write the substitution in GGB1
    2. Assign the substituion to your comany code OBBH
    In OBBH, write substituion at line item level of the document.
    If the plant = A
    Substitute business area with A
    Check if there are any standard substitutions are available in your system
    just for your reference.
    Hope this resolves your problem.
    Regards,
    Ravi

  • In Substitution rule view only one task "All" is coming

    Hi! All,
    I am facing very strange problem in UWL. Recently we upgraded our SAP Portal from SP10 TO SP15 but in Manage Substitution Rule view under Assign these task drop down we are getting only one task i.e 'All'. Remaining 3 tasks are gone.
    Can you help me in resolving this issue please..
    Thanks and Advance.
    Thanks and Regards,
    M.D.Sahu

    Hi,
    You had upgrade from SP10 to Sp25, wich version? 6.40 or 7.00?
    Please find for OSS notes from
    UWL 6.40 SP15
    UWL 7.00 SP15
    for example, I don't have your portal version, I can't help much more on this. I worked with the UWL, and this I'd very issues with Substitution Rules...
    BR
    Joã

  • Substitution Rule in SAP 7.0

    Hello Experts,
    We are in SRM 7.0
    What is the meaning and the functionality of u201CFill in for meu201D selection, that can be met in the course of the engaging of the substitution rule?What is the difference between u201CReceive my tasksu201D and u201CFill in for meu201D?
    Any pointer will be highly appreciated,
    Regards,
    Rupesh

    Hi,
    Receive my tasks means that your taslks will be traasfered to your substitutes for the period determined meaning between start and end date.
    Fill in for me means that if you didn't plan to be unavailable (no start and end date), your substitute could take your tasks.

  • 500 internal error in managhe substitution rule in UWL

    Hi All,
    One user is getting 500 internal error when cklicks on manage substitution rule in UWL.Only one user is facing this problem.
    I checked in backend system, so substitute exists.
    Can some body help me what could be the problem? Thanks in advance.
    Regards,
    Thirun.

    Hi Thirun,
    This is a common issue and usually has to do if the 'substitutee' for lack of a better word, is no longer a valid user.
    4. When there is a substitution rule connecting the current user to a
    deleted user, the following problems were discovered:
       - substitution rule management returns 500 browser error;
       - it is not possible to delete a Java Workflow substitution which
    refers to a deleted user as assignee;
       - Java workflow connector is not able to retrieve items for user that
    has a substitution rule with a deleted user;
       - The "status", "What to do", "assignee" and "Task Owner" fields are
    not properly filled in the Manage Substitution Rules view.
    Do a search in SAP notes in component EP-BC-UWL and also for your version.  Alternatively you can let me know the version here and I can tell you in what release this is fixed in that matches closest to your version.  (maybe only a patch required).
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • Error in Manage Substitution Rules - MSS

    Hello Team,
    I am working on new Implementation for ESS MSS in ECC6.0 and the country grouping is 99. I am getting error in 'Manage Substitution Rules' in MSS.
    When I create the substitution rule, I am getting 'problems Reported' in the 'Rule activation' field.
    The detailed message is 'System does not support Substitution methods'.
    I tried different options in the rule creation. All gave same error.
    I have activated the standard workflow TS12300097 and changed the task to 'General Task'.
    Is there anything else I need to do?
    How can I solve this issue?
    Thanks for your help.
    Regards,
    Preethi

    Hi,
    Check the below link :
    https://cw.sdn.sap.com/cw/docs/DOC-106384
    Hope this helps.
    Cheers-
    Pramod

  • Problem in UWL Substitution Rules

    Hi all,
        I have created a Substitution Rules for user X from user Y. when user X logins and accepts for user Y's rules but he is not able see the rule above his UWL.
       But when I create a rule for some other user U from user Y, user U is able to get the rule above the users U  UWL.
       Did anyone faced the same problem can help to solve.
    Thanks in advance.
    Ponnusamy

    Have you ensured that the source person actually HAS items in their inbox?
    Because of the way that task processing occurs you might also want to make sure that the source person hasnt already started processing the item.  You should ensure that the task item is "released" in the backend - something as simple as opening the item could cause this.  Once you open an item it is locked into your inbox - I dont believe from memory that these can then be substituted to someone else.
    If all of that appears OK  (and you can actually see the items mixed with your own) then I would suggest you check the properties of the iview and make sure that all "options" (like buttons etc) are turned on.  In EP7.0 there is much more control over what is / isnt displayed to the end user.  Those facilities (filters) you speak about "should" become visible when you have susbstituted items.

  • FB60 - Substitution rule to generate Text in automatic generated line item

    Hello SAP genious,
    While we post vendor invoice ( FB60) and customer invoice (FB70), at this time along with Dr and Cr line items one automatic additional line item is getting generated this is based on Tax type which you select while making invoice.
    now, I want to show some text in this automatically created line items. This might be possible by creating some substitution rule but i am not sure.
    and if it is possible through substitution rule then what could be my prerequisite, and check would be..?????
    can you please tell how can i get Text in this additional line item getting created due to VAT tax code.
    Thanks a Lot for your input.
    your reply will be rewarded with points.
    Thanks
    Jignesh

    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.

  • Substitution rule is not working correctly

    Hi PS Gurus,
    We have a problem in one of the newly created projects that the substitution rule is not working correctly; the data is not copied to the WBS element Cust. Enhancement tab.
    Project 1 is working fine and the data is copied & Project 2 and Project 3 are not getting all the data copied to the WBS element,
    In that project profile (substitution rule is given), substitution rule is also maintained 
    So please help why in one project substitution rule in working & other isnu2019t.
    Many Thanks in Advance.
    MM

    Hello Menaka,
    Select the WBS element in the project builder.
    Cleck on Edit --> Validation Substitution --> Substitution
    You will get the list of Substituitions, Double click on the required Substition rule.This action will generate a log, whether substitution has been succesfully caried out or with some error.
    Kindly provide us that error log to guide you further.
    Regards
    Ravi

Maybe you are looking for