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: 

IDOC_INPUT_ORDER - How manage the custom error message ?

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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,

Former Member
0 Kudos

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

0 Kudos

EXIT_SAPLVEDA_011