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

SAP ECC 6.0 - TABLE_INVALID_INDEX in MM01 / MM02 View Text Purchase Order

Hi,

i receive this short dump when try to enter in view Text Purchase Order in MM01 / MM02

Err. run-time TABLE_INVALID_INDEX

Progr. ABAP SAPLMG19

nwendungskomponente LO-MD-MM

26 READ TABLE ITHEAD WITH KEY XTHEAD-TDSPRAS.

27 IF P_KZSE1 NE ITHEAD-KZSE1.

28 * READ TABLE ITHEAD. "GW(210895

29 ITHEAD-KZSE1 = P_KZSE1.

30 MODIFY ITHEAD INDEX SY-TABIX.

31 ENDIF.

>>>>> ENDFUNCTION.

Do you know anithyng?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2011 at 02:24 PM

    Hello giangi,

    You need to know why it is happening.

    Is this was working fine in the past and happening from now only????

    If yes.

    Did you upgrade your system? Or updated any patches in SAP or Database?

    If yes. Than contact your BASIS they will be able to figure out the issue. This might be because of that update.

    BASIS can able to figureout what is the problem.

    Thanks,

    Greetson

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2011 at 04:04 PM

    If this is unmodified SAP code, you should look for messages and if there are none, then raise an OSS message.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2011 at 05:46 PM

    Hi

    As suggested by Rob , search for a OSS message or raise one if its not a custom code because in the code , sy-subrc value is not queried after the read statement(IF condition is also adding to the problem), in which case sy-tabix might have a incorrect value if the read statement is unsuccessful and hence modify operation fails.

    Hope this helps.

    Regards,

    Pawan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 14, 2011 at 09:17 PM

    Hi Giangi,

    for me this does not look like standard code.

    READ TABLE ITHEAD WITH KEY XTHEAD-TDSPRAS.

    does not find any entry, sy-tabix is reset.

    MODIFY ITHEAD INDEX SY-TABIX.

    tries to modify record 0. This is invalid.

    What ever this code does: It looks ugly.

    Regards,

    Clemens

    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.