Hi,
We are writing a logic to retrieve data from HRP1001.
Since there are large amounts of data,
we spend a lot of time to select data from DB.
We wants to know how to handle in a short time.
Now the logic is this.
---
SELECT objid
sobid
adatanr
INTO TABLE ltab_data
FROM hro1001
FOR ALL ENTRIES IN ltab_pernr
WHERE otype = 'P'
AND objid = ltab_pernr
AND plvar = '01'
AND rsign = 'A'
AND relat = '032'
AND istat = '1'
AND begda <= sy-datum
AND endda >= sy-datum
AND sclas = 'Q'
AND sobid IN lr_id.
---
Now, it is taking about 3 seconds.
Function "RHPP_Q_PROFILE_READ" dose not use.
Thinks.