Skip to Content
author's profile photo Former Member
Former Member

Filling workflow-container via SOAP

Hello,

like I wrote in starting-workflow-with-http-post I had been successful in starting my workflow via SOAP-message:

<?xml version="1.0" encoding="UTF-8" ?> 
<SOAP-ENV:Envelope 
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
        <ns1:SAP_WAPI_START_WORKFLOW xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
            <TASK>WS99900004</TASK> 
            <USER>DANGILERI</USER> 
        </ns1:SAP_WAPI_START_WORKFLOW>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Is it possible to fill a created workflow-container and do someone has a simple example?

Regards

Daniel

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Jun 10, 2008 at 07:56 AM

    Hi Daniel,

    I never used SOAP, but I expect you should be able to fill the container from the XML message. Did you try to give something like this after the user:

     <CONTAINERELEMENTNAME>VALUE</CONTAINERELEMENTNAME>

    The container element should be importing I think.

    Regards,

    Martin

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Daniel,

      Maybe it is case sensitive, so you need to give the name exactly as it is in the container, sometimes this is necessary.

      Otherwise you would need to see if you can do an update of the container after the workflow is started, but for that you will need the workflow-id and an option to call the SAP_WAPI FM's.

      Regards,

      Martin

  • Posted on Jun 09, 2008 at 02:24 PM

    I don't how you make use of it in SOAP, generally macros are used like SWC_SET_ELEMENT or SWC_SET_TABLE.

    Regards, IA

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 10, 2008 at 03:55 AM

    If you have the Work item id then u can try this FM

    SAP_WAPI_WRITE_CONTAINER

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2008 at 07:38 AM

    Hi Daniel

    I am guessing you are on ECC6. Though I never did this before....FM SAP_WAPI_START_WORKFLOW accepts an XML container via IFS_XML_CONTAINER or as someone suggested you can populate a table and pass it to the FM using INPUT_CONTAINER.

    Good Luck

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.