Change Workflow-Instance-Container values

Hi Experts,
I would like to ask you how to change a value in a container of a Workflow-"Instance".
For e.g.:
I have a workflow-instance which contains a (bor-) Object "Switchdocument". This switchdocument contains also a (Bor-) Object "serviceprovider". And I would like to change the value of the parameter of "serviceprovider".
How is the relationship between the "father"-object and the "child"-object and where are the relationship saved?
I know the table "sww_cont" and "sww_contob". But these tables are not enough, aren't?
Because in the mentioned tables (sww_cont) I see the elements with their values of the container of the workflow-instance. I don't the elements with their values of the object (father-object) contained in the workflow-instance-container and also not the elements with their values of the object (child-object) in the father-object.
or (explanation as a list)
Workflow-Instance-Container:
1.element
2.element
3. Switchdocument (object)  (father-object)
3.1 element of switchdocument
3.2 .....
3.3 Serviceprovider (object) (child-object)
3.3.1 element of serviceprovider  <--- here I would like to change the value
I hope I explained the situation in a detail way
I apologize if I don't use the right terms!
If anyone has a hint or a way to get to the "child-object" I would be very thankfull.
Thanks a lot for your answers in advance!!!
with lovely regards.

Hi all,
at first I thank you all for your answers!!!
As I understand the values are permanently saved in the subobjects. Like I said the subobject (Distributor) with the attribute, e.g. Serviceprovider in Own System = 'X' is contained in the Object Switchdocument.
That means for me that I have to retrieve the attribute of the subobject via a method for the special instance and change it, e.g. to set it blank.
I have forgotten to say that I am developing a report (se38) to change all attributes of workflow-instances with object/subobject.
As I said above in a condition step it is asked whether a "serviceprovider is in own system". if yes (means = "X") then the process has another way. And I have to change the "X" to "blank", so the workflow goes always the, in my case, second way.
For the next time, I will explain my problem in a more detail way
Thanks again.
with kind regards!

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

  • [q] change workflow instance id

    hI All,
    How can I change a WLI2.0 workflow ID after the workflow has started ?
    The workflow is initialized via the WLI2.0 queue with an XML. I then call a
    business operation
    that give me the value that I need to put in the workflow ID. How do I do
    that ?
    Thanxs,
    Ronen Yaari

    I have the same question, and I would like to be able to get to
    the actual "label" as opposed to setting up a new process
    variable. It is not accessible in the dialog box.
    Thanks
    John
    "Kara Moscoe" <[email protected]> wrote:
    When you say "workflow ID", do you mean the system-generated instance
    ID, or
    do you mean the template definition ID -- or "label" -- that you define
    in
    the Template Definition properties dialog? (There is some confusion around
    these, for which a CR has been opened.)
    If it's the latter, you should simply be able to specify a workflow variable
    name, and specify that variable as the return variable in the Perform
    Business Operation action for the business operation in question. If
    you
    want to manually intervene during a running workflow to change a variable
    value, you can also use the Update variables function in the Workflow
    Variables dialog box, accessed from the Workflow Instances dialog.
    Kara
    Ronen Yaari <[email protected]> wrote in message
    news:[email protected]..
    hI All,
    How can I change a WLI2.0 workflow ID after the workflow has started?
    The workflow is initialized via the WLI2.0 queue with an XML. I thencall
    a
    business operation
    that give me the value that I need to put in the workflow ID. How doI do
    that ?
    Thanxs,
    Ronen Yaari

  • Database table for Workflow Container values

    hi,
    I am on SAP ECC 6.0
    I am trying to find workflow id number starting from document number
    I try to find database table which has containe values of the workflow instances so that I can get workflow/workitem instance numbers for the document
    this is custom workflow and it is not based on business object type. so checking container values is the onlyway I can get the workflows
    but I am not able to find any table for it
    I have checked following
    SWW_CONT
    SWW_CONTOB
    SWWVCONTWI
    SWXML_CONT
    SWJ_CONT
    SWJPCONT
    SWJSCONT
    SWPCMPCONT
    SWU_CONT1
    SWUOCONT1
    almost all the SWCONT tables
    Morever I put St05 trace to see all the tables in database operations while triggering the workflow
    but the only tables seen here are
    SWWHRINDEX
    SWD_CONT  
    SWWWIHEAD
    SWWCNTP0  
    SWWLOGHIST
    SWWWIRET  
    SWWCNTP0  is Workflow Container: XML Database (P0)
    but it is XML structure data. so its of new use to query container fields.
    is this reason because of any workflow design or system config ?
    how to read container values from database tables in such case?
    thanks
    bhakti

    Hi,
    >i need to display an ALV list with list of invoices and whether the workflow is awaiting / approved / rejected for review / approval. and who did the approval / rejection action
    This you should be able to read from container now, if you have FIPP instance.
    >the workflow has two steps - review and approve and so i would query table swwwihead for the parent id of workflow and then based on task number see which is ready status task and find if its awaiting approval or rejection
    Don't do any selects to SWWWIHEAD unless you have some really specific reason. Just use SAP_WAPI* functions. You should be able to get each depended work item etc. easily with the standard functions.
    >apart from this, several data like amount values, reference document, creation date and whole lot of invoice item and header level data is required which needs to be taken from workflow container
    Why would you read this data from container? This data is in the SAP tables VBKPF, etc. There should be even functions to get all data related to an invoice - try to search for example with READPRELIMINARY* (read preliminary invoice).
    In general:
    1) if you have invoice number, get all related work items with a SAP_WAPI* function
    2) if you have only the top WI ID, use SAP_WAPIDEPEND function to get the depended work items
    3) with above function you probably will get also the status of the tasks / work items, so you don't need select in SWWWIHEAD
    4) Now you have the "status" and the workflow data for the invoice
    5) read the invoice data from standard FI tables (unless there is some specific reason to get it from WF container, and if there is, then I think that you might be having some fundamental problems in your design)
    Regards,
    Karri

  • How to start a workflow when a value in specific column is changed?

    HI !! 
    I would like that  my workflow will run only if a value on a specific colunm will change.
    is there a way to do it without using a third colunm ?
    thank you !
    nikita.

    Hi,
    According to your post, my understanding is that you wanted to start a workflow when a value in specific column is changed.
    When you create workflow, if you check the “start the workflow automatically when an item is changed”, the workflow will be started automatically once the item is edited.
    In the other word, no matter which column we changed, the the workflow will be started automatically.
    As a workaround, we can add condition or action to make the workflow excute the next step only if the value in specific column is changed.
    There are two options to achieve it.
    Use the “Wait for Field Change in Current Item" action”. If you add the action at the first,  the workflow will excute the next step until the column is chaned to the specific value.
       2. User the “If any value equals to value” condition. If you add the condition at the first, the workflow will excute the next step if the condition is satisfied.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Is it possible to run single workflow instance for multiple item changed or created?

    I have created a SharePoint Designer 2010 approval workflow and I am starting this workflow on item created and modified . Now when I am adding and updating multiple items it is starting workflow for each item but I want to start only one workflow for all items.
    I think it is possible in workflow 2013 but i want to use in
    workflow 2010.
    Is this possible? if yes then how?

    Hi Resham,
    From your description, my understanding is that you want to only start a workflow instance when multiple items are added or updated.
    Per my knowledge, if we set workflow start on item created or modified, when we add or update multiple items, SharePoint will create a workflow instance for each item, it is unable to just create an instance for multiple items. It is same
    between SharePoint 2010 workflow and SharePoint 2013 workflow.
    You said it is possible in workflow 2013, do you have any references?
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Custom Workflow generates a thousand of Workflow Instances and EREs

    Hi everyone,
    I developed a Custom Workflow that complete user attributes information when a user select a value from a drop down list. I tested this workflow with a Request MPR  with an Action Type "Create" and the workflow Works perfectly. But now, I
    have to use this workflow in an Action Type "Modify" , when I changed it, the workflow Works fine but generates  a thousand of Workflow Instances and in consequence a thousand of EREs.
    Can you help me please?
    Thanks in advance,

    Make sure that the change invoked by your workflow is not used as button to run another workflow - described scenario looks like you have created a loop.
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • Workflow: XML Container not updated

    Hallo Gurus!
    I am starting a new workflow with SWW_WI_START_SIMPLE. After that i change some container values with following code:
    *Workflow starten
      CALL FUNCTION 'SWW_WI_START_SIMPLE'
        EXPORTING
    *   CREATOR                            = ' '
    *   PRIORITY                           = SWFCO_NO_PRIO
          task                               = wa_ess_prozess-prozess_task
    *   CALLED_IN_BACKGROUND               = ' '
    *   DEADLINE_DATA                      = ' '
    *   NO_DEADLINE_PARAMETERS             = ' '
      IMPORTING
    *   WI_ID                              =
    *   WI_HEADER                          =
    *   RETURN                             =
    *   WI_RESULT                          =
        swf_return                         = lwa_swf_return
        TABLES
          agents                             = it_swhactor
    *   DEADLINE_AGENTS                    =
    *   DESIRED_END_AGENTS                 =
    *   LATEST_START_AGENTS                =
    *   EXCLUDED_AGENTS                    =
    *   NOTIFICATION_AGENTS                =
    *   SECONDARY_METHODS                  =
    *    wi_container                       = i_event_cont
    CHANGING
       wi_container_handle                =  lc_container
      EXCEPTIONS
       id_not_created                     = 1
       read_failed                        = 2
       immediate_start_not_possible       = 3
       execution_failed                   = 4
       invalid_status                     = 5
       OTHERS                             = 6
      TRY.
          CALL METHOD lc_container->if_swf_cnt_element_access_1~element_set_value "if_swf_ifs_parameter_container~set
            EXPORTING
              name       = 'Vorgesetzter'
              qname      = 'Vorgesetzter'
              value      =  m_vorg
    *                  unit       =
    *                IMPORTING
    *                  returncode =
        CATCH cx_swf_cnt_cont_access_denied .
        CATCH cx_swf_cnt_elem_access_denied .
        CATCH cx_swf_cnt_elem_not_found .
        CATCH cx_swf_cnt_elem_type_conflict .
        CATCH cx_swf_cnt_unit_type_conflict .
        CATCH cx_swf_cnt_elem_def_invalid .
        CATCH cx_swf_cnt_container .
      ENDTRY.
    COMMIT WORK.
    No excpetions are raised, but the container is not updated! Did i make something wrong?
    Please help!
    Thanks in advance.
    Alex

    Hallo Mike.
    I think i should explain my requirements in more detail. I'm working on different Employee Self Service Scenarios. The User Interface is a Webdynpro which can be called form the Portal. In Background a Workflow is trigger and all following steps can be executed through the UWL.
    For each Scenario it is possible to enter different date by the user. As the data is used in the workfow i would like to set it into the container by an generic Function Module for all scenarios. Each Process has a unique name and i made a table where the related information (Workflow task...) is stored.
    But i think I already found a solution:
    CREATE OBJECT cnt TYPE  cl_swf_cnt_container .
      TRY.
          CALL METHOD cnt->if_swf_cnt_element_access_1~element_set_value
            EXPORTING
              name  = 'Vorgesetzter'
              value = m_vorg.
    *    unit       =
    *  IMPORTING
    *    returncode =
          CALL METHOD cnt->if_swf_cnt_element_access_1~element_set_value
            EXPORTING
              name  = 'Prozessdaten'
              value = <wa_proc_struc>.
    *    unit       =
    *  IMPORTING
    *    returncode =
          CALL METHOD cnt->if_swf_cnt_element_access_1~element_set_value
            EXPORTING
              name  = 'ESS_KEY'
              value = lwa_ess_key.
    *    unit       =
    *  IMPORTING
    *    returncode =
          CALL METHOD cnt->if_swf_cnt_element_access_1~element_set_value
            EXPORTING
              name  = 'PROCESS_NAME'
              value = i_ess_process.
    *    unit       =
    *  IMPORTING
    *    returncode =
        CATCH cx_root .
      ENDTRY.
      CALL METHOD cl_swf_ifs_conversion_base=>to_ifs_xml
        EXPORTING
          source_container    = cnt
          import_param        = 'X'
          export_param        = 'X'
          local_elements      = 'X'
          no_system_elements  = ' '
          no_initial_elements = ' '
    *      id                  = l_key-task
        IMPORTING
          ifs_xml_stream      = ifs_xml_container
          error_handle        = lv_excp.
      IF lv_excp IS NOT INITIAL.
        CALL METHOD lv_excp->if_message~get_text
          RECEIVING
            result = lwa_swf_return-message.
        e_return-type = 'E'.
        e_return-id   = 'ZESS'.
        e_return-number = lwa_swf_return-message.
        e_return-message  = lwa_swf_return-text.
        e_rc = 1.
        ROLLBACK WORK.
        EXIT.
      ENDIF.
    *Workflow starten
      CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
        EXPORTING
          task                      = lwa_ess_prozess-prozess_task
    *   LANGUAGE                  = SY-LANGU
          do_commit                 = ''
    *   USER                      = SY-UNAME
    *   START_ASYNCHRONOUS        = ' '
    *   DESIRED_START_DATE        =
    *   DESIRED_START_TIME        =
    *   DESIRED_START_ZONLO       = SY-ZONLO
         ifs_xml_container         = ifs_xml_container
    IMPORTING
       return_code               = l_subrc
    *   WORKITEM_ID               =
    *   NEW_STATUS                =
    TABLES
    *       input_container           = i_event_cont
       message_lines             = lit_messag
       message_struct            = lit_messstruc
       agents                    = it_swhactor
    With this technique i am now able to set dynamic structures (e.g. <wa_proc_struc>) to the Container.
    Thanks.
    Alex

  • Workflow instances problem

    My problem is that in workflow i am sending workitem for manager approval.If manager rejects the workitem it goes to employee back for correction and resubmission.But what is happening once workitem is send to employee for correction the current workflow instance is completed and when user changes the report and resubmits it a new workflow instance will be created.This all increases load on the working system.
    Can we keep the same workflow instance working till report is rejected or accepeted and then only workflow instance is completed.

    I think you can make use of Function module
    SAP_WAPI_WORKITEMS_TO_OBJECT
    in a virtual attribute that will check whether any existing wflow is already triggered for it. If yes set the Flag(Virtual attribute) value as X. Make use of this attribute in th Start ciondition of the wflow in SWB_COND Tcode.
    Now in your workflow the approval step should be inside a loop that loops until the request is approved. Inside the loop the approval step should be in fork with 2 parallel branch and 1 necessary. In 1 branch put approval step and in other branch put the Wait for event step.
    Thanks
    Arghadip

  • Assigning a workflow instance ID

    Hi,
    I just want to know if it's possible to assign my own instance ID when instantiating
    a workflow.
    Thanks.

    I have the same question, and I would like to be able to get to
    the actual "label" as opposed to setting up a new process
    variable. It is not accessible in the dialog box.
    Thanks
    John
    "Kara Moscoe" <[email protected]> wrote:
    When you say "workflow ID", do you mean the system-generated instance
    ID, or
    do you mean the template definition ID -- or "label" -- that you define
    in
    the Template Definition properties dialog? (There is some confusion around
    these, for which a CR has been opened.)
    If it's the latter, you should simply be able to specify a workflow variable
    name, and specify that variable as the return variable in the Perform
    Business Operation action for the business operation in question. If
    you
    want to manually intervene during a running workflow to change a variable
    value, you can also use the Update variables function in the Workflow
    Variables dialog box, accessed from the Workflow Instances dialog.
    Kara
    Ronen Yaari <[email protected]> wrote in message
    news:[email protected]..
    hI All,
    How can I change a WLI2.0 workflow ID after the workflow has started?
    The workflow is initialized via the WLI2.0 queue with an XML. I thencall
    a
    business operation
    that give me the value that I need to put in the workflow ID. How doI do
    that ?
    Thanxs,
    Ronen Yaari

  • Finding Work Item IDs for a particular Container Value

    Hi All,
    I am trying to find a workflow that ran on 9/3/09.  What is easiest way to find the particular workflow ID if I only have a container value to tie to the workflow?  Is there a WF table or transaction that I can use to search for work items on a particular day with a specific container value?
    Thank you for your help,
    Brian

    Hi,
    If you know the value of key elemnt of your BOR then you can use SWI6 tcode.
    Here you have to enter the object name, object key, slection variant as All instances and selection period as All.
    Example : my object is BUS2012 and iknow the object key : 4500002345 then in SWI6 you will definitely get it.
    Thnaks and Regards,
    Swaminathan

  • Cannot create process to handle workflow instance conversation

    <Nov 18, 2002 1:04:30 PM IST> <Error> <B2B> <000000> <<Process>
    Hi,
    Iam getting following error when iam trying to invoke
    subworkflow.
    can anyone help me in solving this problem.
    regards
    Ananth
    ERROR: Cannot cr
    eate process null.>
    <Nov 18, 2002 1:04:30 PM IST> <Error> <B2B> <000000> <<B2B-BPM-Plugin> ERROR:
    Cannot create process to handle workflow instance conversation
    com.bea.b2b.protocol.ProcessManager$CreateException: ERROR: Cannot create proces
    s null.

    Hi Ajaz,
    Error description is not detailed enough to provide the solution. You need to post the error message what you got in the server log files. This should contain specific details about the issue.
    Not sure but issue may be related to JVM settings. if it is so, server log file will provide the error description.

  • Colours are not changing when a certain value is used

    Hi all. This might look strange. But anywayz...
    I am developing a game related to controlling trains and preventing them from clashing into one another. Naturally, my game allows the user to control the colour of the signals present at each station. My game has 3 layers: the first one does the game calculations, the second does the rendering aspects of the game, and the third constantly passes latest game data to the rendering layer.
    Now, the data for the signals comes from the first layer as an array of Integers. The array is named 'aspect'. Below is the code:
          switch(aspect.intValue())
    case 1:
    objGraphics.setColor(java.awt.Color.RED);
    break;
    case 2:
    objGraphics.setColor(java.awt.Color.ORANGE);
    break;
    case 3:
    objGraphics.setColor(java.awt.Color.GREEN);
    System.out.println("green");     
    The default colour of all the signals is red. Now while the game is in progress, if the user changes the colour of the signal to, for example, green, the change is not reflected on-screen. However, the SOP call works fine - the word 'green' is printed in the console.
    What further surprises me is that if I change the statement 'case 1' to 'case 4', and then while the game is in progress, change the colour to green, then the change is reflected on the console.
    I placed SOPs to find out if the values inside 'aspect' are correct. Ya they are correct - they contain values '1' at the start of the game, and when the user changes to green, then they contain '3'.
    So what could be the problem?

    Jeez... sorry.. my mistake.
    What I was doing was this: for drawing the signals, I take all the signals from the Calculations layer and store them in a Vector. Now this becomes a Vector of Integer arrays.
    In the Rendering layer, I have a loop which draws the stations. I also have a method which draws the aspects for each station. Inside the loop, for each station, I call this method. But I don't know what I was thinking while writing the method - I wrote it such dat it draws all the signals for all stations. Thus, for each call, it would redraw all the signals, not the ones for the current station.
    I have changed dat now, and it works. When the user selects a station and then selects the signal he wants, the change is rendered onscreen. Yippee!!
    sabre150, u were right after all!!! Also, thanks to all those who stopped by to rack ur brains over an issue that shouldn't have been one in the first place.
    But what I don't understand is this: Even with my wrong code, shouldn't the change be rendered? Ya, I know it was rendering the signals repeatedly, but then it should have rendered them rightly, isn't it? Or am I not getting something?

  • Cannot change sga or pga value

    Hello,
    i've got a problem with changing the sga or pga values on oracle xe installed on windows xp.
    When i log on to the administration page, set a new sga target, restart xe and go to the page where i can set the sga target size i still see the old values. My new values are not set.
    What can i do to change the sga target value?
    Thanks for help in advance,
    Dirk

    You don't need to restart instance when you set new value.
    If you want to have that value permanently (I wouldn't) then you must change initialization parameter.
    E.g.:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/start.htm#sthref512
    HTH

  • Change Workflow Notifications

    Hi Experts,
    We are using custom workflow which was copied from WS33700137. We have created notifications within workflow by using Activity/BOR Objects.
    Notifications are working fine in case of Create / Withdrawn / Approve / Reject.
    We are not able to add BOR Object for Change workflow.
    For Example, An employee created leave request for 08.04.2014 and request sent to the Manager. Manager hasn't approved yet and now employee goes and change the leave type or added reason. In this case, it doesn't create new work item. Details are update only in the container.
    Even if we see SWI1, it has work item timings which was created at the first time. It doesn't update anything for change.
    In this scenario, where we can add our BOR Object for notifications in case of any change. Please go through the SWDD graph and guide us, where we can add change BOR Object Notifications.
    Appreciate your kind guidance on this.
    Regards,
    Ashish

    I don't yet have experience with WS33700137. I suppose this is the "new" leave request workflow?
    I am a bit confused that what you mean by notifications? Do you mean the approval work items? What do you want to happen when the employee changes the leave?
    Here are couple of pointers that might lead you to right directions:
    First of all, at least in the old leave request workflow things worked like this: If employee sent a leave for approval, but changed it before the manager approved it, nothing really happened (because the leave wasn't yet posted to the infotype). No new workflow was started, and the same approval work item stayed in the manager's inbox. BUT if the manager had approved the leave, and it was posted to the infotype, then if the employee changed the leave, a new workflow was started. (You might want to check if this is something that you can change in the IMG).
    Secondly, you should probably check the BADIs of the leave request functionality. There are some methods that you can put your own code into, so perhaps you can do whatever you are looking for in one of these methods (=>When leave request is being changed, etc. But please pay attention to what I said earlier: Changing a posted leave request is a different thing compared to the pending leave.).
    Kind regards,
    Karri  

Maybe you are looking for

  • Installtion problem Developer 6i on Windows XP platform(SP3)

    Can I Installed Developer 6i with Oracle 9i(9.2.0.1)on Windows XP platform if the service pack 3 is present there. After successfull installation of Oracle 9i(9.2.0.1) on Windows XP(SP3) machine , I have failed to install Developer 6i. please help me

  • Error while loading material master data

    I am loading delta data for material master and its giving me the following error: "Programs not generated for InfoSource 0MATERIAL_ATTR and source system". How to resolve this error? Need ur help urgently. Thanks

  • Give query for

    Hi all, i am searching for an queryby using MS Access.I have a table called stock. Stock Table: stock_id     comp_id     prod_id     item_id     Quantity     module      1     100     200     300     10     P      2     101     200     300     20    

  • Creating Report Group

    Hi. I'd like to ask how to create / edit a Report Group? I'd like to create one, put 2 reports there and write transaction which will launch that report group. I'd be thankful for help or links Greetings. P.

  • An error on WLS on UNIX

    Hi, I just started to run WLS on Solaris on Port 80 with SP5, and I say the following exception: weblogic.utils.ParsingException: nested IOException: java.io.EOFException: Unexpected end of ZLIB input stream at java.lang.Throwable.fillInStackTrace(Na