2007 Sep 10 4:55 AM
Hi experts
I used the following code in my program, but it leads to dump error says that time exeeds, how to change this query and what could be the reason for this.
pls advise me on this. thanks in advance.
Regards
Rajaram
if zdate-high is not initial.
select OBJECTCLAS
OBJECTID
CHANGENR
UDATE
UTIME
TCODE
from cdhdr
into corresponding fields of table it2
for all entries in it1
where
OBJECTCLAS = it1-OBJECTCLAS and
OBJECTID = it1-OBJECTID and
CHANGENR = it1-CHANGENR and
TCODE = 'VA02' and
( UDATE BETWEEN ZDATE-LOW AND ZDATE-HIGH ).
else.
select OBJECTCLAS
OBJECTID
CHANGENR
UDATE
UTIME
TCODE
from cdhdr
into corresponding fields of table it2
for all entries in it1
where
OBJECTCLAS = it1-OBJECTCLAS and
OBJECTID = it1-OBJECTID and
CHANGENR = it1-CHANGENR and
TCODE = 'VA02' and
( UDATE = ZDATE-LOW ).
endif.
2007 Sep 10 5:29 AM
hi,
use INTO TABLE KEYWORD which will take less time when compared with normal SELECT st and also check whether in where condition that any select options are used or not. if used then give appropriate conditional operator
for exx:
UDATE IN (ZDATE-LOW, ZDATE-HIGH ). instead of between as it is a select option parameter.
if helpful reward some points.
with regards,
Suresh Aluri.
Hi experts
I used the following code in my program, but it leads to dump error says that time exeeds, how to change this query and what could be the reason for this.
pls advise me on this. thanks in advance.
Regards
Rajaram
if zdate-high is not initial.
select OBJECTCLAS
OBJECTID
CHANGENR
UDATE
UTIME
TCODE
from cdhdr
into corresponding fields of table it2
for all entries in it1
where
OBJECTCLAS = it1-OBJECTCLAS and
OBJECTID = it1-OBJECTID and
CHANGENR = it1-CHANGENR and
TCODE = 'VA02' and
( UDATE BETWEEN ZDATE-LOW AND ZDATE-HIGH ).
else.
select OBJECTCLAS
OBJECTID
CHANGENR
UDATE
UTIME
TCODE
from cdhdr
into corresponding fields of table it2
for all entries in it1
where
OBJECTCLAS = it1-OBJECTCLAS and
OBJECTID = it1-OBJECTID and
CHANGENR = it1-CHANGENR and
TCODE = 'VA02' and
( UDATE = ZDATE-LOW ).
endif.
2007 Sep 10 5:03 AM
Hi Rajaram ,
Few observations
1. Do not use <b>into correspondin</b>g , change the sequence of the fields in the internal table and use into table .
2. I think ZDATE is a range/select-option so use IN operation instead of Between,
Reagrds
Arun
2007 Sep 10 5:29 AM
hi,
use INTO TABLE KEYWORD which will take less time when compared with normal SELECT st and also check whether in where condition that any select options are used or not. if used then give appropriate conditional operator
for exx:
UDATE IN (ZDATE-LOW, ZDATE-HIGH ). instead of between as it is a select option parameter.
if helpful reward some points.
with regards,
Suresh Aluri.
2007 Sep 10 5:39 AM
how to use INTO TABLE in select stmt , actually i have many fields in internal table.
2007 Sep 10 6:02 AM
if zdate-high is not initial.
select OBJECTCLAS
OBJECTID
CHANGENR
UDATE
UTIME
TCODE
from cdhdr
into table it2
for all entries in it1
where
OBJECTCLAS = it1-OBJECTCLAS and
OBJECTID = it1-OBJECTID and
CHANGENR = it1-CHANGENR and
TCODE = 'VA02' and
( UDATE BETWEEN ZDATE-LOW AND ZDATE-HIGH ).
else.
select OBJECTCLAS
OBJECTID
CHANGENR
UDATE
UTIME
TCODE
from cdhdr
into table it2
for all entries in it1
where
OBJECTCLAS = it1-OBJECTCLAS and
OBJECTID = it1-OBJECTID and
CHANGENR = it1-CHANGENR and
TCODE = 'VA02' and
( UDATE = ZDATE-LOW ).
endif.
2007 Sep 10 5:30 AM
hi,
hi ,
time exceeds because there is large data present in the cdhdr table, i think its cluster table. use function module to reset the runtime it helps u.
CALL FUNCTION 'PROGRESS_INDICATOR'
EXPORTING
I_TEXT = ' Fetching Info records'.
it resets the runtime to initial value.
try this it helps u.
regards
siva
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |