<?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: Move and Assign Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257611#M778047</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;If f is source field and g is target field, then&lt;/P&gt;&lt;P&gt;MOVE f TO g.&lt;/P&gt;&lt;P&gt;Moves the contents of field f to field g. Field f remains unchanged. &lt;/P&gt;&lt;P&gt;This statement is equivalent to: &lt;/P&gt;&lt;P&gt;g = f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign deals with field-symbols. Field-symbols are nothing but like pointers in C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you give ASSIGN f TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if u change the value of &amp;lt;fs&amp;gt; it will reflect in f also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose lets say f = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then give ASSIGN f TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then give &amp;lt;fs&amp;gt; = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see the value of f changes to 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the difference between MOVE and ASSIGN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by-&lt;/P&gt;&lt;P&gt;Srinath S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2008 12:17:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-17T12:17:00Z</dc:date>
    <item>
      <title>Move and Assign Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257607#M778043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference between Move &amp;amp; assign statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257607#M778043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Move and Assign Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257608#M778044</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;Assign is used with field symbols to move data, whereas MOVE is used for variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257608#M778044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Move and Assign Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257609#M778045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Move c to w_var.&lt;/P&gt;&lt;P&gt; we r moving c into w_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign is used for field symbols&lt;/P&gt;&lt;P&gt;ASSIGN mem_area TO &amp;lt;fs&amp;gt; casting_spec range_spec. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement assigns the memory area specified using mem_area to the field symbol &amp;lt;fs&amp;gt;. You can assign a data object or a memory area calculated from the address of a data object. After the assignment, the field symbol refers to the assigned memory area and can be used in operand positions. When used in a statement, it behaves like a dereferenced data reference, meaning that the statement works with the content of the memory area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data type with which the assgigned memory area is treated, depends on the specifications in casting_spec . You can either execute an explicit casting or the field symbol takes on the data type of the data object specified in the assignment. A field symbol to which a memory area is assigned, has this data type after the assignment and behaves like a data object of this type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The assigned memory area mem_area must be at least as long as the data type specified in casting_spec and must have the same alignment. If the data type determined in casting_spec is deep, the deep components with their type and position must appear in the assigned memory area exactly like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the specifications in range_spec to restrict the memory area that can be assigned to the field symbol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plzz reward points if it helps&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257609#M778045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Move and Assign Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257610#M778046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In MOVE actually copies data into another data field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while ASSIGN is used in field-symbols. and field symbols is used to reference another variable dynamically. So this field symbol will simply point to some other variable and this pointer can be changed at runtime.&lt;/P&gt;&lt;P&gt;(Assign is like Pointer in C)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257610#M778046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Move and Assign Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257611#M778047</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;If f is source field and g is target field, then&lt;/P&gt;&lt;P&gt;MOVE f TO g.&lt;/P&gt;&lt;P&gt;Moves the contents of field f to field g. Field f remains unchanged. &lt;/P&gt;&lt;P&gt;This statement is equivalent to: &lt;/P&gt;&lt;P&gt;g = f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign deals with field-symbols. Field-symbols are nothing but like pointers in C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you give ASSIGN f TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if u change the value of &amp;lt;fs&amp;gt; it will reflect in f also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose lets say f = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then give ASSIGN f TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then give &amp;lt;fs&amp;gt; = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see the value of f changes to 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the difference between MOVE and ASSIGN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by-&lt;/P&gt;&lt;P&gt;Srinath S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257611#M778047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Move and Assign Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257612#M778048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Move :- To assign the value of a data object &amp;lt;fl&amp;gt; to a variable &amp;lt; f2 &amp;gt;, use the following &lt;/P&gt;&lt;P&gt;statement:&lt;/P&gt;&lt;P&gt;MOVE &amp;lt; f1 &amp;gt; TO &amp;lt; f2 &amp;gt;.&lt;/P&gt;&lt;P&gt;or the equivalent statement&lt;/P&gt;&lt;P&gt;&amp;lt; f2 &amp;gt; = &amp;lt; f1 &amp;gt;.&lt;/P&gt;&lt;P&gt;The contents of &amp;lt; f1 &amp;gt; remain unchanged.  &amp;lt; f1 &amp;gt; does not have to be a variable - it can also &lt;/P&gt;&lt;P&gt;be a literal, a text symbol, or a constant.  You must always specify decimal points with a period &lt;/P&gt;&lt;P&gt;(.), regardless of the user's personal settings.&lt;/P&gt;&lt;P&gt;Multiple value assignments in the form&lt;/P&gt;&lt;P&gt;&amp;lt; f4 &amp;gt; = &amp;lt; f3 &amp;gt; = &amp;lt;f2 &amp;gt; = &amp;lt; f1 &amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign :- ASSIGN &amp;lt; f &amp;gt; TO &amp;lt; FS &amp;gt;.&lt;/P&gt;&lt;P&gt;When you assign the data object, the system checks whether the technical attributes of the &lt;/P&gt;&lt;P&gt;data object &amp;lt; f &amp;gt; correspond to any type specifications for the field symbol &amp;lt; FS &amp;gt;.  The field &lt;/P&gt;&lt;P&gt;symbol adopts any generic attributes of &amp;lt; f &amp;gt; that are not contained in its own type &lt;/P&gt;&lt;P&gt;specification.  Following the assignment, it points to &amp;lt; f &amp;gt; in memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:22:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257612#M778048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Move and Assign Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257613#M778049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajesh Soman on Jan 17, 2008 1:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257613#M778049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Move and Assign Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257614#M778050</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;MOVE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_MARA is the internal table which has 1 record,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF STRUCT_MARA,&lt;/P&gt;&lt;P&gt;       MATNR TYPE MATNR,&lt;/P&gt;&lt;P&gt;       MTART TYPE MTART,&lt;/P&gt;&lt;P&gt;       MEINS TYPE MEINS,&lt;/P&gt;&lt;P&gt;       END OF STRUCT_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: I_MARA TYPE STANDARD TABLE OF STRUCT_MARA WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_matnr type matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if V_MATNR is a variable of type matnr (V_MATNR TYPE MATNR)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data has to be moved into V_MATNR,&lt;/P&gt;&lt;P&gt;ie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: I_MARA-MATNR TO V_MATNR.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: MOVE can be used for tranfering data between two variables of same type also.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_MARA is the internal table which has 1 record,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF STRUCT_MARA,&lt;/P&gt;&lt;P&gt;       MATNR TYPE MATNR,&lt;/P&gt;&lt;P&gt;       MTART TYPE MTART,&lt;/P&gt;&lt;P&gt;       MEINS TYPE MEINS,&lt;/P&gt;&lt;P&gt;       END OF STRUCT_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: I_MARA TYPE STANDARD TABLE OF STRUCT_MARA WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: &amp;lt;f1&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if &amp;lt;f1&amp;gt;is a field-symbol of type any (&amp;lt;f1&amp;gt; type any)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN I_MARA-MATNR TO &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field-symbol &amp;lt;f1&amp;gt; will point the address of the I_MARA-MATNR &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: ASSIGN i s only used for field-symbols and it is used by the field-symbols to point the address of a field used in ASSIGN syntax.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257614#M778050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Move and Assign Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257615#M778051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sneha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Move :-&lt;/STRONG&gt; To assign the value of a data object &amp;lt;fl&amp;gt; to a variable &amp;lt; f2 &amp;gt;, use the following &lt;/P&gt;&lt;P&gt;statement:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MOVE &amp;lt; f1 &amp;gt; TO &amp;lt; f2 &amp;gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;or the equivalent statement&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt; f2 &amp;gt; = &amp;lt; f1 &amp;gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The contents of &amp;lt; f1 &amp;gt; remain unchanged.  &amp;lt; f1 &amp;gt; does not have to be a variable - it can also &lt;/P&gt;&lt;P&gt;be a literal, a text symbol, or a constant.  You must always specify decimal points with a period &lt;/P&gt;&lt;P&gt;(.), regardless of the user's personal settings.&lt;/P&gt;&lt;P&gt;Multiple value assignments in the form&lt;/P&gt;&lt;P&gt;&amp;lt; f4 &amp;gt; = &amp;lt; f3 &amp;gt; = &amp;lt;f2 &amp;gt; = &amp;lt; f1 &amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Assign :-&lt;/STRONG&gt; &lt;EM&gt;ASSIGN &amp;lt; f &amp;gt; TO &amp;lt; FS &amp;gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;When you assign the data object, the system checks whether the technical attributes of the &lt;/P&gt;&lt;P&gt;data object &amp;lt; f &amp;gt; correspond to any type specifications for the field symbol &amp;lt; FS &amp;gt;.  The field &lt;/P&gt;&lt;P&gt;symbol adopts any generic attributes of &amp;lt; f &amp;gt; that are not contained in its own type &lt;/P&gt;&lt;P&gt;specification.  Following the assignment, it points to &amp;lt; f &amp;gt; in memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kripa Rangachari..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 13:08:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-assign-statement/m-p/3257615#M778051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T13:08:29Z</dc:date>
    </item>
  </channel>
</rss>

