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?