<?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: Difference between MOVE and WRITE TO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999112#M75930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you found the answer to this qustion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2005 04:15:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-27T04:15:31Z</dc:date>
    <item>
      <title>Difference between MOVE and WRITE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999111#M75929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference between MOVE and WRITE TO ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone thr std help but unable to get it exactly. What is peculiarity about type c ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation says " In contrast to MOVE, the format of the target field g is the same as when outputting to a list with WRITE. The field type C is always used, regardless of the actual data type. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 03:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999111#M75929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T03:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between MOVE and WRITE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999112#M75930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you found the answer to this qustion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 04:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999112#M75930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T04:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between MOVE and WRITE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999113#M75931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the difference is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though both are used to transfer contents of a variable, we should use 'write to' when we need the effect of outputting the variable to list output. (well thats what the documentation says).&lt;/P&gt;&lt;P&gt; U might wonder what the difference is.. suppose we use these methods on a field with conversion exit, it will be clear. Using 'write to', the value is converted using the conversion exit while it is not the case with move.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 04:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999113#M75931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T04:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between MOVE and WRITE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999114#M75932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ztestak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: test1(10) type c,&lt;/P&gt;&lt;P&gt;      test2(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move sy-datum to test1.&lt;/P&gt;&lt;P&gt;write sy-datum to test2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'With MOVE :', test1.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'With WRITE:', test2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With MOVE : 20050726  &lt;/P&gt;&lt;P&gt;With WRITE: 07/26/2005&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 05:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999114#M75932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T05:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between MOVE and WRITE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999115#M75933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you are using 'MOVE' it will try to cast the value according to the target variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also sy-subrc  behaves differently&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc eq 2 casting done with some adjustments &lt;/P&gt;&lt;P&gt;    sy-subrc eq 4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u got some other values u can find them in online documentaion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope This helps&lt;/P&gt;&lt;P&gt;Ismail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 20:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999115#M75933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T20:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between MOVE and WRITE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999116#M75934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Re: Difference between MOVE and WRITE TO   &lt;/P&gt;&lt;P&gt;Posted: Jul 27, 2005 4:24 PM        Reply      E-mail this post  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you are using 'MOVE' it will try to cast the value according to the target variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also sy-subrc behaves differently for move statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 2 casting done with some adjustments &lt;/P&gt;&lt;P&gt;sy-subrc eq 4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u got some other values u can find them in online documentaion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope This helps&lt;/P&gt;&lt;P&gt;Ismail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 20:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999116#M75934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T20:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between MOVE and WRITE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999117#M75935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   While using the MOVE statement the source field &amp;amp; the target field should be of the same type or should be type convertible &amp;amp; compatible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example ; &lt;/P&gt;&lt;P&gt;         data : source type i value 100, &lt;/P&gt;&lt;P&gt;                target type i.&lt;/P&gt;&lt;P&gt;         move source to target.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of WRIE TO the source field can be of any type but the target field should always be a character type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example ; &lt;/P&gt;&lt;P&gt;         data : source type i value 200,&lt;/P&gt;&lt;P&gt;                target(10) type c.&lt;/P&gt;&lt;P&gt;         write source to target.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 04:26:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-write-to/m-p/999117#M75935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T04:26:22Z</dc:date>
    </item>
  </channel>
</rss>

