Changes to existing workflow --- Putting conditions at SWETYPV

Hi all,
             I work on developing workflows for SAP HR system. I have a working workflow in production and now I need to put some conditions using the condition editor (on header -> Version Independent tab>Start events>Condition). I am not sure which of the following option to use.
1> Create a new version as I dont think is needed as there is no change to the flow.
2> Modify the current active version (Currently it is 0001) and move it up, so that a new version will be created in production as there are inflight workflow instances in prod.
Please share your views on applying this change so that I dont end up in a mess.

Amit,
If you are talking about putting condition in SWETYPV then you gotta create Check FM (with exception) and for that you dont have to care about version.
All you have to do is to create FM and insert it in SWETYPV (for BO- receiver-event entry) and transport your FM.
Cheers
Jai

Similar Messages

  • Change/Delete Existing Pricing Condition Type

    Hello
    I have a manu Pricing Condition Type and a rate(obtained from custom source) was inserted pro-grammatically into this line item whenever the new line item was added into the basket using CRM_ISA_BASKET_ITEMS badi.
    When the user changes the Qty for the same line item, I want to delete the existing condition rate(manual) and find the new current rate from the custom source and add that to this Line Item.
    Question: How to change/delete existing Condition Rate ?
    Cheers
    RJ
    Reference: E-Commerce Implementation

    Hello,
    You can use java condition value user exit for this.
    Thanks and Regards
    shanto aloor

  • Starting existing workflow from web dynpro application (ABAP)

    Hi experts,
        I am working on web dynpro application from which when I click on a button an existing workflow should trigger. This will be used in portal replacing existing iview with jsp. I did lot of reading on SDN maybe too much that I am confused how to get started. Here is what I have currently.
    We have an existing workflow that sends an approval email to manager when ever some unit information changes. In current functionality, workflow is triggered by event which is linked to workflow in transaction "swetypv". We defined scenario in "qisrscenario" that contains all elements to populate workflow container. The methods to get data into workflow container, send email etc are all written in business object methods. We have a class that implements standard SAP BADI "IF_EX_QISR1"(IF_EX_QISR1~SCENARIO_PROCESS_USER_COMMAND method) that probably has all logic. In current functionality when the workflow gets created it sends notification number back to portal jsp page that triggered the workflow on button click. Users look at notification number in iqs23 for workflow log, PCR form data etc. and I need that functionality too. Now I am confused where I should start so that I can use ew web dynpro applciation instead of jsp iview but want all the functionality that we currently have. How can I start workflow and get notification number back to web dynpro so that I can display that to user? The approving manager goes to UWL to approve, reject the workitem and workflow then finishes.
    Any help will be greatly appreciated.
    Thanks.
    Mithun

    Hi.,
    Using FM  SAP_WAPI_CREATE_EVENT  You can Achieve this., try the below piece of code.,
    DATA: OBJECT_TYPE  TYPE  SWR_STRUCT-OBJECT_TYP VALUE 'ZBUS333',   " Enter Your Business Object here
    OBJECT_KEY  TYPE  SWR_STRUCT-OBJECT_KEY,
    EVENT TYPE  SWR_STRUCT-EVENT VALUE 'FIRE'.     " Enter Your Event here
       DATA: lt_cont TYPE STANDARD TABLE OF swr_cont,
             ls_cont TYPE swr_cont.
           ls_cont-element = 'NAME'.       " To Pass Values to business Object you append to container
           ls_cont-value   = lv_name.
           APPEND ls_cont to lt_cont.
           ls_cont-element = 'ID'.
           ls_cont-value   = lv_id.
           APPEND ls_cont to lt_cont.
          CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
            EXPORTING
              OBJECT_TYPE             = OBJECT_TYPE
              OBJECT_KEY              = OBJECT_KEY
              EVENT                        = EVENT
             COMMIT_WORK             = 'X'
             EVENT_LANGUAGE          = SY-LANGU
             LANGUAGE                = SY-LANGU
             USER                    = SY-UNAME
    *         IFS_XML_CONTAINER       =
    *       IMPORTING
    *         RETURN_CODE             =
    *         EVENT_ID                =
           TABLES
             INPUT_CONTAINER         = lt_cont
    *         MESSAGE_LINES           =
    *         MESSAGE_STRUCT          =
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Modify existing workflow

    We need to modify existing workflow in UCM but only known approach - disable step and enable it. Is any alternative way to change it UCM workflow code?

    While directly writing IDOC script in the applet window is perfectly acceptable, you will experience some need to change it, thus your dilemma of having to disable the workflow in order to edit it.
    It is a much better practice to put your IDOC logic in a component within a dynamichtml include, and simply reference the include in the applet.
    For example, let's say your workflow is named "MyWorkflow" and you have a step called "Step1".  To create code in the entry step, in a custom component create a dynamichtml include called "my_workflow_step_1_entry"
    <@dynamichtml my_workflow_step_1_entry@>
    do something
    <@end@>
    Then in the workflow applet for "MyWorkflow" --> "Step1" entry event, simply put the following code
    <$include my_workflow_step_1_entry$>
    Now you can edit the code in the component resource file rather than the applet, and certainly don't have to enable/disable the workflow.
    The one caveat here is that changes to the resource file code will require a server restart in order for the changes to take effect, as workflow code is cached differently as I recall.  There is another way to get around that limitation, but I'll leave that solution for a blog post.

  • How to write a pgm to change the existing encrypted password

    Hi all,
    can anybody tell me how to write a pgm to change the existing encrypted password.
    thanks in advance.

    Well, it's going to depend on how it's implemented in the current system.
    But basically it's going to look a lot like the current login actions. Presumably you have something that takes the user ID and password, encrypts the password, looks up the encrypted password in the database matching that user ID, and compares them. This functionality would also take a new password (preferably twice so they can be checked for consistency), and if the existing encrypted passwords match, it will encrypt the new password and put it in the database where the old one was.
    And if the application has a mechanism for new users to sign up, it'll look a lot like this as well.
    But I'm just guessing. This is all going to depend on how the existing functionality is written. Probably the best thing you can do is talk to a programmer at your organization who has worked on the application, and ask them for help.
    Hope this helps anyway.

  • How do I copy a list from one site to another that has a column that appends changes to existing text?

    I want to move a list from one SharePoint site to another, within the same collection. I have created a template and included the content but the column that is selected to append changes to existing text, has not copied in all cases, although it has for
    some items.
    I have a limited knowledge so won't be able to implement any solutions that require the use of code.

    Hi,
    According to your post, my understanding is that you wanted to copy a list from one site to another that has a column that appends changes to existing text.
    I recommend to use the custom workflow activity  Copy List Item Extended Activityto
    copy list items and files cross site.
    You can do this with codeless SharePoint Designer workflows as long as you can install the
    Codeplex Custom SharePoint Designer Workflow Activities. 
    These activities are also built-in to SPD2010.
    To install the custom activities, please follow the steps as below:
    Download the solution file form
    Useful Sharepoint Designer Custom Workflow Activities
    Copy the wps file to the Disk C.
    Open the SharePoint 2010 Management Shell.
    Run the command: add spsolution c:\ dp.sharepoint.workflow.wsp
    Open the Center Administration, click System Setting->Manage Farm Solution-> dp.sharepoint.workflow.wsp->Deploy to one or more Web Application.
    Open the SharePoint designer, add action from Custom Actions.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Matching score for new records added to existing workflow

    Hi SDNers,
    My doubt is:
    I have a 2 Workflows which are already in process. The triggering event for them is Manual, Record Import.
    Now I manually assigned 20 records  to "Workflow A" based on Condition 1
    Also, I manually assigned 20 records  to "Workflow B" based on Condition 2
    I am importing 30 new records. Based on the condition, I want to assign these records to the existing Workflow A / Workflow B.
    Note: There is a Match stencil, so the newly created records have to be matched against the existing records in the present Workflow itself.
    Is it possible to add new records o existing workflow manually?
    Also, what about the Matching score? will the records be matched?
    Thanks & Regards,
    Priti

    Hi Priti,
    I tried restricting records using Named Searhes and Masks but it includes all the records with Match step property Records Vs All. You have to perform some maunal step either by selecting records using some search criteria or you can use Named Searches i.e.
    1. Create one field say New of type boolean and by default set it to NO.
    2. Create one named search for this field value to YES.
    3. Create one assignment which sets the value for this field to YES and add this assignment in the workflow as the first step.
    4. When ever you import records, assignment will set New=YES for all the records imported. Now, when you add more records, search the previous records using Restore Named Search function which will give the list of records imported now. You can perform Matching and Merging operation.
    5. Add one more assignment to the workflow as the last step which should set New=NO so that records should not appear next time for Matching
    Regards,
    Jitesh Talreja

  • Action not possible because change version exist

    Dear All,
    We are at SRM5.0- Extended Classic scenario and facing issues for changing some of the PO documents.
    When the buyers are trying to change the PO, error is getting populated as 'Action not possible because change version exist'. This error is not allowing us to change the PO.
    These POs are changed in the past and all the relevant changes are reflected to backend system with no issues. In other words Change Versions do exists for these POs. Flags for Change Version completion is also set and all historical versions can be seen but without change history.
    Additional information -
    1. No approval workflows are implemented for PO.
    2. No locks are active for these documents.
    Appreciate your help!
    Regards,
    Sagar

    Hi Sagar and thanks for your response,
    well, actually the active change version won't be preserved in any case. It would be overwritten in the first scenario, and deleted in the second one. The reason why I'd like to have this "brute force" method is to face an eventual human error. Suppose that a disalignment between R3 and SRM has been created; my report basically "alligns" the SRM version to the corresponding R3 one. And suppose also that the user made a mistake so that the program must be used a second time. I'd like to provide a way to "UNDO" the first execution of the program, that is to say: i'd like to provide a way to OVERWRITE the actual active, change version, or alternatively delete the change version that the report did create the first time it has been launched.
    Hope it's a bit clearer now
    Thanks for any hint/suggestion you can give me
    EDIT: Oh, and please... can you provide me further information about your solution? I mean, use of that FM to unlock an active version of the PO and then the proper call to BBP_PD_PO_UPDATE specifying how you managed input params. Thanks a lot
    Edited by: Matteo Montalto on Apr 9, 2009 11:43 AM

  • SPD 2010 won't overwrite existing workflow but creates a new version instead

    When editing then saving and publishing an existing SharePoint Designer workflow a new version of the workflow is created but the previous version is still available in the SharePoint list for a user to select and start manually.
    Example: The original workflow is named Email Notes. After editing and publishing there are now two workflows available: Email Notes and Email Notes (1). Future edits increment the number so now we have Email Notes, Email Notes (1), Email Notes (2) and so
    on. Any of these workflows can be started. It looks like SPD won’t overwrite the existing workflow. SPD only shows the original Email Notes workflow.
    The problem appeared after making the setting change: SharePoint Central Administration > Application Management > General Settings > Workflow settings > Workflow Task Notifications. I selected yes for "Allow external users to participate
    in workflow by sending them a copy of the document?"
    After noticing the effect it had on editing workflows I reverted to the default "No" but the problem persists.
    One wouldn’t think making that change would cause my current problem but I have confirmed the behavior on a test server with images from our live environment.
    Has anyone seen or heard of this before? I found one random post on a site where someone else had experienced the same thing.

    Hi,
    This is a known behaviour. When you publish the new version of the workflow, the previous version is still available because there might be some workflows executing in lists and libraries on this version. But you can remove the previous versions so that
    they are not available for the users to starts. Go to List/Library > Settings > Workflow Settings.
    You will see all the previously published versions of the workflow. Here it shows the version of the workflows with Allow, No New Instance or Remove options. By default, previous version workflow should change to "No new instance" so users cannot
    start this manually. If this does not happen then this workflow will be available for users to start as in your case. If no instances of previous version are running, then select remove, and click Ok. Hope it clarifies.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Is it possible to change an existing join in Plus?

    In Discoverer Plus, is there a way to change a join in an existing report? Currently I only have access to Desktop (10.1.2.2), but if it can be done in Plus that might be something worth pursuing.
    My situation is, I have a fairly complex worksheet where I need to change an existing join to an outer join. I can't change the join itself, in Admin - that would affect other reports that use it. I know in Desktop, if I remove all the items from the joined table (including calcs and conditions that reference it), then add them back in, it will prompt me for which join to use. However, in this case, by the time I remove and re-add all those items, I've practically had to rewrite the report.
    I'm pretty sure that's what I'll have to do but I'm hoping someone will be aware of a workaround that I'm missing. If getting access to Plus will make things easier, it would be worth it.
    Thanks!

    Hi
    I'm afraid you will fare no better in Plus either as the same thing will happen there. You will have to remove all of the items that use the existing join then as soon as you start to add them back in you will be asked to pick a join.
    There are lots of good reasons to use Plus, this isn't one of them as the functionality, or lack of depending upon your point of view, is the same.
    Best wishes
    Michael

  • Workflow Rule Condition : impact of the "LookupValue"

    Hello,
    I would like to know something about he "LookupValue" (eg.1) impact in the "workflow rule condition". What is exactly the role of the "LookupValue"? Does it have an impact if I decide to delete it and just write the value needed (eg. 2) ?
    eg.1 : ... =LookupValue("OCC_CUST_LOV_OPTY_4", "Value Needed")
    eg.2 : ... =("Value Needed")
    Could someone help me?
    Thanks and regards.
    Edited by: user5840933 on 5 mars 2009 03:44

    Hi !
    The lookupValue function is very useful. Imagine you created 10 workflows with a condition such as : PICKLIST="Value".
    Then imagine you have to modify the "Value" of this picklist in "Value2" for example. This means you will have to update your 10 workflows to put "Value2" instead of "Value".
    Using the LookupValue function, it will automatically get the picklist value based on the code corresponding to the value.
    LookupValue(PICKLIST, "A") will return the value corresponding to the code "A", no matter what the value is.
    In the expression builder, after chosing the field in the picklist, click on the link "Get acceptable values". Then click on a value and the LookupValue function will appear in your expression.
    Hope this will help, feel free to ask more !
    Max
    [See Mike L announcement|http://forums.oracle.com/forums/ann.jspa?annID=883]

  • How to find  the existing workflows

    Hi Gurus,
    How to find  the existing workflows, and assign a  user  to a role.
    Suitably rewarded for helpful answers.
    B S B

    Hi,
    You can find existing workflow in Transaction PFTC.
    Select Task Type as Workflow Template(WS) and either do F4 on Task
    or put some description and press enter.
    For assigning a user to a role, check transaction PPOCW. (If in an Org. Unit) or through SU01.
    Regards,
    Ashish

  • Architecture change in existing application

    Aim: Architecture change in existing application
    Domain: Health Care
    Background: There are 2 application ( Front end: one in oracle forms - deals with accounts module and another in some legacy application - deals with patient, clinical and diagnose module) using and sharing the same Oracle 9i database.
    Patient related modules are moved into another database ( java as a front end, oracle 10g as backend ) which is normalized - eliminating duplicate tables and column, also its tables and columns names are not matching with existing (patient)system.
    Now the requirement is making the existing application related only to Accounts module ( having complicated business logic written in packages ) to work as it is without changing the code, design drastically.
    Questions:
    1. Now how best this task can be completed without affecting existing Accounts system drastically ( with minimal changes )?
    2. what are the possible best approach to achieve this ?
    3. what are the best way for communicating the 2 DB in this scenario ( may be creating synonym, views etc ) ?
    4. What are challenges that needs to be addressed ?
    Any recommendation, suggestion and solution will be very much appreciated.
    Thanks and Regards,
    Lokesh

    Views are one possible approach which make it possible to change the "real" datamodel without changing the appliacation itself. I can't tell you if its the "best" approach for your problem.
    Since most of the Patient related tables ( more than 200 tables ) are modified and if views are created for all this tables, What will be the performance.Performance is not influenced by just the fact that you use views instead of tables. It depends on the structure and complexity of the views you use. This question can not be answered in general.
    If 2 databases resides in 2 different server then, what is the best approach for communicating databases
    ( can you please put a thought on MQ, staging database... ) ?Again, it depends. How much data has to be read from one db in the other one? Are there data changes happending in one db which have to be applied in the other db?
    Based on above two, Is it still view are the best option?I don't know enough of your requirements to answer that question.

  • How to change an Existing  Purchase Requisition Document in MM.

    Hi Folks,
    I want to write a program to change a existing  Purchase Requisition in MM.
    I found two BAPI's BAPI_PR_CHANGE and BAPI_REQUISITION_CHANGE , which could be used to change PR document in  ECC.
    I have following question:
    1) why we have two seprate BAPI's for changing PR.
    2) Do we need to use both BAPI's to change PR, depending on what value we are trying to change.
    3) Is it optional to use any of these two BAPI's
    Or do we have any other way to implement this PR change process.( Bcoz of when i tried to debug standard PR change process, none of these two BAPI's has been called)
    Which FM or method is called when, we try to change and save PR document manually.
    I would appriciate, if some one has any sample code to implement this PR change process.
    Regards
    PG
    Edited by: PG on Aug 23, 2010 3:10 PM

    >
    PG wrote:
    > I have following question:
    > 1) why we have two seprate BAPI's for changing PR.
    BAPI_REQUISITION_CHANGE is the older BAPI, the one based on the older ERP transaction (ME5x family), while BAPI_PR_CHANGE is the newest one, referring to the "recent" Enjoy transaction (ME5xN family).
    They both satisfy you task probably, but if you can chose, I'd go for BAPI_PR_CHANGE.
    >
    PG wrote:
    > 2) Do we need to use both BAPI's to change PR, depending on what value we are trying to change.
    > 3) Is it optional to use any of these two BAPI's
    You can use the first or the second one, it's indifferent. The newest one will also trigger user exits from ME5xN family. Which transactions are used by the users on the ERP? Choose with regards to the transactions used during the normal activity.
    >
    PG wrote:
    > Or do we have any other way to implement this PR change process.( Bcoz of when i tried to debug standard PR change process, none of these two BAPI's has been called)
    Normal PR change operativity doesn't use BAPI. BAPIs are used to create/modify docs from "external" systems (it's not properly true, but let assume it), they provide a simple interface to populate with PR data and the process of creation/modification will trigger every check/userexit already defined for the standard transactions on the ERP.
    In example, suppose that in ME51N you defined a custom check in a specific userexit which don't allow an user to create a material item which have odd quantity (odd example, I know ). Then using BAPI_PR_CREATE you will not be able to create a PR with items with odd quantity, because the same check will be executed.

  • How to change an existing BOMGroup with ABAP

    Hi!
    Is there a way to change an existing BOMGroup? I found the BAPI "BAPI_MATERIAL_BOM_GROUP_CREATE" which is ok to create BOMGroups. But I couldn't find a BAPI to change them. If this is not possible, is there a way to delete a BOMGroup and create it again with the new values? I can delete a BOMGroup within the SAPGui by deleting all BOMs attached to it. To do this by code, I need a way to get/find all attached BOMs of the BOMGroup and then delete them one by one... Then I can create the BOMGroup again.
    Thanks,
    Konrad

    Hi Konrad,
    There are no BAPI's available but you can acheive using other function modules:
    To do changes using change number
    CS_CL_P_BOM_MASS_CHANGE                 
    CS_CL_S_BOM_CHANGE                              
    CS_CL_S_BOM_CHANGE_COMPLETE                                                                               
    To delete BOM      
    C162_BOM_DELETE  
    To create/change the BOM using the Category
    CS_OV_BOM_EDIT                
    Thanks
    Lakshman

Maybe you are looking for