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

Report using table mseg

Former Member
0 Likes
1,133

Well i m makin a report on material consumption which gets the opening stock, purchase, consumption & closing stock of all the materials in a particular month.

i m getting mblnr from mkpf table & then go to mseg table. but it is taking a lot of time. can i make it faster. how??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
634

Hi Ashish,

To make your report faster, the first things is to use <b>the table key or the index</b>.

Then, you can use either a <b>JOIN</b> between MKPF & MSEG( on MBLNR & MJAHR ), <b>or</b> after a MKPF selection, use the <b>FOR ALL ENTRIES</b> Statement to select into MSEG.

Erwan

3 REPLIES 3
Read only

Former Member
0 Likes
635

Hi Ashish,

To make your report faster, the first things is to use <b>the table key or the index</b>.

Then, you can use either a <b>JOIN</b> between MKPF & MSEG( on MBLNR & MJAHR ), <b>or</b> after a MKPF selection, use the <b>FOR ALL ENTRIES</b> Statement to select into MSEG.

Erwan

Read only

Former Member
0 Likes
634

Pass MBLNR & MJAHR in where condition.

Read only

Former Member
0 Likes
634

hi,

can u paste ur code here to know the exact pblm. if u r using read table statement then use binary search option with it.

is u r using select in loop then avoid it and use for all entries to amke it faster.

it would be nice if u paste ur code to know the pblm clearly.

check tips in the run time analysis.

hope this helps u.

reward points if helpful.