Substitution rules at save

Hello all,
We are currently working with SAP PPM 4.5, and we are facing one issue: our projects are really integrated with SAP PS (structures & planning costs), and we would like to set up substitution rules at save to update some cProjects fields, depending on other entries or custom rules. However, when I look at DPR_ATTRIBUTES badi, both methods "check" and "verify" have only input structures, and not changing ones... So where can we really update the data at save?
What's more, the goal is to be able to update any entry at any level in the project stucture, for instance a task field updated from a phase/project one.
Thank you for your help.
Matthias

Hi Matthias,
I feel that 'verify' can serve the purpose for you.
As far as I can recall there are parameters  IS_ATTRIBUTES_OLD and IS_ATTRIBUTES_NEW by which you can compare the old value and the updated value.
Matthias BRISSEAU  wrote:
What's more, the goal is to be able to update any entry at any level in the project stucture, for instance a task field updated from a phase/project one.
Again I guess here you need to check the value of FLT_VAL, which determines the Object Category of the data you are processing.
If it is a Project( DPO) or a Phase (PPO), you can run the standard BUS21 series function modules to update the project elements.
This solution approach is just based on my current thought process and you may need to re-look it again. Approaches suggested from other users are appreciated.
Please let me know if this helps you.
Regards,
Vivek Pandey

