09-14-2010 12:30 PM
Hello,
on EXIT_SAPLVEDA_002 and EXIT_SAPLVEDA_003 I done some custom check, (I would show some custom message as a result of these check).
My question is: How to show these custom message on the standardc idoc spool (WE02) ??
There's DERRTAB internal table to manage the error, but is not available on there exit ...(EXIT_SAPLVEDA_002 and 3)
Any idea ??
thank you
09-14-2010 2:11 PM
Hi,
Did you try simple:
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
Regards,
Dominik Modrzejewski
09-14-2010 2:56 PM
I tried it,
but if I show msgtype 'E' the IDOC process is interrupt and the spool is not updated.
Another idea ??
Thank you
R
09-15-2010 5:25 AM
Hi,
Try to to update idoc status table EDIDS then only you can see the error messages in WE02.
I hope there are FMs to update status of IDoc.
Regards,
09-15-2010 8:52 AM
Hello,
question is if you want to raise an error, which makes sense only if the document is not posted or just an information message.
Please consider that you can put messages into the idoc only connected with a status. If you set status 51 thge Idoc is reprocessible, if you set status 53 it is successfully processed.
In error case you can raise exception USER_ERROR. in exit EXIT_SAPLVEDA_002. Set SY-MSGTY, SY-MSGID, SY-MSGNO, etc before. In exit EXIT_SAPLVEDA_003 you can set changing parameter ok to space. Then SAP will add an error message.
/Michael
08-04-2011 10:33 AM