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

Error while Filling custom extended idoc

i have extended segment e1edpa1 with ZLOC segment in INVOIC01 idoc .now i'm filling this extended idoc from exit EXIT_SAPLIEDI_101 but it is giving me error like "EDI: Syntax error in IDoc (mandatory segment missing)" can anyone tell me what could be the reason?below is my code.


MOVE idoc_data-sdata TO e1edpa1.

IF e1edpa1-parvw = 'WE'.

SELECT SINGLE * FROM kna1 INTO w_kna1 WHERE kunnr = e1edpa1-partn.

IF sy-subrc = 0.

MOVE: w_kna1-locco TO zloc-locco,

w_kna1-bahne TO zloc-bahne.

MOVE 'ZLOC' TO idoc_data-segnam. " administrative section

MOVE zloc TO idoc_data-sdata. " data section

APPEND idoc_data.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 14, 2009 at 08:32 PM

    Please use transaction code WE19 and fill the segment and check

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Why do you need to add a segment via code in an inbound IDOC? we dont populate segments in inbound processing, rather you shoul dbe getting value from the source system in the IDOC, and reading the custom segment to process the values.

      if source is not sending the values , and you need those then you are supposed to read and process the values to move those to corresponding structure for SAP program to process the data. Adding a segment in inbound is not going to get you anything.

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.