Mapping to dublicate segments

Hi all,
My scenario  File to IDoc. I am doing the mapping from Flat file to Idoc. whenever I imported Idoc in Message mappin  i am finding the dublicated segments with the same name.  Whether I have to map for all the segments ? If yes which one I have to map to which segment.
thanks in advance.
Regards,
Anjaneya

Anjaneya,
it all depends upon business rules or mapping rules, so first of make sure if you have to map only one segment or not.
If you have to map only one segment, then just map with any one, since they are duplicate and disable the other one by right click on segment and chose disable.
Note: Make your requirement very clear, mapping is not a problem (map to any segment).
Regards,
Sarvesh
****Reward points, if found helpful.

Similar Messages

  • Mapping in idoc segment

    Hi
    I am using ARTMAS04 idoc from sender side in which i have segments and following fields
        E1BPE1MATHEAD(Segment max occurence is 1)
               MATERIAL
        E1BPE1MARMRT(Segment max occurence is 999999)
               MATERIAL
               EAN_UPC
    Even my target side also is ARTMAS05
    My condition for mapping is i need to compare material in E1BPE1MATHEAD segment with material in
    E1BPE1MARMRT if both are same then i should not pass EAN_UPC field to other side, if materials are different then only i should pass the field EAN_UPC to target side.
    What is the logic should i right to meet the above condition.
    I tried by using equals and if logic,but it is not working.
    regards
    raghu

    Hi Raghu
    Try with this
    IfWithoutElse(Not(E1BPE1MATHEAD/MATERIAL equalS E1BPE1MARMRT/MATERIAL)) then EAB_UPC -> Target
    Thanks
    Gaurav

  • Graphical Mapping Problem : Create Segments by conditions

    Hi,
    i have a problem while mapping an incoming invoice to IDoc Invoic02. I had to create some Segments (E1EDP02) on basis of identifiers in the incoming message. I hope the following example i created will help to understand my exact problem:
    EXAMPLE MESSAGE:
    <invoice>
    <document>
    <position>
       <line>
         <posnum> 1 </posnum>
         <IMD>
         <ident> Name </ident>
         <val>   Maxx </val>
         </IMD>
         <IMD>
         <ident> Age </ident>
         <val>   19 </val>
         </IMD>
         <IMD>
         <ident> Gender </ident>
         <val>   Male </val>
         </IMD>
       </line>
    </position>
    <position>
       <line>
         <posnum> 2 </posnum>
         <IMD>
         <ident> Name </ident>
         <val>   Tina </val>
         </IMD>
         <IMD>
         <ident> Age </ident>
         <val>   28 </val>
         </IMD>
         <IMD>
         <ident> Gender </ident>
         <val>   Female </val>
         </IMD>
       </line>
    </position>
    </document>
    </invoice>
    THE RESULT I WANT:
    <invoic02>
    <E1EDP01>
    <SEGMENT> </SEGMENT>
    <POSEX> 1 </POSEX>
      <E1EDP02>
           <SEGMENT> </SEGMENT>
         <QUALF> 021 </QUALF>
         <BELNR> 19 </BELNR> // THIS should be the Age
      </E1EDP02>
      <E1EDP19>
      </E1EDP19>
    </E1EDP01>
    <E1EDP01>
    <SEGMENT> </SEGMENT>
      <POSEX> 2 </POSEX>
      <E1EDP02>
         <SEGMENT> </SEGMENT>
         <QUALF> 021 </QUALF>
         <BELNR> 28 </BELNR> // THIS should be the Age
      </E1EDP02>
      <E1EDP19>
      </E1EDP19>
    </E1EDP01>
    </invoic02>
    I tried to different ways to get the above result but i failed
    My first try:
    ident      -------|--- equalsS ------ createIf ---- E1EDP02
    Constant[000] --------- SEGMENT
    Constant[Age]--|
    ident      -------|--- equalsS ------ ifWithoutElse ---- QUALF
    Constant[Age]--|             |          
                           |
                        Constant[021]
    ident      -------|--- equalsS ------ ifWithoutElse ---- BELNR
    Constant[Age]--|             |          
                           |
                           val
    Result:
    The E1EDP02 Element will not created reliable. Sometimes it is there sometimes not dunno why ? Any Idea ?
    My second try:
    IMD -------------- E1EDP02
    Constant[000] --------- SEGMENT
    ident      -------|--- equalsS ------ ifWithoutElse ---- QUALF
    Constant[Age]--|             |          
                           |
                        Constant[021]
    ident      -------|--- equalsS ------ ifWithoutElse ---- BELNR
    Constant[Age]--|             |          
                           |
                           val
    Result:
    Now every E1EDP01 Element has two E1EDP02 Elements. One correct one and an empty one with only a segment element. Is there a way to delete this empty elements ?
    Any ideas to create a working mapping ?
    Thanks

    @Liang Ji 
    When i do this i have only the first E1EDP01 Element
    @Tarang Shah
    Which function i had to use for this ?
    Thank you

  • Idoc error mapping error for segment "E1EDT13 006" in DESADV idoc

    Hi SAP Gurus,
    DESADV IDOC for few articles is not getting passed from SAP to legacy system. It is missing one segment"E1EDT13 006" for goods issue.
    Why is this mapping error happening. How can this be resolved.
    Regards.
    Sumi

    Hi Nsangle/SAP gurus,
    Thanks for  that. But, I have already compared the failing idoc with the successful one. It's the segment E1EDT13 006 missing in the wrong idoc. I have already added that idoc and reprocessed it.
    But, I wanted to know why such kind of idoc segment missing/ mapping error happens.
    Regards.
    Sumi

  • Mapping of multiple segments of  Idoc HRMD_A06 to flat file

    Hi Experts,
               I am doing an Idoc to file scenario. Idoc i am using is HRMD_A06, which is having around 38 segments, contains the hiring action details of multilpe employees (Infotypes 0000,0001,0002,0003,0302,1001).
              When i have send the idoc , I am getting the file in the destination path, but having only one line which is having the the details of first employee.
              As the segments are repeating my mapping is not proper. Can anyone please help me with some details for mapping Idoc to file, when the segments repeats in a single idoc.
             Please also give me the details regarding the destination message interface.

    Hi
    Please go through below link,
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    Its very simple to do some changes in your existing mapping and some occurance changes.
    Verify that if your file message structure has 0..Unbounded Occurance.
    Use 0..Unbounded and map accordingly to target structure with 0...unbounded..
    and test with sample xml in message mapping with multiple idocs data and see whther u get multiple records in target
    Also if you need each sengment on new line with FCC then refer below links
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    Edited by: Swarup Sawant on Jan 24, 2008 10:09 AM
    Edited by: Swarup Sawant on Jan 24, 2008 10:09 AM

  • BIC Mapping creates wrong  segment sequence

    Hello,
    i have a problem with Seeburger BIC Mapping  invoic02 => Edifact D96a. From the PI Message mapping is the following source structure
    Segment             Value
    S_BGM
      C_C002
         D_1001          380
         D_3055          9
    D_1004              91156548
    BIC Mapping creates this wrong Edifact Code
    BGM380::991156548'
    correct code would be:
    BGM 38091156548+9'
    What am I doing wrong? Or how can I change the sequence in the BIC?
    kind regards
    Tobias
    Edited by: Tobias Landbeck on Aug 3, 2010 3:27 PM

    Hello Tobias,
    I doubt,if you can achieve the order what you have mentioned because as per the structure of EDIFACT ,the order:
    BGM380::991156548'   is correct.This is the structure: 
    BGM
       |_C002
       |     |__1001
       |     |__3055
       |_1004
    + indicates element at different level,  : indicates element at same level.
    If you edit BIC mapping to change delimiter rules,then this would be reflected in all fields.
    The only option to achieve this ,would be to change your EDIFACT xsd ,but if you change standard EDIFACT structure ,you need to adjust your BIC mapping accordingly.In this case,EDIFACT structure should be:
    BGM
       |_C002
       |     |__1001
       |_3055
              |__1004
    Thanks.
    Regards,
    Shweta

  • 856 EDI mapping for G_SHL Segment

    Hi Guys,
      I have a question regarding the G_SHL segement mapping in DELVRY01.-- EDI856 scenario.
       I have this mapping for other customer now i need to implement the same for new customer.
    In that mapping they created 3 duplicalte G_SHL .
    For 3rd G_SHL they created a UDF for generating ITEMS, PACKS, and their count by taking the inputs as E1EDL24 and TDLINE.
    what is the need of these two inputs.
    Regards,
    Sandeep

    I think TDLINE is just a free field to fill data as description and stuff like that, on the other hand the EDL24 contains all the position data and packing data
    for example, if you have 2 positions in the delivery and they're packed in two packs, you would have 4 EDL24, the 2 positions and the 2 positions within the packs  (maybe some reference to how the  pack is done?)  : (00001), (00002), (90001), (90002)
    I think that's easier than to check for EDL37 and the sub EDL44 (Pack and Item segments)
    but since the TDLINE can be used in many ways as reference you should probably check the logic and any document for that development
    By the way, i was currently requesting in one of my questions how to create a UDF for the Pack, items structure, could you provide more info about that? thanks!

  • Mapping - Referencing another segment

    Hello,
    I have an incoming XML document that I am mapping into an IDOC.
    <ASN>
    ...<Item>  0...999
    ........<ItemID>
    ........<PO Reference>
    .............<PONum>
    .............<POLine>
    ...<barcode>  0...999
    .........<handling Unit data>
    .........<delivery item>
    .............<itemID>
    .............<quantity>
    The <item> and <barcode> segments are on the same level.  And they can each occur 0..999.  So I can have 2 item segments and 10 barcode segments for those two PO/Lines.  Or I can have 10 PO/Lines with only 3 barcodes...etc.
    Using the matching <itemID> fields I'd like my mapping to fill the barcode segment of the IDOC with all the <barcode> data but also reference the matching <PONum> and <POLine> from the <item> segment. 
    How can I write a "lookup" that will find the matching <itemID> so we can match the data for the IDOC segment?
    Thanks,
    Matt
    Edited by: Matthew Herbert on Aug 4, 2011 9:49 PM

    Thanks for the suggestions but this solution only works if the <item> and <barcode> segments are in order.  I cannot guarantee that the documents will be sent in a sorted order.
    Which means I could get a document like this
    <ASN>
    ...<Item> 0...999
    ........<ItemID>1
    ........<PO Reference>
    .............<PONum>450000123
    .............<POLine>1
    ...<Item> 0...999
    ........<ItemID>2
    ........<PO Reference>
    .............<PONum>450000555
    .............<POLine>1
    ...<Item> 0...999
    ........<ItemID>3
    ........<PO Reference>
    .............<PONum>450000123
    .............<POLine>2
    ...<barcode> 0...999
    .........<handling Unit data>
    .........<delivery item>
    .............<itemID>1
    .............<quantity>10
    ...<barcode> 0...999
    .........<handling Unit data>
    .........<delivery item>
    .............<itemID>2
    .............<quantity>50
    .........<delivery item>
    .............<itemID>3
    .............<quantity>44
    In the above example the EqualS/IF/Split function solution will fail. 
    What I really need to is to be able to "lookup" the value in PONum when the barcode <itemID>  matches the line <itemID>.
    Can this be done? 
    I can write a Java UDF that will loop through everything in the <line>-<itemID> to get the correct data but if the document has 100 lines and 50 barcodes.  I will have to loop through 100 <lines> for each of the 50 barcodes. This could be a performance problem. I'm hoping there is a better solution for this.
    Thanks,
    Matt

  • Mapping: Each IDoc Segment to single new IDoc

    Hi, can someone provide me with infos on how to solve this problem?!
    Do i have to use BPM and when, is there any tutorial on this?!
    We have two different Segments in IDoc and for each occurance they should be collected in two different IDocs, so that each contains one type of segment.
    Can u please help?!
    br

    Hi Fritz,
    You can use collect pattern when there is requirement of collecting multiple messages .For example i have an applicaion where i can send purchase order from different vendors.Now i wish that at the end of day i get one consolidated purchase order for each vendor instaed of multiple orders from a particular vendor then i can utilise it.Correlation will be required as the messages have to be grouped based upon a particular Information like in our example its vendor
    Collection of IDoc to Single File
    IDOCs (Multiple Types) Collection in BPM
    Collecting IDocs without using BPM By Stefan grube's
    Collecting IDocs without using BPM
    BPM CollectPattern..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure
    Posting multiple IDocs with Acknowledgement
    Also have a look at these seminars,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
    IDOCs (Multiple Types) Collection in BPM - Collection of IDoc to Single File
    Using a BPM to collect messages for a set interval of time
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bde6b
    Also this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Regards,
    Vinod.

  • Not populating Dublicate segment in MM Test tab

    Hi XI gurus,
    I am unable to get dublicated segment and there values in the target structure in MM Test tab..where as original node values are populating
    I mapped dublicated segment node with constant and mapped target field wiht source field.. this segment occurance is 1..1
    IDOC
    ..E1EDK
    ..Seg1
    ....F1
    ....F2
    ..E1EDK2----1...1
    ....SEGMENT--Required
    .....Field1----0..1
    I dublicated E1EDK1 node and mapped as mentioned above: any idea?
    Thanks

    Hii Rajiv,
    as per Santhosh said u can change the idoc structure from 1..1 to 1 ..unbound..
    you still have doubt check this weblog
    /people/sameer.shadab/blog/2008/07/22/chunking-of-idoc-segments--using-xslt
    regards,
    Balaji

  • Mapping EDI ISA06 segment to BPEL element

    Hi
    We have created a BPEL process for PO Inbound using X12 4010 EDI Version.
    One of the trading partner send their EDI document and place them in B2B server.
    B2B server has been setup to handle different partners.
    One of our BPEL process will deQuee the messages from B2B server.
    One of our requirement is to Map ISA06 segment value to BPEL one of element.
    Where these values will be stored in this process and how can acchieve this requirement?
    Regards
    Kiran Akkiraju

    Hi Kiran,
    Actually If you see the EDI-XML generated by the B2B.The
    <Internal-Properties>
    <Data-Structure Name="Interchange">
    <Lookup Name="InterchangeSenderID">SOME value </Lookup>
    <>
    section will have the value you are looking for i.e the ISA06 segment.
    If you are using the 850.ecs and 850.xsd shipped with the product then the ISA segments are not there.
    However the edi-xml generated by B2B has that value.
    Now while doing the Mapping we have to extract the value from Internal properties->datastructure->lookup.
    I hope these inputs would help you get started.
    One more thing I wanted to know are you using XML Gateway from APPS Adapter
    for invoking Oracle APPS.
    Regards
    Lalit

  • Assignment number in SO Header maps to which segment of ORDERS05?

    Hi All,
    Can anyone let me know the ORDERS05 IDoc segment that corresponds to the Assignment number field in sales order header Accounting tab?
    I need to specify the assignment number while creating a new order through IDoc.
    Thanks.
    Regards,
    Riyaz

    Hi,
    Use transaction we60 to find the relevant documentation for your idoc type.
    regards,
    Jakub

  • How to map idoc segment field E1IDB02-FIIKONTO with BSEG-ESRNR.

    Hi,
    I have searched for lot of threads in the forum , and also i tried myself but i am not able to map this fields segment with my logic, so please anyone kindly contribute in mapping idoc segment field  with the logic given below:
    idoc type :PAYEXT  outbound idoc.
    message type: PEXR2002
    This is my logic: i need to populate the ISR number(BSEG-ESRNR  ) in idoc segment field( E1IDB02-FIIKONTO)
    DATA : str1 TYPE string,
          len1  TYPE i,
          len2  TYPE i,
          str2  TYPE string,
          str3  TYPE string.
    str1 = '01-1234-4'. ---> BSEG-ESRNR  "ISR Subscriber Number
    REPLACE FIRST OCCURRENCE OF '-' IN str1 WITH '_'.
    REPLACE ALL OCCURRENCES OF  '-' IN str1 WITH space.
    CONDENSE str1.
    len1 = STRLEN( str1 ).
    IF len1 LT '9'.
    len2 = '9' - len1.
    CASE len2.
       WHEN '1'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '00'.
       WHEN '2'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '000'.
       WHEN '3'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '0000'.
       WHEN '4'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '000000'.
       WHEN OTHERS.
    ENDCASE.
    ELSEIF len1 EQ '9'.
    REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '0'.
    ELSEIF len1 GT '9'.
    REPLACE ALL OCCURRENCES OF '_' IN str1 WITH space.
    CONDENSE str1.
    ENDIF.
    Thanks in Advance.

    Resolved.

  • XI Mapping to Idoc - Multiple Identical Idoc Segments

    I am debuuging XI mapping. I see the same idoc segments in the mapping multiple times. However, the way the fields are mapped in each one is different.
    Why? Is this to handle different scenarios?
    Thanks.

    in IDOCs each segment could occur multiple times. Lets say if its a address segment, u could see it multiple times for billing, shipping etc etc. so, depending on business logic the mapping will change. Some fields you'll map to one segment and some fields to some other segment.
    --Archana

  • Inbound Invoice idoc segment feilds mapping to SAP feilds

    Hi,
    Could you please help me to find out the tables and feilds in SAP for the inbound invoice idoc type INVOIC01. I need to map the idoc segment fields with SAP fields and respective tables.
    Thanks in Advance
    Satish

    Hi Satish,
    That's quite a big case to get such mapping - why would you need it really? You can process Idoc with std process codes and you will see the std mapping then happening.
    You can also go through logic of processing modules:
    Function Module Name          Short text for function module
    IDOC_INPUT_INVOIC_FI           EDI: Invoice Receipt (INVOICE)
    IDOC_INPUT_INVOIC_MM           EDI: Invoice Receipt (INVOICE)
    IDOC_INPUT_INVOIC_MRM
    For sure you will get RBKP for header, RSEG for items, RBTX for taxes and some more, depending on what you get in the invoice and what are your booking and matching processes.
    Best Regards,
    Tomek

Maybe you are looking for

  • CD/DVD Drive Not Recognized

    I have a Dell Laptop with Vista. After installing iTunes the CD/DVD drive is no longer recognized by the computor. I have to remove the upper filter for the CD/DVD drive using 'regedit', reboot the computor and the drive is recognized again. But, iTu

  • Location services not working on Mountain Lion

    I am running OS X Mountain Lion and ever since I have updated location services haven't been working how they were in Lion. I have location services on in System Prefrences. When ever I encounter this problem I am using Wi-Fi. Please Help!

  • Textpad array problem

    okay hes my URGENT problem im trying to learn how to output user entered details into into a textfile so i can edit those details after i close the program however i dont have time to search the net for a quick tutorial on this so please can someone

  • Openreach Engineer ?

    I am expecting an openreach engineer to visit my home in a few weeks to upgrade my current broadband from ADSL to Fibre. I understand that the process involves changing the faceplate on the BT Master Socket and connecting a new modem to the new facep

  • Multisim crashes when using In Use List

    If I begin a new schematic in Multisim, I can use the In Use List on the toolbar to quickly place components.However, if I open an existing schematic, rename it using "Save as.." and then attempt to use the In Use List, the program crashes. The part