<?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: Regarding material number conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376894#M527138</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 Blank spaces are filling with # symbol, so delete these symbosl frist from the Material number then use the Converstion exit function module&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 08:28:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-19T08:28:50Z</dc:date>
    <item>
      <title>Regarding material number conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376891#M527135</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;I have a issue with material number conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue: I am uploading flatfile data into my program using GUI_UPLOAD F.M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will get data into I_MAT internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in this from every record first 18 characters are Material numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then i will push all records first 18 characters to I_MATNR internal table &lt;/P&gt;&lt;P&gt;Now i will have I_MATNR with all material fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now if i see these material for some materials it is displaying # symbol at the end of material, this is happening for most of the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used F.M CONVERSION_EXIT_MATN1_INPUT to convert material no to actual but still it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody suggest solution for this issue!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 08:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376891#M527135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T08:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding material number conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376892#M527136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deep this is because the file has the delimiter with hex value 09.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using the GUI_UPLOAD make this change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = l_va_file
*      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = 'X'   " Check here
*      HEADER_LENGTH                 = 0
*      READ_BY_LINE                  = 'X'
*    IMPORTING
*      FILELENGTH                    =
*      HEADER                        =
    TABLES
      data_tab                      = it_import
    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.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 08:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376892#M527136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T08:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding material number conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376893#M527137</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;Try using FM conversion_exit_alpha_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 08:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376893#M527137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T08:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding material number conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376894#M527138</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 Blank spaces are filling with # symbol, so delete these symbosl frist from the Material number then use the Converstion exit function module&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 08:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376894#M527138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T08:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding material number conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376895#M527139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whether while uploading form the flat file to ur I_MAT  internal table u get that problem, then check the FILETYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please paste ur code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 08:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376895#M527139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T08:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding material number conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376896#M527140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the FM 'GUI_UPLOAD', there is one option...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ur text file is having seperators..u will get '#' s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so with the above stmt. in that FM, passing 'X' will tell that file is havin separators.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Your file is tab dilimited. If you still have problem go through the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: c_tab TYPE c VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = l_file&lt;/P&gt;&lt;P&gt;filetype = 'ASC'&lt;/P&gt;&lt;P&gt;has_field_separator = c_tab&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = itab_upload&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;Do reward points if this helps.&lt;/P&gt;&lt;P&gt;Regard:&lt;/P&gt;&lt;P&gt;Sapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 08:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-material-number-conversion/m-p/2376896#M527140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T08:29:51Z</dc:date>
    </item>
  </channel>
</rss>

