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.