Application Development and Automation 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: 
Read only

Send custom error message using IDoc conversion rule?

Former Member
0 Likes
565

Hello,

I am using an Idoc conversion rule in BD79 to load cost centers. In my conversion rule I use a conversion exit function module to concatenate 2 specific characters and sending cost center value together and then this output value placed in the receiving cost center field. This works fine, but now I want to send a custom error message to the idoc and fail the idoc if the sending cost center value is greater than 8 digits.

Does anyone know how to send an error message or update an idoc with an error message using a conversion rule (bd79)?

Thank you,

Rhonda

2 REPLIES 2
Read only

Former Member
0 Likes
502

Hi Rhonda,

Any luck on the below.. i have a similar issue...

Sorry to hijack your thread...

Read only

former_member184253
Discoverer
0 Likes
502

I've been in the same boat. The only way I can throw an error is to change the OBJNR field, or some other validated field in the IDoc. The status segment isn't available at this point in the IDoc process. Hope this helps.