How to avoid starting of workflow ?

hi there,
i have a problem:
on BO BUS2089 (Travel) i have a event 'CREATED'
on that event i have a workflow. everytime the event is raised the workflow starts. so far so good, BUT:
i ONLY want to start the workflow when the travel-request is created in portal (ESS).
But there is a direct way in backup where traveling-requests are entered by administration.
how can i handle this to avoid starting the workflow when it is done in backend system (HR) ?
reg, Martin

Martin,
You should be able to identify the program that is triggering the event. Take a look into the SY-CPROG. I am not absolutely sure, if this is the correct field, but check/compare all the fields in SY structure. There should be a difference between creating/changing the trip in ESS (with the web dynpro application) and creating/changing the trip in backend transaction.
If you can find the difference, it should be an easy task to prepare a check function module for the CREATED event to prevent the workflow starting in the specific circumstances.
There are probably also other alternatives, but this is something you should definately check.
Regards,
Karri

Similar Messages

  • How to automatically start a workflow?

    All,
    I need to start a workflow item automatically based upon a table insert. I was hoping to use a trigger, but I could do it from within the application too.
    I have a simple workflow itemtype defined in workflow builder. It has several attributes.
    I found the pl/sql procedure of LaunchProcess which does
    CreateProcess and StartProcess, so I guess I am to use this?
    How/where do I populate the attribute values?
    Thanks,
    Tim

    Hi Tim,
    You set the attribute values by using the procedures
    wf_engine.SetItemAttrText
    wf_engine.SetItemAttrNumber
    wf_engine.SetItemAttrDate
    depending on the datatype of your attribute.
    You may also wish to use the procedure
    wf_engine.SetItemOwner
    to indicate the role that owns the item you are launching.
    Thanks,
    Gavin

  • How to re-start the workflow for Shopping carts in WAITING status

    Hi
    We are using 1-step approval work flow, and we get some strange issue. We can add approver in the workflow, but after we click order button and back to check status again, sometimes there will be "Ad-hoc agent not found" issue. Do you know how to solve?
    And one workaround for user is to re-add the approval, and sometimes the shopping cart back to normal. But sometimes, after we add the approver, the shopping cart are in waiting status:
    Workflow Item:
    Workitem-ID 000000714642
    Task WS10000276
    Text One-Step Approval: Value limit: Shopping Cart
    1000114698
    Status WAITING
    Statustext Waiting
    Date 13.06.2008
    Time 10:41:22
    So may I ask how to re-trigger the workflow?

    Hi,
    Thx for that. I need to trigger the Approval workflow to go the the approval manager.
    Can u give me the document on this? thx,  kerry.liu [at] ap.effem.com.
    Thx very much
    Kerry

  • How to avoid starting a page with line breaks?

    Hello. I've just started to refine my Master's thesis and some of the topics moved up and down as I edited their contents. The problem is that in some cases the topic breaks right after the title, and the rest of the contents just move away to another page. Is there any way to avoid starting a page with line breaks or broken topics?

    At the end of your title, you didn't inserted a line break but a paragraph break (carriage return).
    Acivate the mode "Show hidden characters"
    Select the carriage return (paragraph break)
    Delete it
    Press Shift + return to insert a true line break.
    It may be useful to apply that several times if you inserted several carriage returns between the title and the first filled line.
    Yvan KOENIG (VALLAURIS, France) 15 mai 2011 19:40:14

  • ** Start a workflow from BPM

    How do we start a workflow from BPM ? (For example, to send messages to that workfolw and receive messages like these purposes)
    Kind Regards,
    Jeg P.

    hi jeg.
    here some blogs and pdfs about BPM to understand how to use it
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Many other examples can be found under the following link at help.sap.com
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    And some weblogs
    https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps *****
    Hope helps
    Rodrigo

  • Start PO workflow after approved from first level

    Hi Guys,
    I have i typical requirement i my knowledge its not possible.
    What exactly has happened is that after upgrade BUS2012 event linkage was not active and there where no workflow got triggered for PO approval
    But the line manager have gone and approved the POu2019s from ME29N now for the next level they are asking to send the workflow as we have activated the linkage.
    Any idea how can we start the workflow from that point again.
    Atul

    Hi Atul,
    In production how many workflow's are there like this?
    Its small amount of workflow's then you can again manually trigger the workflow using SWUE[You should pass the object key as purchase order number] and Complete the first level of workflow.
    So it will be go for Second level of Approval.
    If you have large amount of workflows that are already Triggered in production, then you have to discuss with your client about the issue.
    Thanks,
    Viji.

  • Start a Workflow in User-Exit RGGBS000

    How can I start a Workflow into the User Exit RGGBS000 for FI module?
    Regards,
    Ricardo

    I tried this FM, it isn´t starting.
    See:
    CALL FUNCTION 'SWW_WI_START_SIMPLE'
      EXPORTING
       CREATOR                            = 'ricardov'
       PRIORITY                           = '5'
        task                               = 'TS99900005'
      CALLED_IN_BACKGROUND               = ' '
      DEADLINE_DATA                      = ' '
      NO_DEADLINE_PARAMETERS             = ' '
    IMPORTING
      WI_ID                              = WI_ID
      WI_HEADER                          = WI_HEADER
      RETURN                             = RETURN
      WI_RESULT                          = WI_RESULT
      SWF_RETURN                         = SWF_RETURN
      TABLES
        agents                             = agents
      DEADLINE_AGENTS                    = DEADLINE_AGENTS
      DESIRED_END_AGENTS                 = DESIRED_END_AGENTS
      LATEST_START_AGENTS                = LATEST_START_AGENTS
      EXCLUDED_AGENTS                    = EXCLUDED_AGENTS
      NOTIFICATION_AGENTS                = NOTIFICATION_AGENTS
      SECONDARY_METHODS                  = SECONDARY_METHODS
      WI_CONTAINER                       = WI_CONTAINER
    CHANGING
      WI_CONTAINER_HANDLE                = WI_CONTAINER_HANDLE
    EXCEPTIONS
      ID_NOT_CREATED                     = 1
      READ_FAILED                        = 2
      IMMEDIATE_START_NOT_POSSIBLE       = 3
      EXECUTION_FAILED                   = 4
      INVALID_STATUS                     = 5
      OTHERS                             = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Is there something more to put???
    Thanks
    Ricardo

  • Starting my workflow

    Hi,
    Would like to know how I can start my workflow after a processformrequest. For example, I would like to start a workflow after the user clicks the apply button.
    Cheers

    Use the methods in the class
    oracle.apps.fnd.framework.webui.OANavigation
    This calss provides Java wrappers for Oracle Workflow Engine's PL/SQL APIs.
    hope this helps
    Srini

  • How do I manually start a workflow to...

    I have a list with 2000+ items in it. I create a 2013 workflow in SPD that will look at an item and if it date is less than 1/1/2013 it will create a copy of the item on a list used for archiving, then delete the existing list item. 
    My question is how do i manually start this workflow on the entire list (instead of selecting 1 item at a time)?
    Thanks
    James T.F

    @Romeo
    I've found to potential PowerShell scripts that could launch a list workflow from powershell, but they both throw errors for me. 
    # URL of the Site
    $web = Get-SPWeb -Identity "https://sharepointsrv/site1"
    $manager = $web.Site.WorkFlowManager
    # Name of the list
    $list = $web.Lists["Shared Documents"]
    # Name of the Workflow
    $assoc = $list.WorkflowAssociations.GetAssociationByName("On Item Created","en-US")
    $data = $assoc.AssociationData
    $items = $list.Items
    foreach($item in $items)
    $wf = $manager.StartWorkFlow($item,$assoc,$data,$true)
    $manager.Dispose()
    $web.Dispose()
    this gives me the following error
    Exception calling "StartWorkflow" with "4" argument(s): "Value cannot be null."
    At line:15 char:28
    + foreach($item in $items) { $workflow = $workFlowManager.StartWorkFlow($item,$wor ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException
    The other PS Script
    $sourceWebURL = '<URL>'
    $sourceListName = '<List Name>'
    $TargetWorkflow = '<Workflow Name>'
    $spSourceWeb = Get-SPWeb $sourceWebURL
    $spSourceList = $spSourceWeb.Lists[$sourceListName]
    #Getting a Workflow manager object to work with.
    $wfm = New-object Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager($spSourceweb)
    #Getting the subscriptions
    $sub = $wfm.GetWorkflowSubscriptionService()
    #Getting the specific workflow within the list of subscriptions on the specific list. (SP2010 associated workflows basically)
    $WF = $sub.EnumerateSubscriptionsByList($spSourcelist.ID) | Where-Object {$_.Name -eq "$TargetWorkflow"}
    #Getting a Workflow instance in order to perform my commands.
    $wfis=$wfm.GetWorkflowInstanceService()
    Foreach($item in $spSourceList){
    #Creating the dictonary object I need to parse into StartWorkflow. This could be most other workflow commands.
    $object = New-Object 'system.collections.generic.dictionary[string,object]'
    $object.Add("WorkflowStart", "StartWorkflow");
    $wfis.StartWorkflowOnListItem($WF, $item.ID, $object)}
    Which then gives me this error.
    Cannot convert argument "itemId", with value: "GUID", for "StartWorkflowOnListItem" to type "System.Int32": "Cannot convert the "GUID" value of type "System.Guid" to type
    "System.Int32"."
    At line:23 char:5
    + $wfis.StartWorkflowOnListItem($WF, $item.ID, $object)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument

  • How to start a Workflow automatically

    Hello Friends,
    I'm new to SharePoint Designer and facing some challenges to do it. Please help me on this.
    My requirement is to send an automated email notification to an user when a specific document is created/modified in a particular folder. The document will come to SharePoint through emails (NOT by manual upload).
    Remember: This workflow works fine when we upload the document manually to the folder. But If I send the document to the SharePoint through an email (I've enabled "incoming email" setting for the folder. So that people can sent
    the document to the SharePoint) the workflow is NOT triggering.
    Below are the steps I followed
    1. I've created a list workflow and selected the folder name where the document will be saved. Let's say "File Received" is the folder name in my SharePoint and "Test File.docx" is the file that will
    saved in this folder.
    2. In the condition I wrote if current item Name contains "Test File" and in action I've created an email task
    3. and finally in start option I've checked start workflow automatically when an item is created/modified.
    This workflow is working perfectly when someone upload the document (i.e. Test File.docx). But when someone sent the same document though an email to this SharePoint, the document is saved in SP but the workflow is not triggering. 
    Any suggestion/help is really appreciable.
    version: SPD 2010
    Thanks! -Sandip

    Hi Sandeep,
    Please check this article for step by step implementation
    http://social.technet.microsoft.com/wiki/contents/articles/4607.sharepoint-2010-workflows-on-incoming-emails-in-sharepoint-documents-library.aspx
    http://sharepoint.stackexchange.com/questions/6713/how-can-i-make-a-workflow-automatically-start-when-an-email-is-received
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to start a Workflow with a Dynpro action button.

    Hi @ all,
    i have the problem, that i want to start a workflow with a self-made dynpro.
    The dynpro consist the following information who had to be transported in the workflow.
    Stacknr.
    User
    Date
    Time
    and a tif data file
    Somebody have an idea how it works?
    i am very new in workflow. So if you want to help me than please with a step by step guide.
    Thanks a lot.
    Regards Phil

    Hi,
    Please go through the wiki. There are plenty of instructions. Also, this is commonly discussed topic, so try to search first. The key for your problem is that there are function modules to tirgger workflows (either directly or with an event).
    Regards,
    Karri

  • How to start a workflow when a value in specific column is changed?

    HI !! 
    I would like that  my workflow will run only if a value on a specific colunm will change.
    is there a way to do it without using a third colunm ?
    thank you !
    nikita.

    Hi,
    According to your post, my understanding is that you wanted to start a workflow when a value in specific column is changed.
    When you create workflow, if you check the “start the workflow automatically when an item is changed”, the workflow will be started automatically once the item is edited.
    In the other word, no matter which column we changed, the the workflow will be started automatically.
    As a workaround, we can add condition or action to make the workflow excute the next step only if the value in specific column is changed.
    There are two options to achieve it.
    Use the “Wait for Field Change in Current Item" action”. If you add the action at the first,  the workflow will excute the next step until the column is chaned to the specific value.
       2. User the “If any value equals to value” condition. If you add the condition at the first, the workflow will excute the next step if the condition is satisfied.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to work with a workflow in Webdynpro

    Hi Team,
           I am new to webdynpro ABAP, i have a scenario
    I have a work flow id with me, i want to start this workflow from a webdynpro application,
    1. wedynpro application contains a list of inputs and user1 inputs this data that i have stored node, So node contains full data.
    2. Now i have a workflow id, i want to pass this node data to this workflow on a button click
        I have the button action, what code is required to pass this?
             (I sow few FMs in fourms but i dont know how exactly i can use it)
    3. When the approver gets the workitem, he should be able to approve,reject or send backToAuthor option he will get
         how to read this data back to approver screen for the approver to take correct action ?
    Please help me with some code sample, i sow few things but i am not sure about the parameters which required for this.
    Thanks,
       PP

    Hi,
    1)  In order to trigger the workflow from webdynpro and pass the list of inputs and your workitem id  , i will suggest you to go for    a   business object.
    2) If you have a business object than you can just trigger the workflow through the event (provided your workflow should be an event trigger workflow). As well as you can pass your parameters through it.
    3) In order to trigger the workflow through your business object event u can use the following function module.
    in the below code:-
    it_container- contains the parameter u want to pass like workitem id in your case.
    ZPOC_LEAVE- is my business object.
    OPTIONAL- is my event which will trigger the workflow.
    ty_object_key:- structure type of key fields of business object.
    Note:-you have to define these values as per your business object.
    * Trigger the event ZPOC_leave-CREATE to start the workflow
      DATA: it_container TYPE TABLE OF swr_cont,
                 is_container LIKE LINE OF it_container.
      DATA: g_return_code TYPE sy-subrc,
                 glf_event_id TYPE swr_struct-event_id.
      DATA : ls_objkey TYPE ty_objkey.
      DATA : ls_objtype TYPE swr_struct-object_typ VALUE 'ZPOC_LEAVE'.
      DATA : ls_objectkey TYPE swr_struct-object_key.
      DATA : ls_event TYPE swr_struct-event VALUE 'OPTIONAL'.
    CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
        EXPORTING
          object_type             = ls_objtype
          object_key              = ls_objectkey
          event                   = ls_event
          commit_work             = 'X'
          event_language          = sy-langu
          language                = sy-langu
          user                    = sy-uname
    *   IFS_XML_CONTAINER       =
       IMPORTING
         return_code             = g_return_code
         event_id                = glf_event_id
       TABLES
         input_container         = it_container
    *   MESSAGE_LINES           =
    *   MESSAGE_STRUCT          =
    4) You also need to define the parameter(workitem id in your case) under the parameter option of your event in your business object. (you can use the transaction SWO1 for business objects).
    5) Now in swdd transaction in the basic data u can mention your start event.
    This should be enough to trigger your workflow  and pass your workitem id to it.
    Thanks and regards,
    Mayank Gupta
    Edited by: Mayank Gupta on Feb 4, 2011 5:52 AM

  • How to avoid blank page in the report?

    adding a field in the grouping and checking the page break option means then we are getting blank page as the first page of the report? How to avoid this blank page?

    Usually blank pages appear as first page due to the presence of filler lines (//////) on top of report header.Please ensure that the top header is exactely started from top of page itself.

  • How to avoid the dialogue when converting from context menu

    This is a follow-up to http://forums.adobe.com/message/2016146#443364 which was locked due to a bug.
    i would like to know how i can avoid the 'save as' dialogue when using the context menu to convert a word file to pdf using windows XP/acrobat 8/word 2007.
    so far, it always prompts me for the filename, which is annoying as it does not allow me to batch-convert several files and let the thing run its course.
    the solution provided by Steve in the other thread does not work - even if the plugin from word does not propt for a filename, it still does when triggered from explorer/context menu.
    so back to square one: how to avoid that dialogue when not opening word at all?
    cheers, thanks for any help. michael

    For a permanent change, START>PRINTERS>right click on Adobe PDF printer and select properties>General>Printing Preferences>Adobe PDF Settings. Under the settings tab, uncheck the box related to asking for a name. Pretty sure that is the location, but it may vary with version.

Maybe you are looking for

  • How to clear Statistical Postings from Cost Center

    Hi All, Is there a way to clear the statistical postings from the cost center it has been incorrectly posted to and be moved to the correct cost center? I think there is a way to do it by making debit and credit entries to the G/L account where the p

  • Personal domain at mobileme

    I succeeded in directing my personal domain to be hosted with Mobileme. However, when I access my site, my address is duplicated. For instance, it is reading as follows: "www.example.com/www.example.com/Welcome.html" when it should only be "www.examp

  • How do I send many photographs on one email

    I would like to now if it is possible to send photographs via email on my iPad as well as lightening the size of the photos, much like one does on the windows system.

  • IPhone SDK Installation

    Hi I just downloaded the iPhone SDK, and was about to install. I already have the latest version of XCode installed. During the installation process, I see that the SDK has some common components that are already present with XCode. Would it be a pro

  • Aggregated Adobe Captivate Video in Flash Media Server

    Hey, Has anyone attempted to implement a captivate video into Flash Media Server? I specifically need to know if an aggregated Captivate video will work in Flash Streaming Server. The reason I am not sure that it will is because there are multiple .s