<?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 Difference between Writeto and Move in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945502#M943563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me the differnce between writeto and move statements,thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swrana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 05:39:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-29T05:39:22Z</dc:date>
    <item>
      <title>Difference between Writeto and Move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945502#M943563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me the differnce between writeto and move statements,thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swrana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945502#M943563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Writeto and Move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945503#M943564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MOVE converts the value of the source field into the data type of the target field,WRITE TO converts the contents of the source field into a field with type C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945503#M943564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Writeto and Move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945504#M943565</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- is used to copy entire contents of one table into another in one execution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Syntax&lt;/P&gt;&lt;P&gt;		MOVE  &amp;lt;itab1&amp;gt; To &amp;lt;itab2&amp;gt;.&lt;/P&gt;&lt;P&gt;			OR&lt;/P&gt;&lt;P&gt;		&amp;lt;itab1&amp;gt; = &amp;lt;itab2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the entire contents of one table into another in one execution.&lt;/P&gt;&lt;P&gt;Original data in target table overwritten.&lt;/P&gt;&lt;P&gt;For tables with header line use [] to distinguish it from work area since both have the same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING &amp;lt;itab1&amp;gt; TO &amp;lt;itab2&amp;gt;..  - Executes the statement for their header lines.    Searches for the sub-fields which occur both in itab1 and itab2 and&lt;/P&gt;&lt;P&gt;        then generates, for all relevant field pairs which correspond to the&lt;/P&gt;&lt;P&gt;        sub-fields ni , statements of the form  	MOVE itab1-ni TO itab2-ni.   The other fields remain unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE TO statement-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE &amp;lt;f1&amp;gt; TO &amp;lt;f2&amp;gt; [&amp;lt;format&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Converts the contents of a data object &amp;lt;f1&amp;gt; to type C, and assigns the resulting string to the variable &amp;lt;f2&amp;gt;. You can use the same formatting options available in the WRITE statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the write to statement as well..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;PLz reward points if useful&lt;/P&gt;&lt;P&gt;Edited by: Malvika Sharma on May 29, 2008 7:42 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Malvika Sharma on May 29, 2008 7:47 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Malvika Sharma on May 29, 2008 7:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945504#M943565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Writeto and Move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945505#M943566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swarna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This can be best understood with one example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose we have two variables.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : datum type sy-datum.&lt;/P&gt;&lt;P&gt;data : var (15) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose datum contains the date 29-may-2008&lt;/P&gt;&lt;P&gt;so it will contain the value in YYYYMMDD format.&lt;/P&gt;&lt;P&gt;ie. 20080529&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now&lt;/P&gt;&lt;P&gt;Move datum to var : then var will contain 20080529&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write datum into var: then var will contain 29.05.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. &lt;/P&gt;&lt;P&gt;So WRITE will put the data &lt;/P&gt;&lt;P&gt;in the format it will normally display, in the users format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945505#M943566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Writeto and Move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945506#M943567</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;Assigns the contents of the source field f to the target field&lt;/P&gt;&lt;P&gt;g as a new value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast to MOVE, the format of the target field g is the&lt;/P&gt;&lt;P&gt;same as when outputting to a list with WRITE. The field type C&lt;/P&gt;&lt;P&gt;is always used, regardless of the actual data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of write to , Other formatting options are also possible with list output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In case of write to ,Instead of specifying a static source field f, you can make adynamic source field specification (name). In this case, the contents of the field name is interpreted as the source field name at runtime and the contents are formatted accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945506#M943567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Writeto and Move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945507#M943568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The statement WRITE TO has the same effect as the statement WRITE for lists. This statement formats the content of source or the source field specified in source_name as described in the field. It does not, however, store the result in an output area of a list in the list buffer, but instead stores it in a variable. The output length is determined by the length of the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move statement will move the record .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is usefull Plz Rewards&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;Anbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945507#M943568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Writeto and Move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945508#M943569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swarna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE f TO g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write TO&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Assigns the contents of the source field f to thetarget field g as a new value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast to MOVE, the format of thetarget field g is the same as when outputting to a list withWRITE. The field type C isalways used, regardless of the actual data type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As with list output, the settings in the user's master record fordecimal point (period or comma) and date format are taken into account. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other formatting options are also possiblewith list output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of specifying a static source field f, you can make adynamic source field specification (name). In this case, thecontents of the field name is interpreted as the source fieldname at runtime and the contents are formatted accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can identify the target field g more precisely by specifyingthe offset and/or length in the form g+off(len). Both the offsetand the length specifications off and len can also bedynamic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the WRITE name TO g variant, the returncode is set as follows: &lt;/P&gt;&lt;P&gt;SY-SUBRC = 0:&lt;/P&gt;&lt;P&gt;Contents of name are valid, statementexecuted. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 4:&lt;/P&gt;&lt;P&gt;Contents of name are invalid, statementcould not be executed, and contents of g remain unchanged. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other cases, the return code is undefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;WRITE ... TO with dynamic source fieldspecification and dynamic offset and length specification for thetarget field: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NAME(5)  VALUE 'FIELD', &lt;/P&gt;&lt;P&gt;      FIELD(5) VALUE 'Harry', &lt;/P&gt;&lt;P&gt;      DEST(18) VALUE 'Robert James Smith', &lt;/P&gt;&lt;P&gt;      OFF      TYPE I, &lt;/P&gt;&lt;P&gt;      LEN      TYPE I. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OFF = 7. &lt;/P&gt;&lt;P&gt;LEN = 8. &lt;/P&gt;&lt;P&gt;WRITE (NAME) TO DEST+OFF(LEN). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field DEST noew contains the value "Robert Harry   ith". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;Only values between 0 and the length of the target fieldg are allowed as offset specifications. Any other offsetspecifications result in a runtime error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only values &amp;gt;= 0 are allowed as length specifications. Negativelength specifications result in a runtime error. Excessive lengthspecifications are automatically truncated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you specify the field length as the offset or the value 0 as thelength, the target field is blank. In this case, the statement has noeffect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition &lt;/P&gt;&lt;P&gt;... option &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;Modifies the output format with the aid of specialformatting options. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2 &lt;/P&gt;&lt;P&gt;WRITE f TO itab[+off][(len)] INDEX idx. &lt;/P&gt;&lt;P&gt;Additions like variant 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variant is not allowed in an ABAP Objectscontext. See WRITE TO not allowed withinternal tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Like variant 1, except that output is to the idx-th line of the internal table itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any offset and/or length specifications refer to the table line usedfor output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;Valid index specification, i.e. the internal tableitab contains a line with the index idx. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;Index specification is too large, i.e. the internaltable itab contains fewer than idx entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Invalid index specifications, i.e. idx &amp;lt;= 0, resultin a runtime error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The runtime of WRITE ... TO corresponds with that of theWRITE statement. However, considerable extra runtime is requiredif you specify the source field dynamically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifying the target field using offset and length increases theruntime slightly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE ... TO with a dynamically-specified source field takesaround 40 msn (standardmicroseconds). If you specify the source field statically, the runtimeis around 6 msn, or 8 msn if you specify offset and length. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sujith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945508#M943569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Writeto and Move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945509#M943570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swarna-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find below the differnece between both statements with example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:v_p(16) type p decimals 2 ,&lt;/P&gt;&lt;P&gt;       v_c(16) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_p = 123456.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move v_p to v_c.&lt;/P&gt;&lt;P&gt;write v_p to v_c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output for move will be 1234.56&lt;/P&gt;&lt;P&gt;The output for write to will be 1234,56.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The differnce is move will not change the target data type only moves the value whereas write to converts the datatype in the target field dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;~Srini...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-writeto-and-move/m-p/3945509#M943570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:54:02Z</dc:date>
    </item>
  </channel>
</rss>

