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

Select on MSEG - performance optimalization

Hi experts,

I have following selects to execute:

1. SELECT mblnr matnr dmbtr ebeln menge meins
FROM mseg
INTO TABLE lt_mseg
WHERE mjahr IN so_gjahr
AND bukrs = p_bukrs
AND aufpl = ls_act-aufpl
AND aplzl = ls_act-aplzl.

2. SELECT mblnr matnr dmbtr ebeln menge meins
FROM mseg
INTO TABLE lt_mseg
WHERE mjahr IN so_gjahr
AND bukrs = p_bukrs
AND ps_psp_pnr = l_objnr_tmp.

In MSEG table there are 16M of records and the execution takes very long. Any hints for optimalization? Thank you in advance.

BR

Paul

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2012 at 09:31 AM

    Hello Paul,

    You would probably need to extract data in chunks. Could be 50k at one time using appending internal table.

    regards,

    Deepti

    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.