Source one message to split into 2 messages

Hi Gurus.
I have one incoming IDOC record. There are 3 segments in the IDOC. Output type is simple - just 5 or 6 fields. But each field of the output type can be derived either from segment 1, or 2, or 3. Means if all 3 segments have data, there will be 3 rows in the output message type. It's an IDOC to file scenario.
To elaborate:
Seg 1 -> Field : pernr, appt_type, change reason -> this can map one to one directly to Output type 3 fields, and will be 1 row in the output file.
Seg 2 -> same fields, but the mapping has some rules. Based on those rules, output type's 3 fields will get their values and this will be 2nd row in the output file.
Same for segment 3.
So in summary, it means, 1 IDOC record can result in 3 records in the output file.
How can I go ahead to achieving this?
Thanks in adv.

>
Aishi A wrote:
> Hi Gurus.
>  I have one incoming IDOC record. There are 3 segments in the IDOC. Output type is simple - just 5 or 6 fields. But each field of the output type can be derived either from segment 1, or 2, or 3. Means if all 3 segments have data, there will be 3 rows in the output message type. It's an IDOC to file scenario.
> To elaborate:
> Seg 1 -> Field : pernr, appt_type, change reason -> this can map one to one directly to Output type 3 fields, and will be 1 row in the output file.
> Seg 2 -> same fields, but the mapping has some rules. Based on those rules, output type's 3 fields will get their values and this will be 2nd row in the output file.
> Same for segment 3.
> So in summary, it means, 1 IDOC record can result in 3 records in the output file.
> How can I go ahead to achieving this?
>
> Thanks in adv.
Hi Aishi,
You can use CONTEXT option, to refer Segment2&3 to context node of Segment1
c you

