IDOC Segment Definition received instead of Segment type

Hello Folks,
When i send a Z Idoc Segment from A to B System, It is successfull from A System, but in B System sometimes its erroringout because in the inbound idoc Segment Definition is coming instead of Segment type.
For Example
From A System I have sent Z1P0002 segment
        B System I have received Z2P0002000(Which is the segment definition for Segment type Z1P0002)
Any inputs to above problem?

Hi,
The problem may be due to system B using a older release version of the IDoc. In those scenarios, even though your IDoc type is recognized, it may not be possible for the reciever to determine the right segment version of the reciever.
There are options in the WE20 partner profile configuration, Field Segment release in IDoc type and Segment Appl. rel. which enable the partner system preventing from erroring out.
BR/Yogesh
Edited by: Yogesh Surender on Jun 1, 2009 12:34 PM

Similar Messages

  • In segment IDOC attribute I occurred instead of SEGMENT

    Hi
    I am trying to post an IDOC thru XI, using XSLT(ABAP Engine) to convert an incoming message to IDOC format.
    Though the IDOC output is well formed, the message fails with an error message(see below). Has anyone experienced this problem before?
    I am on XI 3.0 SP14, connectiing to an 4.6D system. IDOC -FIDCCP01.
    I had the output pulled into an XML editor for validation, but it does not report any errors.
    Any pointers?
    -Feroz
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
      <SAP:P1>IDoc XML data record: In segment IDOC attribute I occurred instead of SEGMENT</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error: IDoc XML data record: In segment IDOC attribute I occurred instead of SEGMENT</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Feroz,
    Copy the message and check which segment does not have the attribute literal SEGMENT.
    to be clear, your data should be like <b><E1KNA1M SEGMENT="1"></b>, probably you have something like this <b><E1KNA1M 1="1"></b>.
    XML Editor does not cause an error becuase it does not care what the attribute literal is. Once you correct that, you should be fine.
    Regards
    Shravan

  • Error:IDOCXML data record : In segment attribute occured instead of SEGMENT

    hello friends
    my content scenario is oracle -> xi-> IDoc
    i am getting error as stated in subject from <b>IDOC_ADAPTER</b> error category and ERROR id is <b>ATTRIBUTE_IDOC_RUNTIME></b>
    i am  using IDoc of message type <b>pordcr1.pordcr101</b>.
    i tried every change but still i am  getting the same error.
    i am unable to locate the problem source i went through similar blog posted on sdn but no luck .
    what i will do to solve my problem .i am waiting for my sdn friends suggestion.....amit ranjan

    Hi,
    Maybe you can reload structure of your IDOC in integration repository and delete idoc metadata from IDX2. Please check it maybe it will help. Are you doing a mapping to this SEGMENT? If no you can add a counter there for each SEGMENT.
    regards,
    wojtek

  • IDoc - Get Segment Definition or Version in Code

    I'm working on the ABAP-PI Port, created a FM based on FM OWN_FUNCTION now.
    In my FM, there is a call to a function
    CALL FUNCTION 'EDI_SEGMENTS_GET_ALL'
    that retrieves all the segment data for a particular IDoc number.
    However, it returns only the segment name EDIDD-SEGNAM and not the segment definition.
    Example:
    Value returned: "E1EDKA1" ( EDIDD-SEGNAM , 27 char long field)
    I'm actually looking for the Segment Definition that goes up to 30 characters long.
    Value I need to be returned: "E2EDKA1001" - has the extra 3 digits at the end that represents the Version.
    If you go to WEDI, Development > IDoc Segments, You can see that the Segment definitions belong to a data type EDISEGDEF (30 characters long).
    Does anyone know how I can get this programmatically?
    The IDoc file downloaded by the FILE port stores the 30 char Segment Definition in the file
    Using the ABAP-PI it only returns the segment name (27 char)

    Hi all,
    Thanks for your replies.
    EDISDEF might be useful, but I'm not sure how to use it at the moment.
    I am supplied in the code a structure of type EDIDC, which has the following values (not all are listed)
    MANDT     C     3      308
    DOCNUM     N     16      0000000000002050
    DOCREL     C     4      640
    STATUS     C     2      03
    DOCTYP     C     8
    DIRECT     C     1      1
    RCVPOR     C     10      SUBSYSABAP
    RCVPRT     C     2      B
    The above represnets a particular IDoc being processed (see DOCNUM and DOCREL)
    The default code then uses a FM to get the segment data based on the DOCNUM.
    CALL FUNCTION 'EDI_SEGMENTS_GET_ALL'
          EXPORTING
               DOCUMENT_NUMBER         = I_EDIDC-DOCNUM
          TABLES
               IDOC_CONTAINERS         = I_EDIDD
          EXCEPTIONS
               DOCUMENT_NUMBER_INVALID = 1
               END_OF_DOCUMENT         = 2
               OTHERS                  = 3.
    Does anyone know of any FM that returns a EDID4 (has 30 char segment version) structure instead of a EDIDD structure (27 char seg def)?
    And the value EDIDC-DOCREL (SAP Release for IDoc)  e.g.
    <b>640</b>
    does not match up with values available in EDISDEF-RELEASED (IDoc development: Release of segment definition), e.g.
    <b>30F
    40A
    45A
    </b>
    How can I find if the segment definitions are
    E2EDKA1 or
    E2EDKA1001 or
    E2EDKA1002 or
    E2EDKA1003

  • Error : IDoc XML data record: In segment attribute occurred instead of SEGM

    hi friends
    i am doing the file to idoc scenario. in message mapping i had done the static test. but what ever the fields i mapped in the idoc it was not populated in the idoc. and i am getting the error as
    error :IDoc XML data record: In segment attribute occurred instead of SEGMENT
    can any one solve the problem please
    thanks in advance
    Vasu

    Hi Vasudeva,
    Pls do check the nodes which you have mapped to. Also make sure that your SEGMENT field in the target structure is mapped properly.
    Cheers
    JK

  • XI IDOC missing segment definition in type E1LFM1M

    Hi experts,
    we have recently upgraded our ERP system to NW 702 EH5. As aresult a new segment definition was added to our segment type E1LFM1M ( segment def. E2LFM1M007). The problem we are havign is that our XI system is still running on NW700 and it doesnt have this segment defintion. Since the upgrade we are getting an error in transaction RFC complaining about the new segment definition E2LFM1M007 everytime we try to send a vendor from ERP to SUS using BD14. Is there a way we can deactivate the new segment definition E2LFM1M007 in segment type E1LFM1M?
    Thanks,
    Abdul.

    Hi Abdul,
    Actually it does not matter what are your systems' versions, PI can always handle an IDoc properly. All you need to do is perform the following steps in your PI system:
    1. Log on to ABAP stack, go to t-code idx2, find your ECC system and that particular IDoc (I believe this will be CREMAS) and delete its metadata.
    2. Log on to Enterprise Services Repository, find your SWCV where the IDoc definition was loaded, and load it again from your ECC system, then activate the change.
    3. If necessary, also adjust the message mapping to use/not use the new segment. Activate your changes.
    Once you have these steps completed, you are ready to retest your scenario and say goodbye to the error.
    Hope this helps,
    Grzegorz

  • IDOCS: Segment Definition and Segment Type

    Hi Gurus,
    We are working on IDOCs and trying to send a Location Master IDOCs to Third party system.
    1. In the IDOC print preview we are in a position to see the IDOC segment type Ex: E1TPLOC but customer is asking for Segment definition E2TPLOC.
    When we go through the documentation:
    u2022     Segment Type consists of Segment definition with Version and Release.
    u2022     Segment Definition will contain the Field names
    u2022     E1TPLOC, E1TPDLH, E1KNVAM, E1TPTRM & E1TPSHH Segment types with concerned Segment definitions are
                         E2TPLOC,E2TPDLH, E2KNVAM
    How to see the Segment definition types?

    Hi,
    You can see the documentation in the transaction WE60 by giving the IDOC Basic type and extension if you have any.
    E1 and E2 are the same, when you see the definition of the segment the naming convention will be E2 and when populating the data it will be E1.
    I believe he is asking the segment definition alone, you go to WE60 transaction and give the inputs and click the parser button and that will give you the definition of the idoc and which you can share it with your partner.
    Thanks,
    Mahesh.

  • Segment definition in an IDOC type

    Hi,
    What does Maximum number and Minimum number stand for in an segment definition within an IDOC type? I think there are two options.
    1. the occurence number of the segment type in an IDOC type defintion
    2. the occurence number of the segment data of a special IDOC
    1 or 2. Please suggest ... It will better if there is any example for me to understand it. Thanks.
    Regards

    Option 2 is correct from my observation.

  • Inbound side idoc segment defination is showing instead of segment type

    Dear all,
                 i created z idoc ZMIGO961 and  z segment ZJ1IW in both source and destination, when i send the idoc from the source to destination, in destination it is showing the segment defination i.e ZJ1IW000 in idoc instead of segment type ZJ1IW in  my idoc.
    plz help .
    regards,
    Edited by: manoj kv on Apr 4, 2010 9:18 PM

    Hi manoj kv 
    segment defination :  ZJ1IW000  indicates segment is ZJ1IW & version is 000
    Go to T code we31  in Destination System
    Enter the Segment Name and Check Defination Screen.....then you will see the segment defination :  ZJ1IW000
    Hope above info helps... you..
    Thanks
    Ramesh

  • Add IT0006 custom fields for segment definition E1P0006 basic type HRMD_A06

    Hello!  I am am trying to determine how to bring in our custom fields from IT0006 into our IDOC's for message type HRMD_A basic type HRMD_A06 without performing a custom SAP modification.  I was able to create a new segement definition called Z1P0006 and replace the SAP standard E1P0006 IDOC segment defintion in table T777D for infotyp 0006 to Z1P0006.  However, I receive a message that I must not maintain this IDOC segment manually and instead you must maintain infotypes and their individual elements by using the transactions for processing infotypes: PPCI or PM01 (Infotype copy transaction for personnel administration). 
    Does anyone know of a way to bring in the new custom infotype fields from i.e. reimport the table structure for IT0006 into the segment definition without a custom SAP modificaiton?  I would really appreciate any help on this topic!
    Thanks!
    Holly

    unfortunately, the standard do not provide the infotypes for the HR-TM (Time Management), that
    are between the structures i must send in the other system sap.
    Ok, I have never delt with Time data in HRMD_A. Probably this is the case then
    Ok,now i've checked the filter in BD64 and the tables BDCP2, CDHDR and CDPOS but it seems
    all correct!!
    By checking Filters I mean that confirm if you have added Time Infotypes there (just
    making sure). If data is appearing in BDCP2 that means there is no problem in Change
    pointer creation, Just ruling out possibility.
    Try with an user exit it's a good idea, but why in the PFAL the idoc (with the custom segments)
    is created without problems and in the BD21 no??? This is very strange
    1) Well BD21 uses the Function module (TBDME for HRMD_A) which read change pointers and
    create IDOCs. So now if you have extended Segment you have to add your population code
    here somewhere.
    2) PFAL is Push program, my assimption here is you have wriiten some piece of code to
    populate Additinal segments data here? Otherwise IDOC will not be populated
    automatically.
    Let me know what you think.

  • IDOC - add new field in in existing segment definition

    Hi,
    For segement type say Z1MARA1 if we need to add a new field in segement definition say Z2MARA1 SAP is not allowing to add new field if we tried to cancelled the realsed 30E it not allowing since the SAP realease which we are working is 640 so only we can create new segement defination with version Z2MARA1001 with new field added but issues is that the partner Profile for outbound parameters the Segment release in IDOc Type is 31I so if we change this segment release in IDOC type to new version ie., 640 then it will pick all the new segement associated with it due to which the the format in which we pass the segements to third party will change so is there any way to use the existing segment definition which is release 30E & add addition field to it. Only one way I found is that when i try to cancel the released message is trigger so in the debug if I make it success it allows to add new field in existing segment definition but which is wrong way of doing is there any way we can used same segment definition & add new field without adding new version & new released.
    Thanks in advance.
    Rajeev

    Varma,
    I know that we can add new segement with new version my question is existing segement definition can we add a new filed because in partner profile we specified release 31i so even we create new segement type then version will be 640 so it will not pick the latest version.
    Thanks
    Rajeev

  • Segment Definition Name in IDOC

    Hi Gurus,
       I am new to IDOCs.
       I need to create a new segment type in WE31.Its name should be say Z1TEST and I want to have the segment definition name to say Z2TEST.Currently the segment definition name is blank and disabled and when I save the segment type, the segment definition name, by default , comes as Z1TEST000(as per my example).
       Can u please suggest any ways of putting my own naming in the segment definition.
    Thanx in advance.

    hi,
    Defining Segments
    Use
    This is where you define segments so that you can assign them.
    Procedure
    From the Commission System screen, choose Master Data -> Segment Assignment -> Segments -> Maintain.
    Choose a segment type and an effective validity date.
    Choose Save.
    Result
    You have created a representation of the commission calculation of relevant data from the external policy management system. You can now assign the segments.
    A data segment contains a collection of fields from SAP tables. A data segment may hold master data or data from an application document. A segment is a collection of all the records of one type. A segment may contain data from a single SAP database table, or it may combine related data from multiple tables.
    A checksum is basically a one-way hash of whatever data arguments you supply.
    Regards,

  • Error : idoc xml record in segment attribute instead of SEGMENT

    hi friends
    can any one solve my problem. In message mapping I mapped with a IDOC. In message mapping I Mapped all the fields. Still I am getting the error as "IDOC XML RECORD IN SEGMENT ATRIBUTE INSTEAD OF SEGMENT" I dont know about this error.
    can any one solve this problem please . I am doing this scenario since 5 days. help me..
    thanks in advance
    Vasu

    Hi Vasudeva,
    Can you pls provide little more details on the scenario ?
    Also at which place are you getting this error ?
    Assuming that you have created a message mapping for some source message to target IDoc message, here are some suggestions.
    1) Test the message mapping. (are you getting the error in testing itself ?)
    2) Apart from mandatory fields' mapping, are there any constants to be assigned to some IDoc fields ? Or any node to be disabled ? Or any such additional things...
    Regards,

  • How to cancel the release of the current segment definition-WE31-IDOC?

    Hi Experts,
    Am trying to add a new field to a existing custom segment type/defination. This segment type is already using in the system.
    So, went to WE31 and pressed the PENCIL button for changing/adding my new field, but am geting the below message,
    (1)pls let me know that does it mean CANCEL the release (Menu>Edit>Cancel Release)? if so, Can I go ahead and use this CANCEL the release? do I need to take any pre-requisites as this segment is already relased?
    (2)But, you know there is another option saying 'ADD VERSION-Shift+F5', if I choose this option, its also taking me to a screen where in I can add new fields so which is correct option for me is it either (1) or (2)?
    Current segment definition Z_segment_defination can no longer be changed
    Message no. EA666
    Diagnosis
    The current segment definition Z_segment_defination of segment type Zsegment_type is already released.
    System Response
    The segment definition cannot be changed.
    Procedure
    You can either add a new segment definition or cancel the release of the current segment definition.
    Thank you

    so i tried to CANCEL the release by goiong menu pathEdit-->Cancel the release, but am getting the below error, How to fix it to add my new field?
    Error while resetting release of segment
    Thank you

  • Error : idoc xml data record : in segment attribute instead of SEGMENT

    hi all
    i am doing the file to idoc scenario. in that i am getting the error
    error : IDOC XML Data record : In segment attribute instead of SEGMENT
    i am doing this scenario since 4 days.
    can anyone help me
    thanks a lot
    Vasu

    in ref. to my post in your earlier thread.
    >>>>
    in your mapping check, in your IDOC if Begin , segment etc are mapped to a constant say '1'.
    Also ref: In segment IDOC attribute I occurred instead of SEGMENT

