Workflow and Trigger Event

I am very new to workflow and I understnad some of the principles but just not clear of actually how to do it.
I created a workflow then sends an email. Its really simple.
I need to trigger the workflow using the swe-event_create function but the problem is that I don't know what object type, objectkey and most importantly the event to pass to the function to trigger the workflow. Do I pick an event from somewhere or create an event???

Yes, look at this:
KEY = imara-matnr.
CALL FUNCTION 'SWE_EVENT_CREATE'
   EXPORTING
     objtype                       = 'ZOBJCREDIT'
     objkey                        = KEY
     event                         = 'PROCESADO'
   EXCEPTIONS
     OBJTYPE_NOT_FOUND             = 1
     OTHERS                        = 2
in OBJTYPE i've creat a business object named ZOBJCREDIT and i create inside that BO an event call PROCESADO. You must craate your BO in the SWO1 transaction...
Message was edited by: Carlos A. Lerzundy

Similar Messages

  • WorkFlow and "Created" Event in Purchase Requisition

    Dear Experts,
    I have created a new workflow for the Purchase Requisition
    The problem is that when i tried to use "Start Event" for the object type "BUS2105" i didn't find the event "created"
    I need this event "Created" because my work flow starts with the creation of the PR
    Please supoort my with the full steps i need to overcome this problem
    Waiting for youe advice
    Best Regards
    Edited by: Sap Sap on Jun 29, 2009 11:10 AM

    You can use "releaseStepCreated" Event for the start.

  • No "before new record saved" trigger event in workflow definition ?

    Hello,
    I have following problem: I have to make a simple integration, where products have information about available quantity of given product . Assume we have field - it is called "Available amount" and it tells how many products are on stock. Now suppose we have created an opportunity, and we want to add Opportunity Product Revenue - we're selecting product and then quantity. I want to make OCOD to display message and prevent from adding opportunity product revenue, when its quantity is greater than "Available amount" field which is present in associated product record. I've created small C# application and used workflows to create Integration events. It works - but not exaclty how I want it - when I add a new record the workflow generates integration event - but I'd like to generate integration event before a record is created, also I'd like to show a notification from OCOD. But for "revenue" we do not have a trigger event called for example : "before new record saved" - we have only "when new record saved" and "before modified record saved".

    Hi,
    From your requirement, it seems you, want some kind of check. Did you try puting this validation on field level, i guess you would need to join fields and compare in field validation. So, whenever user creates a new record this validation kicks and user is notified of the error.

  • HOW TO CREATE  and  USE EVENTS IN WORKFLOWS .

    HOW TO CREATE  and  USE EVENTS IN WORKFLOWS with the help of classes.
    What i am doing is..
    open se24
    event tab->event name->parameters
    method tab->method name->event handler->copy parameters
    interface tab->if_workflow->enter
    tell me what else to do step by step
    Another important thing is that HOW to use these class events to trigger the workflows.
    REPLY ASAP
    THXS IN ADVANCE

    Hi,
    Pl. see this blog...
    Raising ABAP OO events for workflow
    Regards,
    JOy.

  • Check for duplicate invoices and trigger a workflow

    Hello All,
        I have a requirement to check for duplicate invoices in AP(Accounts payable) and trigger a workflow when duplicate invoices are found. I a not sure how to do any of the above. Please  let me know if you have any information on:
    1) Checking for duplicate invoices in AP
    2) Trigger a workflow
    Are there any standard workflows that checks duplicate invoices?
    Thanks.
    --Mithun

    Hi MD,
    I doubt if system gives an error on FI side when a duplicate invoice is posted.
    I feel you would require a BAdi for it, where you can call your WF using FM SAP_WAPI_START_WORKFLOW.
    Hope it helps.
    Aditya
    P.S also ask your Func Consultants, if there are any settings in the Customization, where you could capture Inv Dt, Inv Amt, Vendor, Company code.
    Edited by: Aditya Varrier on Oct 15, 2008 9:38 AM

  • How to send file as attachment and call RFC to trigger event in ECC?

    Hello,
    A file is retrieved from FTP into PI (w/ NO MAPPING required - just pass through) and placed on the ECC appl. Server. Then, a RFC is made to trigger an event to process the file in ECC.  However, a RFC cannot be called in the graphical mapping if there is no mapping required.
    I have seen this Blog, u201CFile to R/3 via ABAP Proxyu201D, http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1847. [original link is broken] [original link is broken] [original link is broken]  But we are told not to touch the file as it will be converted in ECC by a program.
    Also, I read that using ABAP proxy-PI-FTP, I can do a pseudo mapping, simple one node, (just so a RFC can be triggered) and also pass the file as an attachment.  Letu2019s say this works:
    Question 1:  What configuration steps in the FTP adapter that will allow me to u201Calsou201D send the file as an attachment? 
    Question 2: (Continue with ABAP proxy option) How do I control where will it be deposited so that the program can access it?
    Question 3:  If this is not the best approach, how many steps would I need to do it in BPM (i.e. pick up the file from FTP, place it on appl server, and trigger a RFC to call an event to process file)?
    Thanks for any suggestions!
    John_Xi

    I have read those two help file and was able to use it in the ABAP proxy code.  Thanks.
    This is the current outcome.  I totally understand that SAP PI communicates via XML.  So when PI picks up a file that contains XML tags, the Inbound proxy is triggered.  I can see its processing in SM50.  However, when I give the Sender FTP adapter a non-XML file to pick up, the Inbound Proxy does not trigger.  The file itself should be read into memory so that I can save it to the application server via ABAP code (with no mapping).  That is why there is no operation mapping
    The reason I am using using FTP to ABAP proxy is because I need to call a subsequent RFC step to process the file.  Else, I will just use FTP to File Adapter scenario.
    Question 1: I am thinking that that file is the attachment.  Is that where I am incorrect and I still need to send in an XML file with the attachment as an addition?
    Question 2: Is this the best approach or should I use BPM?  If BPM, what steps do I need?

  • Best way to get SharePoint workflow to trigger InDesign XML refresh and PDF export?

    What is the best way to get a SharePoint workflow to trigger the refresh of an XML datasource within an InDesign document, and generate a PDF export? The datasource would be hosted by SharePoint.
    Would InDesign Server be required?

    My understanding of the license is that Adobe requires you to use InDesign Server for this sort of thing.
    But the implementation is probably the same either way. Periodically poll, or find some way to trigger it.

  • Deadline Monitor thru actions and trigger workflow

    I have a requirement when service ticket is created.After 5 days somesequence of process should happen through workflow.Now i have configured the start condition in Actions which should trigger workflow.
    Will there be no specific triggering  event for this workflow to trigger.As now the Action is green but no workflow is triggered.

    Hi
    in action in method you should raise event.
    this event next will trigger workflow.
    also check in tcode swetypv is you workflow connected with this event.
    Regards
    Radek

  • How can i trigger workflow when particular event happens in webdynpro

    how can i trigger workflow when particular event happens in webdynpro

    hi,
    To trigger workflow , use the fm : 'SAP_WAPI_START_WORKFLOW'
    Refer this thread for similar requirment : Workflow in WebDynpro
    Blog : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1564403950DB00699140435432809306End?blog=/pub/wlg/2778

  • Whats is the use of SM64 Tcode?? and about Trigger Event???

    Hi
    Whats is the use of SM64 Tcode?? and about Trigger Event???
    Can anyone tell me??
    Thanks & Regards
    Senthil

    Hi,
    When scheduling a background job, you can specify it to start "after event".
    If you do so, you'll have to create an event in SM62.
    If a job is scheduled after event event and you trigger the event with SM64, the job will start.
    Events can be raised by external systems in SAP by sending a command to a SAP application server. You can also raise event in any program using function mosule BP_EVENT_RAISE.
    hope this helps....
    Olivier.

  • Event Linkage for custom Workflow and Custom BO

    Hi Friends,
    I have created one Custom Module Pool, Business Object and Workflow Definition. In Business Object I have created one Business Event and the event is triggered from Custom Module Pool using function module SWE_EVENT_CREATE. I have created event linkage in transaction SWETYPV and receiver type given Workflow Template No: (WS*) and receiver function Module SWW_WI_CREATE_VIA_EVENT_IBF and checked Event Linkage Active checkbox. Finally I have activated the Triggering Event in the Workflow basic data section. But the Workflow is not getting triggered. Can anyone of you give me a solution for this or tell whether i missed any of the setting for the workflow?
    Regards
    Sujith

    Hi Sujith,
    Did you include a commit work statement after the call to SWE_EVENT_CREATE?
    Regards
    Gareth

  • Workflow trigger Event

    Hi
    In the Release 17 ,just came across the Trigger event When Record is restored. I would like to know what actually does this event do.
    Thanks in advance.

    This trigger event occur, when you delete a record and restored it again from the deleted items.
    This event has only two actions -
    1> Send Email
    2> Create Task

  • Trigger AUE_OPEN, AUE_WRITEV, AUE_TRUNCATE, and AUE_FTRUNCATE events

    I'm trying to trigger AUE_OPEN, AUE_WRITEV, AUE_TRUNCATE and AUE_FTRUNCATE events on Solaris 10 global zone but without success. Basically, I wrote a C program with the following function calls:
    void WRITEV(char *file)
    struct iovec iov[2];
    char *str0="hello ";
    char *str1="world\n";
    int fd;
    fd = open_file(file);
    /* write file using writev */
    iov[0].iov_base = str0;
    iov[0].iov_len = strlen(str0);
    iov[1].iov_base = str1;
    iov[1].iov_len = strlen(str1);
    writev(fd, iov, 2);
    close(fd);
    void TRUNCATE(char *file)
    int fd;
    fd = init_file(file);
    truncate(file,5);
    void FTRUNCATE(char *file)
    int fd;
    fd = init_file(file);
    ftruncate(fd,2);
    I saw content written the to file and the file got truncated to correct length, but I don't see any audit events generated.
    Yes, I did enabled BSM auditing and audit_event file has the right mode(s) specified.
    As to AUE_OPEN, any one has an example that I can use? I can't think of a case that AUE_OPEN is not tied to READ, WRITE, RW, CREAT, or TRUNC.
    Thanks for your help!!

    We are having the same issue as well. We have been working on it. If I have a solution I will post. Good luck!

  • Mouse move to the edge of the tabitem and this will trigger mosueenter and mouseleave event again and again

    I have registered the tabitem mouseenter and mouseleave event, and when user move the mouse in tabitem a block will follow, if mouse leave the block will return to the original position. Now I meet a weird thing, when I MOVE THE MOUSE TO THE EDGE OF TABITEM
    CAREFULLY, the block will follow and return again and again. Have you ever meet this problem?
    void fe_MouseLeave(object sender, MouseEventArgs e)
    TabItem item = this.SelectedItem as TabItem;
    if (item != null && item.IsVisible)
    //block return to origin position
    BeginAnimation(item);
    void fe_MouseEnter(object sender, MouseEventArgs e)
    TabItem item = sender as TabItem;
    if (item != null && item.IsVisible)
    //block go to the mouse position
    BeginAnimation(item);

    The MouseLeave and MouseEnter are routed events and this means that your event handlers will get invoked whenever a child element of the TabItem raises any of these events, for example when the mouse enters and leaves an element that is part of the control
    template of the TabItem.
    You also need to understand that the entire TabItem is not a single UI element. It is for example made up of a header and a content panel and this means that there will be at least one MouseLeave and one MouseEnter event raised when you move the mouse pointer
    from the content panel area (which is made up of some elements) into the header area (which is made up of some other elements) and the other way around.
    You need to reconsider your approach here because the MouseLeave and MouseEnter routed events will be fired even when the mouse pointer remains inside the area that you consider to belong to the single TabItem.
    Please remember to mark all helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • Subtype event not triggering and supertype event triggers twice!!!!!!

    Hi,
    We have created a subtype for object bus2030 and also an event created for that. My workflow should trigger whenever an inquiry is created.
    I've maintained this as triggering event in SWDD and done type linkage is SWE2 and everything looks fine.
    When i simulate or create event the WF is triggered but when create inquiry in VA11 WF does not triggers.
    I've checked SWEL for event trace but no event is triggered at all... Am i missing something... I've done almost everything that i used to do...
    Even synchronized buffer!!! nothing paid me a solution...
    Infact the same was working with 3.1i system but after migration to ECC6 we had to create new WF template for the same Process.
    Now I also see that the supertype bus2030-created event is triggered twice but, obviously no receiver type exists. But the zbus2030 event is not being triggered at all!!!!
    Kindly help me understanding my mistake...
    Regards,
    PB

    Hope you have already set the deletegation in SWO6.
    Now, event dont get triggered automatically, jus because they are defined in object. They have to be explicitly published in thesystem.
    Check for a suitable user exit in your transaction, which makes use of function module to create the event, from that you know how to proceed.
    If you dont find user exit, try other triggering techniques such as change documents, logistics, BTEs... etc.
    regards,
    Sandeep Josyula

Maybe you are looking for

  • Creating a wireless guest network.

    Good afternoon, I'm trying to set up a guest network for my lad to use with his Xbox 360, laptop, iphone, etc. At present I have my iMac, Airport Extreme Base Station, Airport Express all connected to my Sky broadband router. I also watch films on my

  • Error 53 PID Autotune with Real-time fieldpoint control

    Hi! I cannot perform the autotuning PID parameters in fieldpoint cFP-2000 (Real-time control). It gives me the error 53 as you see in the attachment file. It seems to be because of the autotune wizard vi...??? How can i solve this problem? Thanks for

  • Solaris 8 x86 won't install

    Please for give my ignorance, I know nothing about unix. I am taking a course on Solaris fundementals in a couple of weeks and I am trying to get a jump on the class by having a working version by the time it starts. I just DL'd the CD images and bur

  • Draw a rectangle outline with a transparent fill

    I am newbie using Elements 10. How do I draw a rectangle that only displays the stroke.  That is, it has a transparent fill. Your help would be much appreciated. Thanking you in anticipation. Roger

  • Uploading keywords to website

    Why do my keywords in Lightroom not upload to my new website? My exif metadata uploads but the keywords aren't moving over. What should i be doing to rectify this please?