Skip to Content
author's profile photo Former Member
Former Member

Report using table mseg

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??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2007 at 10:48 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2007 at 10:48 AM

    Pass MBLNR & MJAHR in where condition.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2007 at 10:49 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.