cancel
Showing results for 
Search instead for 
Did you mean: 

Capture mapping error using fault message

former_member185846
Active Participant
0 Kudos

Experts, Is it possible to capture mapping exceptions using fault message?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Yes it is possible. If you use abap or java mapping for example. Just one requirement. You need to have a separate non mandatory error field element in the target message structure. You can validate all the field values first in the mapping and if the values are not matching the requirement then append the error message only on this field element.  If there is no error due to validation then that field element value is empty and rest all the fields are sent in the target structure. You dont even need seperate  fault message structure for this. You basically work this with target system to add this field and their processing data based on this error field element value. This is one simplest approach.