Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fetch data Quickly

Former Member
0 Likes
615

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.

5 REPLIES 5
Read only

Former Member
0 Likes
590

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....

Read only

Former Member
0 Likes
590

Hi,

You need to pass these 3 parameters in the where condition

<b>Object class, Object value, Document change number</b>

Regards

Sudheer

Read only

Former Member
0 Likes
590

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

Read only

Former Member
0 Likes
590

Hi,

Try to use the fun module

CHANGEDOCUMENT_READ_HEADERS

REWARD IF USEFUL

REGARDS,

ANJI

Read only

Former Member
0 Likes
590

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