<?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: TIME_OUT ABAP Dumps in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933655#M691294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi irshad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u post here where its get the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at run time error u can found it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's maybe help us to help u.&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;&lt;/P&gt;&lt;P&gt;Allan Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2007 13:38:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-18T13:38:31Z</dc:date>
    <item>
      <title>TIME_OUT ABAP Dumps</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933652#M691291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are getting ABAP Dumps in our systems very frequently. We are currently using 4.6C (DB2, AIX). We are gettting the dumps in many programs, is this because of some error in application. We currently have kernel patch level 2307. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have already increased the value of "rdisp/max_wprun_time" from 900 to 2500.&lt;/P&gt;&lt;P&gt;I was suggested by SAP to add a new parameter "rdisp/hold_keeps_time_slice"&lt;/P&gt;&lt;P&gt;which we dont have in our systems. Can anybody pls suggest in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the dump:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP runtime errors    TIME_OUT&lt;/P&gt;&lt;P&gt;       Occurred on     10/17/2007 at 20:57:15&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time limit exceeded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program "SAPLBDMON " has exceeded the maximum permitted runtime&lt;/P&gt;&lt;P&gt;and has therefore been terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;What can you do?&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the actions and input that caused the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inform your SAP system administrator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can print out this message by choosing "Print". Transaction ST22&lt;/P&gt;&lt;P&gt;allows you to display and manage termination messages, including keeping&lt;/P&gt;&lt;P&gt; them beyond their normal deletion date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a certain time, the program terminates to free the work process&lt;/P&gt;&lt;P&gt;for other users who are waiting.&lt;/P&gt;&lt;P&gt;This is to stop work processes being blocked for too long by&lt;/P&gt;&lt;P&gt;- Endless loops (DO, WHILE, ...),&lt;/P&gt;&lt;P&gt;- Database acceses with large result sets,&lt;/P&gt;&lt;P&gt;- Database accesses without an apporpriate index (full table scan)&lt;/P&gt;&lt;P&gt;- database accesses producing an excessively large result set,&lt;/P&gt;&lt;P&gt;The maximum runtime of a program is set by the profile parameter&lt;/P&gt;&lt;P&gt; "rdisp/max_wprun_time".&lt;/P&gt;&lt;P&gt;The current setting is 2500 seconds. After this, the system gives the&lt;/P&gt;&lt;P&gt;program a second chance. During the first half (&amp;gt;= 2500 seconds), a&lt;/P&gt;&lt;P&gt;call that is blocking the work process (such as a long-running SQL&lt;/P&gt;&lt;P&gt;statement) can occur. While the statement is being processed, the&lt;/P&gt;&lt;P&gt;database layer will not allow it to be interrupted. However, to&lt;/P&gt;&lt;P&gt;stop the program terminating immediately after the statement has been&lt;/P&gt;&lt;P&gt;successfully processed, the system gives it another 2500 seconds.&lt;/P&gt;&lt;P&gt;Hence the maximum runtime of a program is at least twice the value of&lt;/P&gt;&lt;P&gt;the system profile parameter "rdisp/max_wprun_time".&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;HR originaltext="-----------------------" /&gt;&lt;P&gt;How to correct the error&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long-running programs should be started as background jobs. If&lt;/P&gt;&lt;P&gt;this is not possible, you can increase the value of the system&lt;/P&gt;&lt;P&gt;profile parameter "rdisp/max_wprun_time".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One or more of the following may also be useful:&lt;/P&gt;&lt;P&gt;following measures:&lt;/P&gt;&lt;P&gt;- Endless loops: Correct in program;&lt;/P&gt;&lt;P&gt;- Database access with large result set:&lt;/P&gt;&lt;P&gt;  Use "SELECT * INTO itab" instead of "SELECT ... ENDSELECT";&lt;/P&gt;&lt;P&gt;- Database access without suitable index: Check the index generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the error occurred in a non-modified SAP program, you may be&lt;/P&gt;&lt;P&gt;able to find a solution in the SAP note system.&lt;/P&gt;&lt;P&gt;If you have access to the note system yourself, use the following&lt;/P&gt;&lt;P&gt;search criteria:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt; "TIME_OUT"&lt;/P&gt;&lt;P&gt; "SAPLBDMON " or "LBDMONU15 "&lt;/P&gt;&lt;P&gt; "ALE_CCMS_EVALUATE_GRP"&lt;/P&gt;&lt;P&gt;If you cannot solve the problem yourself, please send the&lt;/P&gt;&lt;P&gt;following documents to SAP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. A hard copy print describing the problem.&lt;/P&gt;&lt;P&gt;   To obtain this, select the "Print" function on the current screen.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. A suitable hardcopy prinout of the system log.&lt;/P&gt;&lt;P&gt;   To obtain this, call the system log with Transaction SM21&lt;/P&gt;&lt;P&gt;   and select the "Print" function to print out the relevant&lt;/P&gt;&lt;P&gt;   part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If the programs are your own programs or modified SAP programs,&lt;/P&gt;&lt;P&gt;   supply the source code.&lt;/P&gt;&lt;P&gt;   To do this, you can either use the "PRINT" command in the editor or&lt;/P&gt;&lt;P&gt;   print the programs using the report RSINCL00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Details regarding the conditions under which the error occurred&lt;/P&gt;&lt;P&gt;   or which actions and input led to the error.&lt;/P&gt;&lt;P&gt;If you cannot solve the problem yourself, please send the&lt;/P&gt;&lt;P&gt;following documents to SAP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. A hard copy print describing the problem.&lt;/P&gt;&lt;P&gt;   To obtain this, select the "Print" function on the current screen.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. A suitable hardcopy prinout of the system log.&lt;/P&gt;&lt;P&gt;   To obtain this, call the system log with Transaction SM21&lt;/P&gt;&lt;P&gt;   and select the "Print" function to print out the relevant&lt;/P&gt;&lt;P&gt;   part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If the programs are your own programs or modified SAP programs,&lt;/P&gt;&lt;P&gt;   supply the source code.&lt;/P&gt;&lt;P&gt;   To do this, you can either use the "PRINT" command in the editor or&lt;/P&gt;&lt;P&gt;   print the programs using the report RSINCL00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Details regarding the conditions under which the error occurred&lt;/P&gt;&lt;P&gt;   or which actions and input led to the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Irshad Mohammed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 13:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933652#M691291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T13:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_OUT ABAP Dumps</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933653#M691292</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;BASIS consultants usually set the MAXIMUM RUNTIME FOR A FOREGROUND PROGRAM to a certain value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your execution time excees the limit set by BASIS then you will get this dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ask your BASIS consultant to increase the time by 1 or 2 minutes, if this is happening for all programs. If only for few programs, then you need to performance tune the programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 13:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933653#M691292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T13:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_OUT ABAP Dumps</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933654#M691293</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 error will occur when the time set to execute the report exceeds the time limit, then this error will come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to improve the performance of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 13:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933654#M691293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_OUT ABAP Dumps</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933655#M691294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi irshad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u post here where its get the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at run time error u can found it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's maybe help us to help u.&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;&lt;/P&gt;&lt;P&gt;Allan Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 13:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933655#M691294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T13:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_OUT ABAP Dumps</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933656#M691295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting this error in both custom programs and standard SAP programs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 13:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933656#M691295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T13:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_OUT ABAP Dumps</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933657#M691296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's a bad idea to increase the run time parameter. It will just allow long running jobs to run even longer and tie up dialogue processes. The correct approach is to find the souce of the problem and fix it. This sounds like a basis issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 14:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933657#M691296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T14:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_OUT ABAP Dumps</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933658#M691297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a Basis person. Do u have any suggestion as what to check ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 14:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933658#M691297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T14:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_OUT ABAP Dumps</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933659#M691298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you set the parameter suggested by SAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 14:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933659#M691298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T14:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_OUT ABAP Dumps</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933660#M691299</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;  The program will be terminated, if it takes longer time, than which is set by the BASIS team. It is not advisable to increase the time slot; but you can try performance tuning in the program; so that the program will take lesser time. If the program is coded perfectly, and if it is taking time because of the huge data, try scheduling it in background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 14:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933660#M691299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T14:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_OUT ABAP Dumps</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933661#M691300</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;use function module  progress_indicator. it resets the run time value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this where ever extraction of data is more were program needs much time, just call this function module it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;This program uploads material number from excel sheet and does&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;******modifications to material number if required by the user&lt;/P&gt;&lt;P&gt;******and updates the table zmatnr with new material against the old material number&lt;/P&gt;&lt;P&gt;*************************************************************************&lt;/P&gt;&lt;P&gt;REPORT  zmat_no message-id zebg.&lt;/P&gt;&lt;P&gt;TYPE-POOLS  truxs.&lt;/P&gt;&lt;P&gt;TABLES:zmatnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : itab LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA row LIKE alsmex_tabline-row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : g_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;data : count type i.&lt;/P&gt;&lt;P&gt;data : itab_count type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gi_final like zmatnr occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data : begin of gi_final occurs 0,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      mat_old like mara-matnr,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      mat_new like mara-matnr,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      end of gi_final.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;STRONG&gt;Selection Screen&lt;/STRONG&gt;*************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETER : pfname LIKE rlgrap-filename OBLIGATORY.&lt;/P&gt;&lt;P&gt;select-options : records for count.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&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;STRONG&gt;At Selection Screen&lt;/STRONG&gt;*************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR pfname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form process.&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                = pfname&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               = 12&lt;/P&gt;&lt;P&gt;      i_end_row               = 65000&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      intern                  = itab&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table itab lines itab_count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   row = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if itab-row &amp;lt;&amp;gt; row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      append gi_final.&lt;/P&gt;&lt;P&gt;      clear gi_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case itab-col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR G_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      gi_final-OLD_MATNR = itab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE 'NEW' gi_final-old_matnr INTO itab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        gi_final-new_MATNR = itab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    row = itab-row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &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;  append gi_final.&lt;/P&gt;&lt;P&gt;  clear gi_final.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION 'PROGRESS_INDICATOR'&lt;/P&gt;&lt;/LI&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;    I_TEXT  = 'File Has Been Successfully Uploaded from Workstation ' .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not gi_final[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if not records-low is initial .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if not records-high is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        records-high = records-high + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        DESCRIBE TABLE gi_final LINES count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF records-high &amp;lt; count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          DELETE gi_final FROM records-high TO count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF records-low &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt;          IF records-low &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;            DELETE gi_final FROM 1 TO records-low.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT GI_FINAL[] IS INITIAL.&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 'PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       I_TEXT  = 'Processing zmatnr table'&lt;/P&gt;&lt;P&gt;       I_OUTPUT_IMMEDIATELY = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      if itab_count &amp;lt;&amp;gt; count.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         message i000 with 'records are not matching'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         exit.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         modify zmatnr from table gi_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         message i000 with 'data base table modified successfully'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  search&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM search .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      static    = 'X'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      file_name = pfname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " search&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;&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 14:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-abap-dumps/m-p/2933661#M691300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T14:56:08Z</dc:date>
    </item>
  </channel>
</rss>

