Trigerring Workflow.

Wants to trigger PO Release workflow.... all customizing is done. have set the events in WF also and activated it but where to associate it with order creation that as soon as a PO is saved the WF should be triggered.
Is that somebody has to actually trigger the wf first from the release tcode and than further it strat?.
Please help ..
Rgds
Ajay.

Hi!
You have to maintain output control for PO using transaction NACE for application EF - for your output type setup condition records' medium to 9 (Events SAP Business Workflow).
Hope it helps.
Regards,
Maxim.

Similar Messages

  • Trigerring workflow through status management

    Hi Abappers,
            I am new to workflow, can any body tell me how to trigger a workflow using.
          1. Change Management Document
          2. Status Management.
    Regards,
    Narendiran Rathinavelu.

    Dear Narendiran
    Got it..No need to create your own Object.There is a object called "ZBUS2012" for purchase order  (Go to SWO1 you will find it in Object reposatory browser)Take its "Realeased" Event as your triggering event and u r done.
    And if you still wanna use your own object then use method "create_event*" to fire your own event and take that event as your triggering event in workflow
    Hope this will help
    Also sent one good ppt for basic workflow design..refer it..
    Reward points please
    Regards
    Message was edited by: Tushar Mundlik

  • Error in Inbound Idoc trigering Workflow Scenario

    I am getting below Error while I am posting Z Inbound IDOC in production system.
    Please tell me what is getting wrong and how to correct.
    Work item 000000000000 cannot be read
    Message no. WL803
    Diagnosis
    The work item with the specified ID can either not be read completely or partly (for example, its container).
    System Response
    The action was cancelled and the work item, if it still exists, set to error status.
    Procedure
    Check whether the work item has already been deleted or whether only parts of it can no longer be read.
    In the latter case, the work item is inconsistent.
    Refer to your workflow system administrator.
    Points will be surely given to helpful answers.
    Regards
    Edited by: Tushar Mundlik on Feb 12, 2008 8:15 AM

    Hi Krishna,
    First we have to find out if the error comes from processing in the application or from one of the checks performed before the application is called.
    Go to function module IDOC_INPUT_OPDERS and put a breakpoint on "PERFORM edi_mode_to_mem.". Then reprocess the Idoc and when the program stops at your breakpoint set INPUT_METHOD to 'A'. In this way your order will be processed online (using BDC and you can find the error).
    If the program doesn't stop at your breakpoint the error comes from one of the checks before.
    But please try this first and come back if this doesn't solve your problem.
    Kind regards,
    John.

  • Trigerring workflows in an ABAP program

    Can somebody please tell me the best way to trigger a workflow in an ABAP program. And if possible please send me some sample code how it can be done. I need it urgently so if possible please reply to this ASAP.
    Thanks in advance,
    Mohsin

    Check the following Code to trigger the Workflow form custom program.
    Data for workflow trigger
      DATA: objtype    LIKE  swetypecou-objtype,
            objkey     LIKE  sweinstcou-objkey,
            event      LIKE  swetypecou-event,
            event_container LIKE  swcont OCCURS 0 WITH HEADER LINE.
      objtype = 'ZBUS1001'. "Material [sub object of BUS1001]
      MOVE v_wfmatnr TO objkey. "V_WFMATNR is material number
      event = 'CreatePLMMaterial'."Custom Event defined in
    ZBUS1001 [Tcode SWO1]
      REFRESH event_container.
    *Following are the Event parameters required in the *Workflow
      swc_set_element event_container 'Attachment' v_wfattachment.
       swc_set_element event_container 'Material' v_wfmatnr.
      swc_set_element event_container 'TisGroup' v_wftisgroup.
      swc_set_element event_container 'SchDate' v_schdate.
      CALL FUNCTION 'SWE_EVENT_CREATE'
           EXPORTING
                objtype           = objtype
                objkey            = objkey
                event             = event
           TABLES
                event_container   = 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.
      ENDIF.
      COMMIT WORK.
    In TCode SWETYPV Create entry for Object type Event and Workflow ID.
    In my case Object type is ZBUS1001
    Event CreatePLMMaterial
    Rec type = <Workflow ID>

  • Leave Overview IAC iview not trigerring workflow (WS01000109 or WS12400005)

    Hi,
       We have brought in IAC iview (WS01000109 and WS12400005) for leave request Overview in portal . When I try to delete an unapproved leave it is not triggering the desired workflow for (WS01000109 and WS12400005). It is giving error message "Request cannot be deleted".

    Hello,
    What application are you using to delete the unapproved leave?
    It sounds like it has a problem with that leave being deleted, and so won't start the workflow.
    So, it doesn't sound like a workflow problem. Debug the application, if possible, to see why it is doing so.
    regards
    Rick Bakker
    Hanabi Technology

  • Workflow Steps send automatic emails, but this is not required..??

    Hello,
       we have a strange problem we got recently with our workflows steps we are using.
       The Workflow Steps and Workitems works all just fine, the Issue is that some times the trigerred Workflow Steps automaticly send an an external email to the User outlook with the Wokitem Text & Description, i dont remember that i have activated any thing to send email in the Workflow steps we are using...Please help and advice why this emails is sent out and how we can deactivate it.
    We are using the standard SAP Performance Management Workflows, Example WF-Step: TS12300110.
    Thanks and Kind Regards,
    Nazih

    Again, i would like to clarify some thing here:
    1. The Workflow Tasks we are using in out Process are working just fine.
    TS12300110
    TS12300111
    TS12300115
    TS12300112
    TS12300096
    2. In this SAP Workflow Tasks, there is no step which send an email to the WF-User.
    3. To send an Email to user we can use the Reports RSWUWFML mor RSWUWFML2 as you mentioned, i know this well and yes they are planned in the System with a Variant, but which does not include our Workflow Tasks in it. and also the Report RSWUWFML is planned to run once a day in the evening, but we are getting the Emails directly after triggerring the WF-Tasks...strange?
    4. I have checked the Tcode SWE2 and found one entry to the WF we are using:
    BOR-Objekttyp     APPR_DOC     INFO_APPRAISER_CHANGE_APPROVE     WS12300115
    If i deactivate here i will shut down the Workflow ..right?
    Thanks & Regards,
    Nazih

  • BOM in Workflows

    Hi all,
    I just need a BOM to be displayed in workflow.I was told to use Userexits/BADI.But i am not aware of how to proceed.
    Please provide me a clear step-by-step process.
    Points are guaranteed for every input.
    Thanks in advance.

    HI Rajkamal,
    Yes its easy to display the BOM in the workflow but I am not sure about the triggering part .  Try to find out the change document object for BOM . If it is not there then try to find out an user exit for the transaction CS01 . In the user exit include the code for trigering workflow.
    Regarding getting BOM details in the workflow , here are the steps :
    Create a function Mdule for fetching the BOM detaisl with import parameter as Material and export as exploded BOM.
    create a Z object of your standard bus object
    Add a method to this object with refernce as this function module .
    Release your Z object.
    Then goto transaction PFTC , create a task and give the object name as your Z object name and method as your added method.
    Then goto your workflow . Add an activity and give the task number created in above step in the activity .
    Bind the workflow and task by clicking on binding button .
    Save and activate . Also assign the proper agent  .
    Hope this will solve your problem .

  • Stopping already started workflows

    Hi  All,
    I am facing the problem of workitems being flooded into the swi1(in waiting status) tcode because of a workflow being triggered. At present the workflow event linkage has been stopped.But the workitems of the previously started workflow (concerned with reminder mails)are getting populated which needs to be cleared.The reminder mails are continuously being sent ,as the loop of the workflow that has started is 100 times.
    Can anyone suggest,how to stop the already trigerred workflow as the number of workitems into swi1 tcode is huge!!
    standard task : TS92000016
    At presnt we are completing each and every workitem manually inorder to stop the reminder mails being trigerred!!
    Thanks in advance!
    Gowthami

    Hi,
    Just wirte a simple report to delete the workitems logically. Get the list of workitem form SWI1/SWA and pass it to your report.
    Sample code :
    Data : WI type SWW_WIID.
    select-OPTIONS : p for WI.
    Write : 'Following workitems are logically deleted'.
    loop at p.
    CALL FUNCTION 'SAP_WAPI_ADM_WORKFLOW_CANCEL'
      EXPORTING
        workitem_id          = p-low
    *   ACTUAL_AGENT         = SY-UNAME
       LANGUAGE             = SY-LANGU
       DO_COMMIT            = 'X'
    * IMPORTING
    *   RETURN_CODE          =
    *   NEW_STATUS           =
    * TABLES
    *   MESSAGE_LINES        =
    *   MESSAGE_STRUCT       =
    if sy-subrc is initial.
      write:/ p-low.
    endif.
    endloop.
    Thanks and regards,
    SNJY

  • Workflow is not trigerred from the portal

    Hi all,
    I have a scenario in which the workflow requires to be trigerred through the portal and direct the task to the approver's inbox in extent to sending email notification to the approver, I have developed the custom workflow and i am using the standard rule for getting the approver. all of this is working fine when i test them on R/3 but wheni am integrating the workflow to the portal using a BAPI it is not trigerring the workflow. The first step in my worklflow is to send the email notification  to the approver, if i remove this step then it directs the task to the approver's inbox which is the second step in my workflow.
    Can anyomne please guide me why it is happening.
    Thanks.
    Saurbah Anand.

    Hi,
    You said
    <i>"wheni am integrating the workflow to the portal using a BAPI it is not trigerring the workflow. The first step in my worklflow is to send the email notification to the approver, <b>if i remove this step then it directs the task to the approver's inbox</b> which is the second step in my workflow."</i>
    Do you mean say that it is not working when you put the sendmail step alone? Or is it that the workflow is not triggering at all.
    I assume that you are using a BAPI to create an event which will start this workflow. Now if your workflow is not starting at all then you need to activate the event trace (SWELS) and check whether the event was triggered first (in SWEL). If yes then check for any errors in the receiver connection.
    If your workflow does start and fails at sending mail step then you may need to give some more info. Are you using the standard sendmail step or Are u using a background task. In case if u r using a BG task then it might be creating a dump while triggering from portal (Ex. it might need the Evt_creator user id to determine the approver which is not binded properly from Event<->Workflow<->Task<->Method).
    Also have a look at ST22 for any dumps.
    Thanks,
    Prasath N

  • Workflow : How we can have decimal instead of comma in the trigerred mail

    Dear Experts ,
    How to resolve comma in place of decimal while Triggered mail from workflow.
    Whenever a mail is trigerred from workflow system a comma is coming for the decimal digit in the currency field . How we can have decimal instead of comma in the trigerred mail.
    Would be grateful for your comments .
    Thanks,
    Sachin

    There  are different approaches.
    You can try this approach.
    Example: amount filed
    write t_menge to t_menge right-justified.
              if t_menge+13(1) = ','.
                t_menge+13(1) = '.'.
              endif.
    Regards,
    SaiRam

  • The workflow gets trigerred thrice...

    Hi,
    The trigerring event for the workflow is getting triggered thrice. The event is attached to bsvw and i have activated the event, thats it, but when i check in swel there are three entries having the same event. Any suggestions please..
    Regards,
    Sukumar.

    hi,
    Its  a simple logical expression which gets evaluated before the workflow gets triggered,in this way we can prevent the other workflows from getting triggered.
    Another option is to have a check function module.This helps in preventing most of the workflows from getting triggered.
    I hope this will be helpful to you.
    Regards,
    Saujanya

  • Workflow starting when event is trigered, but not in transaction

    Hello,
    I have defined a workflow for FI, based on FIPP and a derived ZSF1FIPP subclass.
    I have a strange situation with this WF. It listens for the event CREATE from FIPP.
    If I create an invoice with fbv1, de WF doesn't start, and in trace it sayes ended with exception.
    If I simulate the CREATE event for FIPP, and fill the structure, it works perfectly, also if I start it in test.
    I have checked the linkage tables like swu2, but it seems ok.
    If you have any idea, what is causing this behavior,  please reply.
    Thx and regards,
    Adi

    Hi Sue,
    Thx for following up.
    In the check function, I am setting properties like:
    I think they are ok, as the WF starts when trigered by SWUE.
    Regards,
    Adi
    Vollständigkeitskennzeichen muß ne space sein
    ansonsten wird überflüssiges Ereignis gelöscht.
      if flagcomplete eq space.
        raise unvollstaendig.
      endif.
    *..... ZUSATZFUNKTION: Element des Ereigniscontainers füllen" .......
    zunächt lesen des Attributs Vervollständiger
    swc_get_property object 'UserComplete' usercomplete.
    if sy-subrc ne 0.
      raise object_not_found.
    endif.
    "US" für USER voranstellen
    concatenate 'US' usercomplete into usercomplete.
    Manipulieren des Ereigniscontainers (Feld INITIATOR)
    swc_set_element event_container '_EVT_CREATOR' usercomplete.
    if sy-subrc ne 0.
      raise object_not_found.
    endif.

  • EHp4 NEw ECM Workflows not trigerring from portal

    CL_HRECM00_WORKFLOW_EVENT This is the class used to trigger the workflow and the workflow templates are
    WS04000022
    WS04000023
    WS04000024
    WS04000025 and these are having only notification steps and wait for events.
    When we do the test Run in R/3 events gets triggered and workflow is running sucessfully but from the portal Event is not trigerring to start the Workflow.
    please guide.
    Thanks,
    Amar

    Hi
    Please provide the steps taken in Portal to reproduce the issue
    I think the problem could be missing configuration in UWL configuration file which is uploaded via
    System Administration -> System Configuration -> Universal Worklist
    and Workflow -> Universal Worklist Administration.                
    I am not sure how UWL team delivers this code for new work items - its possible a CSS message is needed to investigate this
    Thanks
    Stuart

  • Regarding Workflow trigerring using change document

    Hi all,
    I am trying to trigger a workflow using change document object.
    I want that to trigger the workflow on the material master change through MM02.
    I have created  a business object ZBUS1001 and wanted that on change of material master
    the custom change document object should call the workflow
    I went through all the material avaialable over SDN ,but can not find a change object for change in material master through MM02  for std business object  BUS1001.
    Please tell me how to find one.
    Please reply if any one of you have some solution.

    Hi,
    Thanks for your reply.
    I am using an existing change object - MATERIAL_N of Business Object - BUS1001 and the event
    BASICMATERIALCHANGED.
    I have mentioned  the details in the tcode SWEC.
    And even in the workflow i have given the start of event  as the BUS1001 and event BASICMATERIALCHANGED.
    But workflow not called .
    Do we need to maintain an entry in SWED?
    If yes then in function module column what we need to mention.

  • Purchase Order Workflow event trigered when i create the Schedule Agrrement using ME31l.

    Hi expert,
         When i create Schedule agreement using me31l it will raise the PO workflow instead of SA  Workflows. ?  where is the configuration mismatch happen ?

    HelloTithira,
    I'm very sorry to admit that I haven't entirely looked at a running system when talking about the CEKKO. You're absolutely right that the document category type is not part of it and you couldn't proceed with maintaining the classification in that way.
    I did mention the BSTYP field, as I was used to have the field available, as I usually add this at the first place when starting a project for PO-releases.
    As far as I remember, there's a MOVE-CORRESPONDING statement at one point, where the CEKKO structure is initialized, from the EKKO structure that is available. So when you name an APPEND-field of the CEKKO structure BSTYP having the same type as the EKKO, you should find that field filled, without(!) implementing the CEKKO user exit yourself.
    It this doesn't help either, please implement the CEKKO user exit to fill your BSTYP field.
    If nothing helps at that point, and you're still stuck, you can enable a "Workflow start condition" for the two events on BUS2012.ReleaseStepCreated and the same for BUS2013, where you check the EKKO-BSTYP of the BOR Business Object types against the corresponding object, i.e.
    _EventObject.PurchasingCategory = 'F'     (For the event on BUS2012)
    Do get the PurchasingCategory, you'll need to subtype and delegate systemwide and create a database field for EKKO table, choosing the field BSTYP. Do this for both the BUS2012  and  the  BUS2012  or a common super-type if you find so.
    With the very best wishes
       Florin

