Skip to Content

ABAP dump on COR1 while make change in include ZXCO1U01

Dear All,

To restrict process order entry if cost does not exists for that material, I have written a code in enhancement PPCO0001 ->ZXCO1U01 and it is working ok. It gives error message if cost is not entered for that material, but after than it is showing runtime error dump with message (attached image ).

Please help me to resolve this issue.

Regards,

Archana

COR1_Error.JPG (98.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Oct 08, 2015 at 01:18 PM

    This error clearly indicates that the user-exit is not suitable for the syntax you are using, perhaps because, this user-exit operates after Save and at Commit. So you should try user-exit PPCO0007 instead.

    KJogeswaraRao

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 08, 2015 at 08:41 AM

    Hi Pillai,

    Maybe would be better if you share here the code.

    Kind Regards,

    Mariano

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2015 at 01:07 PM

    Hello Archana,

    the problem is you send an error, this is not allowed in this user exit. See doucmentation and for example also FAQ note 1855055 question 1.

    Please don't send error or warning from this user exit. If you need a user interaction make sure the user exit allow sending of error.

    Maybe BAdI workorder_update methode at_save all the sending of error but only if you raise and exception together with this. Read the documentation for further details.

    BR Sabine

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 08, 2015 at 03:09 PM

    Pillai,

    The suitable and relevant enhancement for your requirement is BADI WORKORDER_UPDATE in place of user exit PPCO0001.

    It has 2 methods one is at Creation of order and second one is at Release of order with checking MBEW-LPLPR field.

    BR
    KK

    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.