<?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: Diff: bw. WRITE TO &amp; MOVE TO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682833#M300901</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;1. Todays date is 23.nov.2006. (sy-datum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move :---&amp;gt; 20061122&lt;/P&gt;&lt;P&gt;Write :----&amp;gt; 23.11.2006 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. just copy paste to get a taste of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : STR(15) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE SY-DATUM TO STR.&lt;/P&gt;&lt;P&gt;WRITE:/ STR.&lt;/P&gt;&lt;P&gt;WRITE SY-DATUM TO STR.&lt;/P&gt;&lt;P&gt;WRITE:/ STR.&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;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Nov 2006 13:30:39 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2006-11-23T13:30:39Z</dc:date>
    <item>
      <title>Diff: bw. WRITE TO &amp; MOVE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682832#M300900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I am a beginner of ABAP. Does anyone tell me the differences between the WRITE TO stm and MOVE TO stm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Kalai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 13:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682832#M300900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T13:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Diff: bw. WRITE TO &amp; MOVE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682833#M300901</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;1. Todays date is 23.nov.2006. (sy-datum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move :---&amp;gt; 20061122&lt;/P&gt;&lt;P&gt;Write :----&amp;gt; 23.11.2006 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. just copy paste to get a taste of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : STR(15) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE SY-DATUM TO STR.&lt;/P&gt;&lt;P&gt;WRITE:/ STR.&lt;/P&gt;&lt;P&gt;WRITE SY-DATUM TO STR.&lt;/P&gt;&lt;P&gt;WRITE:/ STR.&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;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 13:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682833#M300901</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-23T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Diff: bw. WRITE TO &amp; MOVE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682834#M300902</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;At the simplest level:&lt;/P&gt;&lt;P&gt;MOVE: does type conversion based upon the type of the target field (ie the data type of the source field is converted to the data type of the target field)&lt;/P&gt;&lt;P&gt;WRITE: assumes the target field is of type C (ie character data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the ABAP online help for more information (go to transaction SE38, click on the Documentation icon and search for the MOVE and WRITE statements).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 13:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682834#M300902</guid>
      <dc:creator>michael-john_turner</dc:creator>
      <dc:date>2006-11-23T13:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Diff: bw. WRITE TO &amp; MOVE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682835#M300903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hullo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically both commands will do the same, however with "WRITE TO" conversion routines are used and it's possible to use edit masks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztestak.

data: test1(10) type c,
test2(10) type c.

START-OF-SELECTION.

move sy-datum to test1.
write sy-datum to test2.

write :/ 'With MOVE :', test1.
write :/ 'With WRITE:', test2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;With MOVE : 20050726 
With WRITE: 07/26/2005&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&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, 23 Nov 2006 13:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682835#M300903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T13:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Diff: bw. WRITE TO &amp; MOVE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682836#M300904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;the only difference is for WRITE TO the target field should be of character type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark all useful answers..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 13:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682836#M300904</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-11-23T13:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Diff: bw. WRITE TO &amp; MOVE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682837#M300905</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 is a simple data transfer statement to move content of a variable to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write statements are associated with formatting options. some happen automatically and some can be forced by programmer.&lt;/P&gt;&lt;P&gt;like when you write a date field, even though it is internally stored as YYYYMMDD.&lt;/P&gt;&lt;P&gt;these will be done when you do a write to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the source is a date field and the target is a string. imagine..&lt;/P&gt;&lt;P&gt;1. write lv_date1 to lv_date_string dd/mm/yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_date type sy-datum.&lt;/P&gt;&lt;P&gt;lv_date_string type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_date_string will now have the date as 23/11/2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. for the same data declation, if u say&lt;/P&gt;&lt;P&gt;move lv_date1 to lv_date_string...&lt;/P&gt;&lt;P&gt;lv_date_string will have 20061123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies ur doubt.&lt;/P&gt;&lt;P&gt;Pls reward suitable points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 13:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682837#M300905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T13:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Diff: bw. WRITE TO &amp; MOVE TO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682838#M300906</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;again adding to above.&lt;/P&gt;&lt;P&gt;&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;PRE&gt;&lt;CODE&gt;data : source type i value 100, 
target type i.
move source to target.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &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;PRE&gt;&lt;CODE&gt;data : source type i value 200,
target(10) type c.
write source to target.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 13:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-bw-write-to-move-to/m-p/1682838#M300906</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-23T13:50:20Z</dc:date>
    </item>
  </channel>
</rss>

