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.

Similar Messages

  • 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 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

  • BEGIN and SEGMENT Attributes

    Hi,
    I have JMS  -> SAP PI -> IDOC and IDOC -> SAP PI -> JMS scenarios.
    So I imported IDOCs into SAP PI. However I see some additional attributes getting added in the IDOC structure, BEGIN and SEGMENT.
    My doubt:
    1) The original IDOC (in SAP ECC system) does not have them, how/ why are they coming in SAP PI?
    2) As they are mandatory, what should I map to them? Some threads say that map constant 1; why only 1?
    Thank you,
    Pankaj.

    Hello Pankaj,
    the IDoc is rendered into XML and it is optimized for the XML-parser. The parser should read the xml as fast as possible, so it is necessary that the xml-data is read only once, this is done by an one-pass XML-parser. The customer can define the segment names and the segment fields arbritrarily, so the beginning of the segments must be marked with an attribute. This is named "SEGMENT". But in XML the attributes must consist of name + value. Now the segment attribute could have got the value
    of the segment-number, but  this is not practical. Assume that you want to reduce one segment in the middle of the xml, than you have to renumber all segments of the idoc xml (this is very difficult to implement with an XSLT programm). So it
    was decided by SAP to set the value of the attributes to "1".
    The idoc-tag must have got also an attribute "BEGIN" to distinguish it from a segment field called "IDOC".
    I hope that will answer your questions.
    Andreas Dahl

  • Transport.of SAP script form , printer def and device type is not enaugh

    I transported the SAP script form , printer definition and device types of a thermal printer.
    On original system the printout is ok but on target system not. What should I do?

    Thank you for your fast answer
    As the matther of fact I am technical person. I think Output type belongs to application. However the difference is visible in  se71 ->Utilities->Printing test -> output device ->print preview.
    As I wrote I transpored corresponding. SAP script form , printer def and device type

  • How to find IDOC Function Module for Basic Type:ORDERS05

    Hi,
    What is the Transaction Code to locate the Function Module linked to the IDOC Basic Type & IDOC Message Type?
    Appreciate Your Help.
    Thanks,
    Kannan.

    Hi Seshu,
    Thanks for your reply. While creating a Custom IDOC, How do I link the IDOC Function Module and Basic Type. Appreciate Your Help.
    Thanks,
    Kannan.

  • 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

  • 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.

  • IDOC type and segment's BasisRelease number

    Dear expert,
    May i know is there a way to change the IDOC type and segment's BasisRelease number when i try releasing IDOC. Any special TCode?
    Please comment.
    Thanks in advance.

    FYI, I'm CRM5.0, SAP_BASIS release 700.

  • Segments E1BPACGL09 and E1BPACTX09 in Idoc type ACC_DOCUMENT03

    Hi,
    Is it mandatory to use E1BPACGL09 and E1BPACTX09 as the same time for idoc type ACC_DOCUMENT03 and message type ACC_DOCUMENT ?
    If we use both the segment at the same time then at the time of posting this idoc through BAPI_ACC_DOCUMENT_POST, this idoc ending up with the error message "FI/CO interface: Line item entered several times".
    On further debug i found this error message comes if we use both the segments.
    In segment E1BPACGL09 we have value for fields
    ITEMNO_ACC
    GL_ACCOUNT
    TAX_CODE
    COSTCENTER
    ORDERID
    DE_CRE_IND
    In segment E1BPACTX09 we have value for fields
    ITEMNO_ACC
    ACCT_KEY
    TAX_CODE.
    Thanks,
    Asit Purbey.

    Hi
    I see that you have problems with fields related with taxes. So, check if SAP Note 367175 - No tax calculation function in FI/CO BAPIs is relevant.
    I hope this helps you
    Regards
    Eduardo

  • 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,

  • 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

  • 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

  • Populating the custom segments for the Basic type attached to HRMD_A (IDOC)

    Hi,
    I've enhanced a few infotypes and want the new fields to be available in an IDOC created through the program RHALEINI.
    Here are the steps I followed.
    Step 1 :(we31)
    We created new segment Z1IT023 , containing all the fields from infotype 0023 along with the custom fields added.
    Step 2 :(we30)
    We created an extension of IDOC type HRMD_A07 by name HRMD_EX to include this segement.
    Step 3 :
    We added an entry in table EDIMSG against message type HRMD_A , with base type : HRMD_A07 , extension : HRMD_EX , version : 700
    Step4 :(we20)
    Now , we made changes to partner profile by adding entry for message type HRMD_A with base IDOC type as HRMD_A07 and extension as HRMD_EX
    Step5:
    We changed the entry in table T777D and specified the IDOC segment as Z1IT023.
    Step6.
    We then tried to execute the report RHALEINI to generate the IDOC. The IDOC got created, but it didn't have the data for the segment Z1IT023.
    In fact, there is a different solution to this... by adding the custom segment(containing nly the new infotype fields) as a child of the original segment E1P0023 and then writting code in the user-exit to populate the segment, but our intension is to have a single segment with all the infotype 0023 data. Besides, I believe in HR, making an entry in T777D should free us from writing any code for populating the IDOC segments.
    Can anybody please suggest me, where am I going wrong. How can the new segments be populated automatically.
    Thanks in advance.
    Sujit.
    Responses will be suitably rewarded.

    Hi,
    Did u get any exit to populate the custom segment?
    Thanks,
    San

  • What's the difference between segment filtering and reduced message type

    Hi gurus,
    What's the difference between segment filtering and reduced message type? It seems they have the same functionality: Reduce the segment while idoc is generated.
    Thanks in advance.

    Hi,
    BD53 is for IDoc Reduction.
    this allows you to create a reduced message based upon a standard message type.If you want see mandatory fields. go to T-coe BD53 and give one standard messege type name and eg: matmas
    there mandatory fields will be in Green color..
    And BD56- This transaction is used to filter out segments of IDocs for combination of sender and receiver. This is usefull in scenarios where a standard IDoc with many segments is used but the receiving partner is only interested in some of the segments
    the table related to this transation is TBD20
      please go through below blog you have an idea abt that,
    http://wiki.sdn.sap.com/wiki/display/ABAP/ReducedMessageTypes
    http://saptotal.com/IDoc%20Segment%20Filtering.html
    regards,
    ganesh.

Maybe you are looking for

  • Preview rendering question

    Hey all, Mike the newbie has more questions I imported about 6k images into lightroom and I'm working on organizing them within the collections but my question previews. As I scroll through the library there is a delay in seeing the images as they se

  • Why won't the top row of letters type on mac book pro?

    The top row of letters won't type on my mac book pro and the "b" letter acts as a back space.

  • How to add attribute to Element with SAX

    Hi, I'm parsing XML document with SAX using DefaultHandler. How can I add attribute to start tag?

  • Doc number problem

    Hi Experts, I created a purchase order and when i create (Post) item reciept (MIGO) it ask me that <b>Incorrect doc.no.: $       1. Select document number between 3000000000 and 5000050000</b> Message no. F5151 It has to be mentioned that i put an in

  • WebLogic Apache bridge problems on uploading large files via HTTP post

    I have a problem uploading files larger than quarter a mega, the jsp page does a POST to a servlet which reads the input stream and writes to a file. Configuration: Apache webserver 1.3.12 connected to the Weblogic 5.1 application server via the brid