Skip to Content
author's profile photo Former Member
Former Member

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

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2010 at 11:49 AM

    hi

    check your idoc type

    in we30

    how many segments TESTIDOC is allowed...

    (setting: Maximum number of segments in sequence)

    regards,darek

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 12, 2010 at 01:10 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.