<?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: STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629336#M280996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;data : begin of header_file occurs 0,&lt;/P&gt;&lt;P&gt;       text(1024) type c,&lt;/P&gt;&lt;P&gt;       end of header_file.&lt;/P&gt;&lt;P&gt;constants: con_tab type x value '09'.&lt;/P&gt;&lt;P&gt;Types : begin of itype,&lt;/P&gt;&lt;P&gt;id(4) type n,&lt;/P&gt;&lt;P&gt;plant like marc-werks,&lt;/P&gt;&lt;P&gt;storage like mard-lgort,&lt;/P&gt;&lt;P&gt;end of itype.&lt;/P&gt;&lt;P&gt;data: itab type table of itype with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;h_repid = sy-repid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;F4 Value for File&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;at selection-screen on value-request for h_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   PROGRAM_NAME        = h_repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;  FILE_NAME           = h_file&lt;/P&gt;&lt;P&gt;&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;header = h_file.&lt;/P&gt;&lt;P&gt;*footer  = f_file.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = header&lt;/P&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;*HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = header_file&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;   FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;   BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;   HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;   ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;   DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;   DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;   OTHERS                        = 17&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT header_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split header_file at con_tab&lt;/P&gt;&lt;P&gt;                          into  itab-id&lt;/P&gt;&lt;P&gt;                                itab-plant&lt;/P&gt;&lt;P&gt;                                itab-storage.&lt;/P&gt;&lt;P&gt; append itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my record in itab is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 abc abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mt text file record is &lt;/P&gt;&lt;P&gt;1 tabspave abc tabspace abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2006 20:09:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-27T20:09:13Z</dc:date>
    <item>
      <title>STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629331#M280991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;IAM HAVING A STRANGE PROBLEM WHILE UPLOADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iAM UPLOADING A TEXT FILE AND ONE FIELD IS TYPE N&lt;/P&gt;&lt;P&gt;SAY INT(4) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IAM SPLITTING THE FILE BECAUSE ITS A TAB DELIMITED FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN MY INT VALUE IS 1 IT SHOULD BECOME 0001 RIGHT BECAUSE ITS A TYPE N AND LENGTH 4 . BUT ITS NOT HAPPENING &lt;/P&gt;&lt;P&gt;ITS TAKING AS 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN I SORT THE INTERNAL TABLE BASED ON INT.&lt;/P&gt;&lt;P&gt;IT SORTS BASED ON FIRST FIELD.&lt;/P&gt;&lt;P&gt;tHIS SHOULDN'T HAPPEN I GUESS BECAUSE ITS TYPE N BUT TO WORK NORMALLY THE FIELD SHOULD CONTAIN LEADING ZEROS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN I CHECKED LIKE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;my_num(4) type N,&lt;/P&gt;&lt;P&gt;end of itab .&lt;/P&gt;&lt;P&gt;itab-my_num = 221 . append itab.&lt;/P&gt;&lt;P&gt;ITAB HAS VALUE 0221.&lt;/P&gt;&lt;P&gt;AND WHEN I SORT IT WORKS FINE.&lt;/P&gt;&lt;P&gt;dOES ANYONE HAVE AN IDEA AS TO WHAT IS HAPPENING IN HERE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS IN ADVANCE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 18:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629331#M280991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T18:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629332#M280992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the exact code where you are seeing this.  It should be giving a value of 0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 18:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629332#M280992</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-27T18:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629333#M280993</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 have writen the same program in my system, itis giving the correct result.&lt;/P&gt;&lt;P&gt;can you copy this program and test in your system whether you are getting the correct data ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : begin of itab occurs 0,
my_num(4) type N,
end of itab .
itab-my_num = 221 . append itab.
itab-my_num = 222 . append itab.

