There is an issue with the importer that mixes segment type with segment name for IDOCs that is not going to be fixed anytime soon.
Example:
Assumed we have an IDOC Parser file containing a snippet like this:
BEGIN_GROUP 1
LEVEL 02
STATUS OPTIONAL
LOOPMIN 0000000001
LOOPMAX 0999999999
BEGIN_SEGMENT E2BPE1MARAEXTRT000
SEGMENTTYPE E1BPE1MARAEXTRT
LEVEL 02
STATUS MANDATORY
LOOPMIN 0000000001
LOOPMAX 0000000001
BEGIN_FIELDS
[...]
END_FIELDS
END_SEGMENT
BEGIN_SEGMENT E2BPE1MARAEXTRT1000
SEGMENTTYPE E1BPE1MARAEXTRT1
LEVEL 03
STATUS OPTIONAL
LOOPMIN 0000000001
LOOPMAX 0000000001
BEGIN_FIELDS
[...]
END_FIELDS
END_SEGMENT
END_GROUP |
There are 2 segments defined:
E2BPE1MARAEXTRT000
of type
E1BPE1MARAEXTRT
and
E2BPE1MARAEXTRT1000
of type
E1BPE1MARAEXTRT1
.
The importer will however create two types E2BPE1MARAEXTRT000
and E2BPE1MARAEXTRT1000
. The field names in the generated structures are correct and correspond to the segment names. There's however an External Name set for them which corresponds to the segment types.
This causes the XML/SOAP structure to basically be reversed.