09-01-2006 7:29 AM
Hi,
This select statement is bee running since more than a day.. please help.
select matnr
BDTER
BDMNG
ebeln
ebelp
from resb
into table i_resb
for all entries in i_ekpo
where ebeln = i_ekpo-ebeln
and ebelp = i_ekpo-ebelp.
i_ekpo has all subcon orders (pstyp = 3)
Help to correct the stmnt.
09-01-2006 8:14 AM
09-01-2006 7:30 AM
this code is looking ok...i thinkproblem is anywhere else....
<b>if not i_ekpo[] is initial</b>.
select matnr
BDTER
BDMNG
ebeln
ebelp
from resb
into table i_resb
for all entries in i_ekpo
where ebeln = i_ekpo-ebeln
and ebelp = i_ekpo-ebelp.
endif.
09-01-2006 7:33 AM
09-01-2006 7:37 AM
Hi...Kantheri..
Try to use primary keys (RSNUM,RSPOS,RSART) in your SELECT query and then run it.
Thank You
09-01-2006 7:39 AM
Don't use for all entries. For tables like RESB:
sort i_ekpo by ebeln ebelp.
delete adjacent duplicates from i_ekpo comparing ebeln ebelp.
loop at i_ekpo.
your select statement
without "for all entries" clause
endloop.
09-01-2006 7:53 AM
09-01-2006 7:33 AM
<b>IF <b>i_ekpo[]</b> IS NOT INITIAL.
select matnr
BDTER
BDMNG
ebeln
ebelp
from resb
into table i_resb
for all entries in <b>i_ekpo</b>
where ebeln = i_ekpo-ebeln
and ebelp = i_ekpo-ebelp.
ENDIF.</b>
09-01-2006 7:33 AM
Hellom
Before going the for all entires
are you doing all the checks..
IF not i_ekpo[] is initial.
sort i_ekpo.
Delete adjacent duplicates from i_ekpo comparing <field name>.
select matnr
BDTER
BDMNG
ebeln
ebelp
from resb
into table i_resb
for all entries in i_ekpo
where ebeln = i_ekpo-ebeln
and ebelp = i_ekpo-ebelp.
Endif.
Create and index for ebelp in resb.
Thanks,
Krishnakumar
Message was edited by: Krishnakumar
09-01-2006 7:36 AM
09-01-2006 7:42 AM
Hi,
Use all the primary keys of RESB in your where condition, further how many entries are there in ur internal table i_ekpo.
If you can restrict the entries in i_ekpo, if you can narrow down on ur selection criteria for values from EKPO --- it should help you a lot.
Reward if helpful.
Regards
09-01-2006 7:55 AM
09-01-2006 8:04 AM
Hi Zapper,
How do i get all the primary keys.
Ekpo doesnot have it.
and RSDB is not updated for subcon po's.
Please help
09-01-2006 8:12 AM
Thanks for all your help.
Could anyone help me create an index in RESB for ebelen and ebelp. The steps involved.
I hope this would help.
11-13-2006 12:30 PM
Hallo, this is how to create an index:
Transaction SE11.
select database table RESB --> show it.
goto indizes (Strg + F5) and create a new one with the name you want (like Z01)
type in short description and the needed fields (ebelen and ebelp) and select "non-unique-index" and "index on all database systems" if this is right for you.
then aktivate the index.
afterwards goto SE14 and select the Table RESB in edit mode.
goto indizes and select the created index (Z01)
then choose "create database index" and perform it in background modus (!?!) to avoid short dumps.
after it is created on the database you can check the database in SE14 by choosing "check" --> if everything is ok --> then your finished.
i how this helps.
sorry for my english but translating the technical expressions is somehow hard...
bye from lake constance, germany
m.lindenmayer
09-01-2006 8:14 AM