<?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: Issue when using SWC_SET_TABLE inside loop..... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-using-swc-set-table-inside-loop/m-p/5121965#M1187817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help will be appreciated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajesh Thomas on Feb 6, 2009 8:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2009 19:12:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-06T19:12:20Z</dc:date>
    <item>
      <title>Issue when using SWC_SET_TABLE inside loop.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-using-swc-set-table-inside-loop/m-p/5121964#M1187816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;I am working on business object ABAP. Now I am using SWC_GET_TABLE to pass work areas data &lt;/P&gt;&lt;P&gt;to business object method from ABAP as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is at SWC_SET_TABLE because, during the second pass in loop the statement SWC_SET_TABLE LT_CONTAINER_s 'CHGTAB' GT_ALV does not set the GT_ALV to new values &lt;/P&gt;&lt;P&gt;in the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: L_OBJECT_s   TYPE SWC_OBJECT,
            L_OBJTYPE_s  LIKE SWOTOBJID-OBJTYPE,
            L_KEY_s      LIKE SWOTOBJID-OBJKEY,
            L_RETURN_s   LIKE SWOTRETURN,
            L_VERB_s     LIKE SWOTINVOKE-VERB.       

LOOP AT GT_ALV.        
        SWC_CONTAINER LT_CONTAINER_s.
        L_OBJTYPE_s = GT_ALV-SAPOBJECT.
        L_VERB_s = 'ChangeData'.
        L_KEY_s = GT_ALV-OBJECT_ID.

        SWC_CREATE_OBJECT L_OBJECT_s L_OBJTYPE_s L_KEY_s.
        SWC_CREATE_CONTAINER LT_CONTAINER_s.

        SWC_SET_TABLE LT_CONTAINER_s 'CHGTAB' GT_ALV.


        CALL FUNCTION 'SWO_INVOKE'
          EXPORTING
            OBJECT    = L_OBJECT_s-HANDLE
            VERB      = L_VERB_s
            SYNCHRON  = 'X'
          IMPORTING
            RETURN    = L_RETURN_s
          TABLES
            CONTAINER = LT_CONTAINER_s
          EXCEPTIONS
            OTHERS    = 1.

      ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajesh Thomas on Feb 6, 2009 6:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 17:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-using-swc-set-table-inside-loop/m-p/5121964#M1187816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T17:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when using SWC_SET_TABLE inside loop.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-using-swc-set-table-inside-loop/m-p/5121965#M1187817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help will be appreciated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajesh Thomas on Feb 6, 2009 8:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 19:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-using-swc-set-table-inside-loop/m-p/5121965#M1187817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T19:12:20Z</dc:date>
    </item>
  </channel>
</rss>