Maybe you are looking for

  • [solved] subversion and apr-util-iodbc from aur

    Hi, apr-util-iodbc from AUR http://aur.archlinux.org/packages.php?ID=27040 provides apr-util but subversion still says it needs apr-util. It seems ignoring provides directive. jithine ~ $ yaourt -Qi subversion Name : subversion Version : 1.6.5-5 URL

  • Example Schemas - can we remove

    Hi All Can we remove the expired and locked users! Say for example HR, HR Schema - OE - OE Schema and the default schemas that load with Oracle 9 Rel 2. I suppose these schemas use example tablespace or so. Please assist me regarding this Thanks Ravi

  • Purpose of IS SUPPLIED and IS REQUESTED

    Hi, What is the purpose of "IS SUPPLIED" and "IS REQUESTED" and in which cases we do these ABAP statements. Thanks, Sandeep

  • Gathering User Information Freezes

    When starting "C:\Program Files\Adobe\Elements 9 Organizer\Photoshop Elements 9.0.exe" the software brings up a "Welcome to Adobe Photoshop Elements 9" startup screen.  It gives me the option to Organize or Edit.  It also starts to gather user inform

  • Automatically add email contacts to new directory users?

    Mac OS X.6 Server.  Almost all users utilize the webmail interface. Is there a way to automatically add all current user email addresses in Workgroup Mgr to new users when created?