<?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 to' and 'write to' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742452#M322446</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;&lt;/P&gt;&lt;P&gt;1) 'Move to ' is just to move the number characters from the source to target...&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    'Write to' will trigger the conversion routines based on the data type of the source..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: V_VBELN TYPE VBELN VALUE '0010001234'.&lt;/P&gt;&lt;P&gt;  DATA:  V_TARGET(10).&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  WRITE: V_VBELN TO V_TARGET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The conversion routine in the data type VBELN is triggered..The conversion routine will remove the leading zeroes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If you want leading zeroes use MOVE TO..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 17:20:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-05T17:20:12Z</dc:date>
    <item>
      <title>Difference between 'move to' and 'write to'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742449#M322443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please help with these two questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. what is the difference between 'Move x to y' and 'write x to y' ?&lt;/P&gt;&lt;P&gt;I want to assigen a sales order (along with leading zeroes) to a character field using 'Write to' type,,but after assigning, the leading zeroes are missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. What can I do so that I should be able to use 'Write to' as well as leading zeroes not missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;I appreciate,&lt;/P&gt;&lt;P&gt;Krishen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 17:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742449#M322443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T17:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between 'move to' and 'write to'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742450#M322444</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;Why don't you use CONVERSION_EXIT_ALPHA_INPUT  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input         = v_Sales1  " having value without 0s&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT        = v_sales2. " this will have Sales order as per SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Manish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 17:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742450#M322444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T17:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between 'move to' and 'write to'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742451#M322445</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;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;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest.
 
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;&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 17:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742451#M322445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T17:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between 'move to' and 'write to'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742452#M322446</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;&lt;/P&gt;&lt;P&gt;1) 'Move to ' is just to move the number characters from the source to target...&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    'Write to' will trigger the conversion routines based on the data type of the source..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: V_VBELN TYPE VBELN VALUE '0010001234'.&lt;/P&gt;&lt;P&gt;  DATA:  V_TARGET(10).&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  WRITE: V_VBELN TO V_TARGET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The conversion routine in the data type VBELN is triggered..The conversion routine will remove the leading zeroes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If you want leading zeroes use MOVE TO..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 17:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742452#M322446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T17:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between 'move to' and 'write to'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742453#M322447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to you all!&lt;/P&gt;&lt;P&gt;I am actually writing a subroutine for a sapscript.&lt;/P&gt;&lt;P&gt;I want to use 'Write to'  because I need to assign a variable var_vbeln like this in a subroutine:&lt;/P&gt;&lt;P&gt;WRITE: temp_zvbeln TO output_table-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put breakpoint to see the value, it is going to dump. However, with out breakpoint, I could print the sapscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give your input reg. the above.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 17:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742453#M322447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T17:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between 'move to' and 'write to'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742454#M322448</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;&lt;/P&gt;&lt;P&gt;What is the dump you are getting??&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 17:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-to-and-write-to/m-p/1742454#M322448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T17:39:18Z</dc:date>
    </item>
  </channel>
</rss>