Similar Messages

  • Writing main class (All in one method or split into several?)

    Hello,
    How is the common practice to write a main method?
    I use to write one method if nothing repeats it self then I make a private method for it.
    Like this
    public static void main(String[] args) {
    foo();
    foo();
    private void foo(){
    }But I have read a lot of main methods where there is private methods which is only executed ones.
    And the main method calls a new private method like this
    public static void main(String[] args) {
    foo(args);
    private void foo(String[] args){
    foo2();
    foo3();
    foo4()
    private void foo2(){
    private void foo3(){
    private void foo4(){
    }

    I think its better to do the second example
    but it does not really make a difference
    Example 1 you have to say xyzClass.foo();
    Example 2 you call the methods directly
    public class XYZ{
      public XYZ(){
      public void method1(String s){ 
      public void method2(){ 
      public void method3(String s){ 
      public void method4(String s){
      public void method5(String s){ 
      public method(String[] args){
        method1(args[0]);
        method2(args[1]);
        method3(args[2]);
        method4(args[3]);
        method5(args[4]);
      }main methods
    public static void main(String[] args){
      XYZ xyz = new XYZ();
      xyz.method1(args[0]);
      xyz.method2(args[1]);
      xyz.method3(args[2]);
      xyz.method4(args[3]);
      xyz.method5(args[4]);
    //vs.
    public static void main(String[] args){
      XYZ xyz = new XYZ();
      xyz.method(args);
    }Edited by: gtRpr on 2008/07/22 01:42

  • One idoc that needs to split into three messages

    Hi,
    I get an idoc from sap through change pointers.  The IDOC needs to be mapped via a mapping program which splits into three different messages.
    Let me know how to achieve it.
    Some notable info are that the the three messages have different flat structures. 
    Your suggestions are well rewarded.
    Regards,
    B.Anandh

    Hi,
    Try these
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3115---- [original link is broken] [original link is broken] [original link is broken] Multi Map With out BPM
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi Various multi-mappings and
    Optimizing their Implementation in Integration Processes (BPM) in XI.
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure --- Illustration of Multi-Mapping
    and Message Split using BPM in SAP Exchange Infrastructure
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm (N:1 Mapping )
    Regards
    Seshagiri

  • Source message split into 2 orders - 2nd order populating wrong values

    Hi Friends,
    I have an issue related to X12 to Orders, X12 file is processed and split into 2 orders/idocs,
    1 idoc is outputing the right values, however the 2nd idoc is extracting all wrong values.
    According to my observation, there are no values coming in for couple of E1EDKT1 segments (for the second idoc,  fyi, there are multiple E1EDKT1 segments with different values).
    it seems that values coming after these segments are extracted and filled to these segments. i can see 2 upward shifts in the output.
    Any idea how to resolve this issue, i have tried using map with default, split by value, collapse context, remove contexts etc.
    Thanks in advance,
    Regards,

    Use mapwithdefault function with a blank character for all the target nodes which ever you think might not get a value from the source. You will see the right results.
    VJ

  • Splitting a message into multiple messages.

    All,
    I will simplify the issue we have and explain.
    We have the following structure. (the occurence <data> node is unbounded)
    <source>
    <data>...</data>
    <data>...</data>
    <data>...</data>
    </source>
    we need to split this into another message <source2> with the exact same structure... but we need only 10 <data> nodes in the <source2>. In this <source2> the <data> node is of max occurs 10.
    so if we get a <source> message with 1000 <data> nodes comes in, we need to split it into 100 <source2> messages.
    How can we do this? (due to constraints we cannot use the file content conversion)
    Thanks.

    Hello,
    Please check whether the below logic suits your scenario.
    Change Messages - http://flickr.com/photo_zoom.gne?id=1064675286&size=o
    Mapping -http://flickr.com/photo_zoom.gne?id=1064675070&size=o
    Mapping -http://flickr.com/photo_zoom.gne?id=1064675164&size=o
    UDF's- http://flickr.com/photo_zoom.gne?id=1064675480&size=o
    Results http://flickr.com/photo_zoom.gne?id=1064675320&size=o (Source 4 Data)
    Results http://flickr.com/photo_zoom.gne?id=1064675430&size=o (Source 5 Data)
    The above example will split source data into 2 messages each.
    If it doesn't helps, let me know.
    Best regards,
    raj.

  • Group Messages Split Into Seperate Group Messages

    Problem:
    Somehow my group messages are being split into seperate group messages.  What is causing this?
    Examples:
    Example #1: I sent a message to my Mom, Dad, & Sister, which shows in my phone as a single group message. Mom & Dad have android, Sister has Iphone.  When they reply, a new group message appears, which includes all of them, and each of their replys, but not my original message.  So I end up with two seperate group messages.
    Example #2: My friend Alex sends out a group text to me, and eight other people and it shows as one group message in my phone (Mix of Iphones and others).  My friend Drew then replys and in my phone I now see two seperate group messages, but he does not.  I then reply to Drews new group message, and now he sees two group messages.
    Note: In each of these examples, all the same people appear in the message, so it is still a group message, BUT when looking at the different group messages that are created, the names of the people are in a different order.
    Phone:
    Iphone 6 Plus, Version 8.0, Network: AT&T,
    Note: It also would do this with my old Iphone 4S, unfortunately I can't remember when it started to do this, whether it was after an upgrade etc...
    Message Settings:
    iMessage = On,
    Send Read Receipts = Off,
    Send as SMS (when MMS not available) = On,
    Send & Receive = 3 Addresses, My Phone & 2 x Emails
    MMS Messaging = On,
    Group Messaging = On,
    Show Subject Field = Off
    Character Count = Off
    Please Help! Thanks!

    Same thing happens to me. So annoying. Most we can do is submit a bug at http://bugreport.apple.com so please do!

  • HT1567 When I plug my ipod into my computer I no longer am able to go to itunes and my ipod will not play the songs i recently downloaded.  My ipod has a white screen. At one point i got a message that it was corupted.

    when i plug my ipod into my computer it no longer takes me to itunes. my ipod screen is a white blank and i can no longer listen to tunes i have downloaded.
    at one point i received a message that said it was corruped.

    My ipod has a white screen.
    This forum category (where your question appeared) is for iPod shuffle, which has no screen.  What iPod model do you have?
    When you connect the iPod to your computer, and run iTunes, the iPod does not appear in the sidebar, under DEVICES?
    At one point i got a message that it was corupted.
    Where and when did this message appear?

  • Splitting large message (60MB) based on payload data

    Hi,
    I have a file (Flat) to file (xml) scenario. The source flat file is being read by FCC. Since the source flat file is large (upto 60MB) so I have to split it into small files then I have applied "recordset per messages" in FCC level to split large file into small ones. But the clients requirement is to split the large document based on payload data (that is DeliveryDate). That means I cannt split the message based on number of rows of flat file instead I have to split the file on the basis of DeliveryDate so that after splitting into small files, each small file should contain data for exactly one date (say in one file data for 15th NOV and in another file data for 16NOV and so on).
    Please suggest some solution to split the large file (60MB) based on payload data(DeliveryDate).
    Br,
    Madan Agrawal

    Hi Madan,
    in this case split the message in to different messages like 2 mb file,
    XI doesn't support 60 mb files, U have to split the flat files based one some condition.
    i have same requirement flat file having huge data i split that data using java map.]
    then i processed its work fine for me.
    I think u can also do it,
    But in my case i divided message based on sequence number uniquenumber to diffentiate data.
    if there is any sequence number split the message .
    Regards,
    Raj

  • Splitting digest messages

    Hi all,
    since there seems to be no answer to questions on how to split digest messages into individual messages (I tried to answer this question but couldn't do so since answers are no longer allowed to the post...), I thought I'd share a little AppleScript I wrote to achieve this. The reason for the script is that people like to subscribe to mailing lists in digest format to keep their messages to a reasonable amount but you can't really answer to individual messages like that (and messages with subjects like "Re: Digest…" are not that helpful on a mailing list). The script will extract all messages from digest messages so that you can properly answer individual messages even when being subscribed to a digest.
    The script currently supports messages in the digest formats defined by RFC1153 and RFC 2046 and works on the currently selected message(s) in Mail.
    http://homepage.mac.com/aamann/Misc_Scripts.html
    Andreas

    Hi Kumar !
    Yes. You should set the "Recordsets per Message" parameter of the File adapter SENDER. It should be the amount of recordsets you want XI to put per XML message. If your source file has 80mb and that is for example aprox. 1.000.000 recordsets/records, then you should do the math to set the amount of recordsets to match aprox. 20mb (aprox. 250.000 recordsets will be about 20mb!!!).
    To use this feature, you must activate the file content conversion in message protocol of the comm channel settings. Also set "Recordset Structure" as "your_recordset_name, 1". Create a data type/message type according to your recordset structure. You also can process the file as raw, that is, all record data, as only one big field.
    check this:
    /people/sravya.talanki2/blog/2005/11/29/night-mare-processing-huge-files-in-sap-xi
    Regards,
    Matias.
    PS: please award points if helpful!
    Message was edited by:
            Matias Denker

  • Splitting of messages

    Hi
    I have a 80MB file and want to split that into 4 files (20MB each). Is it possible to split the message using file-xi-file scenario ?? I mean 4 files to be printed in target folder.
    Regards
    Kumar

    Hi Kumar !
    Yes. You should set the "Recordsets per Message" parameter of the File adapter SENDER. It should be the amount of recordsets you want XI to put per XML message. If your source file has 80mb and that is for example aprox. 1.000.000 recordsets/records, then you should do the math to set the amount of recordsets to match aprox. 20mb (aprox. 250.000 recordsets will be about 20mb!!!).
    To use this feature, you must activate the file content conversion in message protocol of the comm channel settings. Also set "Recordset Structure" as "your_recordset_name, 1". Create a data type/message type according to your recordset structure. You also can process the file as raw, that is, all record data, as only one big field.
    check this:
    /people/sravya.talanki2/blog/2005/11/29/night-mare-processing-huge-files-in-sap-xi
    Regards,
    Matias.
    PS: please award points if helpful!
    Message was edited by:
            Matias Denker

  • How to split the messages in the mapping

    Hi Gurus,
    I need to split the message into two XML message based on the value in  the plant and sent it to two receivers.
      How to do using Graphical mapping.
    Im working in PI7.0. I dont know how to use the enhanced receiver determination. PL guide me.
    This is my input message format
    <ns0:Namespace>
       <row>
          <PlantCode>10<PlantCode>
          <element1>
          <element2>    
          <element3>
    <row>
      <row>
          <PlantCode>40<PlantCode>
          <element1>
          <element2>    
          <element3>
    <row>
      <row>
          <PlantCode>20<PlantCode>
          <element1>
          <element2>    
          <element3>
    <row>
      <row>
          <PlantCode>50<PlantCode>
          <element1>
          <element2>    
          <element3>
    <row>
    <ns0:Namespace>
    My output message should be
    Message1
       <row>
          <PlantCode>10<PlantCode>
          <element1>
          <element2>    
          <element3>
    <row>
       <row>
          <PlantCode>20<PlantCode>
          <element1>
          <element2>    
          <element3>
    <row>
    Message2
       <row>
          <PlantCode>40<PlantCode>
          <element1>
          <element2>    
          <element3>
    <row>
       <row>
          <PlantCode>50<PlantCode>
          <element1>
          <element2>    
          <element3>
    <row>
    Based on the plant i have to split the message
    1. If plant is 10 or 20 it has to go to message 1
    2. If plant is 40 or 50 it has to go to message 2.
    How to do...
    Regards,
    Rama

    1.Create a message mapping.
    2.In the mapping editor, switch to the Messages tab page
    3.Specify the same  target message type 2 time by choosing +
    4.Switch to the Design tab page
    PlantCode---removeContext---equalS
              constant[10]/                     \
                                                   OR------ifWithoutElse-------Message1
                                                  /              plantcode   /
    PlantCode---removeContext---equalS
              constant[20]/
    PlantCode---removeContext---equalS
              constant[40]/                     \
                                                   OR------ifWithoutElse-------Message1
                                                  /              plantcode   /
    PlantCode---removeContext---equalS
              constant[50]/
    Do 1 to 1 mapping between row,plantcode,element1,element2,element3 from source to target structure
    create 2 target message Interface for the same target message type
    Finally Create an interface mapping and reference the both target interfaces in target interfaces. Enter your message mapping in the interface mapping.(1--source Interface and 2 target Interfaces)
    In ID, Interface determination choose Enhanced radio button and under inbound interfaces add both the target Interfaces

  • Splitting of messages using BPM

    Hi
    Suppose we have a source Data structure with 3 nodes: Customer details, Site details and MPRN Details. Now I want to split the data into 3 data structures
    ( Customer Details, Site details and MPRN Details)  and want to send them to 3 individual systems. Basically I am using BPM to do this. But I heared that even we can implement this scenario without BPM. Could you plz confirm me whether it is possible to do this scenario without BPM ?? If so and if you have any blogs or links known plz do send me the same.
    Thanks
    Kumar

    About Multi-mapping:
    After the split using multi-mapping, the generated messages are sent using Adapter Engine. Thats why only those adapters could be supported which resides on adapter engine. Therefore, IDOC/HTTP adapters at inbound side is not supported
    About the sender and receiver agreements:
    The choice of sender agreement depends upon which information from the adapter configuration in the sender channel is required for successful inbound processing.
    It is not obligatory for all adapters.
    Receiver agreement is always required bcoz it is the responsiblity of the receiver channel to transform the XI compatible message to receiver compatible message.
    Regards,
    Prateek

  • Splitting a message with multiple rows from the JDBC Adapter

    Hi,
    I'd like to split the resultset message with multiple row elements and process each row separately..
    Does someone have this experience?
    Thanx, Peter

    Hi Chandrasekhar,
    I tried to follow your advise, but I'm not able to complete the process correctly.
    Let me explain my process:
    First - output from the JDBC adapter goes into the first receive step. Of course, there are multiple ROW elements. (Should be marked the ingoing message marked in the container as Multiline??)
    The next should be the transformation:
    format of the source message is like
    <message>
      <row>
        <column>w</column>
      </row>
      <row>
        <column>w</column>
      </row>
    </message>
    In the message I have the ROW element as 0..unbounded
    and <column> element exactly 1
    This message should be mapped to multiple messages of the format:
    <message>
      <value>w</value>
    </message>
    How should be the mapping be done?
    Is it N:1 or 1:N (because in another thread there was an 1:N mapping advised)
    Then (as you say) should follow the Block step:
    Which message (container element) should be marked as Multiline? And what does it mean: Current Message?
    Can you give me some advise, when and how to use the multiline mark?
    Thanx a lot, Peter

  • There is no source data for this data record, Message FZ205

    Hi Experts,
    I am facing a problem with the DME File download. This problem happened all of sudden in our production system since last month and it was never before. Our system landscape has also not been changed but as per our basis consultant he has added two-three more new application server to the Production client. Even we do not have this problem in our testing clients.
    Please note that we have been using the output medium '1' from the day one and thus the system has been generating the DME in 'File System' which we download on the desktop and upload the same to the bank online. After running the payment run when we trying to download the DME File, the system gives the error "There is no source data for this data record, Message FZ205".
    I tried to fix this issue through many ways but not able to. So can you please let me know the reason of this error and solution to fix this.
    With best regards,
    BABA

    Hi Shailesh,
    Please share how you solved this problem.
    Many Thanks,
    Lakshmi

  • How To split large message using File Adapter

    Hello everyone,
    Here is my scenario FTP > XI > BI.
    I got 2 questions:
    (1) I am getting large message around 70 MB file.
        How we can split the message into multiple files 10 MB each before processing the file into XI?
    (2) Is there is any way we can find out size of file which is on FTP  without contacting FTP admin?    
        through XI before processing the file?
    Thanks
    Vick

    hi vick,
    check the blog
    Zip or Unzip your Payload with the new PayloadZipBean module of the XI Adapter Framework                                   
    Working with the PayloadZipBean module of the XI Adapter Framework
    SAP XI acting as a (huge) file mover                                   
    The specified item was not found.                                   
    Managing bulky flat messages with SAP XI (tunneling once again) - UPDATED                                   
    The specified item was not found.                                   
    regards
    kummari

Maybe you are looking for

  • Application 1 is not visible in LBWE?

    Hi experts, - Application extractors are not listed in LBWE. For example 2LIS_01_S001 is not available to activate. How to make it visible in LBWE and activate the extractor? - What is the purpose of mantain extractor in LBWE? I mean for the standard

  • Warning msg. when trying to activate MP

    guys, I am trying to activate MP, and i am getting following Waring msg. ! what does it mean ? and how serious it it ? "The InfoProvider properties for ZCIA_M05 are not the same as the system default Message no. BRAIN376" thanks

  • PO CHANGES ORDER

    Hi Expers !! My problem is as follows: There are two Items: <b> SA (Schdule Agreement)   Delins (Delivery Schedule)</b> When buyer shop anything it is correctly updating. when buyer does changes (quatity) Delis Description SAVES in place of SA Descri

  • Back up with CD or DVD?

    I'm in the process of backing up iTunes, iPhoto and Appleworks files etc. There is the option to use either CD or DVD media for this. Is it preferable to use one or the other? In other words can I store more data on a DVD than a CD? Or are both equal

  • Third-party SSD with Yosemite

    Hi all I would like to upgrade my MBP Early 2011 with an SSD. I read different forum posts about TRIM support in 10.10 for third-party SSDs. Can somebody tell me, if there are any SSD I can install without having TRIM disabled. What happens if TRIM i