<?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: Upload .CSV file from Application server to int. table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227956#M1380133</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;Please refer to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="66549"&gt;&lt;/A&gt;&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;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2009 12:50:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-08T12:50:57Z</dc:date>
    <item>
      <title>Upload .CSV file from Application server to int. table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227954#M1380131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am tring to upload the &amp;gt;CSV file from Application server to internal table using Open dataset. While reading the file from file path to character data type of length 1024, the entair record is not getting uploaded in to the varible but only upto the 423 characters are assigned in the varible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one please help me how to get entair record populated in to the varible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 12:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227954#M1380131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T12:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Upload .CSV file from Application server to int. table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227955#M1380132</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;In the debugging mode did you check if the whole of the record is getting loaded into the variable? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 12:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227955#M1380132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T12:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Upload .CSV file from Application server to int. table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227956#M1380133</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;Please refer to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="66549"&gt;&lt;/A&gt;&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;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 12:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227956#M1380133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T12:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Upload .CSV file from Application server to int. table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227957#M1380134</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;I have used same coding to upload the .CSV file and SPLIT  function in my program. Please find the below coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data: COL1(1000) TYPE C,
        lv_space TYPE C,
        mlen TYPE I.
  do.
    clear: COL1.
    read dataset w_legfle into COL1.
    if sy-subrc eq 0.
      if sy-index &amp;lt;&amp;gt; 1.
        SPLIT COL1 AT ','    " where comma is ur demiliter
            INTO wa_input-edate
                 lv_space
                 wa_input-refe
                 wa_input-comp
                 wa_input-seqe
                 wa_input-glacc
                 wa_input-credit
                 wa_input-amount
                 wa_input-desc
                 wa_input-glfolio
                 lv_space
                 lv_space
                 lv_space
                 wa_input-vendor
                 wa_input-desc1
                 wa_input-desc2
                 lv_space
                 wa_input-curry
                 lv_space
                 lv_space
                 lv_space
                 lv_space
                 lv_space
                 lv_space
                 wa_input-indate.

        append wa_input TO it_input.
      endif.
    else.
      exit.
    endif.
  enddo.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the value of COL1 in debug mode it has populated up the 423 character only even though the length of the records are having more that 483 char. I don't understand why it is limiting to only 423 character.&lt;/P&gt;&lt;P&gt;Please help me where I am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 13:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227957#M1380134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T13:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Upload .CSV file from Application server to int. table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227958#M1380135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be in debugging mode there is a limitation for the total number of displayed characters in a instance. In the debugging mode give the variable as COL1(423) and check if the remaining value is wriiten or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 13:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227958#M1380135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T13:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Upload .CSV file from Application server to int. table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227959#M1380136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROGRAM_NAME        = SYST-REPID&lt;/P&gt;&lt;/LI&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;LI level="1" type="ul"&gt;&lt;P&gt;  STATIC              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MASK                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    file_name           = P_FILE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MASK_TOO_LONG       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS              = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = p_file&lt;/P&gt;&lt;P&gt;      i_begin_col             = '1'&lt;/P&gt;&lt;P&gt;      i_begin_row             = '2'&lt;/P&gt;&lt;P&gt;      i_end_col               = '256'&lt;/P&gt;&lt;P&gt;      i_end_row               = '10000'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      intern                  = l_intern&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;      upload_ole              = 2&lt;/P&gt;&lt;P&gt;      OTHERS                  = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR COL_BACKGROUND INTENSIFIED.&lt;/P&gt;&lt;P&gt;    WRITE : / 'File Error'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 13:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-csv-file-from-application-server-to-int-table/m-p/6227959#M1380136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-09T13:10:00Z</dc:date>
    </item>
  </channel>
</rss>

