SAP Message B1351 - Errors when compiling version: Target structure & & does not match IDoc

Diagnosis
The version compiler has determined the target structure (basic IDoctype &v1&, extension structure &v2&) and found that the IDoc to beprocessed (basic IDoc type &v3&, extension structure &v4&) does notcontain segments that belong to the target structure.

Procedure
Please check that the target structure has been set correctly in theoutbound partner profiles.