Substitution Rule in Controlling

I have a following scenario for "profit centre" in sap. and for the same wants to utilize CO substitution functionality, with 0KEM t code,
If system determine
Distribution Channel  + Plant   = Profit Centre
10+1000=1000
10+2000=2000
10+3000=3000
20+1000=4000
20+2000=5000
20+3000=6000
I have create a rule and create 6 steps for each above scenario, where incorporate the above relationship, but the step that is at the top or can say first step only successfully executed, if create order for 10+2000 system cant determine the profit centre.
step 10 > distribution channel = '10' AND Plant = '1000'    > Profit Centre 1000
step 20 > distribution channel = '10' AND Plant = '2000'    > Profit Centre 2000
step 30 > distribution channel = '10' AND Plant = '3000'    > Profit Centre 3000
step 40 > distribution channel = '20' AND Plant = '1000'    > Profit Centre 4000
step 50 > distribution channel = '20' AND Plant = '2000'    > Profit Centre 5000
step 60 > distribution channel = '20' AND Plant = '3000'    > Profit Centre 6000
please suggest what mistake I am doing, or while writing code what kind of program or logic should I adopt.
Looking for the gurus feedback.
Regards,

Hi..
If you use co-pa, you can define  characteristic derivation using transaction KEDR or through the following IMG path: Controlling->Profitability Analysis->Master Data->Define Characteristic Derivation as below picture.

