cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Sending IDOC

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

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>

Former Member
0 Kudos

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

Answers (2)

Answers (2)

former_member184619
Active Contributor
0 Kudos

Hi Robin,

Have u mapped the segment attribute of Segment 'E1BPAD1VL'

if not then Mapped it with a constant say 1.

Regards

Sachin Dhingra

Former Member
0 Kudos

Hi Sachin,

Yes, i mapped all Segment attributes with the right constant value.

Next idea plz

Regards,

Robin

former_member184619
Active Contributor
0 Kudos

Hi Robin,

Next wat u can check is... in the same segemnt there is onw more segment name..E1BPAD1VL1

R u using any field for mapping form this segment if not then right click on it and chose 'Disable Field'

Do it for all segments u r not using.

Hope this helps.

Regards

-


Sachin

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Robin,

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

Regards Mario

Former Member
0 Kudos

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