Similar Messages

  • Substitution rule has to triggered after save document in FB70 and FB75

    HI,
      I have a substitution rule for REFNR field  and that will trigger when you make FB70 and FB75 for 2 company codes. In the user exit for subustitution we have a code to get the next object number for some other purpose. because third party will use this generated next number for their legal requirement.
    The real problem comes this substitution rule is triggered before save document. due to this if i came back from the transaction without saving the document I am losing that generated number which i dont want.
    I need some tips on this. is there a way in the substituion settings we will trigger this exit at save document.
    I would appreciate your inputs on this.
    Regards
    PRasad

    Hi Rob,
      I would like to know.
      call point 001 is document header
      call point 002 is document item
      call point 003 is complete document.
    I am assuming 003 triggers after complete the document.
    Any clue on this.
    Regards
    PRasad

  • Substitution Rule for Payment Term

    Hi Expert,
    I have to have Substitution for payment term the following criteria:
    Company Code = '1000' AND Document Type = 'L1' AND Posting key = '14', then ... substitution bseg-zterm with certain payment term.
    Problem: there is no substitution for bseg-zterm.
    I read the post at http://sap.ittoolbox.com/groups/technical-functional/sap-acct/substitution-rule-for-payment-term-489202
    and found that I need to apply a SAP note 42615 in order to enable the BSEG-ZTERM field in Substitution Rule for Payment Term, and after that run Program RGUGBR00 to regenerate the substitution.
    But, problem again, our SAP is ECC 6.0, and the said SAP note is not applicable.
    Kindly advise is there any other way that I can enable the bseg-zterm field at substituion.
    Thanks,
    sbmel

    Hi
    1. Go to SE16N and enter Table GB01
    2. Enter &SAP_EDIT in the command prompt i..e the space where you type your T code and press enter
    3. BCL TAB = BSEG and Field = ZTERM... Execute
    4. Remove the X for the field BEXCLUDE.. SAVE....
    5. Select this entry and menu Table > Transport > Include in tr request
    6. Run RGUGBR00
    Br, Ajay M

  • Payment Block in Substitution Rule

    I' created a Substitution rule to block particular vendor invoices at callup point 2 when they are entered in the system.  At some point in time, I need to unblock these vendor invoices in order to make a payment.  When I unblock the invoices, my substitution rule keeps blocking the invoices again.  What do I need to do to only have my Substitution Rule work at the time of invoice entry?
    Any help would be greatly appreciated.

    OK I am not sure your processes you currently use.
    Do you use MIRO or FB60.
    You could JUST add the tcode to your rule if you new the tcodes you used to create the vendor postings.
    Please consider Vendor credits as well, do they block as standard?
    Anyway I guess you have a rule that says something like if doc type is "KR" then add a payment block. What you need to do now if you know ALL of your doc types is say, if the doc type is "KR" and the tcode is "MIRO, FB60" then add payment block.
    That way when you go to change the payment block in FB02 you can save it correctly.
    Please assign points if this is useful.

  • Make "Manage Substitution Rule" from context menu to as button on UWL

    Hi Experts,
         We have requirement that "Manage Substitution Rule" link from context menu on UWL to make it as a button on UWL as "Manage Substitution Rule".  Anyone has done this kind of requirement before.  If you do please let me know the steps.  Award full points will be given to answer.  Thank you.
    With Regards,
    Sudheer.

    Hi,
    you can download the standard XMl file ad modify it by writting hte below code.and rename the file and upload it with high priority. and clear the cashe after uploading the file.
    1.code to create the specific action.
    in the action name below instead of xyz can be any name
    <Action name="launchSubstitutionManager_xyz" groupAction="" handler="SAPWebDynproLauncher" referenceBundle="SubstitutionManager" returnToDetailViewAllowed="yes" launchInNewWindow="SHOW_HEADERLESS_PORTAL" launchNewWindowFeatures="width=800,height=600,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
    <Properties>
    <Property name="WebDynproApplication" value="UWLSubstitution"/>
    <Property name="WebDynproDeployableObject" value="sap.com/tckmcbc.uwl.ui~wd_ui"/>
    <Property name="isnewwindow" value="1"/>
    <Property name="type" value="button"/>
    <Property name="launchContext" value="UWL"/>
    <Property name="ignoreWorkIdParams" value="yes"/>
    <Property name="appContext" value="${context.appContext}"/>
    <Property name="System" value="SAP_LocalSystem"/>
    <Property name="display_order_priority" value="-1"/>
    </Properties>
    </Action>
    2. in the required view add the below code.
    <Action reference="launchSubstitutionManager_xyz"/>
    3. save your own the xml file and upload it with high priority.
    4. cleare the UWL cashe and browser cashe.
    5. relaunch the URL with the end user id.
    Raji.

  • Substitution rule: (CJ20N)Move PROJ-PLSEZ to ANIA-AKTIV based on condition

    Hi,
        I am facing problem in creating a substitution rule in t-code OPSN. On project save in CJ20N PROJ-PLSEZ(finish date) is to be moved to ANIA-AKTIV (activation date).
        I am aware of the client specific user exits and i have successfully created a substitution rule for some other fields(Copying standard program RGGBS000 and setting the necessary configuration in SPRO). The problem is that ANIA structure is not available in the program. Could any one please help me out in solving this problem.
    Thanks in advance
    Rajesh

    Dear Rajesh,
       The structure ANIA is not available in Substitution rule. You have to find some other exit to achieve your objective.
       I'm sending a comprehensive list of exits in tcode OPSN. Also try finding some BADI.
    Transaction Code - OPSN                     Edit PS substitution rules
    Exit Name
    Description
    CNEX0002
    PS Authorization check
    CNEX0006
    PS customer specific fields project definition
    CNEX0007
    PS customer specific fields WBS element
    CNEX0009
    Material components in network
    CNEX0011
    BOM explosion in network on component overview
    CNEX0012
    Derive external network number from WBS number
    CNEX0014
    External data for BOM transfer
    CNEX0015
    Change BOM data for BOM transfer
    CNEX0016
    PS customer-specific fields in the network headerf
    CNEX0017
    Customer-specific node info. in network graphic (netw. mnt.)
    CNEX0018
    Customer-specific node info. in network graphic (info. sys.)
    CNEX0019
    Customer-specific node info. in network graphic (std. netw.)
    CNEX0020
    Extra info in DIN field of network graphic (netw. maint.)
    CNEX0021
    Extra info in DIN field of hierarchy graphic (netw. maint.)
    CNEX0022
    Extra info in DIN field (standard network maintenance)
    CNEX0023
    Customer-specific node info. in the hierarchy graphic
    CNEX0024
    Customer-specific graphic title in Gantt chart/Proj.Plan.Brd
    CNEX0025
    Additional field for project summarization
    CNEX0028
    Check activity release
    CNEX0029
    Check network release
    CNEX0030
    Update event for BOM assignment
    CNEX0033
    WBS: Predefine Search and Replace String
    CNEX0034
    Check a New Allocation in BOM Transfer
    CNEX0035
    Check a Change in BOM Transfer
    CNEX0036
    Check deletion as part of BOM transfer
    CNEX0037
    Check a freshly created component
    CNEX0038
    Check a changed component
    CNEX0039
    Check deletion of a component in a network
    NWTM0001
    Set Field Contents for Event Date Type
    NWTM0002
    Display source document
    NWTM0003
    Structure of the Objects for Monitoring Dates
    No of Exits:         31
    Regards,
    Deva.

  • Substitution rule: ania-aktiv with proj-plsez(t-code: CJ20N)

    Hi,
      I am trying to create a substitution rule in transaction OPSN. On project save ania-aktiv is to be substituted with proj-plsez based on a condition in t-code: CJ20N.
    I am aware of the client specific user exits and i have successfully set substitution rule for another field( Copying standard program into a custom program and setting the configuration in SPRO).
    I am facing problem to set substitution rule for ania-aktiv as these fields are not available in the exit. I could populate only PRPS and PROJ fields and not ANIA fields.
    Can any one please give a solution for this.
    Thanks in advance

    I will suggest you to use <b>BADI PROJECTDEF_UPDATE</b>, Method <b>AT_SAVE</b>. Inside your implementation, you can call another function module to update ANIA fields.

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

  • 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

  • My itunes wont open because its not the defualt cd buner

    help mi itunes wont open it say there are registry setting missing and to reinstall itunes but i dont want to lose my muisic

  • Dynamically Selecting a Key Figure at Runtime

    I need to develop a 12-month BEx workbook which shows for each record for each month (column):  1)     <i>Forecast Quantity</i> (key figure); 2)     <i>Actual Quantity</i> (key figure); and 3)     <i>Most Reliable Quantity</i> (somewhere, somehow cal

  • Execution time of a SQL

    Hi, I have a sql which loads a table (84 million rows) across the network from one instance to another in another server. How do I know the elapsed time during loading? ( I know this sql takes over 2 hrs to copy the table. But at any given (the sql r

  • Multi server data retrieval performance

    Hi experts, I have a question regarding the data retrieval performance (EVDRE) on a multi server installation environment on Microsoft SQL Server 2008. We have succesfully migrated Outlooksoft 4.2 SP03 to SAP BPC 7.0 SP07 for a customer. During this

  • Zen Vision M & U

    I've tried a variety of methods (reinstalls, resets, etc.) to try to get to the bottom of this but have not been successful. I have found references to this problem but no solution. I contacted Creative and although I had a long dialog with support,