<?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: Pass parameter to workflow container in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262290#M1215320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;RBK&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object type is &lt;STRONG&gt;FORMABSENC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My workflow number is &lt;STRONG&gt;WS30000015&lt;/STRONG&gt; and my prgram is pasted previously plese chek my basic tread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to workflow please guid me how to solve the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Feb 2009 11:12:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-28T11:12:08Z</dc:date>
    <item>
      <title>Pass parameter to workflow container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262286#M1215316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have called the workflow through program and in the workflow there is one oblligatory element AbsenceForm and i am passing the value through the program by WI_CONTAINER. My problem the value is not passing correctly and the following error is comming when i execute the program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import container contains errors (are any obligatory elements missing?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INCLUDE &amp;lt;CNTN01&amp;gt;.

TABLES:
 ZCL_LEAVE_WFLOW.

* define table type for data exchange
  TYPES:
    BEGIN OF MYTABLE_LINE,
      LINE TYPE SWC_VALUE,
    END OF MYTABLE_LINE.

DATA:
  FS_MYLINE TYPE MYTABLE_LINE,
  FS_AGENTS TYPE SWHACTOR,
  FS_SWCONT TYPE SWCONT.

DATA:
  OK_CODE LIKE SY-UCOMM,         " return code from screen
  G_REPID LIKE SY-REPID.

  DATA:
* Reference to wrapper class of control based on OO Framework
    G_EDITOR          TYPE REF
                        TO CL_GUI_TEXTEDIT,
* Reference to custom container: necessary to bind TextEdit Control
    G_EDITOR_CONTAINER TYPE REF
                        TO CL_GUI_CUSTOM_CONTAINER.


  DATA:
    T_MYTABLE TYPE TABLE               " To store text in text editor
                OF MYTABLE_LINE,
    T_AGENT   TYPE TABLE               " To store agents
                OF SWHACTOR,
    T_SWCONT  TYPE TABLE               " To store Instance Structure
                OF SWCONT.
  SWC_CONTAINER T_SWCONT.
  SWC_SET_ELEMENT T_SWCONT 'ABSENCEFORM' '0000000005'. "AbsenceForm
  SWC_CONTAINER_TO_PERSISTENT T_SWCONT.

  CALL FUNCTION 'SWW_WI_START_SIMPLE'
    EXPORTING
*     CREATOR                            = sy-uname
*     PRIORITY                           = SWFCO_NO_PRIO
      TASK                               = 'WS30000015'   
*     CALLED_IN_BACKGROUND               = ' '
*     DEADLINE_DATA                      = ' '
*     NO_DEADLINE_PARAMETERS             = ' '
*   IMPORTING
*     WI_ID                              =
*     WI_HEADER                          =
*     RETURN                             =
*     WI_RESULT                          =
*     SWF_RETURN                         =
    TABLES
      AGENTS                             = T_AGENT
*     DEADLINE_AGENTS                    =
*     DESIRED_END_AGENTS                 =
*     LATEST_START_AGENTS                =
*     EXCLUDED_AGENTS                    =
*     NOTIFICATION_AGENTS                =
*     SECONDARY_METHODS                  =
     WI_CONTAINER                       = T_SWCONT
*   CHANGING
*     WI_CONTAINER_HANDLE                =
   EXCEPTIONS
     ID_NOT_CREATED                     = 1
     READ_FAILED                        = 2
     IMMEDIATE_START_NOT_POSSIBLE       = 3
     EXECUTION_FAILED                   = 4
     INVALID_STATUS                     = 5
     OTHERS                             = 6
            .
  IF SY-SUBRC NE 0.
     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me what is the exact problem here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 07:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262286#M1215316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T07:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameter to workflow container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262287#M1215317</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;Was the workflow active and without any errors.Becoz it seems like a interface connectivity is missing here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 07:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262287#M1215317</guid>
      <dc:creator>rejish_balakrishnan</dc:creator>
      <dc:date>2009-02-28T07:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameter to workflow container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262288#M1215318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes &lt;STRONG&gt;RBK&lt;/STRONG&gt; it is in active and another thing is it is standard workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to call custusomise workflow if the present callling is done perfectly....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 08:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262288#M1215318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T08:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameter to workflow container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262289#M1215319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the problem could any of these.&lt;/P&gt;&lt;P&gt;What is the object  type of absence form ?&lt;/P&gt;&lt;P&gt;Does &lt;STRONG&gt;WI_CONTAINER&lt;/STRONG&gt; have same structure or data type or reference as like   &lt;STRONG&gt;Absence Form&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Make sure you have one container element for the std work flow.This u could check with executing the work flow separately..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also tell us the work flow number .Let me have a glance at it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 08:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262289#M1215319</guid>
      <dc:creator>rejish_balakrishnan</dc:creator>
      <dc:date>2009-02-28T08:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameter to workflow container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262290#M1215320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;RBK&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object type is &lt;STRONG&gt;FORMABSENC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My workflow number is &lt;STRONG&gt;WS30000015&lt;/STRONG&gt; and my prgram is pasted previously plese chek my basic tread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to workflow please guid me how to solve the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 11:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262290#M1215320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T11:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameter to workflow container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262291#M1215321</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;Provide task instead of workflow in exporting parameter.&lt;/P&gt;&lt;P&gt;Connectivity should be&lt;/P&gt;&lt;P&gt;BO&lt;DEL&gt;-task&lt;/DEL&gt;workflow .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function SWW_WI_START_SIMPLE
exporting
task = TS30000016 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 11:20:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-workflow-container/m-p/5262291#M1215321</guid>
      <dc:creator>rejish_balakrishnan</dc:creator>
      <dc:date>2009-02-28T11:20:48Z</dc:date>
    </item>
  </channel>
</rss>

