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

performance issue

Former Member
0 Likes
1,146

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,071

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,071

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 ?

Read only

Former Member
0 Likes
1,071

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

Read only

0 Likes
1,071

There is absolutely no performance problem accessing BSEG direcltly if you know BUKRS, BELNR and GJAHR.

Rob

Read only

0 Likes
1,071

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

Read only

0 Likes
1,071

I'd like to see the before and after code.

Rob

Read only

Former Member
0 Likes
1,072

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

Read only

aarif_baig
Active Participant
0 Likes
1,071

Hi.

See make sure whenever you r using all entries

use sy-subrc.

That wiil definitely increase the speed.