‎2006 Mar 26 8:58 AM
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.
‎2006 Mar 26 4:30 PM
Hi Marisol,
Which BAdI are you using? You will only have to raise exceptions if any allowed in the BAdI.
Regards,
Suresh Datti
‎2006 Mar 27 4:33 AM
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.
‎2006 Mar 27 6:17 AM
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