<?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 Passing values to workflow in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-workflow/m-p/4090149#M977992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a report program, the output of whch is an internal table with a single field type c. (elementary internal table). I've schedule the program to run at a specific time in background. Now, whenever the program executes, I want a workflow to trigger and pass the entire internal table to the workflow. How do I achieve this? Please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2008 06:22:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-08T06:22:27Z</dc:date>
    <item>
      <title>Passing values to workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-workflow/m-p/4090149#M977992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a report program, the output of whch is an internal table with a single field type c. (elementary internal table). I've schedule the program to run at a specific time in background. Now, whenever the program executes, I want a workflow to trigger and pass the entire internal table to the workflow. How do I achieve this? Please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-workflow/m-p/4090149#M977992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Passing values to workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-workflow/m-p/4090150#M977993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use FM &lt;STRONG&gt;SWW_WI_START&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:34:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-workflow/m-p/4090150#M977993</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-07-08T06:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Passing values to workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-workflow/m-p/4090151#M977994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please give an example as of how i pass the internal table to that FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-workflow/m-p/4090151#M977994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Passing values to workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-workflow/m-p/4090152#M977995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONSTANTS : gc_task LIKE swwwihead-wi_rh_task VALUE 'WS99900152'.

DATA : BEGIN OF it_swcont OCCURS 0.
        INCLUDE STRUCTURE swcont.
DATA : END OF it_swcont.

MOVE : 'MATERIALRESERVATION'  TO  it_swcont-element,
             090          TO  it_swcont-elemlength,
             'o'        TO  it_swcont-type.

      CONCATENATE sy-sysid 'CLNT' sy-mandt
      'BUS2093' 'XXX'  gd_rsnum INTO
              it_swcont-value.
      REPLACE 'XXX' WITH '   ' INTO it_swcont-value.
      APPEND it_swcont. CLEAR it_swcont.

      MOVE : '_WF_INITIATOR'  TO  it_swcont-element,
             014          TO  it_swcont-elemlength,
             'C'          TO  it_swcont-type,
             gd_creator   TO  it_swcont-value.
      APPEND it_swcont. CLEAR it_swcont.
*---------------------------------------

*-------get work item type
      CALL FUNCTION 'RH_GET_WORKITEM_TYPE'
           EXPORTING
                task_object = gc_task
           IMPORTING
                wi_type     = gd_type.
*----------------------------------------
*----start workflow ---------------------
      CALL FUNCTION 'SWW_WI_START'
           EXPORTING
                creator       = gd_creator
                task          = gc_task
                workitem_type = gd_type
           IMPORTING
                wi_id         = gd_id
           TABLES
                wi_container  = it_swcont.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 03:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-workflow/m-p/4090152#M977995</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-07-14T03:08:42Z</dc:date>
    </item>
  </channel>
</rss>

