‎2008 Jun 20 5:07 AM
Is there any functional module or BAPI to fetch the idoc number from edidc table based on the idoc creation date,idoc type and partner number?
‎2008 Jun 20 5:25 AM
‎2008 Jun 20 5:29 AM
ya i have written using select statement only but performance issues is arising thats the reason to go to FM or BAPI
‎2008 Jun 20 5:34 AM
Hello,
Even if there was a FM or BAPI, it wouldn't make a performance difference since it would in turn execute a similar select statement
Using 'select single' is a better option that select if you need a single record
‎2008 Jun 20 5:38 AM
I cant use select single coz have to fetch lot of values from the table so its better to use FM or BAPI.Please help
‎2008 Jun 20 5:41 AM
ok.. i'm not sure of your exact scenario, but you can try using 'select.. for all entries' in order to get all the required entries in an internal table
then use 'read table.. with key' to get a single record from the internal table
this approach would need just one db call
‎2008 Jun 20 5:48 AM
Have written the select query as
SELECT docnum FROM edidc INTO TABLE gi_edidc
WHERE credat IN s_credat AND idoctp = gc_idoctype
AND rcvprn IN s_lifnr .
This is taking much time since the problem.
‎2008 Jun 20 6:18 AM
yes.. your approach seems fine
I don't think any FM would be able to improve it
‎2008 Jun 20 6:24 AM