<?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>Question Re: Triggering workflow from proxy program(server proxy) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956504#M1874565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kumar,&lt;/P&gt;&lt;P&gt;I suggest you use the function module SAP_WAPI_CREATE_EVENT wherein you just need to put in the event of the workflow which is there as the starting condition of the workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you still face issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2009 09:26:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-14T09:26:24Z</dc:date>
    <item>
      <title>Triggering workflow from proxy program(server proxy)</title>
      <link>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaq-p/4956500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;i tried to trigger the work flow from the Proxy program from BPM from SAP PI.&lt;/P&gt;&lt;P&gt;for that i created a code as follows, but while syntax check in the proxy (server proxy) implemtation (methode), i am getting the message as "Include &amp;lt;CNTN01&amp;gt;		&lt;/P&gt;&lt;P&gt;Within classes and interfaces, you can only use "TYPE" to refer to ABAP		&lt;/P&gt;&lt;P&gt;Dictionary types (not "LIKE" or "STRUCTURE")."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any body tell me how can i resolve this problem.	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the fallowing is the  implemented mothode code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method ZII_WF_MI~EXECUTE_ASYNCHRONOUS.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;**** INSERT IMPLEMENTATION HERE **** ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include &amp;lt;cntn01&amp;gt;.&lt;/P&gt;&lt;P&gt;SWC_CONTAINER it_swcont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: BEGIN OF T_STR ,&lt;/P&gt;&lt;P&gt;        EMPID TYPE ZEMPID,&lt;/P&gt;&lt;P&gt;        LSDATE TYPE ZLSDATE,&lt;/P&gt;&lt;P&gt;        LEDATE TYPE ZLSDATE,&lt;/P&gt;&lt;P&gt;        END OF T_STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: agent_p type Standard table of sWHACTOR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: IT_STR type table of t_str,&lt;/P&gt;&lt;P&gt;      wa_str like line of it_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_STR-EMPID = INPUT-WF_MT-EMPID.&lt;/P&gt;&lt;P&gt;wa_STR-LSDATE = INPUT-WF_MT-SDATE.&lt;/P&gt;&lt;P&gt;wa_STR-LEDATE = INPUT-WF_MT-EDATE.&lt;/P&gt;&lt;P&gt;APPEND wa_STR to it_str. CLEAR WA_STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_SET_element it_swcont 'abs_form_leave' IT_STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SWW_WI_START'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_FB                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECKED_WI                         = SWFCO_NO_ID&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONFIRM                            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATOR                            = 'anilb'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DESIRED_END_ACTION                 = SWFCO_WI_DEF_DH_ACT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DESIRED_END_DATE                   = SWFCO_NO_DATE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DESIRED_END_TIME                   = SWFCO_NO_TIME&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DESIRED_START_DATE                 = SWFCO_NO_DATE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DESIRED_START_TIME                 = SWFCO_NO_TIME&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE                           = SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LATEST_END_ACTION                  = SWFCO_WI_DEF_DH_ACT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LATEST_END_DATE                    = SWFCO_NO_DATE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LATEST_END_ESCALATION              = SWFCO_NO_ESC&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LATEST_END_TIME                    = SWFCO_NO_TIME&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LATEST_START_ACTION                = SWFCO_WI_DEF_DH_ACT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LATEST_START_DATE                  = SWFCO_NO_DATE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LATEST_START_TIME                  = SWFCO_NO_TIME&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAX_EVENT_COUNT                    = SWFCO_DEF_MAX_EVT_CNT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PRIORITY                           = SWFCO_NO_PRIO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TASK                               = 'WS99900263'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WORKITEM_TYPE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DO_COMMIT                          = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DO_SYNC_CALLBACK                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TEXT                               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DO_SYNC_WI_CHAIN                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CREATED_BY_USER                    = SY-UNAME&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CREATED_BY_ADDRESS                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLED_IN_BACKGROUND               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STEP_MODELED_WI_DISPLAY            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_DEADLINE_PARAMETERS             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RESTRICTED_LOG                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SECONDS_UNTIL_TIMEOUT              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CREATE_EVENT                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STATUS_EVENT                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  XML_PROTOCOL                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WLC_FLAGS                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  START_PROPERTIES                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEBUG_FLAG                         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TRACE_FLAG                         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WI_CONTAINER_HANDLE                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  START_ASYNCHRONOUS                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WI_ID                              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WI_HEADER                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN                             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WI_RESULT                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SWF_RETURN                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEW_STATUS                         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   AGENTS                             = agent_p&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEADLINE_AGENTS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DESIRED_END_AGENTS                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LATEST_START_AGENTS                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXCLUDED_AGENTS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOTIFICATION_AGENTS                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SECONDARY_METHODS                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   WI_CONTAINER                       = it_swcont&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COMP_EVENTS                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID_NOT_CREATED                     = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_FAILED                        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IMMEDIATE_START_NOT_POSSIBLE       = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXECUTION_FAILED                   = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_STATUS                     = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                             = 6&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 09:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaq-p/4956500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T09:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering workflow from proxy program(server proxy)</title>
      <link>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956501#M1874562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In your class  go to MACROS icon (ctrl&lt;EM&gt;shift&lt;/EM&gt;f7).&lt;/P&gt;&lt;P&gt;Declare:&lt;/P&gt;&lt;P&gt; Include &amp;lt;CNTN02&amp;gt;.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ronit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 11:04:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956501#M1874562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T11:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering workflow from proxy program(server proxy)</title>
      <link>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956502#M1874563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its because that &lt;STRONG&gt;INCLUDE &amp;lt;CNTN01&amp;gt;&lt;/STRONG&gt; is not supported in the classes MACRO's Definiton &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You need to use &lt;STRONG&gt;INCLUDE cntn01_swc.&lt;/STRONG&gt;  in the macros defniton.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;In the &lt;STRONG&gt;Properties Tab&lt;/STRONG&gt; of the class declare  &lt;STRONG&gt;SWC0&lt;/STRONG&gt;  in the TYPE Groups so that you can create the instnace of the BO inside the class*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 05:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956502#M1874563</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-12-26T05:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering workflow from proxy program(server proxy)</title>
      <link>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956503#M1874564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your repply guys.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i used a function module 'SWC_ELEMENT_SET' insted of macros. so its working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i got the another problem in execution of the W/F , i created one of the step in the W?F definition as background task,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what happened here was, the execution stops at that task and its showning that execution in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i see that execuion continued immedatly after reaching that step? (so that the further steps in the W/F can be executed after the background tast step)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody have the solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thsanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 06:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956503#M1874564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T06:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering workflow from proxy program(server proxy)</title>
      <link>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956504#M1874565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kumar,&lt;/P&gt;&lt;P&gt;I suggest you use the function module SAP_WAPI_CREATE_EVENT wherein you just need to put in the event of the workflow which is there as the starting condition of the workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you still face issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 09:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956504#M1874565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T09:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering workflow from proxy program(server proxy)</title>
      <link>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956505#M1874566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 08:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/triggering-workflow-from-proxy-program-server-proxy/qaa-p/4956505#M1874566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T08:44:09Z</dc:date>
    </item>
  </channel>
</rss>

