‎2007 Apr 16 12:03 PM
Hi all,
Iam fetching data from CDHDR table. I have to get data for a given customer id
whose objectclas is 'DEBI'.
Iam trying to fetch the data but it takes a long time......
Can anyone suggest how to reduce this time, so that i can get the USERNAME, and UDATE details of a given customer quickly.
Thanks and Regards,
Anil.
‎2007 Apr 16 12:07 PM
U r doing correctly
SELECT USERNAME
UDATE
into table t_user
FROM CDHDR
WHERE OBJID EQ 'DEBI'
AND OBJECTCLAS eq w_customer.
But follow the DB order in WHERE as well as Retrieving
Tht's the only way....
‎2007 Apr 16 12:07 PM
Hi,
You need to pass these 3 parameters in the where condition
<b>Object class, Object value, Document change number</b>
Regards
Sudheer
‎2007 Apr 16 12:08 PM
Hi,
Its simple as this.. hope you know..
select <the fields you need> from CDHRD into <IT> where OBJECTCLAS = 'DEBI'.
..
Just check the number of entries in this table.. May be there are huge entries.. so its taking more time..
One thing I can say is Select the values from CDHRD using all the key of the table
Them it will take less time..
regards
nazeer,
Reward if useful
Message was edited by:
nazeer shaik
‎2007 Apr 16 12:09 PM
Hi,
Try to use the fun module
CHANGEDOCUMENT_READ_HEADERS
REWARD IF USEFUL
REGARDS,
ANJI
‎2007 Apr 16 12:21 PM
Hi anil,
I think u can fetech data(make a select statement ) using OBJECTCLAS(Object class),OBJECTID(Object value) make use of index . it might help u .
regards
Siva reddy