<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sending Workitem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917254#M1483772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can export the values to memory id from your module pool program. Import the values and set the container elements as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

INCLUDE &amp;lt;cntn01&amp;gt;.

DATA: wf_val   TYPE c VALUE 'X',
      int_tab  TYPE TABLE OF mara,
      wf_wi_id TYPE swwwihead-wi_id.

SELECT * FROM mara
   INTO TABLE int_tab
     UP TO 100 ROWS.

swc_container         int_cont.
swc_create_container  int_cont.

swc_set_element int_cont 'ELMNT'  wf_val.
swc_set_table   int_cont 'TABLE'  int_tab.

CALL FUNCTION 'SWW_WI_CREATE'
  EXPORTING
    task           = 'WS99901011'
  IMPORTING
    wi_id          = wf_wi_id
  TABLES
    wi_container   = int_cont
  EXCEPTIONS
    id_not_created = 1
    read_failed    = 2
    OTHERS         = 3.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the container elements in work item log in SWI1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 May 2010 09:25:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-25T09:25:06Z</dc:date>
    <item>
      <title>Sending Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917247#M1483765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Requirement - I have made a module pool with one screen in which there is long text, userid text box and a button for send mail.&lt;/P&gt;&lt;P&gt;When ever user write his comments and click send button, it will go to the SAP Inbox of the user. The reciver when doubleclicks, the modulepool screen will open and he can write his own comments aloso and send back to the user or any other user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made one task and one business object for this. In the Business object i write 'CALL TRANASACTION ZPSNOTE'.&lt;/P&gt;&lt;P&gt;ZPSNOTE is the transaction for my modulepoo.&lt;/P&gt;&lt;P&gt;I am using FM SWW_WI_CREATE, but i am not getting the task triggered.And also not getting the workflow itemin inbox. But it is showing in outbox the workitem executed by me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get this.&lt;/P&gt;&lt;P&gt;Please Help !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 09:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917247#M1483765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T09:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917248#M1483766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. What's the return value of SWW_WI_CREATE?&lt;/P&gt;&lt;P&gt;2. Have you checked the workflow log and the status of workflow....&lt;/P&gt;&lt;P&gt;3. Is it a dialog task?&lt;/P&gt;&lt;P&gt;3. Also, try running and testing your method independently....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 09:48:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917248#M1483766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T09:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917249#M1483767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached my task in the FM SWW_WI_CREATE and it is returning me the ID of WI Created.&lt;/P&gt;&lt;P&gt;In SWI5, it is showing the object with the ID of WI Created.&lt;/P&gt;&lt;P&gt;In Log its showing the steps and also the FM with no errors.&lt;/P&gt;&lt;P&gt;When i am executing the method independentlly, its working fine and showing the screen.&lt;/P&gt;&lt;P&gt;I have also set the break-point in the method and execut my modulepool program, but it is not going into method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 09:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917249#M1483767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T09:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917250#M1483768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your method is selected as a dialog method and background processing is unchecked in task?&lt;/P&gt;&lt;P&gt;Also check the agent assignment of the workflow activity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 10:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917250#M1483768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T10:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917251#M1483769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes the method is dialog ans background processing is unchecked.&lt;/P&gt;&lt;P&gt;The task is general.&lt;/P&gt;&lt;P&gt;I am just giving the userid on screen and mail should be send to his/her SAP maibox and the screen should be open when user open the mail.&lt;/P&gt;&lt;P&gt;I am passing the userid in FM SWW_WI_CREATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 10:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917251#M1483769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T10:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917252#M1483770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you passing the user id in AGENTS parameter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 06:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917252#M1483770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-25T06:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917253#M1483771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is solved, i have to change the task to general task in other client also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have another problem.&lt;/P&gt;&lt;P&gt;How to transfer the data from screen to task cointainer so that it can be displayed when user opens the mail??????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 07:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917253#M1483771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-25T07:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917254#M1483772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can export the values to memory id from your module pool program. Import the values and set the container elements as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

INCLUDE &amp;lt;cntn01&amp;gt;.

DATA: wf_val   TYPE c VALUE 'X',
      int_tab  TYPE TABLE OF mara,
      wf_wi_id TYPE swwwihead-wi_id.

SELECT * FROM mara
   INTO TABLE int_tab
     UP TO 100 ROWS.

swc_container         int_cont.
swc_create_container  int_cont.

swc_set_element int_cont 'ELMNT'  wf_val.
swc_set_table   int_cont 'TABLE'  int_tab.

CALL FUNCTION 'SWW_WI_CREATE'
  EXPORTING
    task           = 'WS99901011'
  IMPORTING
    wi_id          = wf_wi_id
  TABLES
    wi_container   = int_cont
  EXCEPTIONS
    id_not_created = 1
    read_failed    = 2
    OTHERS         = 3.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the container elements in work item log in SWI1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 09:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917254#M1483772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-25T09:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917255#M1483773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since i am using FM SWW_WI_CTEATE, it shoul fill the task container if i am passing the table to WI_COINTAINER of this FM.&lt;/P&gt;&lt;P&gt;But it is not populating the cointainer of the task.&lt;/P&gt;&lt;P&gt;I am giving the element name same as defined in task.&lt;/P&gt;&lt;P&gt;Any other way to fill the cointainer of the task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?????????????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 04:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917255#M1483773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T04:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917256#M1483774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try passing the workflow number instead. It will create the container elements in the workflow conatiner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also can you post the code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 12:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-workitem/m-p/6917256#M1483774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T12:53:51Z</dc:date>
    </item>
  </channel>
</rss>

