We were developing an IDoc extension and when we run transaction VF31 to generate an outbound IDoc, the error EDI: Syntax error in IDoc (segment cannot be identified) is shown to us when in transaction WE02 using the generated IDoc. After many hours spent debugging, we finally figured out the problem, and it wasn’t in our code.
The problem was caused because of the Partner profile! When I checked in WE20 using the Partner No. and Partner Type used for the IDoc, the Outbound Options did not contain the Extension we were developing. Only the Basic Type was populated.
So adding the Extension (and fixing some internal process of data validaton) was the solution.
Takeaway: Sometimes, it’s not advisable to dive into debugging directly, it just might be that the problem is caused by configuration issues (which is technically not the task for ABAPers).
0 comments:
Post a Comment