<?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: Run time error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266900#M780735</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;if i dont put the read statement its working fine.Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2008 11:01:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-14T11:01:23Z</dc:date>
    <item>
      <title>Run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266893#M780728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Am getting an runtime error in the below code.Its working fine in development if i move it to QUALITY am getting an ru time error in the &lt;/P&gt;&lt;P&gt;''READ TABLE it_mara with key matnr = it_S026-matnr."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZCOP_TEST_O.&lt;/P&gt;&lt;P&gt;TABLES:S026,MARA,T023T,S023.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:IT_S026 TYPE STANDARD TABLE OF S026 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA:IT_MARA TYPE STANDARD TABLE OF MARA WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA:IT_T023T TYPE STANDARD TABLE OF T023T WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA:IT_S023 TYPE STANDARD TABLE OF S023 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF t_report,&lt;/P&gt;&lt;P&gt;ENMNG TYPE S026-ENMNG,&lt;/P&gt;&lt;P&gt;MATNR TYPE S026-MATNR,&lt;/P&gt;&lt;P&gt;SPTAG TYPE S026-SPTAG,&lt;/P&gt;&lt;P&gt;MATKL TYPE MARA-MATKL,&lt;/P&gt;&lt;P&gt;MCOMP TYPE S026-mcomp,&lt;/P&gt;&lt;P&gt;*WGBEZ TYPE T023T-WGBEZ,&lt;/P&gt;&lt;P&gt;WEMNG TYPE S023-WEMNG,&lt;/P&gt;&lt;P&gt;END OF t_report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:it_report TYPE STANDARD TABLE OF t_report WITH HEADER LINE.&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;&lt;/P&gt;&lt;P&gt;PARAMETERS:p_werks type S026-WERKS OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:p_sptag FOR S026-SPTAG.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:p_mcomp FOR S026-MCOMP default '60000000' to '60000063' obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*RANGES:p_mcomp for s026-mcomp.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:x TYPE ENMNG.&lt;/P&gt;&lt;P&gt;DATA:y TYPE ENMNG.&lt;/P&gt;&lt;P&gt;DATA:z TYPE WEMNG.&lt;/P&gt;&lt;P&gt;DATA:a TYPE WEMNG.&lt;/P&gt;&lt;P&gt;DATA:b TYPE WEMNG.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM S026 INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;IT_S026 WHERE WERKS = P_WERKS AND&lt;/P&gt;&lt;P&gt;SPTAG IN p_sptag AND MCOMP NOT in p_mcomp.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_MARA&lt;/P&gt;&lt;P&gt;FROM ( MARA AS A&lt;/P&gt;&lt;P&gt;INNER JOIN S026 AS B ON B~MATNR = A~MATNR ).&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;SELECT * FROM s023 INTO&lt;/P&gt;&lt;P&gt;CORRESPONDING FIELDS OF TABLE IT_s023 WHERE&lt;/P&gt;&lt;P&gt;WERKS = P_WERKS AND&lt;/P&gt;&lt;P&gt;SPTAG IN P_SPTAG      .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_T023T&lt;/P&gt;&lt;P&gt;FROM ( T023T AS C&lt;/P&gt;&lt;P&gt;INNER JOIN MARA AS D ON D&lt;SUB&gt;MATKL = C&lt;/SUB&gt;MATKL ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_S026.&lt;/P&gt;&lt;P&gt;READ TABLE it_mara with key matnr = it_S026-matnr.&lt;/P&gt;&lt;P&gt;READ TABLE it_t023t with key matKL = it_MARA-matKL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_REPORT-MATKL =     IT_T023T-MATKL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_REPORT-ENMNG      = IT_S026-ENMNG .&lt;/P&gt;&lt;P&gt;IT_REPORT-SPTAG      = IT_S026-SPTAG .&lt;/P&gt;&lt;P&gt;IT_REPORT-MATNR      = IT_S026-MATNR .&lt;/P&gt;&lt;P&gt;IT_REPORT-MCOMP      = IT_S026-MCOMP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD IT_REPORT-ENMNG TO X.&lt;/P&gt;&lt;P&gt;APPEND IT_REPORT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_S023.&lt;/P&gt;&lt;P&gt;ADD IT_s023-WEMNG TO Z.&lt;/P&gt;&lt;P&gt;IT_REPORT-WEMNG = IT_S023-WEMNG.&lt;/P&gt;&lt;P&gt;APPEND IT_REPORT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_REPORT .&lt;/P&gt;&lt;P&gt;IF IT_REPORT-ENMNG IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;WRITE:/5(10)    IT_REPORT-ENMNG    , 20(10)   IT_REPORT-SPTAG    ,40(20)   IT_REPORT-MATKL  .&lt;/P&gt;&lt;P&gt;*50(10)   IT_REPORT-MATNR, 60(10) IT_REPORT-MCOMP  .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ 'TOTAL::',x.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Quantity of goods received ::',z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b = x - z.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Process Loss ::' , b .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266893#M780728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266894#M780729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the run time analysis carefully you will get the reason behind the short dump. Post that reason it will help us to solve your problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266894#M780729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266895#M780730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please confirm the run time error message you are getting. This will help us to analyze the problem better. Hopefully you are not getting a time out error &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266895#M780730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266896#M780731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Thanks for the reply.The below is the runtime analys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After a specific time, the program is terminated to make the work area&lt;/P&gt;&lt;P&gt;  available to other users who may be waiting.&lt;/P&gt;&lt;P&gt;  This is to prevent a work area being blocked unnecessarily long by, for&lt;/P&gt;&lt;P&gt;  example:&lt;/P&gt;&lt;P&gt;  - Endless loops (DO, WHILE, ...),&lt;/P&gt;&lt;P&gt;  - Database accesses with a large result set&lt;/P&gt;&lt;P&gt;  - Database accesses without a suitable index (full table scan)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The maximum runtime of a program is limited by the system profile&lt;/P&gt;&lt;P&gt;  parameter "rdisp/max_wprun_time". The current setting is 600 seconds. If this&lt;/P&gt;&lt;P&gt;   time limit is&lt;/P&gt;&lt;P&gt;  exceeded, the system attempts to cancel any running SQL statement or&lt;/P&gt;&lt;P&gt;  signals the ABAP processor to stop the running program. Then the system&lt;/P&gt;&lt;P&gt;  waits another 60 seconds maximum. If the program is then still active,&lt;/P&gt;&lt;P&gt;  the work process is restarted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266896#M780731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266897#M780732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, you've got a few more materials in QA, don't you? &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to not change your code around too much, try sorting IT_MARA by MATNR and then use the BINARY SEARCH addition to the "READ TABLE it_mara" statement.&lt;/P&gt;&lt;P&gt;Apply this also to your other READ TABLEs, and the code should run much faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: looking at your code again, why do you need IT_MARA at all? You don't seem to use it in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266897#M780732</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-01-14T10:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266898#M780733</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 can plz send the error description that will better help to understand the reason for error.&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, 14 Jan 2008 10:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266898#M780733</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2008-01-14T10:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266899#M780734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thomas &lt;/P&gt;&lt;P&gt;where exactly i need to add d SORT statement.Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266899#M780734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266900#M780735</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;if i dont put the read statement its working fine.Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 11:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266900#M780735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T11:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266901#M780736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT *
INTO CORRESPONDING FIELDS OF TABLE IT_MARA
FROM ( MARA AS A
INNER JOIN S026 AS B ON B~MATNR = A~MATNR ).

SORT IT_MARA BY MATNR.    &amp;lt;--insert

SELECT * FROM s023 INTO
CORRESPONDING FIELDS OF TABLE IT_s023 WHERE
WERKS = P_WERKS AND
SPTAG IN P_SPTAG .

SELECT *
INTO CORRESPONDING FIELDS OF TABLE IT_T023T
FROM ( T023T AS C
INNER JOIN MARA AS D ON D~MATKL = C~MATKL ) .

LOOP AT IT_S026.
READ TABLE it_mara with key matnr = it_S026-matnr BINARY SEARCH.  &amp;lt;-- change
READ TABLE it_t023t with key matKL = it_MARA-matKL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But again, since you are not using the values in IT_MARA, you might be able to get rid of it altogether.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 11:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/3266901#M780736</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-01-14T11:38:36Z</dc:date>
    </item>
  </channel>
</rss>

