‎2008 Jul 17 2:28 PM
Hi,
My program i am using FMIFIIT,FMIOI,BSEG,BKPF tables it take time to retrivee data.In select statement i am using index ,primarykey,for all entries still it take time.Can you tell me any other option to reduce time.
Thanks,
Deesanth
‎2008 Jul 18 1:34 AM
Try to delete duplicated records on the comparison table with FOR ALL ENTRIES.
[https://wiki.sdn.sap.com/wiki/display/ABAP/Performance|https://wiki.sdn.sap.com/wiki/display/ABAP/Performance]
Hope this would help you.
Regards
T4
‎2008 Jul 17 2:33 PM
Post the SELECT statement(s) here if you think they can be optimised further. Have you done any performance analysis against the code, removing loops within loops, etc ?
‎2008 Jul 17 3:01 PM
hi,
do not access BSEG table directly. use FM FI_DOCUMENT_READ. get the data from BKPF first and the use the FM to retrieve the data from BSEG. it will definitely improve the performance. I have done the same in my code.
regards,
madhu
‎2008 Jul 17 3:16 PM
There is absolutely no performance problem accessing BSEG direcltly if you know BUKRS, BELNR and GJAHR.
Rob
‎2008 Jul 18 11:49 AM
Hi Rob,
I actually used Select on BSEG pasisng BELNR, GJAHR AND BUKRS in one of the my programs. The report was taking 1.5 hrs to execute. So, I was given an option to use the FM mentioned and the time taken was reduced to 25mins(approx).
Regards,
Madhu
‎2008 Jul 18 2:11 PM
‎2008 Jul 18 1:34 AM
Try to delete duplicated records on the comparison table with FOR ALL ENTRIES.
[https://wiki.sdn.sap.com/wiki/display/ABAP/Performance|https://wiki.sdn.sap.com/wiki/display/ABAP/Performance]
Hope this would help you.
Regards
T4
‎2008 Jul 19 9:36 AM
Hi.
See make sure whenever you r using all entries
use sy-subrc.
That wiil definitely increase the speed.