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

Similar Messages

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

  • 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

  • CHANGE EVENT CREATOR IN EVENT CONTAINER

    Hello,
    In CRM 7.0, I need to change in the EVENT CONTAINER the element &_EVT_CREATOR&, wich passes the value to the &_Wf_Initiator&.
    Can you please tell me where the  EVENT COINTAINER is populated (FM, program, etc)
    Thanks.
    Best Regards,
    Filipe Pinheira

    Hello,
    Of course, you can't change the event creator after it's been created, but I assume that's not what you're asking.
    Look at the parameters of SAP_WAPI_CREATE_EVENT and see if you can set the creator there.
    If not, you could pass the name of the user as an event parameter and bind it to WF Initiator.
    regards
    Rick Bakker
    hanabi technology

  • Include char 10000 in event container

    Hi All  ,
    I want to pass long text to work flow through an event .
    so i want to create a parameter of atleast 10000 ( not sure how much length text will come ) chars in to the event container .
    But i am getting error ' Field ZSOBJ-ZLONG is too long to be included in the container '.
    So is there any alternate solution for this ??
    Regards,
    Sijin K P.

    Tried to use LSO_CP_SCORMLASTRINGVALUE-LSTRVALUE  of length 4096 .
    But still giving the same above error message .
    My requirement is to pass long text which present in change master tab to workflow .
    called this workflow through an event which will get triggerd  from  user exit .
    So i will get this long text from user exit and need to pass this long text to event container  and then bind to workflow.
    For this need to create  a parameter of the same type ( 10000 char ) in event container .
    Regards,
    Sijin K P.

  • 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

  • Event container binding

    I am new in WFs.
    I’ve defined bindings from the event container to the Workflow container In the Workflow Builder in the basic data of the workflow on the tab page Start Events.
    The event Created has one input parameter like zwxorder-norder. (norder is defined as a key in BOR, not as an attriute)
    Binding event -> workflow:
    &_EVT_CREATOR& -> &_WF_INITIATOR&
    &NORDER& -> &NORDER&
    But the container is empty after starting of a workflow via SWUE with the event input parameter. Why so?
    Thanks

    Hi,
    that could be a binding problem only try Automatic binding.
    Thanks & Regards
    Hari Sankar M

  • [Event] Event Container and Table

    Hi,
    It seems possible to pass a table as parameter in an event: I just have to put the appropriate type in the Event parameters in my class.
    But, how do I fill this table with the Event container ?? I only see a SET method which does not seem to do any APPEND... Is there a specific method for table parameters of events ?
    Here is the <i>usual</i> call :
      TRY.
          CALL METHOD l_event_container->set
            EXPORTING
              name  = 'NAME'
              value = w_name.
    *         UNIT  =
    *       IMPORTING
    *         RETURNCODE =
        CATCH cx_swf_cnt_container.
      ENDTRY.
    Thanks in advance for your replies !
    Message was edited by: Guillaume Garcia

    thanks for suggestions but the problem seems to be due to the new FM interface ( SWE_CD_TEMPLATE_CONTAINER_FB_2 )
    which handles  BOR-References  as compared to the old ( SWE_CD_TEMPLATE_CONTAINER_FB ).
    When i use the old and populate multine element into the EVENT_CONTAINER which is defined in interface as  table structure SWCONT it works fine.
    There must be a SAP NOTE but no time to investigate further
    cheers
    Trev

  • 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

  • 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

  • EBiz Business Events contain no event data

    Hi,
    I'm trying to use the Ebiz Business event feature to capture data in eBiz R12. Using the Integration Repository i have created subcritpion to business event oracle.apps.per.api.employee.create_employee. However when a new employee is created in eBiz the event is fired but the xml document doesnt contain any information regarding the newly created employee?
    Does anyone know why this might be happening? I have captured the output event below
    <?xml version="1.0" encoding="UTF-8" ?><WF_EVENT_T xmlns="http://xmlns.oracle.com/xdb/APPS/testEbizBusinessEvents">
    <PRIORITY xmlns="">50</PRIORITY>
    <SEND_DATE xmlns="">2011-04-04T16:55:22.000Z</SEND_DATE>
    <RECEIVE_DATE xmlns="">2011-04-04T16:56:33.000Z</RECEIVE_DATE>
    <CORRELATION_ID NULL="TRUE" xmlns=""/>
    <PARAMETER_LIST xmlns="">
    <PARAMETER_LIST_ITEM>
    <NAME>#CURRENT_PHASE</NAME>
    <VALUE>401</VALUE>
    </PARAMETER_LIST_ITEM>
    </PARAMETER_LIST>
    <EVENT_NAME xmlns="">oracle.apps.per.api.employee.create_employee</EVENT_NAME>
    <EVENT_KEY xmlns="">81</EVENT_KEY>
    <EVENT_DATA xmlns=""></EVENT_DATA>
    <FROM_AGENT xmlns="">
    <NAME>WF_BPEL_QAGENT</NAME>
    <SYSTEM>CPLDEV01.JL.CO.UK</SYSTEM>
    </FROM_AGENT>
    <TO_AGENT NULL="TRUE" xmlns=""/>
    <ERROR_SUBSCRIPTION xmlns="">9FC54C923BBD0238E043AC16518C0238</ERROR_SUBSCRIPTION>
    <ERROR_MESSAGE NULL="TRUE" xmlns=""/>
    <ERROR_STACK NULL="TRUE" xmlns=""/>
    </WF_EVENT_T>
    Regards,
    Adrian

    The event definition is set to Customization Level = Limit so i can only enable/disable the event. The Generate functions are blank and greyed out so can not be edited. I guess my question was that now i can see the event data in the <event data> tag in the .xml type form (see extract below) i was wondering whether there were any .xsd's that can be used to parse this payload data into a usable structure?
    <EVENT_DATA xmlns="">
    <employee>
    <hire_date>2011/04/07 00:00:00</hire_date>
    <business_group_id>81</business_group_id>
    <last_name>pbtest</last_name>
    <sex>M</sex>
    <person_type_id>1144</person_type_id>
    <per_comments></per_comments>
    <date_employee_data_verified></date_employee_data_verified>
    <date_of_birth>1967/02/03 00:00:00</date_of_birth>
    <email_address></email_address>
    <employee_number>81127669</employee_number>
    <expense_check_send_to_addres></expense_check_send_to_addres>
    <first_name>phil</first_name>
    <known_as></known_as>
    <marital_status></marital_status>
    <middle_names></middle_names>
    <nationality></nationality>
    <national_identifier>NM001122D</national_identifier>
    <previous_last_name></previous_last_name>
    <registered_disabled_flag></registered_disabled_flag>
    <title>MR.</title>
    <vendor_id></vendor_id>
    <work_telephone></work_telephone>
    <attribute_category></attribute_category>
    <attribute1></attribute1>
    <attribute2></attribute2>
    <attribute3></attribute3>
    <attribute4></attribute4>
    <attribute5></attribute5>
    <attribute6></attribute6>
    <attribute7></attribute7>
    <attribute8></attribute8>
    <attribute9></attribute9>
    <attribute10></attribute10>
    <attribute11></attribute11>
    <attribute12></attribute12>
    <attribute13></attribute13>
    <attribute14></attribute14>
    <attribute15></attribute15>
    <attribute16></attribute16>
    <attribute17></attribute17>
    <attribute18></attribute18>
    <attribute19></attribute19>
    <attribute20></attribute20>
    <attribute21></attribute21>
    <attribute22></attribute22>
    <attribute23></attribute23>
    <attribute24></attribute24>
    <attribute25></attribute25>
    <attribute26></attribute26>
    <attribute27></attribute27>
    <attribute28></attribute28>
    <attribute29></attribute29>
    <attribute30></attribute30>
    <per_information_category>GB</per_information_category>
    <per_information1></per_information1>
    <per_information2></per_information2>
    <per_information3></per_information3>
    <per_information4></per_information4>
    <per_information5></per_information5>
    <per_information6></per_information6>
    <per_information7></per_information7>
    <per_information8></per_information8>
    <per_information9></per_information9>
    <per_information10></per_information10>
    <per_information11></per_information11>
    <per_information12></per_information12>
    <per_information13></per_information13>
    <per_information14></per_information14>
    <per_information15></per_information15>
    <per_information16></per_information16>
    <per_information17></per_information17>
    <per_information18></per_information18>
    <per_information19></per_information19>
    <per_information20></per_information20>
    <per_information21></per_information21>
    <per_information22></per_information22>
    <per_information23></per_information23>
    <per_information24></per_information24>
    <per_information25></per_information25>
    <per_information26></per_information26>
    <per_information27></per_information27>
    <per_information28></per_information28>
    <per_information29></per_information29>
    <per_information30></per_information30>
    <date_of_death></date_of_death>
    <background_check_status>N</background_check_status>
    <background_date_check></background_date_check>
    <blood_type></blood_type>
    <correspondence_language></correspondence_language>
    <fast_path_employee></fast_path_employee>
    <fte_capacity></fte_capacity>
    <honors></honors>
    <internal_location></internal_location>
    <last_medical_test_by></last_medical_test_by>
    <last_medical_test_date></last_medical_test_date>
    <mailstop></mailstop>
    <office_number></office_number>
    <on_military_service>N</on_military_service>
    <pre_name_adjunct></pre_name_adjunct>
    <rehire_recommendation></rehire_recommendation>
    <projected_start_date></projected_start_date>
    <resume_exists>N</resume_exists>
    <resume_last_updated></resume_last_updated>
    <second_passport_exists>N</second_passport_exists>
    <student_status></student_status>
    <work_schedule></work_schedule>
    <suffix></suffix>
    <benefit_group_id></benefit_group_id>
    <receipt_of_death_cert_date></receipt_of_death_cert_date>
    <coord_ben_med_pln_no></coord_ben_med_pln_no>
    <coord_ben_no_cvg_flag>N</coord_ben_no_cvg_flag>
    <coord_ben_med_ext_er></coord_ben_med_ext_er>
    <coord_ben_med_pl_name></coord_ben_med_pl_name>
    <coord_ben_med_insr_crr_name></coord_ben_med_insr_crr_name>
    <coord_ben_med_insr_crr_ident></coord_ben_med_insr_crr_ident>
    <coord_ben_med_cvg_strt_dt></coord_ben_med_cvg_strt_dt>
    <coord_ben_med_cvg_end_dt></coord_ben_med_cvg_end_dt>
    <uses_tobacco_flag></uses_tobacco_flag>
    <dpdnt_adoption_date></dpdnt_adoption_date>
    <dpdnt_vlntry_svce_flag>N</dpdnt_vlntry_svce_flag>
    <original_date_of_hire>2011/04/07 00:00:00</original_date_of_hire>
    <adjusted_svc_date></adjusted_svc_date>
    <person_id>512670</person_id>
    <assignment_id></assignment_id>
    <per_object_version_number>2</per_object_version_number>
    <asg_object_version_number></asg_object_version_number>
    <per_effective_start_date>2011/04/07 00:00:00</per_effective_start_date>
    <per_effective_end_date>4712/12/31 00:00:00</per_effective_end_date>
    <full_name>pbtest, Mr phil</full_name>
    <per_comment_id></per_comment_id>
    <assignment_sequence></assignment_sequence>
    <assignment_number></assignment_number>
    <town_of_birth></town_of_birth>
    <region_of_birth></region_of_birth>
    <country_of_birth></country_of_birth>
    <global_person_id></global_person_id>
    <party_id></party_id>
    <name_combination_warning>FALSE</name_combination_warning>
    <assign_payroll_warning>FALSE</assign_payroll_warning>
    <orig_hire_warning>FALSE</orig_hire_warning>
    </employee>
    </EVENT_DATA>
    <FROM_AGENT xmlns="">
    <NAME>WF_BPEL_QAGENT</NAME>
    ....../>

  • Event Container WF

    Hi,
    I have a check module function associated to a my WF in the transaccion SWETYPV.
    In this FM I validate some attributes comming from the object. And from there I have to store a field in the WF container. So I fill a parameter in the table of the funcion EVENT_CONTAINER. But when I execute the WF the container have this value empty.
    Do you have any sugestions ?
    Thanks

    I'm giving the event parameter value my code in the FM is this
          CALL FUNCTION 'SWC_ELEMENT_SET'
            EXPORTING
              ELEMENT             = 'mail_userid'
              FIELD               = wa_mail
            TABLES
              CONTAINER           = EVENT_CONTAINER
    but the value in the WF container is empty

  • IPhoto '11 v. 9.2.3 bug when splitting events containing flagged and duplicate versions of same photo in Event.

    UPDATE:
    Okay, I don't know how to delete this - so I'm just saying that after sending this, I found Terrance's reply to a similar post (3/3/12).  I didn't realize iPhoto had been changed so that the "master" controls duplicates.  I do understand how to export, et cetera .... and I do use albums also!  I just really want the duplicate photos to NOT be in the general Events.  Trust me, I have a good reason!
    Thank you for your (previous) help!
    ~h
    Okay, when I created this User Name, I didn't foresee this situation.  I'm pretty sure this is a real bug - and maybe someone can let the appropriate programmer know....
    Essentially, I'm organizing my 2012 iPhoto library and am trying to get around the rule that a photo can only be in one Event.  I flagged the photos I want to keep where they are - AND - be grouped separately.
    Then in Flagged, I duplicated all.  Then I unflag the orginal files.
    Then I modified the duplicated (version 2 or version 3) files.
    So, in the original events, there are the two versions of some photos.
    Opening one of the events, I select a couple of photos and "split".
    Split event does get created, but it has no photos.
    Photos and duplicated photos remain in original event.
    I'm quitting now - before I lose everything.....!
    (I'll back up the library and try again later.........!)
    and jsut for the fn of it, I'm adding that I find it strange that I'd have to manually click "abc-check" -- that spellcheck doesn't run automatically.   --I guess it annoys others?
    holly

    First Try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Lion and Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    If that doesn't help apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • Read workitem Container Value in Terminating event Check Function Module

    Hi
    I have some problems reading work item data / values of a work item container element in a check function module on a terminating event – Do any of you know if this is possible, and if so, how it’s done ?
    In My scenario I have created a multiline approval step for my business document, one task pr Line Owner.  The Event Approved is defined as a terminating event for this task, and the line owner is passed to the task container.
    Now, when I raise the event, with the line owner as an event parameter, I would like to check if the line owner on the raised event, matches the line owner in the task container in question in a check fm. But here I faced the problem, that only event data, and not work item data, are passed to the Check Function module.
    Regards,
    Morten Nielsen

    Hello Morten, hello Arghadip,
    in the instance linkage's check function module (entered via transaction SWEINST) you'll have the workitem-id in the system event parameter EVTRECEIVER_ID
    With this number you can use the frame work in order to read the work item container.
    This is a sample coding, how you access the correct work item container using SAP Enterprise and it's new OO frame work, which checks on the terminating event of BUS2105.Released the correct release code for a work item.
    INCLUDE <cntn01>.
    INCLUDE <SWFCNTN01>.
    INCLUDE RSWEINCL.
    *** Read workitem instance and container from event
           DATA: wi_id            TYPE swwwihead-wi_id.
           swc_get_element EVENT_CONTAINER evt_receiver_id wi_id.
           IF sy-subrc <> 0.
              MESSAGE E015(ZPREL) WITH evt_receiver_id
                                           RAISING wrong_call.
           ENDIF.
           DATA: lv_wi_handle    TYPE REF TO if_swf_run_wim_internal.
           DATA: ls_context      TYPE sww_wimctx.
           DATA: lv_wi_container TYPE REF TO if_swf_cnt_container.
    *    - set context
           ls_context-do_commit  = ' '.
           ls_context-called_btc = 'X'.
           ls_context-exec_user  = sy-uname.
           ls_context-fbname     = 'Z_CHECK_RELEASE_CODE'.
           CLEAR lv_wi_handle.
           CALL METHOD cl_swf_run_wim_factory=>initialize( ).
           CALL METHOD cl_swf_run_wim_factory=>find_by_wiid
                   EXPORTING
                      im_wiid             = wi_id
                      im_read_for_update  = ' '
    *                 im_enqueue_owner    = fb_name
    *                 im_wait_for_enqueue = 'X'
                      im_context          = ls_context
                   RECEIVING
                      re_instance         = lv_wi_handle.
    *** This check is only done for workitem linkage TS90100081
           IF lv_wi_handle->m_sww_wihead-wi_rh_task <> 'TS90100081'. "#EC_SYNTEXT
              EXIT. "Let event pass, as this is an instance linkage to another workitem
           ENDIF.
           DATA: releaseCode_wi        TYPE t16fc-frgco.
    *    - read releaseCode from workitem container
           lv_wi_container = lv_wi_handle->get_wi_container( ).
    *    - perform binding event container -> workitem container
           swf_get_element lv_wi_container 'RELEASECODE' releaseCode_wi.
          DATA: e             TYPE REF TO cx_swf_run_wim.
          CATCH cx_swf_run_wim INTO e.
             RAISE WORKFLOW_RUNTIME_ERROR.
       ENDTRY.
    *** From here on, the variable releaseCode_WI hold the
    *** container element RelaseCode of the work item, that
    *** is going to be terminated...
    *** Further coding from here as appropriate...
    Best regards,
    Florin

  • Searching for Constant container event in binding

    Hi All,
    I need to pass some extra information into my workflow container.  I am looking in Basic Data>Start Events>Binding and in the event container. I cannot find a constant to put into my workflow container &NI_DETAILS&
    I have not worked extensively with wf in the past but have never came across this before, normally its very easy to find or it can generate it automatically.
    Liam

    What do you mean by constants. You can hardcode in the Binding part no issues the type should be matching. Please if you want to define some more container element In event you can do so from SWO1 provided it is a custom Event.
    Of course you have to create new container element but not in standard event but in custom event. How that event gets value of that element that you have to either pass by coding or by other means. You cannot add element to Standard event Bcoz its of no use as this value will not be populated.
    Thanks
    Arghadip
    Message was edited by:
            Arghadip Kar

Maybe you are looking for

  • Update to 10.5.3

    I am trying to upgrade from macOS X 10.5.3 to 10.5.8. My computer automatically looks for updates. I tried to update to 10.5.8 and my computer freezes during the initialization. What do I need to change/do?

  • Need Urgent Help Nokia N73 Memory Card Unlock

    Hello There, I have Nokia N73 and i can't access my memory card. I have not set any passwords but still its asking for password I don't know how to do this. Please guys help me out with this issue whenever i click on memory card its asking me for pas

  • SSIS 2012 Error - The SQL Server specified in Integration Services service configuration is not present or is not available..

    hi Guys,  working on below error if anyone has work around.  It is on SQL Server 2012 cluster.  The SQL Server specified in Integration Services service configuration is not present or is not available. This might occur when there is no default insta

  • Output Photobooks to PDF using Lightroom vs Aperture

    Hello, I have been using Lightroom since it was first launched and I love it. However, now I need to find a good way to create and layout my own photobook and output it to PDF so I can publish it on Lulu.com and it looks like Lightroom lacks a featur

  • PDF in qualifier fields ?

    Hi, all I have a PDF lookup field in qualified table as a qualifier. When I select it and click 'View PDF..." system doesn't react and when i click 'Edit externally' or 'Save PDF' I get errors like 'Data Table Not Found, Version SP5 (5.5.42.65)' and