Maybe you are looking for

  • Firefox will not open and crashes after my lastest Windows 7 update on April 21st, 2015

    After I completed the latest Windows 7 Update I have not been able to access Firefox. Upon opening the program I am given "Firefox has stopped working" message as the image shows. Never had any issues with Firefox before. I have Uninstalled and Reins

  • Best practice in datawarehousing

    This is the scenario for the client I am working with. They are taking data in the obiee reports , directly from essbase cube. ETL used is SSIS and schedular is Control M . Some times our client faced issue of server going down , still they are not d

  • Widget clocks, counters,   iweb

    HI All ? So i have 2 I web pages going cjthedjmanc.om and http://web.me.com/daycareinfo2/Site/Welcome.html/ My ? I need to add things, like counters, clocks, But I went to widgets down loaded a clock but my ? How do i place it on my web page iweb bui

  • Transaction type not delivered even after generating receipt

    HI Gurus, I have a requirement wherein I am creating 2 POs. In 1st PO my Ship-To-location is 'LOC1' and for the second is 'LOC2'. Now after the PO is approved and when I generate receipt in purchasing for loc1 after the receipt gets generated in the

  • How to retrieve complete Document list using RESTful webservice

    Hi, I want to retrieve the complete list of documents from the CMS. When made the below call, I am getting only 10 documents(which is default). If included the parameter 'limit' I am getting a max of 50. How can I get the complete list if my CMS cont