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

Reg:S700 table

Former Member
0 Likes
1,580

Dear Experts,

I have a requirement, in which I need to take data from S700 table, But it takes so much time to fetch the data . It causes performance effect, Request you to please suggest me is there any function module available in order to fetch the data from S700 table .

Regards,

Suresh.

Dear Experts,

I have a requirement, in which I need to take data from S700 table, But it takes so much time to fetch the data . It causes performance effect, Request you to please suggest me is there any function module available in order to fetch the data from S700 table .

Regards,

Suresh.

8 REPLIES 8
Read only

Former Member
0 Likes
1,425

hello,

i doubt that there is such FM (i do not have table S700 in my system ECC 6.0 so i can not do any researches). If you want to get valuable answer post your select maybe we could help you to improve the speed of your code. Several advices which could help:

1) select only required fields do not use

select * statement

if it is not mandatory;

2)

do not use into corresponding fields of table

better use

into table

, but fields sequence in select and in yout internal table should be the same otherwise you will get dump during execution.

3) use primary key or index or define your new one (but defining new indexes willslow down insert update processes);

4) if you are using joins in you select try to split it into two sepatared ones (table types: hashed and standard).

data: lt_b type standard table of b,
        lt_a  type hashed table of a with unique key fieldname1 fieldname2,
        ls_b type b,
        lv_tabix type sytabix.

select A~fiendname1
          A~fiedname2
into table lt_A
from A
where (required clause).

select B~fieldname1
           b~fiedname2
          b~fieldname3
into table lt_B
from b
where (required clause).

loop at lt_b into ls_b.
  lv_tabix = sy-tabix.
  read table lt_a transporting no fields with table key fiedname1 = ls_b-fieldname1 fieldname2 = ls_b-fieldname2.

  check sy-subrc ne 0.
     delete table lt_b index lv_tabix.
endloop.

here you will find the main rules what is good and not (it could be valuable resource in your case):

http://abapteamforum.lefora.com/2009/05/06/steps-to-optimise-the-abap-code/

br,

Read only

0 Likes
1,425

Hi,

If you are using select statement inside the loop then also create performance Issue and If your select statement is inside the inner loop (loop.....loop....select ....endloop...endloop.... ) then also create performance issue.

Regards,

Kunjan

Read only

0 Likes
1,425

Hi,

If you are using select statement inside the loop then also create performance Issue and If your select statement is inside the inner loop (loop.....loop....select ....endloop...endloop.... ) then also create performance issue.

Regards,

Kunjan

Read only

Former Member
0 Likes
1,425

Hi,

In SAP there is no table name as S700 table. Please tell me in which report you use this table.

Thanks,

Sanjeeb.

Read only

Former Member
0 Likes
1,425

Hello SureshVVS ,

Looks like the table that you are using is like a SIS related table. It will take more time for sure as it is the Sales information table .

No other way of controlling the select unless you use the correct primary key in your select query.

Hope this answers your question.

Thanks,

Greetson

Read only

Former Member
0 Likes
1,425

hi,

used hashed internal table to retrieve data.

that is sample how to use it :

http://www.sap-img.com/abap/what-is-use-of-using-hashed-table.htm

Read only

Former Member
0 Likes
1,425

Yes, It is related to SIS information data table.

Read only

0 Likes
1,425

Hello SureshVVS ,

The only way is to use the correct key fields in your select. Another option to improve the performance is to create the secondary index for tht table fields that you are using in the select.

Thanks,

Greetson