How to trigger workflow from changes in Sales Order in CRM?

Hi Experts,
I want to trigger event at the time of saving the changes in sales order (TCODE- CRMD_ORDER).
I have found one BO - BUS2000115 but it is getting triggered only after new creation of sales order.And there is no BO available when we change the sales order.For this reason I have created one customize event in BO(BUS2000115).
Now my question is How should I link this customize event so that it will trigger after saving the changes ?
I have seen SWEC transaction but was not able to find anything to link this customize event.
Please help ....!!!
Good response will be rewarded.
Thanks
Snehasish Das
Edited by: Snehasish Das on Feb 14, 2008 2:31 PM

In SWEC, actually you link the change document object to a Business object and its corresponding event , to which workflow should react to.
If yo udo not find the entry then, yo unedd to create one with finding out the respective chage documnet object.
Hope that helps.
Regds,
Akshay

Similar Messages

  • How to restrict header text changes in sales order level

    Dear Experts,
    how to restrict header text changes in sales order level change mode
    thanks

    Hello Chandu,
    how to restrict header text changes in sales order level change mode
    In order to restrict changes to Sales Order Header Text, the appropriate User Exit would be USEREXIT_MOVE_FIELD_TO_TVCOM_H. With the help of ABAPer, you can include the simple logic on the basis of Header Text type such that whenever any changes are incurred on the Sales Order header text, updates would be prevented.
    Please try out this approach and let us know your latest observation on this issue.
    Regards,
    Sarthak

  • How to trigger workflow from abap program

    Hi Experts,
    i have a user developed screen in which there is an option to approve (not a std tcode)
    for which there is no event created.
    i am very new to workflow ,
    now how to create an event and also how to trigger the workflow

    Hi,
    You can run a ABAP report or call a transaction from the BOR's Method directly.
    Check this link for more info.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/9a3cb3971c11d194c60000e82dec10/frameset.htm.
    In order to trigger an event programmatically, we would use the function module SWE_EVENT_CREATE.
    BUS1001006 ( Standard Material )
    here is the sample code.
    DATA: key LIKE sweinstcou-objkey.
    key = '68." Material Number (hard-coded)
    CALL FUNCTION 'SWE_EVENT_CREATE'
    EXPORTING
    objtype = 'BUS1001006'
    objkey = key
    event = 'CREATED'
    CREATOR = ' '
    TAKE_WORKITEM_REQUESTER = ' '
    START_WITH_DELAY = ' '
    START_RECFB_SYNCHRON = ' '
    NO_COMMIT_FOR_QUEUE = ' '
    DEBUG_FLAG = ' '
    NO_LOGGING = ' '
    IDENT =
    IMPORTING
    EVENT_ID =
    TABLES
    EVENT_CONTAINER =
    EXCEPTIONS
    OBJTYPE_NOT_FOUND = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    WRITE 'Event Triggered'.
    ENDIF.
    COMMIT WORK.
    In order to test whether the event is getting triggered or not, we can make use of Event Trace. Switch on the event trace using the transaction SWELS.
    Press ‘Switch On”.
    Now execute the program developed earlier. Now switch-off the event trace using the same transaction SWELS.
    Now go to transaction SWEL. Here you can list out the events triggered in the particular period of time. Here is the event-trace list:
    Regards

  • How to trigger workflow for already created purchase order ?

    HELLO EXPERTS
    let me clear my scenario first . i have 1 purchase order whose workflow is not triggered . means it is showing me message no workflow that have already worked for this object.i have created 1 more purchase order taking reference of this purchase order means both are same same message for this po also. it was happening because event linkage for the business object bus2012 is not activated but now it is enabled and i have created third purchase order with reference to above po means this third po is also same as above 2 no change other than po number but for this workdflow is getting triggered . now i want to trigger workflow for orignal first po but for my first po it is showing me same message that no workflow that have already worked for this object. what i have to do to trigger workflow for this po. i have performed this steps in test system. i have workflow number

    Hello !
          You can trigger the workflow from SWUE.Enter bus2012 and created for object type and event respectively.
          Click object key button where enter the purchase order number which have been already created.
          But, why do you want to trigger the workflow again for already created purchase order ?
    Regards,
    S.Suresh

  • How to trigger workflow from WDA and read workflow container into WDAscreen

    Dear Expert,
      Please suggest the solution for the following requirement:
       1. Create 1 leave request from WDA and submit for approval
       2. When User press "submit" button in WDA screen, workflow will be triggered for processing approval  .
       3. When 1 request is sent to approver, he logon into portal and access to UWL to process task himself.
       4. After he press approval link, the system will call WDA screen to process approval ( this screen will contain full information of requester.)
       5. After finishing process, the result will return workflow and end of process.
    Please send simple example for step 1 and one for get data from workflow into WDA screen at step4
    Any help would be appreciated
    Thanks and best regards,
    DucTV.

    Hi,
      I am not sure for what reasons you are developing a application but SAP has its own standard workflow process for applying leave from ESS portal..
    1. AS soon as you click on the submit button of the applicaiton then you need to trigger a workflow right in that case you make sure that you need to pass some data to the workflow container I hope you might be using either SAP_WAPI_CREATE_EVENT or SAP_WAPI_START_WORKFLOW to start the workflow  in both the function module you have to fill this table in Order to pass the values from ABAP    program to workflow container.
      The answer to your question is it depends on the type of the work item ID you are passing to the SAP_WAPI_READ_CONTAINER if you are passing a top work item ID  then you will have workflow container in LT_CONTAINER if you are passing any of the child or dependent work item ids of the top work item id then you have that respective task container value.
    2. You can make use of the any foreground activity or a decision step, it depends on how you want to get back the result, if you use a foreground activity step then in that case you have to populate the result back to the task container and if let say you are using a decision step then in that case you do not have to populate the result there will be standard  container element _RESULT in the decision step it will be filled.
    Make sure if you are expecting some work item in UWL and as soon as you click on the work item your application should open then configure in SWFVISU transaction and maintain DTD in UWL any portal consultant can perform this steps in few seconds.
    3. When the workflow is started then the work item which you are able to get back is the one which helps to identify dependent work item ids it is the TOP or PARENT work item ID.
    Regards
    Pavan

  • How can i trigger workflow from report

    hi i create one report and workflow. i want to trigger workflow from report, how can i do this one, please send me any code you have.
    Thanks & Regards
    Sankar

    Hi Sankar,
    There is another sample code...
       REPORT ZRGEVTCR.
    INCLUDE <CNTN01>.
    DATA: OBJKEY  LIKE SWEINSTCOU-OBJKEY,
          EVENTID LIKE SWEDUMEVID-EVTID.
    DATA: BEGIN OF EVENT_CONTAINER OCCURS 0.
            INCLUDE STRUCTURE SWCONT.
    DATA: END OF EVENT_CONTAINER.
    PARAMETERS:
      OBJTYPE  LIKE SWETYPECOU-OBJTYPE DEFAULT 'ZRGMARA',
      MATERIAL LIKE MARA-MATNR,
      EVENT    LIKE SWETYPECOU-EVENT   DEFAULT 'CREATED',
      VOLEH    LIKE MARA-VOLEH,
      LED      LIKE SY-DATUM           DEFAULT '19971231'.
    OBJKEY = MATERIAL.
    CLEAR EVENT_CONTAINER. REFRESH EVENT_CONTAINER.
    set input parameters for CREATED event.
    remark: to be more general, we had to use fm SWO_QUERY_PARAMETERS
    IF EVENT EQ 'CREATED'.
      SWC_SET_ELEMENT EVENT_CONTAINER 'LatestChangeDate' LED.
      SWC_SET_ELEMENT EVENT_CONTAINER 'VolumeUnit' VOLEH.
    ENDIF.
    CALL FUNCTION 'SWE_EVENT_CREATE'
         EXPORTING
              OBJTYPE           = OBJTYPE
              OBJKEY            = OBJKEY
              EVENT             = EVENT
         IMPORTING
              EVENT_ID          = EVENTID
         TABLES
              EVENT_CONTAINER   = EVENT_CONTAINER
         EXCEPTIONS
              OBJTYPE_NOT_FOUND = 1.
    IF SY-SUBRC NE 0.
      WRITE : / 'Object type', OBJTYPE, 'not found in object repository'.
    ELSE.
      IF EVENTID NE 0.
        WRITE : / 'At least one receiver was found'.
        COMMIT WORK.
      ELSE.
        WRITE : / 'No receivers found'.
      ENDIF.
    ENDIF.
    Hope this will help you to solve your problem that how to trigger workflow from the report.
    Thanks,
    Pramod

  • How to restrict the user from making any changes in Sales order- item level

    Hi to all
    How to restrict the users from making any changes in sales order at item level if the same sales order is released by senior user through status profile.
    Regards
    Anish Parikh
    Edited by: anish parikh on Jan 24, 2008 5:16 AM

    Hi Anish,
    This can be achieved through the roles and authorization.
    This can be done through the basis team. they can create user profiles and roles.
    For the roles they assign some transaction codes so that they can view the only assigned tr. codes.
    Like that ur requirement can be done.
    Also u can prevent the user to change any fields in the sales order screen (VA02). for that please modify the authorisations.
    Hope i answers.
    Reward points if useful.
    Edited by: kaleeswaran bhoopathy on Jan 24, 2008 9:57 AM

  • How to enable user sets from tools in sales order

    Hi,
    How to enable user sets from tools in sales order..it is greyed out..
    and is there anyway we can do to add shipsets from other place?
    Thanks

    Hi Ruchi
    I hope u had gone to the screen fields which u want them not to be editable. So there u select all the fields contents which u do not want to to be changed and check the boxes with W.content and Display and save it. Once evrything is done u have to activate the particular transcation going in to the standard variants and put the name and click the activate button.
    Hope its clear
    Reward if help ful
    Sri

  • Trigger workflow from adobe form

    Hi.. can anyone outline me with the basic steps required to trigger workflow from abobe. Java Wd and ECC 5.0. Thanks!

    Hi Pankaj,
    have a look at the ISR Cook book and Developing PCR (Personal Change Requests) <a href="https://websmp202.sap-ag.de/mss">Manager Self Service</a> You will gwet more links if you do a quick search or just go to sdn.sap.com/interactive forms
    <a href="https://forums.sdn.sap.com/click.jspa?searchID=2077779&messageID=2451183">https://forums.sdn.sap.com/click.jspa?searchID=2077779&messageID=2451183</a>
    Do update, if you find any more issues
    Thanks and Regards,
    Anto

  • Trigger workflow from Email (lotus or Outlook)

    Hi All,
    Is it possible to trigger a workflow from An Email (lotus or Outlook). if so how can we do it?
    Reg,
    Sre
    Edited by: sre on Jul 9, 2009 3:53 PM

    Check the following links.. which answers its pretty much possible to Trigger workflow from email...
    triggering workflow from incoming mail.
    Triggering a workflow on receiving mail from external mail id.
    Can we trigger workflow on receiving e-mail ?
    Regards,
    PR.

  • How to Copy Cost Estimate from Quotation to Sales Order in MTO Scenario

    Hi,
    We are working on a MTO scenario- Sales order Costing with Valuated Stock.
    And our case we are creating the Cost Estimate at the time of Quotation using PP qty structure. Now we wan to transfer the cost estimate to Sales Order as we don't want to recost the sales order.
    Currenty it's transferring only the EK01 condition as total planned costs in Sales order but we want to see the itemization also.
    Please suggest is there any way to transfer this cost estimate with itemization from Quotation to Sales Order.
    Regards
    venkat

    Hi
    As far as I know the CO esimate does not get copied from Quotation to Sales Order
    You need to recost the SO again.. If your Qty Structure has not changed between Quotation to SO and your valuation variant is also the same - it would give the same result
    br, Ajay M

  • !!!How to restrict user for making  changes in Sales order , partner level

    Hi all,
    Can anybody tell me how to restrict user for making  changes in Sales order  at partner level, is it through user exit?

    Hi Ruchi
    I hope u had gone to the screen fields which u want them not to be editable. So there u select all the fields contents which u do not want to to be changed and check the boxes with W.content and Display and save it. Once evrything is done u have to activate the particular transcation going in to the standard variants and put the name and click the activate button.
    Hope its clear
    Reward if help ful
    Sri

  • Cannot change Tax Code from the referenced sales order line

    hi,
    Has anyone ever got this error when creating Sales Order(SO): "*cannot change Tax Code from the referenced sales order line*"?
    The error occur with order type Return.
    This SO is created by copying from another SO.
    Please help.
    Regards & thanks,
    eRie

    hi,
    Has anyone ever got this error when creating Sales Order(SO): "*cannot change Tax Code from the referenced sales order line*"?
    The error occur with order type Return.
    This SO is created by copying from another SO.
    Please help.
    Regards & thanks,
    eRie

  • How to create multiple WIP jobs from a single Sales Order Line

    Hi all,
    I want to know if there's a standard way to create multiple single unit wip jobs from a sales order line which has 2 or more units, i mean...
    I have a sales order line with item A with 3 units. If I progress the sales order, a single job is automatically created in WIP with 3 units to be created. What i want is to create 3 jobs with one unit each, all of them linked to the sales line order...
    Thanks in advance!
    Regards!

    Assuming simplest of scenarios....
    In case of changes to Sales order qty, an unplanned order will simply disappear.
    If a wip job has already been created, you will get a cancel message (in case the job is not needed) or a reschedule out message (if the quantity needs to be reduced).
    ASCP will give you a reschedule in /out message if the dates change.
    Sandeep Gandhi

  • How to stop screen from changing size every time I touch cursor

    how to stop screen from changing size every time I touch cursor

    If you're using Windows 8 it has to do with the mouse. Go to Control Panel - Mouse - Click Pad Settings. Uncheck pinch zoom then appy.

Maybe you are looking for

  • Monitor no longer sleeping after 10.8.2 & Mac Mini EFI update

    Hopefully someone can help out here, my new 2012 Mac Mini was running fine without any problems, then when I installed the 10.8.2 update (not the original update that got pulled from the Apple site but the newer version) with the EFI Mac Mini firmwar

  • Creation of Hyperlink to navigate to taget view

    Hi Friends, I have a requirement  Can you pls help me out. The Requirement is: Based on Ouput of BTQR1Order( i.e Object Id  Hyperlink ) I need to fetch the data of BTQSrvOrd by Object id. I had used the code from the link http://wiki.sdn.sap.com/wiki

  • Test Engineer in Ann Arbor, MI

    Job Title:         Test Engineer Department:    Operations Reports to:      Director of Operations General Summary Plans, designs, fabricates and implements production/manufacturing tests for new and existing products and systems, applying knowledge

  • Adobe cs6 yosemite problems

    After I wake the computer, and try to use an already open Photoshop CS6 window, I get strange patterns in the canvas. Purples. Greens. And when it's empty, it goes all black. A restart fixes this, until sleep. Happens every time. Anyone know a fix? T

  • How to set up smart folder in icloud mail

    can you get smart folders on icloud mail macpro 10.6.8