Hi All,
I've got a IDoc to Soap call scenario working for me with simple mappings. The scenario is as follows.
If any field in a segment is modified, the entire segment is sent in an IDoc to XI. This gets mapped with a SOAP call to a webservice.
<b>The Problem:</b>
The problem arises, when a field is deleted(not modified) in SAP. This triggers an IDoc to XI, which contains the segment(but the deleted field is missing). Since the field is missing, it doesn't get mapped to the SOAP call(with empty tags <tag></tag>) and the logic breaks!
<b>The Solution:</b>
a. Check if the segment exists.
b. If so, pass empty tags(<tag></tag>) for all the fields missing in the IDoc segment.
<b>The Problem with the Solution!:</b>
a. This logic needs to implemented at a per field level! So if I have 20 fields per segment and 5 segments, it means 100 modifications!
b. And if I have multiple interfaces/IDocs!!! 😊
Is there a better way to do this?
Thanks,
Harsh