<?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: Modify from work area transporting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466625#M833156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better use Field-Symbols:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD-SYMBOLS: &amp;lt;FS_TABLE_TEMP&amp;gt; LIKE LINE OF I_TABLE_TEMP.

LOOP AT I_TABLE_TEMP ASSIGNING &amp;lt;FS_TABLE_TEMP&amp;gt;.
....
...

MODIFY I_TABLE_TEMP FROM &amp;lt;FS_TABLE_TEMP&amp;gt;.
...
..

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 19:28:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T19:28:26Z</dc:date>
    <item>
      <title>Modify from work area transporting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466621#M833152</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;&lt;/P&gt;&lt;P&gt;I have an internal table with 2 records . A work area which has the changes to a particular zfield1 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following statement below to modify the internatable record with that field . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will this statement execute ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_TABLE_TEMP INTO W_TEMP &lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY I_TABLE_TEMP FROM W_TEMP  TRANSPORTING  DATE.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_TABLE_TEMP has 2 records in the body of the internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hari  G  Krishna on Mar 10, 2008 11:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 15:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466621#M833152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T15:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Modify from work area transporting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466622#M833153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT I_TABLE_TEMP INTO W_TEMP&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY I_TABLE_TEMP FROM W_TEMP TRANSPORTING DATE.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODIFY I_TABLE_TEMP FROM W_TEMP TRANSPORTING DATE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This command will only move the value of the field date, u should use it without that adition, so all the fields of the work area will be moved to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY I_TABLE_TEMP FROM W_TEMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 17:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466622#M833153</guid>
      <dc:creator>Rodrigo-Giner</dc:creator>
      <dc:date>2008-03-10T17:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modify from work area transporting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466623#M833154</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;When you use this statement it will modify the record using the field DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_TABLE_TEMP INTO W_TEMP&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY I_TABLE_TEMP FROM W_TEMP TRANSPORTING DATE.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code even if you are going to modify some other field in the internal table say I_TABLE_TEMP-MAKTX and change it at runtime the value would not change in the internal table as you are transporting only DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The general terminology is to use index sy-tabix.. but using transporting you optimise the code performance as you modify only one record which you want and not the rest....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you can use the other field in the work area at runtime and also simultaneously improve the performance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the difference when you are going to particularly use ITAB os structure MARA where where have more than 100 fields and you need to modify only field in the internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you found this helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 17:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466623#M833154</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2008-03-10T17:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modify from work area transporting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466624#M833155</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;inside the loop populate the value of the field and write as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop...&lt;/P&gt;&lt;P&gt;zfield1 = date.&lt;/P&gt;&lt;P&gt;MODIFY I_TABLE_TEMP FROM W_TEMP TRANSPORTING zfield1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kiran kumar pattapu on Mar 10, 2008 6:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 17:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466624#M833155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T17:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Modify from work area transporting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466625#M833156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better use Field-Symbols:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD-SYMBOLS: &amp;lt;FS_TABLE_TEMP&amp;gt; LIKE LINE OF I_TABLE_TEMP.

LOOP AT I_TABLE_TEMP ASSIGNING &amp;lt;FS_TABLE_TEMP&amp;gt;.
....
...

MODIFY I_TABLE_TEMP FROM &amp;lt;FS_TABLE_TEMP&amp;gt;.
...
..

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 19:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466625#M833156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T19:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modify from work area transporting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466626#M833157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alvaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't modifying field symbol equal to modifying tables record that has been assigned to this FS?&lt;/P&gt;&lt;P&gt;In my opinion no MODIFY statement is needed in this example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD-SYMBOLS: &amp;lt;fs_table_temp&amp;gt; LIKE LINE OF i_table_temp.
 
LOOP AT i_table_temp ASSIGNING &amp;lt;fs_table_temp&amp;gt;.
  "some changes to the &amp;lt;fs_table_temp&amp;gt;
  ....
  ....
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Mat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mateusz Adamus on Mar 10, 2008 9:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 20:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466626#M833157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T20:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Modify from work area transporting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466627#M833158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't modifying field symbol equal to modifying tables record that has been assigned to this FS?&lt;/P&gt;&lt;P&gt;In my opinion no MODIFY statement is needed in this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right Mateusz -:) My mistake -:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 20:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466627#M833158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T20:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modify from work area transporting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466628#M833159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT  T_CHILD  WHERE EBELP NE ' '..
      MOVE T_CHILD-EBELN TO Z_EBELN.
      MOVE T_CHILD-TXZ01 TO Z_TXZ01.
      READ TABLE T_CHILD INDEX Z_INDEX INTO T_ZCHILD .
      MOVE Z_EBELN TO  T_ZCHILD-EBELN.
      MOVE Z_TXZ01 TO  T_ZCHILD-MATNR.
      MODIFY T_CHILD FROM T_ZCHILD INDEX Z_INDEX TRANSPORTING EBELN MATNR.
    ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code.follow this its pretty simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nirad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 20:44:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-from-work-area-transporting/m-p/3466628#M833159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T20:44:13Z</dc:date>
    </item>
  </channel>
</rss>

