Help on workflow event container creation.

Can any one tell me how to create event containers in workflow? If the steps will be given in details it will be very help.Pls

Hi,
Events are part of business objects, events are linked to workflows, in the linkage you can link the standard container elements, like initiator to workflow containers and you can link the attributes of the (then) instantiated business object to containers in the workflow.
You can create additional attributes on business objects in SWO1 (make sure you don't change the sap standard, rather create a subtype and uses delegation (also doable in SWO1) to "override" the sap standard.
You can create additional containers in pftc, type is WS and task is your workflow number after pressing change you can tick the tab container to create additional containers and in the tab starting events you can change the event-->wf linkage.
Kind regards, Rob Dielemans

Similar Messages

  • Change document  - Workflow Event Container value not passed

    Hi Iam working on a customer create notification scenario where in we are sending a notification to SAP Inbox whenever a customer is created.We are checking industry key(KNA1-BRSCH) value through a check function module.When the customer is created in the system the system triggers the corresponding even it gets in to check module and an exception is raised saying Industry key does not have any value.
    Problem is Industry key value is not passed on to the container.
    Where might be the problem...?
    Is anything missing in SWEC(Events for change document)
    -but the event is trigerred...container value for industry key not passed...
    Please advice...
    Thanks in advance!

    Refer to link below.
    Sandy

  • Can any body tell me about event container in workflows

    hi Experts,
                      could you please tell me some details about event container concept. is there a way to see event container in SWO1 transaction. how can we create event container when we create new events.

    Hi Praveen,
    Event container is the container which stores the values of the BO attaribures which get assigned to that instance of the BO.
    If you go to SWO1 transaction and check the BO for which the event is triggered, you would see all the possible attributes than can be assigned.
    To pass the values of the BO event container to the workflow, you need to maintain the necessary binding between the BO event container and the workflow container. This can be done in the 'Basic Data', Start Events tab. If you click on automatic binding, the system would prompt for a default binding. You could opt to use that or create your own binding. Make sure that the datatypes match.
    After mapping the event container to workflow container, you can check in the workflow log for the values passed to the workflow container. If you like to directly check the values stored in the event container, go to SWO1 and simulate an instance of the BO. You can then check the values there.
    Hope this helps!
    Regards,
    Saumya

  • Is i possible to trigger a workflow from the creation of an event in iCal

    Is i possible to trigger a workflow from the creation of an event in iCal
    Or is is possible to create a workflow to ad events to an iCal calendar which then triggers the workflow or is combined with the ad events workflow.
    Graeme

    Hmm, nope. Not that I'm aware of. Very few apps allow you to hook scripts directly to user activity. Finder* is a notable exception. iCal's "publish" feature has the ability to auto-update after user activity, but you'll either need dot mac accounts or your own webdav server to get that working.
    I'd re-consider the idea of triggering a periodic workflow with iCal. That way if the computer is shut down or asleep, iCal will wait to run the workflow at its next opportunity. You could hide the unsightly repeating events in a second calendar so they're out of the way.
    The next best thing is to write a faceless AppleScript application with a long-duration idle handler. The user would simply add it to their login items in System Preferences. This would also resume its cycle after sleep or shutdown.
    Yet another option is to write an AppleScript that can register itself in the crontab. This has the advantage of running at a predictable time. If you're careful, you can even set the script to wake up or power on the computer as necessary.
    * Folder action scripts can be triggered when files are created, moved, or deleted, but not when they're merely updated. This probably rules out much of iCal's activities in ~/library/application support/ical/.

  • Event container element creation

    Hi,
    I am implementing PO WOrkflow I want to know how to create parameter/element in the event container
    as for PO Workflow I have to create the release code parameter in the event container and then according process the same.
    Please tell me in which transaction i can create the event container element?
    Prince

    Thanx.. Solved

  • Workflow event bus1022-created triggered twice with ME21Nu200F

    Hi everybody
    The explanation to my problem is as follow: Initially I was using the Tcode AS01, ME21N, ABUMN to create fixed assets and every asset created triggers the event BUS1022-CREATED, but then I set the system to synchronizing assets with equipments (SPRO -> Financial accounting->Assets accounting->Master Data->Automatic creation of equipment master recordsu2026u2026) but the event BUS1022-CREATED didn´t triggered any more so I create the new entry in SWEC with ANLA as objet of modification and the OBJ BUS1022 and the event CREATED for the creation for any new record; It works but now the problem is that this event  is being created twice with the Tcode ME21N.
    Any suggestion?
    Thanks a lot.
    Felipe Uribe

    Hello Felipe,
    a check on the TCode during the event coupling seems to be the most effective way here. However, only checking on sy-tcode will not help you much, as you don't know the source (change document / application event).
    So what you need to round up your work-around is a flag in the event container that tells you, if the event was created through the SWEC, and if yes, by which transaction code.
    - To do so, create a subtype of BUS1022 with a system wide delegation.
    - Create two new additional event parameters: TransactionCode  (type syst-tcode) and ByChangeDocument  (type boole-boole)
    - Create a function module Z_SWEC_CONTAINER_BUS1022 copied from SWE_CD_TEMPLATE_CONTAINER_FB (or SWE_CD_TEMPLATE_CONTAINER_FB_2 depending on your ABAP OO experiences) and enter this function module under "Event container" in the maintenance entry of SWEC/BUS1022/CREATED
    - Within that event container function module, you just set the two event container elements using the value of SY-TCODE for the field TransactionCode and a fixed 'X' for the value of the field ByChangeDocument
    - Create a new check function module (or workflow start condition) -- as described earlier in this thread -- that checks on:
    ( ByChangeDocument = 'X' AND TransactionCode = 'ME21N' ) OR ( ByChangeDocument = ' ' ).
    This way you'll sort out the doubled events through the change document for all other transactions than ME21N.
    Good luck,
    Florin

  • Workflow for Vendor Creation through a portal.

    Hi All Workflow Experts,
                                         I have a scenario here.In my project  vendor is created through a portal.On submit button from portal the workflow is to be triggered.I have to design the workflow process.So can you please guide me through what all should i consider while i design this workflow?
    This is my first workflow assignment so if you explain in detail it will be a great help.
    I will just pen down what all scenarios i can think of:
    1.Start workflow after vendor creation or modification.
    2.Check whether approver are maintained in Org structure through  standard FMu2019s.
    3.Check If approvers are maintained ?
    4.If yes,approve or reject the vendor.
    5.If no,get the agents from the custom table who can take an action on this.
    This is what i can think of.
    Please guide me.
    Thanks in Advance,
    Saket.

    The corresponding BO related with the vendor creation or changing is LFA1 but this Business object doeanot have any events that are related to Create and Change , so try to create a ZLFA1 and add you own events or make use of delegation concept where you will create a delegation for LFA1.
    For your first isssue
    Start workflow after vendor creation or modification
    EXIT_SAPMF02K_001 Vendors: User Exit for Checks prior to Saving is the user exit where in you can call the workflow when ever you change or create , because this user exit will trigger when ever you try to save the vendor. so i think you can make use of this user exit
    For your second Issue
    Check whether approver are maintained in Org structure through standard FMu2019s.
    Make use of SWI_GET_USERS_OF_ORG_UNIT this fucntion mdoule to get the user of the ORG unit
    or you can create a Rule(for determining the agents dynamically) to find the approvers.

  • Event container

    Hi ,
    I am just learning how to trigger workflow from scratch.
    I have created a business object with key field matnr.
    I have also entered the event in SWEC.
    Now coming to the triggering part ...in PFTC , I am looking to trigger event based on the change document number . But I don't know , how to find the CD_changenr in the Event container.
    How do I get them there , to map it with the workflow container element ?
    Anyone please help me , with the step by step .

    Hi 
    Check it out Kanika's wiki in SCN.
    https://wiki.sdn.sap.com/wiki/x/aYDUAw
    It will clear all your Doubts
    Regards
    Sachin

  • WorkFlow event

    hello everybody ...
    Please help me as to how to create a workflow event and how to trigger it when my me21n transaction is completed.
    what are the steps involved..
    Please need this quite urgently.....

    Why use SAP Workflow?
    SAP Workflow ensures " the right work is brought in the right sequence at the right time to the right people". It is a tool designed to facilitate and automate business processes that require tasks to be performed by people. Ideal for casual or non-SAP users, since all the work items can be performed outside of SAP by simply responding to an email, SAP workflow can be linked to Microsoft Outlook or Lotus Notes. Each step of a business transaction can be easily monitored and processes are completed from the beginning to the end. Workflow allows process owners to keep an eye on deadlines, provides statistics on the length of time to complete work processes, determine the workload with regard to individual employees and save processing time.
    Since Workflow delivers work items to employees automatically via email, they do not have to wait or inquire about the status of a particular transaction. SAP Business Workflow can also be used to respond to errors and exceptions - it can start when predefined events occur. For example, an event can be triggered if particular errors are found during an automatic check of the data SAP workflow is particularly useful when there is a business process involving more than one person, when an automatic notification can replace a manual communication and when there is a defined set of individuals and/or documents implicated. It organizes one's work, alerts users and directs traffic by sending work items - once the user executes the work item, then another one can be sent to another user. For example, a Manager could use workflow to approve a vacation request from an employee. The workflow application would ensure that each person involved uses the correct online form and successfully completes their step before the planned leave was entered into SAP - either by an Administrator or automatically. By the same token, if someone registers for a training class, Workflow can act as an alert tool by notifying the supervisor in question or reminding the individual of an upcoming class.
    Before implementing SAP Business Workflow, organizations should start by asking a series of questions, such as: - Which HR processes do we want to automate? - To what extent can we change current procedures and pass them over to electronic control? - What steps are these procedures made up of? - Who are the individuals involved and what are their roles? - How do we get the Workitem to go to the right people?
    Even though Workflow can be implemented via user-defined tables without the Organizational Management component in place, having a pre-defined organizational structure adds tremendous value and saves time. A clear reporting structure made up of positions and position holders that is maintained by the HR department, ensures the ongoing ease-of-maintenance effort. The ability of HR personnel to add and delete users from positions as people come and go, without affecting your core workflows, is a tremendous long-term benefit. If you have Personnel Administration in place, employee's email addresses can also be maintained by the HR department in addition to employee's respective Time/HR and Payroll administrators who might be involved in the Workflow.
    There are basically three options for connecting workflow to external email: Microsoft Outlook/Exchange, Lotus Notes or SAP Connect and Internet Mail. A key factor in SAP R/3 4.6 implementations and upgrades will be the use of a Web browser as the main workflow interface.
    Benefits of SAP Workflow
    Although the advantages gained by using workflow are not of financial nature, the time saved by optimizing processes could easily be translated into money. - The quality of your processes will be assured by sending relevant information directly to the user. Managers don't have the time to search for information. For example if an employee obtains a qualification as a result of hard work or training, their Managers can be notified immediately. - Cycle time is reduced by providing all the necessary information needed: people can check their list of pending tasks and determine which tasks can be completed the next day without any negative impact. I.e. A Payroll Administrator might be notified immediately of an employee address change via ESS that might implicate taxes. - Workflow allows to monitor deadlines.
    It could be used to remind employees of upcoming performance reviews or training or to send payroll year-end tasks items to the relevant Payroll Administrators. Deadline handing ensures that users perform the tasks within the time planned. Escalation measures ensure that the failure to meet a deadline can be corrected by other means. - Users can see at a glance how the process works and who will be selected to perform the different tasks, which creates a transparent work environment. - SAP contains Workflow templates, which can be used as a reference providing more than 200 Workflow samples. - Implementing Workflow will save costs. Ask yourself how much time is spent gathering information, getting hold of people, logging into different systems and trying to understand who to give a task to? How often does this current process fail and how labor intensive is it to fix it? Workflow reduces time and effort spent and the savings in days can be considerable.
    How does it work?
    There are several components of a workflow: Workflow Definition, Work Items, Triggering Events and at the Receiving end the Organizational Structure. The workflow definition is created in the Workflow builder and is made up of the various steps. Each step of the workflow definition can be a task pointing to a SAP transaction or a decision. A decision might contain specifications about agents and deadline monitoring for a step. The workflow is started either manually or by the system at runtime. For the system to start a workflow, the workflow definition must contain a triggering event (for example the event "Address update by the employee"). When the event occurs, the relevant workflow is started automatically. Tasks or Work items describe the activities involved and can refer to automatically executable methods (i.e. send an email to a supervisor) or they might need a user to execute them (i.e. supervisor has to go and click on a button in his workplace to approve something). Tasks refer to business objects, which are ABAP coding. Events are activities that trigger the workflow - one or several workflows at the time. Once the workflow is triggered, the definition flowchart determines when and in what order work happens. Work items are then received and executed in MS Outlook, Lotus Notes, mySAP Workflow MiniApp or the SAP integrated inbox. Alternatively, the workflow system can transmit e-mail notifications directly to any mail system, informing the user of the need to log in to the SAP system to execute the task. A work item is always assigned to one or more users. Once the task is executed, the work item vanishes from the other users' inboxes.
    Integration to Email systems
    Usually executable work items are received in the Workflow inbox. But casual SAP users, especially Managers might forget to check their inbox at a regular basis and so it makes sense to set up reminder emails, informing people via a batch job that they have work items in their inbox. Alternatively, an email can be sent directly to their Lotus Notes / Outlook account with a hotlink to the Workflow inbox. All emails, whether they exists in the form of Workflow notifications, Workflow Workitems, or just a standard SAP Office memo, are sent out of SAP through SAPConnect. This provides the all in one gateway between SAP and the mail server. The transport of workflow items between SAPConnect and the mail server (whether that's Lotus Notes or Microsoft Outlook) has been facilitated by SAP provided add-ons that are fully optimized for the different protocols required for each server. Lotus Notes, for example, uses a 'pipe' called the MTA, or Message Transfer Agent. This was designed jointly between SAP and Lotus to provide full integration between the two systems.
    It should be noted that the type of transport medium used is dependent on the mail server and not the mail client. In other words, if the employee uses Outlook on their computer but the mail server is a Lotus Domino server, the MTA would be the mail gateway used. Each workflow background user must have an email address stored in their user profile. It is note worthy that no approval or reply notification will be allowed from an external mail system - in other words external email systems cannot respond back to SAP for security reasons.
    Looking ahead…
    Workflow is becoming more and more web-oriented which allows external business partners to receive notifications. Companies can adopt Workflow together with "Webflow" where workflows can be initiated via Internet transactions and where different external business partners can receive notifications sent by the workflow. The Web inbox offers access to partner companies logging on to your Web portal and it refreshes itself automatically. Any type of work item can be executed directly from a centralized list of work items, no matter what graphical user interface is needed to run it. Webflow is particularly useful when a company deals with outside partners using different software platforms.
    Workflows can make an ERP system more efficient by automating situations in which work processes have to be run through repeatedly, or situations in which the business process requires the involvement of a large number of agents in a specific sequence. It is essential that the Workflow consultant is an expert in ABAP development or has access to ABAP programmers since a good deal of the work is technical. You will also need someone familiar with Lotus Notes / Outlook concepts and development in order to create the interfaces between the systems. The Workflow consultant should also have experience in installing and integrating efficient electronic archive systems.
    regards..
    Abhay
    rewards point if helpful

  • Workflow on Budget Creation in cn21

    Hi Expert,
    I want to create Workflow which triggers whenever network is created in cn21
    Since , i executed Cn21 and network was created , i checked in SWEL  but no BO was Triggered . I even Checked BUS2002
    but there is no event for creation .
    So I need help in this issue:
    1. Which Business Object is Triggered whenever network is created in cn21 ?Is there any Standard BO for cn21?
    2.  any standard Workflow is available for the same ?

    Hello !
         I believe configuring the change document "ORDER" in SWEC could trigger the workflow.
         Hope the event trace is turned on.
    Regards,
    S.Suresh.

  • XK01 create vendor and workflow event

    Hello all,
    Is there a workflow event that is, or can be, triggered when the XK01transaction completes?
    I'm not very fluent at workflow, so I hope I'm phrasing the question correctly.
    Thanks
    Ed Baker

    Hey Ed
    There is a video on ABAP e-learning on SDN for workflow that describes a workflow for the creation of a material , you can use that for ZK01 as well. I used it for HR employee creation and it was very helpful. U just need to find the right business object.
    Here is the link
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0bbdb3c-d640-2a10-d3b2-e4d9b90536a6]

  • WorkFlow - Binding / Container Operation

    Hi WF Gurus
    I am creating a Sale Order Change Start Event & want to collect a field (KNVV-KLABC) i.e. Customer ABC Class of that Sold-to-party of that sales order.
    Is it possible through binding or container operation.
    please give steps in details.
    Max. reward for right ans.

    You can do it by automatic binding. The object of SO changing is under the element EvtObject of event container.
    FYI.[http://help.sap.com/saphelp_nw70/helpdata/en/c5/e4b0ae453d11d189430000e829fbbd/frameset.htm]

  • Extra event container element in BUS2203

    HI All,
    I have a standard workflow template WS10400002 which has some start condtions defined. If you check in the binding between event container --> workflow container, there is a extra element for "Gross Amount(USD)". Kindly let me know how we can have an extra element.
    I copied the template to my Z template and there that extra element is not available.
    Kindly check in your systems and let me know.
    There is no delegation of BO done.
    Thanks & Regards,
    Srinivas Rao.

    Hi Pavan,
    Thanks for the reply. I will make my question more clearer.
    I dont want to do anything right noew regarding start condition set up . It is already done in the STANDARD template WS10400002. What I wish to understand is, when you will check the template in your system and check the event-> workflow binding, you will notice that there is extra container element "Gross Amount(USD)". Where did this come from ?
    I hope I am clear this time..
    Waiting for your reply..

  • Workflow event got deactivated?

    Hi all,
    I have created an workflow for Notification (IW21). When i create a notification the workflow event is getting deactivated and i am getting an error message "Workflow definition of task 'WS11111111' cannot be activated".
    Can anyone please help me.
    Regards,
    Gautham

    Hi Gautham,
    Check the workflow which you are using if it is active. Could you give the workflow number (unless it is a custom built one) because WS11111111 doesn't exist in the system I have access to.
    The event linkage gets deactivated because there is an error in the linkage or as in your case the workflow. The option "Behavior upon feedback" determines the behavior of the event linkage when an error occurs. In your case the event linkage gets deactivated. This has nothing to do with the error itself.
    Regards,
    Martin

  • Where to include custo object types in workflow events?

    Hi All,
    One of my friend is working on HR related Workflow. He has a question about where to include the custom change document infotypes in workflow events.
    To make it clear, he says there are three transactions swehr1, swehr2 and swehr3. Now, if he wants to include a custom object (Z object) which transaction should he use?
    Please reply ASAP.
    Regards
    Swapna.

    Yes, you use swehr1 to link the infotype to the object type. Then use swehr3 to create the event linkage to your function module or object type event.
    I just did this with an e-recruiting project and it worked fine.  For example:
    swehr1 entry:
    NB  Requisition     5131  Persons Responsible    ZERC_REQUI     Job Requisition
    swehr3 entry:
    NB  Requisition     5131  Persons Responsible   INS     0     ZERC_REQUI             Z_ON_MEMBER_ADD
    This accomplishes the following: when a record is inserted for infotype 5131, the function module Z_ON_MEMBER_ADD runs. That function module decides if or which event should be raised. Alternatively I could have entered an event for the ZERC_REQUI object type, but then the event will always be raised on a 5131 record insertion, and for my application I didn't want that.
    I hope this example is helpful.
    ~Margaret

Maybe you are looking for

  • 1st gen iMac G5 won't stay up but target

    I've tried resetting the SMU but the power doesn't stay on. It comes on, as soon as the twirly lines start on the gray screen, it shuts off. However, if I start it in Target Disk mode, it comes up and stays on so it isn't a power issue. I dont have t

  • IBR: Setting up DOC to XML Conversion

    Hello, I need to enable automatic conversion of DOC,DOCX documents to XML format. I've set up IBR enabling XML Converter component then restarted IBR server. I've configured an outgoing provider from UCM to IBR and the connection is good. When I chec

  • Print preview summary

    All, I posted a message back in November wondering if anyone had implemented a print preview mechanism in Forte. I got a record number of responses saying "no...but let me know what you find out". A few people responded with solutions. I still get pr

  • Project and its Cost center

    Hi All, For a particular Project, how to find the corresponding Cost Center? I believe teh relation between Project and Cost Center is through a common object Work Center. Then how to get from Project>Work Center>Cost Center? Regards Pavan

  • IWeb Publication

    We purchased a domain name from GoDaddy and created a website on iWeb for try rhubarb.com. It is published, but it does not show up in a Google search. How do we get it to appear in a Google search?