<?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: performence problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performence-problem/m-p/1469601#M220860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help on this.is there any other FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 15:03:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-04T15:03:45Z</dc:date>
    <item>
      <title>performence problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performence-problem/m-p/1469599#M220858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below code to upload from Excel to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;performaence is very bad please help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:wl_dat(3) TYPE c VALUE  'DAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: wf_infile             LIKE rlgrap-filename,&lt;/P&gt;&lt;P&gt;        wf_filetype           LIKE rlgrap-filetype,&lt;/P&gt;&lt;P&gt;        wf_filelen            TYPE i,&lt;/P&gt;&lt;P&gt;        wf_begcol             TYPE i,&lt;/P&gt;&lt;P&gt;        wf_begrow             TYPE i,&lt;/P&gt;&lt;P&gt;        wf_endcol             TYPE i,&lt;/P&gt;&lt;P&gt;        wf_endrow             TYPE i,&lt;/P&gt;&lt;P&gt;        wf_currentrow         TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wf_infile    =  p_pcfile.&lt;/P&gt;&lt;P&gt;  wf_filetype  =  wl_dat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wf_begcol = 1.&lt;/P&gt;&lt;P&gt;  wf_begrow = 1.&lt;/P&gt;&lt;P&gt;  wf_endcol = 14.&lt;/P&gt;&lt;P&gt;  wf_endrow = 9999.&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                = wf_infile&lt;/P&gt;&lt;P&gt;      i_begin_col             = wf_begcol&lt;/P&gt;&lt;P&gt;      i_begin_row             = wf_begrow&lt;/P&gt;&lt;P&gt;      i_end_col               = wf_endcol&lt;/P&gt;&lt;P&gt;      i_end_row               = wf_endrow&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      intern                  = int_file&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;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e004 WITH text-014.  "Problem uploading Excel Spreadsheet&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Sort table by rows and colums&lt;/P&gt;&lt;P&gt;  SORT int_file BY row col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get first row retrieved&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  READ TABLE int_file INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set first row retrieved to current row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wf_currentrow = int_file-row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT int_file.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reset values for next row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF int_file-row NE wf_currentrow.&lt;/P&gt;&lt;P&gt;      APPEND int_input.&lt;/P&gt;&lt;P&gt;      CLEAR  int_input.&lt;/P&gt;&lt;P&gt;      wf_currentrow = int_file-row.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CASE int_file-col.&lt;/P&gt;&lt;P&gt;      WHEN '0001'.                           "Year&lt;/P&gt;&lt;P&gt;        int_input-year = int_file-value.&lt;/P&gt;&lt;P&gt;      WHEN '0002'.                           "Period&lt;/P&gt;&lt;P&gt;        int_input-period = int_file-value.&lt;/P&gt;&lt;P&gt;      WHEN '0003'.                           "amount&lt;/P&gt;&lt;P&gt;        int_input-amount = int_file-value.&lt;/P&gt;&lt;P&gt;      WHEN '0004'.                           "Company Code&lt;/P&gt;&lt;P&gt;        int_input-coco   = int_file-value.&lt;/P&gt;&lt;P&gt;      WHEN '0005'.                           "Profit center&lt;/P&gt;&lt;P&gt;        int_input-prtcen  = int_file-value.&lt;/P&gt;&lt;P&gt;      WHEN '0006'.                           "Country Code&lt;/P&gt;&lt;P&gt;        int_input-ctryco  = int_file-value.&lt;/P&gt;&lt;P&gt;      WHEN '0007'.                           "Payer Customer&lt;/P&gt;&lt;P&gt;        int_input-paycust  = int_file-value.&lt;/P&gt;&lt;P&gt;      WHEN '0008'.                           "Ending Balance&lt;/P&gt;&lt;P&gt;        int_input-endbal  = int_file-value.&lt;/P&gt;&lt;P&gt;      WHEN '0009'.                           "Monthly Revenue Total&lt;/P&gt;&lt;P&gt;        int_input-monrev  = int_file-value.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  APPEND int_input.&lt;/P&gt;&lt;P&gt;  CLEAR int_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 14:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performence-problem/m-p/1469599#M220858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T14:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: performence problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performence-problem/m-p/1469600#M220859</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; by default that FM will take max time :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for better result do like this::&lt;/P&gt;&lt;P&gt;if not int_file[] is initial.&lt;/P&gt;&lt;P&gt;SORT int_file BY row col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get first row retrieved&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE int_file INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set first row retrieved to current row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;wf_currentrow = int_file-row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT int_file.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reset values for next row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF int_file-row NE wf_currentrow.&lt;/P&gt;&lt;P&gt;APPEND int_input.&lt;/P&gt;&lt;P&gt;CLEAR int_input.&lt;/P&gt;&lt;P&gt;wf_currentrow = int_file-row.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE int_file-col.&lt;/P&gt;&lt;P&gt;WHEN '0001'. "Year&lt;/P&gt;&lt;P&gt;int_input-year = int_file-value.&lt;/P&gt;&lt;P&gt;WHEN '0002'. "Period&lt;/P&gt;&lt;P&gt;int_input-period = int_file-value.&lt;/P&gt;&lt;P&gt;WHEN '0003'. "amount&lt;/P&gt;&lt;P&gt;int_input-amount = int_file-value.&lt;/P&gt;&lt;P&gt;WHEN '0004'. "Company Code&lt;/P&gt;&lt;P&gt;int_input-coco = int_file-value.&lt;/P&gt;&lt;P&gt;WHEN '0005'. "Profit center&lt;/P&gt;&lt;P&gt;int_input-prtcen = int_file-value.&lt;/P&gt;&lt;P&gt;WHEN '0006'. "Country Code&lt;/P&gt;&lt;P&gt;int_input-ctryco = int_file-value.&lt;/P&gt;&lt;P&gt;WHEN '0007'. "Payer Customer&lt;/P&gt;&lt;P&gt;int_input-paycust = int_file-value.&lt;/P&gt;&lt;P&gt;WHEN '0008'. "Ending Balance&lt;/P&gt;&lt;P&gt;int_input-endbal = int_file-value.&lt;/P&gt;&lt;P&gt;WHEN '0009'. "Monthly Revenue Total&lt;/P&gt;&lt;P&gt;int_input-monrev = int_file-value.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at end of row.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;APPEND int_input.&lt;/P&gt;&lt;P&gt;CLEAR int_input.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&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;Ashok P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 14:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performence-problem/m-p/1469600#M220859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: performence problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performence-problem/m-p/1469601#M220860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help on this.is there any other FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 15:03:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performence-problem/m-p/1469601#M220860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T15:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: performence problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performence-problem/m-p/1469602#M220861</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 GUI_UPLOAD in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found nothing to optimise in your remaining code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;GSK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 16:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performence-problem/m-p/1469602#M220861</guid>
      <dc:creator>sreekanthgo</dc:creator>
      <dc:date>2006-09-04T16:11:28Z</dc:date>
    </item>
  </channel>
</rss>

