Using PI to map IDoc BENEFIT3 to EDI 834

Has any used PI/XI to map IDoc BENEFIT3 to EDI 834?  We are looking to use this approach but have had problems finding a standard map.  You would think SAP would have one since they stand by their BENEFIT3 IDoc being sufficient to map to the 834.  This will take forever to do it from scratch or even without an example.  Help please.

Hi
You can do 1:n multimapping
in message mapping in messages tab ..add both the structures in target tab and do the mapping
and in operation mapping add both the message interface on the target side
PLease go through this blog
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Similar Messages

  • IDOC DELVRY05 TO EDI 856 - Mapping problem

    Hi all,
    i'm currently working on a outbound mapping with the delivery idoc (DELVRY05) and the EDI 856 (Advance Shipping Notice Definition)
    The problem is that i can't map the items for every pack in the structure because the ocurrency doesn't match.
    The EDI 856 has a segment called G_SHL (ocurrence 0.200000), that i replicated 4 times for shipping, order, pack and item data
    And this segment has a subsegment called  G_SHL/S_HL (ocurrence 0.1)
    RESULT DESIRED GIVEN BY THE CLIENT: (1 pack/1item)
    3     HL1*S~                        ======> S: shipping, 1 hierarchy)
    4     TD1CTN251***G223.997*LB~
    5     TD5*2ABFSM*CC~
    6     REFBM003030987~
    7     REFCN086044619~
    8     DTM01120080128*180610~
    9     DTM06720080204~
    10     FOB*PP~
    11     N1SFStiefel Labs~
    12     N4DULUTHGA*30096~
    13     HL21*O~ ======> O: order, 2 hierarchy, 1 was the previous hierarchy)
    14     PRF*4064561~
    15     HL32*P~ ======> P : Pack, 3 hierarchy, 2 was the previous hierarchy
    16     MANGM00000734620052976193~
    17     HL43*I~  ======> I: Item , 4 hierchay, 3 was the previous hierarchy
    31     LIN*UP073462150651LT45X5147ND00145150605~
    32     SN1*12EA~
    33     DTM03620090930~
    34     HL52*P~  ======> P : Pack, 5 hierarchy, 2 was the previous hierarchy
    35     MANGM00000734620052975189~
    36     HL65*I~ ======> I: Item , 6 hierchay, 5 was the previous hierarchy
    37     LIN*UP073462150651LT45X5147ND00145150605~
    38     SN1*12EA~
    39     DTM03620090930~
    40     HL72*P~ ======> P : Pack,7 hierarchy, 2 was the previous hierarchy
    41     MANGM00000734620052975196~
    42     HL87*I~ ======> I: Item , 8 hierarchay, 7 was the previous hierarchy
    43     LIN*UP073462150651LT45X5147ND00145150605~
    44     SN1*12EA~
    45     DTM03620090930~
    46     CTT*8~
    47     SE479220014~
    As u see, all packs belong to "2 hierarchy" (order), and items to their correposding pack
    (has a comment, the "hierarchy number" is always given by a counter so u won't find the exact number again)
    so, the client wants us to create an structure that is like this..
    1º Pack
    1º item
    2º item
    2º Pack
    1º item
    2º item
    (the example has only one item, but they say that is going to be with many items)
    - The problem is that the structure data of the Idoc doesnt match EDI 856 structure
    E1EDL37 (0.99999)  -
    Pack data -
    G_SHL (0.200000)
    E1EDL37/E1EDL44 (0.99999) -
    Item data -
    G_SHL/HL (0.1) <====
    i was doing different G_SHL for pack and items but that leaves me with a wrong structure, and with all the hierarchy data wrong for items (since the mapping can't see which item belong to his pack)
    1º Pack
    2º Pack
    3º Pack
    1º Item
    2º Item
    3º Item
    - How can i map the structure Pack/item if in the idoc got too many item positions for only one EDI corresponding segment??
    Thanks in advance!

    Alains,
    We have the same tear, pack and item problem with one of our customer in one of my project. To acheive this result with the standard schema is not possible because this is a custom one.
    So I would suggest to change the schema in BIC like the occurrence and within the third G_SHL you should have S_HL and within this you should have a S_HL so that for every pack you will have multipe items.
    The bottom line is to have the schema as required by your mapping. Once you change the schema deploy the maps in J2EE and use them else it will throw an error in RWB.
    Regards,
    ---Satish

  • Problem with mapping [Idoc to EDI]

    Hi experts,
    i am facing a new problem in my mapping (idoc to edi scenario)
    my target is as follow:
    InvoiceDME
    >Invoice 1..1
    >>InvoiceHeader 1..1
    >>>IncotermsCode 1..1
    My Idoc is as follow:
    IDOC
    >E1EDK17 0..20
    >>QUALF
    >>LKOND
    >>LKTEXT
    There can be 2 scenarios in my source:
    1st:
    IDOC
    >E1EDK17
    >>QUALF = 001
    >>LKOND = lkond001
    >>LKTEXT
    2nd:
    IDOC
    >E1EDK17
    >>QUALF = 001
    >>LKOND = lkond001
    >>LKTEXT
    >E1EDK17
    >>QUALF = 002
    >>LKOND = lkond002
    >>LKTEXT = lktext002
    If QUALF=002 then I have to take both values of LKOND and LKTEXT and map them to incotermcode
    else if qualf=001 alone, then map LKOND to incotermcode
    my mapping is as follow:
    http://www.flickr.com/photos/30317046@N05/2862446903/
    as you can see, the problem is if i am in my second scenario, i get the wrong value in incotercode (lkond001 instead of the concatenate of LKOND and LKTEXT for QUALF = 002)
    Do you have any idea how I can solve this??
    Thanks a lot,
    Regards,
    Jamal

    Actually i used java mapping:
        //write your code here
    try
         String returnString = "";
         for (int i = 0; i < QUALF.length; i++)
              if (("002".equals(QUALF<i>.trim())))
                   returnString = returnString +" "+ LKOND<i> +" "+ LKTEXT<i>;
                   result.addValue(returnString);                   
    catch(Exception e)
         e.printStackTrace();
    and the condition on the 'count' of QUALF (if = 2 then else)
    Thanks,
    Regards,
    Jamal

  • Functional Specs for Mapping Idocs to EDI

    Hello Friends ..
    Am new to world of EDI...
    can any one explain ..wat do u mean by devolping functional specs for mapping IDocs to EDI..
    If you can provide me with examples or if you guys can suggest any site where i can browse some material about EDI..i wud really appreciate...
    Best Regards

    Hi Rohan,
    >>>do u mean by devolping functional specs for mapping IDocs to EDI..
    you have to know which idoc fields you have to map to EDI message fields
    take a look at those links:
    they will show how do you map different IDOC message types to EDI messages
    <b>IDOC - EDI mappings:</b>
    http://www.sapgenie.com/sapedi/mapping.htm
    <b>Analysis of the compatibility of EDIFACT messages in the form of SIMPL-EDI with the IDoc Interface:</b>
    http://www.sapgenie.com/sapgenie/docs/SIMPL-EDI-E_ORDERS.doc
    Regards,
    michal

  • IDOC Invoices and EDI Invoices

    Hi Gurus,
    Please help me in understanding the flow of IDOC Invoices and EDI Invoices.
    What is the purpose of using IDOC and EDI? How it works?
    Please revert asap.
    Thank You

    HI Verma,
    You can post the invoices in SAP system through IDOCs.
    Mostly, this activity is performed/triggered, when the invoice data is with third party.
    Third party will have the invoice data base and sends a file to SAP.
    SAP XI will map/convert the file(sent by third party) to fields in SAP and posting of invoice happens.
    Please refer the below links for EDI Invoices
    EDI invoices
    Creating EDI Invoices
    Hope this will help you in understanding IDOC invoices and EDI Invoices.
    Regards,
    Praisty
    Edited by: Praisty on Dec 22, 2009 1:20 PM

  • How to use the 'DatabaseOperation' mapping in iStudio?

    I'm still a novice in using iStudio and would like to use the 'DatabaseOperation' mapping - but so far I've had no joy. For Test purposes I have created a function:
    FUNCTION test_value (p_operator_name IN VARCHAR
    , p_status IN VARCHAR) RETURN VARCHAR IS
    l_return varchar2(100);
    BEGIN
    l_return := 'This is a test';
    RETURN l_return;
    END;
    iStudio
    Destination Field
    $Test.s1
    Source Field
    DatabaseOperation (operator_name, status, "oaihub902", "***password", "***host", "1521", "***SID", "thin", "5", "20", "begin test_value(operator_name,status);end;")
    Error
    oracle.oai.agent.server.transform.database.DBTransformationException: PLSQLTrans
    formation.transform: Transformation failed
    I can't find any documentation on how to use this mapping .. so any help would be appreciated.
    Cheers
    Ed

    I agree. The documentation is sketchy.
    One point. Consider developing your own custom transformations instead of using the Database Operation transform.
    I'm not sure about your client, but mine does not like having any passwords in the clear.
    Also, custom transformations are portable from one environment to another. You often find that having to recode usernames and passwords within the Database Operation transformation from your DEV > TEST > PROD systems a bit of a pain.
    HTH
    Yan

  • In my SOA Composite, Can I use file/FTP adapter to get the EDI X12 850

    Our requirement is to build a SOA Composite to dump all the details in a EDI X12 850 ( Purchase order ) document in to a database table. In my SOA Composite, Can I use file/FTP adapter to get the EDI X12 850 element details to map them to a base base columns.

    Drop the File Adapter to the left lane of the composite i.e., Services lane...
    Go to Step 2, give a meaningful name....
    Step 3, select "define from operation and schema"
    Step 4, select the operation type as "read"
    Step 5, select physical path and give the folder path in the "Directory for incoming files" field.,
    Step 6, select wildcards and give the expression depending on the file name it would be at run time...
    Step 7, select the polling frequency as required....
    Step 8, in the URL field, adjacent to that , select "browse for schema file" and select the XSD which you have exported from B2B Editor.
    say next and finish, you will be good to go.
    Hope this helps,
    Thanks,
    N

  • How to use Identifiers to route IDocs

    In XI we will receive XML files from many different parties and map them to ORDERS IDocs. This IDoc type demands that in order to convert external party numbers to SAP internal, the IDoc must be mapped correctly to a customer partner profile (the SNDPRT of the control record is part of the key of the EDPAR table that allows this to happen).
    I have read that this is possible using identifiers such as ALE#KU in the communication channel and party definition, but I have only seen the case where one value is mapped to the party.
    Here is my problem; the XML files all arrive in one file directory for processing, and I only want to use one communucation channel to process the files.
    Is there a way that I can inspect the value of a field in the XML file, and use that to set the correct ALE#KU value in the party so that the IDoc is routed to the correct partner profile?
    Kind Regards,
    Tony.

    Hi,
    In the file you must be getting the data of different customers. So what you do is use the value mapping with the source field in which you are identifying the data related to different customer and map it to SNDPRN.
    Maintain the value mapping table which will help in Configuration to find out which data belongs to which customer and hence the respective IDOC will be posted for the respective customer depending upon the right configuration.
    Thanks and Regards,
    Chirag Gohil

  • I have a scenario,  ECC-PI-Message broker. ECC sending IDOC to  PI, PI execute mapping and  sending data to Message borker.(with almost one to one mapping)., IDOC(AAE)-PI-JMS. Now my requirement is., from PI  after mapping we need to save file in SAP fold

    I have a scenario,  ECC-PI-Message broker. ECC sending IDOC to  PI, PI execute mapping and  sends data to Message borker(thru JMS channel).(with almost one to one mapping)., IDOC(AAE)-PI-JMS. Now my requirement is., from PI  after mapping we need to create file with same data what ever send to Message broker and put the file in SAP folder without touching mapping. Is it possible? Please advise with the steps. We are using the ICO for this senario. Quick response is appriciated.

    Hi Pratik,
         http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42?quicklink=index&overridelayout=true
    This link might help.
    regards
    Anupam

  • How to map IDoc segment with qualifiers

    Hi everyone!
    I have the following problem: In an IDoc of type DESADV01 there can be several segments of type E2EDS01. Each segment has a different qualifier, which is the value of the field SUMID in this case. My target structure (type EDIFACT) now has several segments, each again with a sort of qualifier. Now I have to map the values of certain source segments to the respective target segments.
    Exaple (in XML format):
    Source
      <E1EDS01 SEGMENT="1">
        <SUMID>021</SUMID>
        <SUMME>0000000001.000</SUMME>
        <SUNIT>KGM</SUNIT>
      </E1EDS01>
      <E1EDS01 SEGMENT="1">
        <SUMID>022</SUMID>
        <SUMME>0000000001.000</SUMME>
        <SUNIT>KGM</SUNIT>
      </E1EDS01>
    Target
      <S_MEA>
        <C_C502>
          <D_6313>N</D_6313>
        </C_C502>
        <C_C174>
          <D_6411>KGM</D_6411>
          <D_6314>1</D_6314>
        </C_C174>
      </S_MEA>
      <S_MEA>
        <C_C502>
          <D_6313>G</D_6313>
        </C_C502>
        <C_C174>
          <D_6411>KGM</D_6411>
          <D_6314>1</D_6314>
        </C_C174>
      </S_MEA>
    (i have omitted several details here, but I'm only interested in the general procedure anyway).
    So in general the source segment with qualifier "021" should be mapped to a target structure with qualifier "N" etc.
    How can this be done using standard XI mapping techniques?
    Regards, Joerg

    Hi everyone!
    Thanks for your input data - unfortunately this wasn't quite what I was looking for. However I thik I solved my original problem and I just wanted to share this solution with you - maybe it helps others, maybe some of you have suggestions what I could do differently.
    To sum up the requirement: There can be multiple input segments, each with a certain qualifier. These input segments have to be mapped to the target segments, respectively - however, the qualifiers change. There can be several segments with qualifiers that do not match the requirement, and required segments might be missing.
    So here's what I came up with:
    Use the qualifier of the source segments as an input to a <b>FixValues</b> function. In this function, map the desired qualifiers to the value <b>true</b>, use <b>false</b> as the default value. Map the output of the <b>FixValues</b> function to a <b>createIf</b> function and use this to create the desired output segment. This way, for each of the required segments, one target segment will be created. All other segments (with unwanted qualifiers) will be removed.
    So far, this technique worked for me - do you have improvements/suggestions?
    Regards, Joerg

  • HOW TO MAP IDOC TO XML

    Hi,
      I need to map IDOC to xml but the problem is I have 400 fields in IDOC which  are to be mapped to 20 elements in XML.
          As it a tedious process to go to 400 fields for each xml element.Is their any better way to find correct field in IDOC with very minial time rather going 400 fields for each xml element.
    thanks
    sreeram

    hi,
    >>1)Even SAP it self does not encourage to use ABAP >>MAPPING and
    i dont know where you have read this, but ABAP mapping is one of the most popular/ most efficient and highly recomended by SAP. I have used it in tons of places.
    >>2)More over Iam not ABAP resource.
    you could also do a java mapping.
    there is no other easy way if you are not doing abap/java mapping. you are then left with the only option of using the graphical editor.
    cheers,
    Naveen
    Message was edited by: Naveen Pandrangi

  • How to use '*' as data Element in the NTE(Edi 850) Segment

    Hi All,
    I am facing a field level error while using '*' in EDI 850 (NTE segment). '*' is also used as Data Element.
    For Eg: NTE*GEN*My Text *goes here
    Here, NTE02 should be My Text *goes here. So, how can I use "*" here without changing anything in the EDI message?
    I have asked this question before
    http://social.msdn.microsoft.com/Forums/en-US/1668e8d8-ee99-4d79-961b-8d26f3a496f8/error-while-using-in-the-nte-edi-850-segment-where-is-also-used-as-data-element?forum=biztalkediandas2
    The answer in the above forum was to ask client modify the EDI message.
    Previously, our client was using a different technology (other than BizTalk) which was working fine with this format. So, they are insisting on this format only.
    Thanks,

    Sorry, the answer is the same.
    It doesn't matter what EDI platform either side is using, the '*' in the field content conflicts with the '*' that is the element delimiter. That is invalid EDI, there is no way around that short of writing a custom EDI parser.
    It's not clear if you're sending or receiving this message.  But again, it's really doesn't matter.
    1. Change the Element Delimiter to something other than '*'.  < or > are not uncommon.
    2. If you are receiving the EDI, create a custom Pipeline Component that "handles" NTE02 either by replacing the '*' with a substitute char or deleting it.
    3. If you are receiving, you could add extra elements to NTE to accommodate extra fields (since that's how the parser will see them).  Then you can join them again in a Map.

  • Mapping IDOC error

    Hi experts,
    I'm doing my first scenario IDOC to JDBC, i've problem with mapping
    I don't have seen any example in this forum of mapping IDOC, only i have seen the document :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09b775e-e56e-2910-1187-d8eba09c7a4a
    in this document says about party, only this is possible?
    i've testing mapping with payload and message 'XML not well-formed' occurs, i've comparing this message with message download testing and i don't see differences..
    the error in runtime workbench is:
    'com.sap.aii.utilxi.misc.api.BaseRuntimeException
    thrown during application mapping
    com/sap/xi/tf/_MM_MATMAS03IDOC_TO_MT_MATERIALES_:
    RuntimeException in Message-Mapping transformatio~'
    very thanks

    Hi,
    The error XML Not well formed means that the XML that you've used as a test in message mapping does not conform to XML coding standards.
    What you can do is to find a sample XML in SXI_MONITOR then right-click on the lower-right pane then click view source. Copy the all the values using ctrl+a and ctrl+c. Then under test tab in message mapping, click the src or source text view and paste the payload there (overwrite the empty one). Then you can test the mapping for transformation.
    Hope this helps,

  • IDoc eror as "EDI. Partner profile not available

    Hi All,
    I got IDoc eror as "EDI. Partner profile not available " in WE09. Please clarify as to what exactly the error message means, " EDI. Partner profile not available ".
    Thanks
    Yash

    Yash
    I guess you need to maintain partner profile for that Business Partner using T code WE20.  That's what it means.

  • When using two Msg Mapping - will performance decrease?

    Hi,
      Our scenario is File->XI->MultiIDoc.Can i use two Msg Mapping to create 2 idoc from one flat file rather than doing XSLT or JAVA Mapping.
      Will it reduce the performance?

    Udo, From what i understand , the background code that gets generated when we do GUI mappings is in Java. So there should not be much of a difference b/w the Java mappings we do and the Java code that is created when doing GUI mappings rite!! Let know of ur thoughts
    May be its a call we have to make b/w the Java code we write and the Java code SAP tool writes
    -Saravana

Maybe you are looking for

  • Saving metadata with PSE10

    Hello - I am a relatively new user of PSE10. I have a large collection of photos that I want to scan and archive on my Win XP PC (to be replaced with a Win 7 machine in next few weeks). I know how to add information to photos using the "properties" f

  • Stock transfer - two step

    If I want to transfer material from one storage location to another, through MRP system creates reservation with movement type 311. But I want to have reservation with movement type 313 so that it will be two step and material can be transfered to tr

  • UnsupportedOperationException with List.add(Object obj)

    List statusCodes = Arrays.asList(OcsCustomDicInfo.acctRefundStatusCodes);           List statusNames = Arrays.asList(OcsCustomDicInfo.acctRefundStatusNames);           // Add an additional item          statusCodes.add(Integer.toString(statusCodes.si

  • Difference between EAS(Exchange activesync) and EWS(Exchange web service)

    What are the main differrences between EAS(Exchange activesync) and EWS(Exchange web service)... I know the basic difference  that is EAS(Exchange activesync) is a set of protocol and EWS(Exchange web service) is a web service.... Please explain me t

  • Are there any files that can be broken down by instrument except MIDI?

    If there isn't what's the most effective way of sampling? Because that's all I know how to do so far! THANX