<?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: FM - GUI_UPLOAD - Uploading Junk Data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056071#M969600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use the CODEPAGE parameter of the FM. Pass the valid code page that supports ur character set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2008 13:37:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-07T13:37:47Z</dc:date>
    <item>
      <title>FM - GUI_UPLOAD - Uploading Junk Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056069#M969598</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;     I am using FM GUI_UPLOAD, and while upload its not recognising the character, Instead it shows some Junk values in the itab. Can anyone lemme know how can this be corrected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Simin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 13:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056069#M969598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T13:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: FM - GUI_UPLOAD - Uploading Junk Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056070#M969599</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;iam not clear with your question &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; might be you have used the file name parameter type as string instead of that use it as RLGRAP-FILENAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it out&lt;/P&gt;&lt;P&gt;if possible can you just post the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pavan Bhamidipati on Jul 7, 2008 3:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 13:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056070#M969599</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-07-07T13:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: FM - GUI_UPLOAD - Uploading Junk Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056071#M969600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use the CODEPAGE parameter of the FM. Pass the valid code page that supports ur character set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 13:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056071#M969600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: FM - GUI_UPLOAD - Uploading Junk Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056072#M969601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simin,&lt;/P&gt;&lt;P&gt;Which type of file u r uploading. It will work for text file.&lt;/P&gt;&lt;P&gt;If it is excel file then use below code to upload the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: po_file TYPE rlgrap-filename DEFAULT 'E:test.xls'.
TYPES: BEGIN OF t_final,
          empno(10) TYPE c,
          name(30) TYPE c,
          state(25) TYPE c,
       END OF t_final.

DATA: i_tab    TYPE STANDARD TABLE OF alsmex_tabline,
      i_final  TYPE STANDARD TABLE OF t_final,
      wa_tab   TYPE alsmex_tabline,
      wa_final TYPE t_final.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR po_file.
PERFORM open_folder.

START-OF-SELECTION.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
     EXPORTING
          filename                = po_file
          i_begin_col             = 1
          i_begin_row             = 1
          i_end_col               = 3
          i_end_row               = 65256
     TABLES
          intern                  = i_tab
     EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.

CHECK NOT i_tab[] IS INITIAL.

LOOP AT i_tab INTO wa_tab.
  CASE wa_tab-col.
    WHEN 1.
      wa_final-empno = wa_tab-value.
    WHEN 2.
      wa_final-name = wa_tab-value.
    WHEN 3.
      wa_final-state = wa_tab-value.
  ENDCASE.
  AT END OF row.
    APPEND wa_final TO i_final.
    CLEAR wa_final.
  ENDAT.
ENDLOOP.

FORM open_folder .
  DATA: li_file  TYPE TABLE OF sdokpath,
        lwa_file TYPE sdokpath.
  CLEAR: po_file, lwa_file.
  REFRESH li_file[].
  CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
       TABLES
            file_table = li_file
       EXCEPTIONS
            cntl_error = 1
            OTHERS     = 2.
  IF sy-subrc IS INITIAL.
    READ TABLE li_file INTO lwa_file INDEX 1.
    IF sy-subrc IS INITIAL.
      po_file = lwa_file-pathname.
    ENDIF.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is text file let me know what data u r uploading. Paste the piece of file data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 13:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056072#M969601</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-07-07T13:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: FM - GUI_UPLOAD - Uploading Junk Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056073#M969602</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;Are you uploading an excel file? if yes then try to upload using FM  ALSM_EXCEL_TO_INTERNAL_TABLE....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 13:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056073#M969602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T13:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: FM - GUI_UPLOAD - Uploading Junk Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056074#M969603</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;   jut check the fil type in the function module You have to give it as '&lt;STRONG&gt;DAT'&lt;/STRONG&gt; or &lt;STRONG&gt;ASC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alo check the number of fields in the internal table in which you which you are uploading the data and the file fields.the fields should nbe in the same order and same number..just check..may b thats thats the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 13:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-gui-upload-uploading-junk-data/m-p/4056074#M969603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T13:54:08Z</dc:date>
    </item>
  </channel>
</rss>

