I have to update some custom messages to Status record in IDOC.
I am making use of the EXIT_SAPLV55K_020 but this particular exit has only IDOC_CONTROL as a Changing parameter and also
IDOC_DATA in the Tables field. I have also predefined exception DO_NOT_PROCESS_IDOC. Now when my code that is written in the include ZXTRKU09 for the EXIT_SAPLV55K_020 is fired the business logic that is written works.
My problem is that i need to update some predefined custom messages to Status records when we check the same with the tcode WE02.Also as per my requirement i need to raise the exception also . I have given the following code
MESSAGE e170(Message Class) WITH idoc_control-idoctp RAISING do_not_process_idoc.
The moment when it sees this statement it raises the above exception but i also needs the custom messages to be appended to the status records.
can any one please help me sort it out.