Skip to Content
0
Former Member
Jan 20, 2007 at 07:36 AM

How to error out an IDoc based on a certain condition

2069 Views

Hi All,

I have the following scenario,

When an Indound delivery Idoc comes in, an user exit 'EXIT_SAPLV55K_005'

checks if the delivery quantity equals the ship quantity that is sent in the idoc.

if yes, then the pick quantity is updated.

if the condition is not satisfied, then we need to error out the IDoc with an descriptive custom message.To acheive this I tried the following,

1. Raise exception 'Do not process Idoc' / 'Idoc error' :

When the system encounters this message , it skips the code in the exit, but it does not error out the Idoc, instead completes the Idoc with status '53'.

2. Fun Mod - 'Idoc_status_write_to_database'.

Does not work out.

Can you help me achieve the requirement.

Thanks,

Disney.