loop at itab.
write:/ itab-my_num.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result is: 0221&lt;/P&gt;&lt;P&gt;           0222&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 18:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629333#M280993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T18:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629334#M280994</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;use UNPACK command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNPACK int to int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u send a code we can help u more..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 18:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629334#M280994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T18:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629335#M280995</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;its difficult to say what happens without seeing the code how you read-in the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, when handling with file input and output, I don't rely on the ABAP mechanisms with type coercions here, which can lead to obscure results. Read in &lt;STRONG&gt;ALL&lt;/STRONG&gt; data as CHARS or STRINGs and convert them afterwards. Thas much safer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 18:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629335#M280995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T18:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629336#M280996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;data : begin of header_file occurs 0,&lt;/P&gt;&lt;P&gt;       text(1024) type c,&lt;/P&gt;&lt;P&gt;       end of header_file.&lt;/P&gt;&lt;P&gt;constants: con_tab type x value '09'.&lt;/P&gt;&lt;P&gt;Types : begin of itype,&lt;/P&gt;&lt;P&gt;id(4) type n,&lt;/P&gt;&lt;P&gt;plant like marc-werks,&lt;/P&gt;&lt;P&gt;storage like mard-lgort,&lt;/P&gt;&lt;P&gt;end of itype.&lt;/P&gt;&lt;P&gt;data: itab type table of itype with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;h_repid = sy-repid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;F4 Value for File&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;at selection-screen on value-request for h_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   PROGRAM_NAME        = h_repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;  FILE_NAME           = h_file&lt;/P&gt;&lt;P&gt;&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;header = h_file.&lt;/P&gt;&lt;P&gt;*footer  = f_file.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = header&lt;/P&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;*HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = header_file&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;   FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;   BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;   HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;   ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;   DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;   DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;   OTHERS                        = 17&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT header_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split header_file at con_tab&lt;/P&gt;&lt;P&gt;                          into  itab-id&lt;/P&gt;&lt;P&gt;                                itab-plant&lt;/P&gt;&lt;P&gt;                                itab-storage.&lt;/P&gt;&lt;P&gt; append itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my record in itab is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 abc abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mt text file record is &lt;/P&gt;&lt;P&gt;1 tabspave abc tabspace abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 20:09:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629336#M280996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T20:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629337#M280997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried your earlier code in our system and got the same results you did (I was a bit surprised). I think your best alternative is to use the UNPACK command as suggest by Sinu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 20:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629337#M280997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T20:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629338#M280998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why it doesn't work but here is a work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

........


start-of-selection.

  header = h_file.
*footer = f_file.
  call function 'GUI_UPLOAD'
  exporting
  filename = header
  filetype = 'ASC'
*HAS_FIELD_SEPARATOR = 'X'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* IMPORTING
* FILELENGTH =
* HEADER =
  tables
  data_tab = header_file
  exceptions
  file_open_error = 1
  file_read_error = 2
  no_batch = 3
  gui_refuse_filetransfer = 4
  invalid_type = 5
  no_authority = 6
  unknown_error = 7
  bad_data_format = 8
  header_not_allowed = 9
  separator_not_allowed = 10
  header_too_long = 11
  unknown_dp_error = 12
  access_denied = 13
  dp_out_of_memory = 14
  disk_full = 15
  dp_timeout = 16
  others = 17
  .
  if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

&amp;lt;b&amp;gt;  data: temp(4) type c.&amp;lt;/b&amp;gt;

  loop at header_file.

    split header_file at con_tab
    into itab-id
    itab-plant
    itab-storage.

&amp;lt;b&amp;gt;    temp = itab-id.
    itab-id = temp.&amp;lt;/b&amp;gt;

    append itab.
  endloop.

  loop at itab.
    write:/ itab-id, itab-plant, itab-storage.
  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 20:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629338#M280998</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-27T20:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629339#M280999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich , did it work for you&lt;/P&gt;&lt;P&gt;i doesn't work right. strange---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any how i used the FM TO ADD LEADING ZEROS AND THEN SORT IT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&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 = itab-id&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = itab-id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know is there any trick to overcome this&lt;/P&gt;&lt;P&gt;Thank you guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 20:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629339#M280999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T20:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: STRANGE PROBLEM WHILE MOVING DATA TO NUMERIC FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629340#M281000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI suchitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can do like this as i told before..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;UNPACK itab-id TO itab-id.&lt;/P&gt;&lt;P&gt;MODIFY ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reward to all Helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 21:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-while-moving-data-to-numeric-field/m-p/1629340#M281000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T21:44:40Z</dc:date>
    </item>
  </channel>
</rss>

