Create event in GOS obj to trigger workflow while attaching data with GOS

Hello experts,
It is a little bit urgent.
I have a scenario. We have to attach documents to SAP application using GOS. These documents can be edited also.
Now second part is that when we attach the document or edit the document, the document should be send with the work item "when we attach the document".
The first part of the scenario is completed and working fine. The second part of the scenario is causing problem. I have checked the various options but none of them are proving helpful.
There is an option in GOS toolbar to send the documents through workflow but that also asks for the related workflow.
I was trying to create an event for GOS object (Z object not a subtype of any other object) which can trigger the workflow automatically when the attachment are created and edited but can not go further with it as am not so strong in workflow. I ahve just created the event. Do I need to write some code for the event?
I request you to kindly help me either in creating this event which will trigger the workflow (whole process) or any other method to do the same.
Thank you all in advance.

Hello Arghadip,
Thank you for replying so early. The table point is very helpful but about the batch job I do not get it. I think the second option is good trigerring event on updation of table. But again I do not know how to do it as I have customized object so have to create the event from the scratch and that, sir, is my main problem.
Kindly help.
Thank you

Similar Messages

  • Trigger workflow for all tcodes with set transaction GS01

    Hi,
    There are nearly 7 tcodes in FI maintained in the set tranasction using GS01 and we desire to trigger worklfow for all those tcodes, even if another one is added in future. What is the process to go about?
    Regards

    Hi,
    Thanks for the concern.
    The tcodes are SAP standard tcodes like fb50 and others for document park and post. Now the requirement is that, the set of tcodes maintained in set transaction GS01, say 7 SAP standard tcodes maintained, the workflow should trigger whenever someone parks or posts a document, which must be subsequently approved by a set of approvers and then the actual release and posting(or re-posting) takes place.
    How can i achieve this using workflow, precisely to trigger worklfow for al those tcodes, now at a later date the tcodes can be either reduced or added to the set.
    Best Regards
    Partha Kar

  • 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

  • Wait for Event not being picked up by workflow

    Hi,
    We have a purchase order workflow that has a parallel branch with a wait for event of 'Released' on it. The theory is that if a PO is released the workflow will finish. We have a situation where POs are created then released straight away by an idoc. In the event log we can see the release step created event and it correctly starts the workflow however the released event follows at exactly the same time and the workflow does not seem to notice this so it sends a released PO to a user to be released. I hope this makes sense. Can anyone think of a reason why this might be happening? Does it need a slight delay between the two events?  In SWEINST the linkage is active and when I look at the entry for one of these POs it tales me to the correct workflow.
    Thanks
    Rob

    Hi,
    You could possibly create a check function module for the event. In the check function module you check some specific variable (if there is something you can use) - for example if the event was created by a certain user or if the PO is a certain type(?). Then if your condition is fulfilled, you raise an exception and no event will be triggered => no workflow.
    This is just one possible solution.
    Regards,
    Karri

  • 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

  • Please help me to visible the create event menu in workflow administrator.

    Hi All,
    please help me to visible the create event menu in workflow administrator.
    (select workflow administrators responsibility navigate to administrator workflow -->
    Business events-->events-->here i am seeing only search options,but i required create event,subscriptions.... )
    Regards
    Gopinath

    Hi,
    please help me to visible the create event menu in workflow administrator.
    (select workflow administrators responsibility navigate to administrator workflow -->
    Business events-->events-->here i am seeing only search options,but i required create event,subscriptions.... )You should find "Create Event" and "Create Events Groups" buttons in the same page under "Results : No Search Conducted".
    Regards,
    Hussein

  • Workflow - Creat events

    Hi,
    Can u tell me if there is some problems in creating events with this function - SWE_EVENT_CREATE - I made a report that the user just put the date,time, and type of document in order to select the documents with that parameters. After i used this function to create events to all the documents, but some of them didnt "worked". My question is, is it possible to create 100 or 300 events in one time, or in this situation it's not reliable to use this function.
    ps: because the workflow stoped, all the 300 documents were without event, that's why i used this function, instead of doing by hand.
    Thanks in advance.
    Mário.

    Creating 300 events in one go should normally not be a problem, but it depends on your system of course. When you say not all of them worked, does that mean not all of them triggered workflows, or that some of them didn't even show up in the event log?
    Two tips, in prioritised order:
    1) Check what the event-creation function returns to catch any problems there
    2) Use the SAP_WAPI_CREATE_EVENT function instead
    You could of course also commit the events in smaller batches. E.g. if you are LOOPing at an internal table you could check if sy-tabix MOD 75 is zero, and COMMIT WORK AND WAIT whenever it is (in addition to the final COMMIT WORK AND WAIT before leaving the program.

  • Can not create event in workflow

    Hi Experts,
    I created a work flow. And assign a start event 'Submit' to it. This event is in oblect type Z. And when I create a document on webdynpro, i call SAP_WAPI_CREATE_EVENT to create 'SUBMIT'. The work flow is triggered.
    But when approve the doc on webdynpro call SAP_WAPI_CREATE_EVENT to create event APPROVED. It does not work.
    Why?
    Event trace message is: Event APPROVED for task WS99900001 not defined as start/end event
    The work flow is like this:
    Start event 'SUBMIT' --> STEP send mail to approver --> Wait 'APPROVED'
    Thank you in advance.
    Richard

    Hello,
    What if you try to create the APPROVE event using SWUE?
    I assume you are creating the event with the same key as for the SUBMIT event.
    As always, try SWU_OBUF.
    I've encountered that message before, never did find a reason for it. Please keep us informed how it eventually gets fixed.
    regards
    Rick Bakker
    Hanabi Technology

  • How to create event

    HI,
    I am trying to trigger a workflow whenever a contract is created against the Requisition.
    I put the trace on(SWELS) and created a contract and got BOR object FREBUS2012 and Event CREATED.
    But when i am using this BOR object and Event in the start event of workflow and creating a contract it is not triggering the workflow.  But workflow is getting trigered whenever i am creating PO.
    When i am tracing PO creation in SWELS i am getting same BOR object and same event.
    Can anyone help me with that how can i create release strategy for Contract or how can i create "CREATE" event for BOR ZBUS2014 which is the copy of BUS2014(Contract) and does not have "CREATE" event.
    Can you explain me also what is release strategy. I have no idea what is that for and how it is helpful in Workflow.
    Any help would be appreciated.
    Thanks in Advance.

    Hi,
    Can anyone help me with that how can i create release strategy for Contract or how can i create "CREATE" event for BOR ZBUS2014 which is the copy of BUS2014(Contract) and does not have "CREATE" event.
    You don't see the created event in ZBUS2014 because you have not delegated it. Delegation means whenever created event of BUS2014 gets triggered your BO ZBUS2014 which has been delegated to BUS2014 will be called. After delegating the BO in workflow you can refer to BUS2014 wherever required instead of giving as ZBUS2014.
    Steps for delegation
    1. Go to SWO1 tcode
    2. Enter the BO name as ZBUS2014. Click settings - delegate.
    3. Click new entries. You will find three fields there.
    Give Object type as BUS2014. Person responsible as your userid. Delegation type as ZBUS2014 and save this entry.
    KR,
    Bharath

  • 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

  • Trigger workflow for MIRO invoice creation

    Hello,
    In standard functionning it is not possible to trigger the workflow for documents coming from MM.
    When using transaction MIRO and selecting invoice creation the created document has following value :
    BKPF-AWTYP = 'RMRP'. whereas creating it from FB60 results to BKPF-AWTYP = 'BKPF'.
    The problem is standard code checks AWTYP is not equal to 'RMRP' before creating event to start the standard workflow for invoice validation.
    Question : why sap doesn't allow workflow creation for invoices from MIRO?
    Thanks for your answers.
    Best regards,
    Laurent.

    Hi,
    here they are...
    WS20000397 MMIVBlockedP Treatment of inv. blkd for price, Log.IV
    WS20001004 MMIVToRel Release the Completed Log. IV Document
    WS00400026 MMIVquantity Treatment inv.blocked f.quantity reasons
    WS20001003 MMIVToCompl Complete the Parked Log. IV Document
    WS00400027 MMIVprice Treatment invoic.blocked f.price reasons
    All of these workflows are a one-step / one-level of approval and needs some workflow configuration at least for the agent assignments. For a full-blown workflow you should take these workflows as an example, how you could work with it.
    The last two workflows work with preliminary posting on the miro (transaction MIR7).
    Best regards,
    Florin

  • 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 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

  • 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

  • We have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.

    we have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.
    Rajiv Kumar

    Hi,
    More details about your discussions forum will make others easier to find a corresponding solution on your requirement.
    If you mean there are three Discussion Board list waiting for synchronizing, I would suggest you create an Event Receiver for the three Discussion Board list.
    Here is a link with code demo about how to copy items from one Discussion Board to another including Replies:
    http://spcodes.blogspot.com/2013/03/programmatically-copy-items-from-one.html
    Here is a step by step sample on creating a simple Item added event receiver for Custom List in SharePoint 2010:
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    More information on Event Receiver for your reference:
    http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/ff408183(v=office.14).aspx
    Feel free to reply if there are still any questions. 
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • PCI-e slots

    Okay, so I just installed a new board into a computer (MSI 890FXA-GD70 AM3 AMD 890FX SATA 6Gb/s USB 3.0 ATX AMD Motherboard). It has 5 PCI-e x16 slots 2 running at dual x16 two at x8 and one at x4. I'm currently only using 1 video card but I'm not su

  • AC-50480 error while generating listener.ora while running autoconfig

    Hi, I am trying my first clone on R1213. We have a split tier configuration. I am able clone the database server successfully. Now when I run 'perl adcfgclone appsTier', during the autoconfig part, it fails with the error message AC-50480 : Error whi

  • The steps to enable Java Webstart in OSX Mavericks are not working.

    The steps located here:  http://support.apple.com/kb/ht5559 are not re-enabling the Java Webstart for Java 6 in OSX Mavericks.  I have tried all four steps about 20 times and looked at all the settings in all my browsers (chrome, safari, and firefox)

  • IPhoto Library migration to windows server

    Hello! I know this has been discussed but I was unable to find it again. Due to my massive amount of pictures, I have run out of space on my iMac's internal hard drive. I would like to move my iPhoto library over to my Home Server which runs Windows

  • How to delete photo library from iPhone?

    how to delete photo library from iphone?