Skip to Content
avatar image
Former Member

Function PM_ORDER_DATA_READ exception

Hi All,

I am using fm PM_ORDER_DATA_READ in a dialogue program to get operation details for a particular production order.

Its works fine on its first execution, but throws a short dump on subsequent execution saying ...

-


A RAISE statement in the program "SAPLCOIT" raised the exception

condition "ITAB_ERROR".

Trigger Location of Runtime Error

Program SAPLCOIT

Include LCOITU41

Row 67

Module type (FUNCTION)

Module Name CO_IT_GET_PROV_OF_OPERATIONS

-


I've checked the function call & parameters passed to it in debug mode during its second execution. Everything seems to be fine.

M using ECC 6.0

Kindly guide if someone had got d same error & had got it solved.

  • You can also realize this by just executing PM_ORDER_DATA_READ in SE37 twice, each time using different order numbers.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    May 18, 2007 at 07:32 PM

    Hi,

    Please try to add FREE MEMORY statement before ENDLOOP or calling second time the above FM.

    Regards,

    Ferry Lianto

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi All,

      The use of FREE MEMORY without the addition ID is obsolete. I rather prefer the solution from Aditya Niyogi, calling function module CO_EXT_ORDER_RESET before calling PM_ORDER_DATA_READ.

      Thanks to Aditya, it worked fine for me.

      Regards,

      Sergio Alonso

  • avatar image
    Former Member
    Jul 29, 2008 at 06:55 AM

    Hi Jethendra,

    I faced the same problem - however SAP has just recently come out with the solution. Please apply OSS Note (#1179835) to resolve this error. This was happening because a particular field that should have been freed was not during the second run. This note was released recently by SAP (June 18, 2008).

    Additionally if you want to code without this particular note - then just call this FM - "CO_EXT_ORDER_RESET" before calling PM_ORDER_DATA_READ.

    Code Sample:

    CALL FUNCTION 'CO_EXT_ORDER_RESET'.

    *Obtain the relevant information for a particular order.

    CALL FUNCTION 'PM_ORDER_DATA_READ'

    EXPORTING

    ORDER_NUMBER = <FS_AUFNR>-AUFNR

    • CALL_FROM_NOTIF =

    IMPORTING

    WCAUFVD = CAUFVD

    WILOA = ILOA

    WRIWO1 = RIWO1....

    This solved my problem and hopefully it will solve yours.

    Reward with points if helpful

    Thanks &Regards,

    Aditya

    Edited by: Aditya Niyogi on Jul 29, 2008 8:56 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 06, 2008 at 02:45 PM

    Implement Note 575491. It helps for me.

    Best regards, Dusan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 05, 2013 at 12:10 PM

    Try CALL FUNCTION 'CO_IT_SET_FLG_ITAB_NEW'  Before PM_ORDER_DATA_READ

    Add comment
    10|10000 characters needed characters exceeded