cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP dump on COR1 while make change in include ZXCO1U01

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

jogeswararao_kavala
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thank you Sir,

I have shifted validations from PPCO0001 to PPCO0007 and now it is working ok with out any ABAP dump.

Regards,

Archana

Answers (3)

Answers (3)

kiran_kumar179
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

marianoc
Active Contributor
0 Kudos

Hi Pillai,

Maybe would be better if you share here the code.

Kind Regards,

Mariano

Former Member
0 Kudos

Hi,

I have wrriten like attached image

system is showing error message "Standard cost does not exists in material master for.. '

then on pressing enter system is showing below abap dump.

Regards,

Archana