Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

me22n, error system

Former Member
0 Kudos

HI,

I have written the following code to avoid that the date of delivery is changed in the transaction me22n but the system generates the following error.

System error (error in method PO_POST)

I think this is because the error have to be informative , but when i put the message type I the sistem doesn´t make validation, only if it is type E but the system generate the before error (System error (error in method PO_POST))

the code is:

refresh ti_setleaf.

select valfrom

into corresponding fields of table ti_setleaf

from setleaf

where setname = cosetfe.

read table ti_setleaf with key valfrom = sy-uname.

if sy-subrc <> 0.

if not i_ekko-ebeln is initial.

loop at xeket.

loop at yeket.

if xeket-eindt ne yeket-eindt.

message e998(zbachoco) with

'No esta autorizado para modificar fecha de entrega,'

'consulte responsable'.

endif.

exit.

endloop.

endloop.

endif.

endif.

endif.

somebody could tell me how solving this?

thanks in advance.

marisol.

3 REPLIES 3

suresh_datti
Active Contributor
0 Kudos

Hi Marisol,

Which BAdI are you using? You will only have to raise exceptions if any allowed in the BAdI.

Regards,

Suresh Datti

Former Member
0 Kudos

I am using a user exit. The error message is display like a informative message, but when a put like type i it doesn't display the message only if it is type E but generate a error system. (System error (error in method PO_POST))

somebody could tell me hw solving this problem.

Former Member
0 Kudos

Hi,

Please check if there is a BADi implemented and the error is coming from BADi and not the code you wrote in the user exit.

You can check it in transaction SE18 or SE19.

Regards,

Shashank