<?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 Performance hit with 'ASSIGN COMPONENT' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343658#M173568</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;I am using 'Assign Component' to pass values between 2 dynamically created tables. However it seems the subroutine where this is occuring is taking long to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is ASSIGN COMPONENT abc of STRUCTURE .... statement Performance intensive ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2006 14:34:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-18T14:34:05Z</dc:date>
    <item>
      <title>Performance hit with 'ASSIGN COMPONENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343658#M173568</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;I am using 'Assign Component' to pass values between 2 dynamically created tables. However it seems the subroutine where this is occuring is taking long to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is ASSIGN COMPONENT abc of STRUCTURE .... statement Performance intensive ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 14:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343658#M173568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Performance hit with 'ASSIGN COMPONENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343659#M173569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;be sure to do ASSIGN only once, not each pass in your LOOP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 15:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343659#M173569</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2006-05-18T15:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance hit with 'ASSIGN COMPONENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343660#M173570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. The component to assign is inside a Loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab&lt;/P&gt;&lt;P&gt;  Assign Component itab-comp of structure struc..&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab has the name of the components (fields) of the structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 15:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343660#M173570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T15:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Performance hit with 'ASSIGN COMPONENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343661#M173571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if using the INDEX of the field of the structure is faster than using the name of the field or not.   Maybe you can try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 15:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343661#M173571</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-18T15:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance hit with 'ASSIGN COMPONENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343662#M173572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you can give the complete code between LOOP and ENDLOOP we could see if optimization is possible...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 15:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343662#M173572</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2006-05-18T15:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Performance hit with 'ASSIGN COMPONENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343663#M173573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Francois... Here is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at &amp;lt;it_select_tab&amp;gt; assigning &amp;lt;ls_select_tab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    INSERT INITIAL LINE INTO &amp;lt;it_select_global&amp;gt; index  cnt assigning&lt;/P&gt;&lt;P&gt;    &amp;lt;ls_select_global&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Loop at ifc_local into xfc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      assign component xfc-fieldname of structure &amp;lt;ls_select_tab&amp;gt; to&lt;/P&gt;&lt;P&gt;      &amp;lt;ls_select_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table itg_map into itl_map with key&lt;/P&gt;&lt;P&gt;                                   zsyst = lv_syst&lt;/P&gt;&lt;P&gt;                                   zmapfield = xfc-fieldname&lt;/P&gt;&lt;P&gt;                                   binary search.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        assign component itl_map-fieldname of structure&lt;/P&gt;&lt;P&gt;                                       &amp;lt;ls_select_global&amp;gt; to&lt;/P&gt;&lt;P&gt;                                       &amp;lt;ls_select_global_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;ls_select_global_field&amp;gt; = &amp;lt;ls_select_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;Endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Unassign: &amp;lt;ls_select_field&amp;gt;,&lt;/P&gt;&lt;P&gt;                &amp;lt;ls_select_global_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 18:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343663#M173573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T18:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Performance hit with 'ASSIGN COMPONENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343664#M173574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK in this case you cannot do it else, but you should try to remove nested loops. For example, why don't you do the loop directly on itg_map in place of xfc ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but anyway beware your UNASSIGN statements are not placed well, they should be placed like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at ifc_local into xfc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign component xfc-fieldname of structure &amp;lt;ls_select_tab&amp;gt; to&lt;/P&gt;&lt;P&gt;&amp;lt;ls_select_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itg_map into itl_map with key&lt;/P&gt;&lt;P&gt;zsyst = lv_syst&lt;/P&gt;&lt;P&gt;zmapfield = xfc-fieldname&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;assign component itl_map-fieldname of structure&lt;/P&gt;&lt;P&gt;&amp;lt;ls_select_global&amp;gt; to&lt;/P&gt;&lt;P&gt;&amp;lt;ls_select_global_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ls_select_global_field&amp;gt; = &amp;lt;ls_select_field&amp;gt;.&lt;/P&gt;&lt;P&gt;UNASSIGN &amp;lt;ls_select_global_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;UNASSIGN &amp;lt;ls_select_field&amp;gt;.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 12:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343664#M173574</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2006-05-24T12:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Performance hit with 'ASSIGN COMPONENT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343665#M173575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Francois. It helped with the performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 19:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-hit-with-assign-component/m-p/1343665#M173575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T19:37:50Z</dc:date>
    </item>
  </channel>
</rss>

