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

Similar Messages

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

  • Steps to create substitution rule for field BSEG-RECID

    MIRO generates FI document. FI document has BSEG-RECID field. I need to apply substitution for BSEG-RECID depending on the value of the RSEG-GEBER field in MIRO. The substitution must be activated only if account to be booked is PL account in FI and derived MM document based on ZNPP PO type.
    Field values are as follows:
    RSEG-GEBER     BSEG-RECID
    No value                          No value
    N                              N
    D                              D
    A                              A
    Could anyone please let me know the steps to create the above substitution rule for the FI document
    Thank You

    Hi,
    You can do it as below:
    Prerequisite : Select the document type for which you want check, here you have to select the BKPF-BLART = " " (Give the document type for the MIRO)
    Substitution: Use the User exit with the logic as you said.
    If you want you can use the user exit in both PREREQ & SUBSTITUTION. It will be applicable in your case
    VVR

  • Substitution rule for AS01

    Hi
    I want to create a substitution rule to derive jurisdiction code automatically based on responsible cost center for AS01 transaction. How to achieve this. kindly help me. (Create substitution OACS)
    Thanks

    Hi Friend,
    Transaction GGB4 is very usefull.
    Click on Active Subst/Validation, the click on Asset Accounting, make an entry for substn with company code and call point (item level or header level).
    Under that substitution, create step and rule.
    At the time of creating step SAP will ask for exit or constant.
    (Be aware give prerequisite as transaction specific).
    Regards
    Krishnendu

  • Substitution  rule  & validation rule

    Hi
    Please  tell me what steps should be followed in substitution  rule  & validation rule
    Thank You
    Deepika

    For Creation of validation Goto GGB0.
    You should choose in which module you are going to create. Like FA, AA, Cost accounting, Spl Ledgeretc.
    Then at what level you want to do Validation. Like Complete Document level or Line item Level
    Then You need to Define Your
    1. Prerequite
    2. Check and
    3. Message
    For Substitution goto GGB1
    You need to define your Prerequisite and Substituion rule.
    regards
    jay

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

  • Substitution rule - During Stock Transfer Order

    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

    Hi,
    What is the already existing  substitution ?
    You can write prerequisite Using sets , if both the rules needs to used..

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

  • 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