Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

EDI: Syntax error in IDoc (too many repetitions of a segment)

Former Member
0 Kudos

I am creating an idoc which is a list of

country code,plant,matnr,quantity.

I have created a custom segment for this.

While creating an idoc I am putting this line in the same segment i.e.

t_edidd-segnam = 'TESTIDOC'.

t_edidd-sdata = zsegment.

t_edidd-segnum = count_seg.

t_edidd-psgnum = 0.

t_edidd-hlevel = 1.

The idoc is being created but I am getting errors as

Get details from previous status records with status 26

and

EDI: Syntax error in IDoc (too many repetitions of a segment)

How this type of idocs are created?

1 ACCEPTED SOLUTION

Former Member

hi

check your idoc type

in we30

how many segments TESTIDOC is allowed...

(setting: Maximum number of segments in sequence)

regards,darek

2 REPLIES 2

Former Member

hi

check your idoc type

in we30

how many segments TESTIDOC is allowed...

(setting: Maximum number of segments in sequence)

regards,darek

vinod_vemuru2
Active Contributor

Hi,

This error is the segment definition violation. Open your BASIC IDOC type in WE30, double click on the segment TESTIDOC.

In the popup you can see properties like mandatory segment, Minimum number and Max number. Your IDOC is crossing the max number of repetitions it can have. If any of the segment definition perperties like this one, or improper position of the segment etc occurs IDOC is generated with syntax error.

Thanks,

Vinod.