<?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: Uploading data using LSMW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369624#M1235355</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;If your intension is just to upload data from excel to a z table, why dont you directly upload data into a internal table in smaller chunks and do a insert of internal table to z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert itab into z table should do instead of a bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R,&lt;/P&gt;&lt;P&gt;srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2009 12:47:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-08T12:47:47Z</dc:date>
    <item>
      <title>Uploading data using LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369620#M1235351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have created ztable, &amp;amp; uploading data with LSMW from excel.&lt;/P&gt;&lt;P&gt;But it takes lot of time to upload,&lt;/P&gt;&lt;P&gt;The excel file contails around 30-40 lakhs entry.&lt;/P&gt;&lt;P&gt;I have tried with BDC also.But too much is taken by both the options.&lt;/P&gt;&lt;P&gt;I have trying with the dividing excel sheet also. But problem remain same.&lt;/P&gt;&lt;P&gt;Can any one better solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anagha Deshmukh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 11:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369620#M1235351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-08T11:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data using LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369621#M1235352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Try to do with secatt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 11:38:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369621#M1235352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-08T11:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data using LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369622#M1235353</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;This is because of quantity of data which is being uploaded into the table. If it is not running into a short dump, there is nothing worry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As data is being uploaded into Ztable, so recording is the only approach either from LSMW or BDC. &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;Brajvir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 11:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369622#M1235353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-08T11:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data using LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369623#M1235354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload through text file....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 12:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369623#M1235354</guid>
      <dc:creator>kanishakgupta1</dc:creator>
      <dc:date>2009-04-08T12:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data using LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369624#M1235355</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;If your intension is just to upload data from excel to a z table, why dont you directly upload data into a internal table in smaller chunks and do a insert of internal table to z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert itab into z table should do instead of a bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R,&lt;/P&gt;&lt;P&gt;srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 12:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369624#M1235355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-08T12:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data using LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369625#M1235356</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;if u want do ztable update what is the nessary to use lsmw and bdc .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use  field-symbols to read the data into internal tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form here directly u can update u ztable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6859492"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~linganna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: katigiri linganna on Apr 8, 2009 2:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 12:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369625#M1235356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-08T12:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data using LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369626#M1235357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  Ztest .

type-pools: truxs.

data: fname_length type rlgrap-filename,
      start        type i,
      file_name    type rlgrap-filename.
data: t_upload like *Ztable* occurs 0 with header line.
data: g_year type p,
      flag   type i value 1,
      g_futdate like sy-datum,
      g_subty   like pa0034-subty,
      g_exist_flg        type    c,
      g_mode(1).

data: it_raw type truxs_t_text_data.

selection-screen begin of block blk_01 with frame title text-001.
parameter: p_fname        like rlgrap-filename obligatory.
selection-screen end of block blk_01.


at selection-screen on value-request for p_fname.
  call function 'F4_FILENAME'
    exporting
      program_name  = sy-repid
      dynpro_number = sy-dynnr
      field_name    = 'PATH'
    importing
      file_name     = p_fname.

at selection-screen.
  perform f_file_check.        " CHECK EXISTENCE OF FILE

  clear g_mode.
  g_mode = 'X'.
  perform f_upload_file .
  perform insert_pms_data.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  F_UPLOAD_FILE
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
form f_upload_file .

CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
  EXPORTING
*   I_FIELD_SEPERATOR          =
*   I_LINE_HEADER              =
    i_tab_raw_data             = it_raw
    i_filename                 = p_fname
  tables
    i_tab_converted_data       = t_upload[]
* EXCEPTIONS
*   CONVERSION_FAILED          = 1
*   OTHERS                     = 2
          .


endform.                    " F_UPLOAD_FILE
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  INSERT_PMS_DATA
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
form insert_pms_data .
  modify *Ztable* from  table t_upload.
endform.                    " INSERT_PMS_DATA
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f_file_check
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
form f_file_check .

  data : l_len  type i,
           l_len1 type i.
  clear  :  g_exist_flg,
            file_name.

  file_name = p_fname.
  l_len = strlen( file_name ).
  l_len1 = l_len - 3 .

  shift file_name by l_len1 places.
  find 'xls' in section offset 0 length 3 of file_name ignoring case.

  call function 'TMP_GUI_GET_FILE_EXIST'
    exporting
      fname          = p_fname
    importing
      exist          = g_exist_flg
    exceptions
      fileinfo_error = 1
      others         = 2.
  if sy-subrc &amp;lt;&amp;gt; 0.

*     Warning : Error while checking for file information !
  endif.
  if g_exist_flg is initial.

**     Error : File &amp;amp; does not exists !!!
  else.
    file_name = p_fname.


  endif.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 13:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-using-lsmw/m-p/5369626#M1235357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-08T13:57:40Z</dc:date>
    </item>
  </channel>
</rss>