Similar Messages

  • Substitution rules CO prerequisite

    Hi all,
    Do you know how can I use field "Storage location" LGORT in the prerequisite of substitution rule for controlling.
    This field is not in the structure COBL. It is in structure VBAP, but somehow my subst. rule is not working when I put in the prerequisite VBAP-LGORT.
    Do you had similar issues? What can be done to use storage location in the prerequisite?
    Do you have any documentation about the usage of substitution rules?
    Thanks,
    Maria

    http://help.sap.com/saphelp_47x200/helpdata/en/5b/d233e843c611d182b30000e829fbfe/frameset.htm
    Pls have a look at the ''Adding Fields to and Deleting Fields from a Boolean Class''
    Depending on your Boolean Class, it

  • 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.

  • PO down payment is not picking FI substitution rule.

    Hi All,
    We have an issue with PO down payment and clearing. We have a
    substitution rule on line item level as per company code were default profit
    center is set. But while doing ME2DP, profit center is picking from PO account
    assignment and overriding our substitution rule. We did try with complete
    document substitution rule also but not worked.
    Clearing of the pre-payment is deriving the profit center of
    the account assignment on the PO, overriding our profit center substitution.
    This is only happening with PO down payment. Please let me
    know any solution. 

    Hi Rakesh
    If the Down payment GL you are referring to is a Balance sheet account, your substitution should work.. How have you written your substitution? Can you give a screen shot?
    But if you are referring to the Down Payment Cost Element assigned against your Controlling area, system is correct... For a cost element, PC is always derived from the associated CO object
    br, Ajay M

  • Profit center substitution rule

    hi ,i am wondering is it possible to assign profit center substitution rule by sales org,instead controlling area?

    Hi
    The substitution rules are written at Controlling area level, but they can be made Dependant on sales org. i.e. in EC-PCA substitution, you can use sales org and other SD org elements in the substitution rules and try to derive a desired profit center in the sales order
    Ajay M

  • Substitution rule for STO - changing business area.

    Hello Experts,
    We are transferring stock from one plant to another plant. Each plant is business area. We are doing stock transfer at some profit element of Rs. 250. Transfer is done from Business Area D002 to Business Area D001.
    When we do outbound delivery, it posts following entry:
    Stock A/c... Dr (Business Area D001) Rs.1250
        To Stock A/c (Business Area D002) Rs.1000
        To Profit on transfer (Business Area D001) Rs.250
    However, I want to substitute business area for third line. I want that, business area D001 should be replaced with business area D002. However, there is some substitution rule for the same. Please tell me, how this substitution can be done.
    Please help
    Deepak

    What is your price control for your material for both plant ?
    What is the process for your stock transfer ?
    However, as of my knowledge, you can't achieve this accounting entry in standard.
    See, if you are using MAP for material for both plant, then accounting entry will be
    Stock A/C debit for plant D001
    Stock A/C credit for plant D002.
    If you are using standard price for material, then accounting entry will be
    Stock A/C debit for plant D001
    Stock A/C credit for plant D002
    Price diff account credit or debit (as per the price difference for material price for both plant).

  • Need to bypass Material substitution rule for SO created through RFC

    Hello SAP Geniuses,
    I have an external process that creates Sales orders using a RFC calling BAPI_SALESORDER_CREATEFROMDAT2.
    My Users want to create orders for Materials that have substitution rules defined, but they want to bypass these rules when the Sales Orders are created from the external process. Other Users in the same Sales Organization and Distribution Channel need the substitution rule to sell these materials, so config cannot solve this.
    I have already tried detecting when  VBAP-MATNR NE VBAP-MATWA  and calling BAPI_SALESORDER_CHANGE with the original MATNR, but the same substitution occurs in this FM.
    Can anyone point me to a User Exit or BADI that can add flexibility to the Material Substitution mechanism in SD module?

    Jack,
    You are a genius!
    These are the steps I followed to implement this idea:
    1) VOFM -> Requirements -> Material determination -> New rule in the 800 series
    2) Insert code into rule with SSCR key; Activate code; Activate rule.
    3) Run utility program RV80HGEN to create rule in FG V61D -> SAPLV61D -> LV61DNNN -> RV61DNNN -> RV61D8xx
    4) SPRO-> Sales and Distribution -> Basic Functions -> Maintain Prerequisites for Material Determination -> Maintain procedure -> select procedure -> double-click "Control data" -> enter rule into box "Requiremnt". Save.
    5) SPRO-> Sales and Distribution -> Basic Functions -> Assign Procedures To Sales Document Types -> select doc type of interest -> enter procedure name into field "MatDeterm." for doc type. Save.

  • Doubt about Substitution Rules

    Hello gurus!
    We have a doubt about Management Substitution Rules. We fully understand all the benefits of this feature and tried to communicate to all our personnel to make it work properly, but as we have a big staff and not everybody have the same "skills" understanding technology, we eant to have a different approach to this: we want to develop a "user friendly" interface, as a single acreen where we can emulate all the features of Substitution Rules, but we want to know if there is a control program or a Function that controls this, and the understand it fully to achieve this. Anybody knows if this is possible?
    Regards IA

    Hi,
    If you use UWL only with one backend system, you can easily build your own application for example with web dynpro ABAP. Just use the function modules SAP_WAPI_SUBSTITUTE* to do the different operations (creating, deleting substitutions, etc.).
    If you have multiple backend systems, it is a bit more complicated. You could build your own (Java WD) application by using the Substitution API. Check the docs at: http://help.sap.com/javadocs/NW04S/SPS09/uw/com/sap/netweaver/bc/uwl/IUWLSubstitutionManager.html
    Both approaches work.
    Regards,
    Karri

  • 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

  • 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

  • CREATE SUBSTITUTION RULE FOR u0093COPYING LINE ITEM TEXT FOR LINE ITEMSu0094

    Hi every body
    When user post transactions in FB60 we have give the line item text, Suppose no.of lineitems are there in tht instnace my client asked to create the substitution rule to “COPYING LINE ITEM TEXT FOR LINE ITEMS”
    pls tell me the processes how to create the substitution rule
    Plz can anyboby help me out...
    laxmi velaga

    sorry,
    link doesn't work:
    here's the content:
    you must add your rules at event 3 (complete document)
    in an exit of ZGGBS000:
    data htext type bseg-sgtxt.
    *find
      LOOP AT BOOL_DATA-BSEG INTO BSEG
                      WHERE    bseg-sgtxt <> space.
      move  bseg-sgtxt to htext.
      ENDLOOP.
    *copy
      LOOP AT BOOL_DATA-BSEG INTO BSEG
                      WHERE    bseg-sgtxt = space.
      move  htext to bseg-sgtxt
    *modify
      MODIFY BOOL_DATA-BSEG FROM BSEG.^
      ENDLOOP.
    http://help.sap.com/saphelp_47x200/helpdata/en/5b/d231a843c611d182b30000e829fbfe/frameset.htm
    please reward useful answers
    thanks and regards
    Andreas

Maybe you are looking for