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

Similar Messages

  • Workflow Container not updated

    Hi All,
    The user has taken action on a work item, but one parameter in container is not updated.
    Is there any user related authorization we need to take care.
    Thanks,
    Aravind

    Hi All,
    Thanks for the replies. I will further elaborate the scenario. This is an HCM forms & processes based workflow.
    The user is approving the form, the user can either approve, reject or return the form. Based on this PROCSTATE variable
    can have 3 values, APPROVE, REJECT or BACK. But for one user only the PROCSTATE parameter in container
    is not getting set.
    Why for only one user this parameter is not set? If this is an issue with binding, it would have happened all the users.
    Thanks,
    Aravind

  • Library xml is not updated, or created empty

    I have my playlists and files in itunes, but not in imovie for example. I figured out that the Library.xml is not created even when i open itunes with a new library.
    Maybe it has some "invalid" chars in my music file names. I have a lot of files, so renaming one by one is not a option.
    I'm just guessing that is the problem, but i suppose the xml have to support utf-8, am i right?
    And the option to export the playlist as xml does nothing.
    The question is simple: How can i fix that?

    Hi Pradeep,
    R you able to replicate document perfectly with standard transaction type?
    Best Regards,
    Pratik Patel

  • Windows 7 XML SP2 not updating

      I have a problem that hopefully someone can help with.  I am using a HP Omni 120-1124 Desktop PC. It has Windows 7 Home premium, 64-bit installed. There are 2 Windows updates that will not install no matter what I do.  They are: 1) "Security Update for MSXML 4.0 Service Pack 2" (KB954430) and "Update for Microsoft XML Core Services 4.0 Service Pack 2" (KB973688). In one of the MSN articles I looked at, it said to go to: c:\
    Windows\System32 and right-click the Msxml4.dll file and click properties. The file Msxml4.dll file is not there.
    Any advice on how to proceed would be greatly appreciated!
    Thank-You, Terry
    This question was solved.
    View Solution.

    Hello Terry57,
    I understand you are having issues with a couple of Microsoft Windows 7 Updates not installing. I am providing you with a Microsoft Support document: Troubleshoot problems with installing updates that Microsoft has designed to address the very issue you are experiencing.
    I hope I have provided you with the solution you were looking for. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • XML file not updating

    The imsmanifest.xml doesn't seem to be updated after I have
    completed the test in the presentation. I have tried all the
    settings in quiz manager.
    I am suppose to see the test results in the imsmanifest.xml
    file, right?

    did you use the site list manager tool, or edit the XML by hand?
    if you edited by hand, did you increase the file version number ?
    http://technet.microsoft.com/en-us/library/dn640701.aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • XML Publisher not updating translated XLFs

    Hi,
    We are using XML Publisher Administrator responsibility to upload French translated XLFs for our RTF files. We are using EBS version 12.1.3.
    We are able to successfully upload XLFs in WINDOWS-1252 encoding format. However,when we download those, the resulting files are encoded in UTF-8,with some characters distorted out.However, the final report output shows the correct European character set.
    Can anyone suggest why is this happening ?

    <TEL_TXT><?b?>Telephone:<?/b?> Call this number to pay by credit card using a land line or mobile phone.</TEL_TXT>
    <TEL_HOW>Tel: 1300 362 589</TEL_HOW>
    <INT_TXT><?b?>Internet:<?/b?> Visit this website to make a secure credit card payment over the internet.</INT_TXT>
    We use BPEL to extract information from an external source, once we get this, we use BI publisher to then compile everything together including output from a receivables report, to produce a pdf report. Microsoft Word just ignores the <?b?>, thinks it's a sub tag. p.s i put the ? in there so that html browser does not bold the text. in the real sample the ? are not in there.
    Message was edited by:
    THLAM
    Message was edited by:
    THLAM

  • XML Data not updating on xlf

    hi,
    My IT department created some xml files for a project that I am working on. I want to have XML connecting into the dashboard whenever I update the xml file. Is there a way I can do it? I tried saving the XML data into Excel and importing the spreadsheet into dashboard, which gave the me the data but if I want to have XML data connection with the URL of xml data in my local file it doesn't work. I also tried XML Maps for data manager and that worked one time but if I update same file it won't show me new data after refreshing.
    Does any body know how to do it from starting and give me steps to automatically refresh the data... I have three different data sheets for charts. I have Xcelsius 2008 Engage....I am totally confused...
    Thanks.

    Hi, Sejal Shah
    Please Have a Look at the following Thread where i explain the Steps, hope will help to solve your problem,
    [XML u2013 Structure Needed in Xcelsius|XML u2013 Structure needed in Xcelsius;
    Please REply if any Issue.
    Kind Regards,
    Faisal

  • XML template not updating

    Hi
    I have a data definition and a template registered.
    When i make changes to the xml template and upload it still shows the same old output.
    ie when i run the concurrent proram i am getting the same old template layout.
    i tried to change few labels on the template and uploaded,but the concurrent program still picks the old template.
    Can any one help me regarding this.
    Thanks in advance.

    Hi,
    Try this and see if you still get the same Output
    Save the XML Output of the Concurrent Program
    After making changes to Template, load XML Data and see preview of the Output in the Stand alone.
    or
    Check whether Data Definition and Template are Assigned Accordingly
    Regards
    JDev..

  • Recovering iTunes Song List (iTunes Library.xml not updated)

    How do I recover the iTunes library song list? My computer recently crashed, so I had to get this new one. The old hard drive is working fine. I just need the song list to be able to identify the songs that I have yet to copy unto my iPod (I arrange the library by 'Date Added'). Since my music files are located in a variety of places, it would be very difficult for me to locate each without being guided by the list.
    For some weird reason, the iTunes Library.xml is not updated. It's still dated 2009, so that fix goes out the window, I guess.
    Thanks in advance.

    try if the suggestions in this thread help: http://discussions.apple.com/thread.jspa?threadID=2168081&tstart=0.
    JGG

  • SharePoint 2013 Workflow Not Updating on Deployment

    Developing a 2013 Workflow on SharePoint 2013 using Visual Studio 2012, deploying workflow changes does not update the workflow that runs. This has already been posted on the SP 2013 dev forum, but I wanted to check here with the workflow folks. Anyone run
    into this issue before and/or have tips for solving?
    Thanks.
    http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/cd543a00-f3ab-4a4a-8682-b81d8330b677
    http://blog.randomdust.com

    This issue is reported and I'll post about it once I have an update.  For now to workaround this issue, you can try these steps
    Change the default deployment option to “No Activation”
    Retract the solution using Visual Studio
    Deploy the solution. This time feature will not be activated by default as we have changed to “No Activation”
    Open the SharePoint designer and click on the “Workflow”  section. You will see your workflow already present there. Delete the workflow which you have created.
    Activate the feature manually.
    Now you should see your updated version.
    Chandrasekar Natarajan

  • RSS feeds not updated

    The rss feeds on: http://www.oracle.com/technology/syndication/rss_otn_dev.xml
    are not updated.

    Hi,
    We have caught up the feed.  In recent months we have been focusing on Twitter communication (@AdobeLabs), but we will continue to update our blog going forward.  Thank you for noticing!

  • Workflow issue - Main workflow container elements are not updated.

    Hi All
    We have implemented N-step badi for approval process and for this we have activated one workflow which contains subworkflow .
    During approval process , only the subworkflow container elements( approver list and last approver) getting updated with status and time.But main workflow container elements is not updating with these details.
    Binding between main workflow and subworkflow is perfect. But reverse binding ( from subworkflow -> main workflow ) will take place once subworkflow is completely finished. But here we will require / need to pass some information from sub workkflow to main workflow when still subworlflow in process( before completed itself).
    Please let me know is there any process / steps is required to pass values between subworkflow to main workflow ( binding is perfect).
    Please let me the way how I can update the main workflow container from  subworkflow container or from any step in sub workflow .
    In subworkflow . we have loop of  approvers and it will send workitems to approvers one by one.
    Here i need to update Main workflow with the information like last approver and approver list with status and approved time.
    So please suggest how Can I update main workflow container from subworkflow while subworkflow is still in process( subworkflow not yet completed).
    Kindly reply me ASAP.
    Thanks and Regards
    Madhukar .

    Yes I am setting SWC_SET_ELEMENT for my container values,the ones for which i have defined as EXPORT.
    And I have checked the task also...
    Everything has been checked properly..The binding is fine.
    Thanks & regards,
    Ravikiran Kallimath

  • Incopy link will not update in InDesign and XML Story files

    So I have a couple of questions.
    I work for a publisher and we have a standard InDesign to Incopy workflow. Recently we have started having issues with InCopy links. First some basic info would probably be helpful. We use Windows XP =(, and we are using InDesign and Incopy CS3. All of our files are on a server. When I or people on my team sometimes attempt to update Incopy links, they will simply not update. Then when we check the link it says that it is zero k in size and is pretty much fried, cannot open in Icopy or InDesign. Why this is so nasty is because if the file cannot be updated all the work in the story that was done in InCopy is lost. Then to make matters worse, if we unlink the incopy file sometimes when we go to save indesign completely crashes. Is this a permissions issue as our IT department is fairly ignorant about design workflows on servers and has been inconsistent about the permissions. Also these .xml files seem to be populating the folder where we keep our InDesign files, when we open them they have basic information on the story links. I have attempted to find out more info on these files but have had very little luck.
    Any info would be helpful.
    Thanks!

    I cannot import video files.
    Mylenium

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

Maybe you are looking for

  • Error when importing through DTW for JE

    Hi All, When i try import Je through DTW it gives me the error as "You are not allowed to edit posting date". I am trying to import around 1000 transactions of which it gives me this error for one transaction, when i remove the transaction and try to

  • Can I install Windows 7 on Microsoft Surface Pro 3?

    Hi, I want to install Windows 7 on my Microsoft Surface 3 Pro, I want to know that can I install Windows 7 on MS Surface Pro 3 or if I will install Windows 7 on Surface then what features will not be available in Windows 7 Pro ? What will the issues

  • Airport Extreme USB problems

    I am posting this information as part of case number 757-73818. Level 2 support for Airport Extreme has not returned phone calls, despite giving me a specific telephone number to call. I am new to the MAC world and I must say, I am disappointed. I ha

  • Exporting for Flash

    I'm trying to export a motion graphic for Flash, but when I export as Lossless + Alpha Channel, I still get a black background behind my graphic that prevents me from compositing it in Flash. However, the same .mov that I exported composites without

  • How to declined the call when the screen is locked on io7?

    Guys I tried to cancel the call while the phone is ringing it doesn't display an option while the screen is Locked however there declined option when it's unlocked Any idea how to declined the call while the screen is locked