Skip to Content
avatar image
Former Member

Problem with Sending IDOC

Hi,

I have a FILE-IDOC Szenario.

Everything fine. But now i try to send the ADRMAS03 IDoc.

And get the error

Error: Segment 'E1BPAD1VL' segmentnumber '000001' not correct in structure ADRMAS03

I try already to delete the IDOC metadata in IDX2.

Also with reimporting the idoc structure into integration repository i got no sucess...

The structure in IDX2 and repository looks smillar to each other.

Any idea what the problem could be?

it looks like the IDOC Adapter expect another structure for this IDoc type .. but why?

Thanks,

Robin

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Nov 07, 2006 at 12:35 PM

    Hi,

    1. check in your mapping result if Segment 'E1BPAD1VL' is

    in the correct place we IDOC ADRMAS03 displayed with

    transaction WE60

    >>>>Also with reimporting the idoc structure into integration repository i got no sucess...

    so you weren't able to reimport?

    you need it

    you can find out more about IDOCs with XI from

    (IDX2 reloading metadata etc.):

    <a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>

    Regards,

    michal

    -


    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi michal,

      the mapping result looks exactly like it has to.

      It`s the importet structure and i do only field by field mapping. Don`t change the context or structure.

      >>>>Also with reimporting the idoc structure into integration repository i got no sucess...

      Ok, this sentence was a little bit confusing 😉

      Re-importing works fine... but didn`t help to solve my problem with the ADRMAS Idoc.

      Regards,

      Robin

  • Nov 07, 2006 at 01:10 PM

    Hi Robin,

    Have u mapped the segment attribute of Segment 'E1BPAD1VL'

    if not then Mapped it with a constant say 1.

    Regards

    Sachin Dhingra

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Sachin Dhingra

      Hi,

      try everthing ... now my idoc is as small as possible.

      The XML Message which crashes on IDoc Adapter looks like that:

      <?xml version="1.0" encoding="UTF-8"?>
      <ADRMAS03>
       <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1">
         <TABNAM>EDI_DC40</TABNAM>
         <DIRECT>2</DIRECT>
         <IDOCTYP>ADRMAS03</IDOCTYP>
         <MESTYP>ADRMAS</MESTYP>
         <SNDPOR>SNDPOR</SNDPOR>
         <SNDPRT>LS</SNDPRT>
         <SNDPRN>SNDPAR</SNDPRN>
         <RCVPOR>RCVPOR</RCVPOR>
         <RCVPFC>LS</RCVPFC>
         <RCVPRN>RCVPRN</RCVPRN>
        </EDI_DC40>
        <E1ADRMAS SEGMENT="1">
         <OBJ_TYPE>KNA1</OBJ_TYPE>
         <OBJ_ID>1335</OBJ_ID>
         <CONTEXT>0001</CONTEXT>
         <E1BPAD1VL SEGMENT="1">
          <NAME>NAME</NAME>
          <CITY>CITY</CITY>
          <POSTL_COD1>000000</POSTL_COD1>
          <COUNTRY>EN</COUNTRY>
          <LANGU_ISO>EN</LANGU_ISO>
          <SORT1>123123</SORT1>
          <SORT2>Sort2</SORT2>
         </E1BPAD1VL>
        </E1ADRMAS>
       </IDOC>
      </ADRMAS03>
      

      What the hell is wrong with this message ?

      Regards,

      Robin

  • avatar image
    Former Member
    Nov 07, 2006 at 12:30 PM

    Hi Robin,

    did you made a syntax check in your sorce system, where the IDoc was send?

    Regards Mario

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Mario,

      there is no source system.

      I get a flat file .. and map it to the importet idoc structure.

      This should got throw IDOC Adapter to R/3.

      But this didn`t happen because the Adapter throws this stupid exception.

      Regards,

      Robin