<?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 or write to not doing conversion routine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-or-write-to-not-doing-conversion-routine/m-p/3549815#M854050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try also replacing &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE w_estruct to w_estruct2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;by&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE-CORRESPONDING w_estruct to w_estruct2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2008 15:14:35 GMT</pubDate>
    <dc:creator>former_member194797</dc:creator>
    <dc:date>2008-03-20T15:14:35Z</dc:date>
    <item>
      <title>Move or write to not doing conversion routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-or-write-to-not-doing-conversion-routine/m-p/3549813#M854048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two types of a file structure&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF ty_est_archivo,
mandt TYPE mandt,
bukrs TYPE bukrs,
gjahr TYPE gjahr,
monat TYPE monat,
xblnr(20),
nacem(16),
ctasc(10),
transact_number TYPE cjtransnumb,
transact_name(30),
mwskz TYPE mwskz,
cbase TYPE BBPRU,
cimpu TYPE BBPRU,
END OF ty_est_archivo.

TYPES: BEGIN OF ty_est_archivo2,
mandt TYPE mandt,
bukrs TYPE bukrs,
gjahr TYPE gjahr,
monat TYPE monat,
xblnr(20),
nacem(16),
ctasc(10),
transact_number TYPE cjtransnumb,
transact_name(30),
mwskz TYPE mwskz,
cbase(13),
cimpu(13),
END OF ty_est_archivo2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write into a text file, the user asked for no separators so the columns must always be the same size, so using write to... with the first table was impossible, instead I made the TYPE P fields, character type to have a fixed lenght.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table I_restrc is being filled perfectly, but something wrong happens when I move it to the other structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    DATA  l_archivo  TYPE string.
    DATA: w_archivo  TYPE ty_linea_arch,
          w_estruct  TYPE ty_est_archivo,
          w_estruct2 TYPE ty_est_archivo2.

LOOP AT i_restrct INTO w_estruct.
      MOVE w_estruct to w_estruct2.
      WRITE w_estruct2 TO w_archivo.
      APPEND w_archivo TO i_archivo.
    ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strings cbase and cimpu are not filled, when I move w_estruct to w_estruct2 cimpu is empty and cbase is filled with special characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved this doing...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT i_restrct INTO w_estruct.
      MOVE w_estruct to w_estruct2.
      MOVE w_estruct-cbase TO w_estruct2-cbase.
      MOVE w_estruct-cimpu TO w_estruct2-cimpu.
      WRITE w_estruct2-cimpu TO w_estruct2-cimpu RIGHT-JUSTIFIED.
      WRITE w_estruct2 TO w_archivo.
      APPEND w_archivo TO i_archivo.
    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I make an explicit move, the conversion is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the way it should be done? Or is some kind of bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2008 14:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-or-write-to-not-doing-conversion-routine/m-p/3549813#M854048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-20T14:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Move or write to not doing conversion routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-or-write-to-not-doing-conversion-routine/m-p/3549814#M854049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BBPRU TYPE is a Signed Currency Field, maybe thats the reason we get this problem..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2008 14:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-or-write-to-not-doing-conversion-routine/m-p/3549814#M854049</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2008-03-20T14:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Move or write to not doing conversion routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-or-write-to-not-doing-conversion-routine/m-p/3549815#M854050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try also replacing &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE w_estruct to w_estruct2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;by&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE-CORRESPONDING w_estruct to w_estruct2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2008 15:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-or-write-to-not-doing-conversion-routine/m-p/3549815#M854050</guid>
      <dc:creator>former_member194797</dc:creator>
      <dc:date>2008-03-20T15:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Move or write to not doing conversion routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-or-write-to-not-doing-conversion-routine/m-p/3549816#M854051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I changed the code to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    LOOP AT i_restrct INTO w_estruct.
      MOVE-CORRESPONDING w_estruct to w_estruct2.
      WRITE w_estruct2-cimpu TO w_estruct2-cimpu RIGHT-JUSTIFIED.
      WRITE w_estruct2 TO w_archivo.
      APPEND w_archivo TO i_archivo.
    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And is working, I think it's better than nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    LOOP AT i_restrct INTO w_estruct2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also producing the strange characters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2008 15:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-or-write-to-not-doing-conversion-routine/m-p/3549816#M854051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-20T15:24:51Z</dc:date>
    </item>
  </channel>
</rss>

