How to split a table in messages

Hi,
I've made a BPM which consumes 2 BAPIs. The first BAPI returns a table like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_Search xmlns:ns1="http://www.prueba">
- <E_COMP_TAB>
  <IBASE>1</IBASE>
  <INSTANCE>1</INSTANCE>
  </E_COMP_TAB>
- <E_COMP_TAB>
  <IBASE>2</IBASE>
  <INSTANCE>2</INSTANCE>
  </E_COMP_TAB>
-</ns1:MT_Search>
My problem is when I try to split this table in 2 messages to send them to next BAPI, like this:
Message 1:
<E_COMP_TAB>
  <IBASE>1</IBASE>
  <INSTANCE>1</INSTANCE>
  </E_COMP_TAB>
Message 2:
<E_COMP_TAB>
  <IBASE>2</IBASE>
  <INSTANCE>2</INSTANCE>
  </E_COMP_TAB>
The table size is variable. I have a transformation step within a loop to try to split the table in 'n' messages, but I get this error when the workflow arrives to this step:
com.sap.aii.af.ra.ms.api.DeliveryException: Received HTTP response code 500 : Timeout
     at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:146)
     at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:832)
     at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
     at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
     at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
     at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
How can I split a table with 'n' rows in 'n' messages to send them the next BAPI?
Thanks in advance,
Samantha.

Hi,
Use a maping in your BPM,
This will be a 1: N mapping where the source is your RFC response and the target is the seconds BAPI's Request message.
The steps for 1:N mapping are,
1. In your message mapping make the target message type as 1 to unbounded.
2. In your Interface mapping make the target interface as 1 to unbounded.
In your BPM after the transformation step, use a Block with For Each and use the mapping output Multiline variable as the Block's For Each variable.
Inside the block do the needful.
Regards
Bhavesh

Similar Messages

  • How to split a table in OA Framework

    Hi all
    I have a requirement in which i have to select a row from a table and have to enter number of rows in which i want to split the selected row.In this way i want to split a row into desired number of rows.
    Plz tell me ,how to do this in OA Framework?
    Thanks
    Bhupendra

    Bhupendra,
    In ur requirement, you would have to go with a dynamic table creation in process request.Attach submit action event to message check box, in the action event code redirect to same page.
    In process request, you would have to recreate this table, with additional rows, as per your requirement.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Testcase, how to split up an xml message and call a BPEL process.

    Another question.
    Considering the following XML message.
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
    <row>
    <id>10</id>
    <naam>A</naam>
    </row>
    <row>
    <id>20</id>
    <naam>B</naam>
    </row>
    </rows>
    An input message can consist of 1 to about 20000 <row></row> elements. I would like to split up this message into individual <row></row> and call a BPEL process for further processing.
    I've tried to use the file adapters feature "Files contain Multiple Messages" Publish Messages in batches of.." This did not work. ( root element expected exceptions ).
    I've also tried to invoke an extra async routing service with a mapping which removes the root element. This also doesn't work as it leaves the following ( incorrect ) xml message at the end.
    <row>
    <id>10</id>
    <naam>A</naam>
    </row>
    <row>
    <id>20</id>
    <naam>B</naam>
    </row>
    Which is logical considering how an XSL transformation works.
    Is there any way to achieve this?
    Any help is appreciated!

    You shoul create a while loop, that loops through XML payload for each row. Than you can process each individual row. See also example:
    C:\orabpel\samples\tutorials\112.Arrays\ArraySample.bpel

  • How to Split messages to other messages using a value as a split-key?

    Hi ,
    Let's assume that the message is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:ZXI_IDOCFI_DOCUMENT xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
    - <XI>
    - <item>
    <BKTXT>O-244</BKTXT>
    <LIFNR>999003</LIFNR>
    </item>
    - <item>
    <BUKRS />
    <BKTXT>O-244</BKTXT>
    <LIFNR>999003</LIFNR>
    </item>
    - <item>
    <BUKRS />
    <BKTXT>O-245</BKTXT>
    <LIFNR>999004</LIFNR>
    </item>
    - <item>
    <BUKRS />
    <BKTXT>O-245</BKTXT>
    <LIFNR>999004</LIFNR>
    </item>
    - </XI>
    </ns0:ZXI_IDOCFI_DOCUMENT
    I would like to split it into two messages as the <BKTXT> element is changed(2 times
    <BKTXT>O-244</BKTXT> and <BKTXT>O-245</BKTXT> .
    The target messages must be
    1)
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:ZXI_IDOCFI_DOCUMENT xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
    - <XI>
    - <item>
    <BKTXT>O-244</BKTXT>
    <LIFNR>999003</LIFNR>
    </item>
    - <item>
    <BUKRS />
    <BKTXT>O-244</BKTXT>
    <LIFNR>999003</LIFNR>
    </item>
    </XI>
    </ns0:ZXI_IDOCFI_DOCUMENT
    and 2)
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:ZXI_IDOCFI_DOCUMENT xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
    - <XI>
    - <item>
    <BUKRS />
    <BKTXT>O-245</BKTXT>
    <LIFNR>999004</LIFNR>
    </item>
    - <item>
    <BUKRS />
    <BKTXT>O-245</BKTXT>
    <LIFNR>999004</LIFNR>
    </item>
    - </XI>
    </ns0:ZXI_IDOCFI_DOCUMENT
    How is it possible to be implemented ?
    Is it possible to solved in BPM or in a Mapping program;
    Thanks in advance.
    Best regards.

    Dear  Kumar ,
    Thank for your nice blog ,
    But Let me underline which is my point,
    As XI retrieve rows through JDBC from an oracle table
    at the end there is an XML message with N items
    as:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:ZXI_IDOCFI_DOCUMENT xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
    - <XI>
    - <item>
    <BKTXT>O-244</BKTXT>
    <ACCOUNT>999003</ACCOUNT>
    </item>
    - <item> 
    <BKTXT>O-244</BKTXT>
    <ACCOUNT>999004</ACCOUNT>
    </item>
    - <item>
    <BUKRS />
    <BKTXT>O-245</BKTXT>
    <ACCOUNT>999006</ACCOUNT>
    </item>
    ...N items...
    - </XI>
    </ns0:ZXI_IDOCFI_DOCUM
    I have to break this xml into N xml messages according to element <BKTXT> in order to send them to Sap sequentially.  Keep in mind that the <element> is just as the element <ACCOUNT>( is not a root element ).
    I guess this is not an easy excercise but i need to solve it urgently.
    Best Regards,
    Antonis.
    Message was edited by: antonis konstantindis

  • How to split all the fields of output ls-l from an internal table

    Hi all,
    Using ls-l command i have brought the file attributes of a file like its read and write permissions,creation date ,path etc in a internal table.
    Now how to split all these fields from the internal table or what should be the splitting criteria.
    The field contents of internal table are like this:
    -rw-rw----    1  devadm     sapsys     18360    apr  29......so on
    I want to split this into different fields.
    Kindly suggest.
    Thank You.

    Hi,
    I think the delimiter will be space. For date alone (Apr 29) you need to concatenate after the string has been split.
    Thanks and regards,
    S. Chandramouli

  • How to split table in the report so it shows on the next page?

    Hi,
    How to split table in the report so it shows on the next page? Im trying to fit long (many columns) table into my report page. It is too long however. I want it to wrap and show the rest on the next page. What I get now is table cut at the page end and rest is not visible.

    Yes, this might be that the amount of data will cause table to grow and exceed 1, 2, 3.. pages. In that case I would probably want to have, lets say , one half of columns on 1st page then the other on the 2nd page and then repeatedly the same sequence down across all pages. Is there a way to achieve this?

  • How to get only current exception message from tables

    Hi
    In my sceanario , I want to have the list of Current MRP exception messages list from table
    I understand that MRP detailed lists, including all exception messages, are stored in transparent table MDKP and cluster table MDTC.
    I can tell ABAPer to write a report for me , to read the data from these tables , but I guess these tables contain old exception message also , which are not currently appearing in MRP list
    How to get only current exception message
    Rgds,
    sandeep

    Sandeep,
    MDTC contains only data from the most recent MRP run.  So, all messages you see are those which are currently valid.
    The messages might have first appeared during a previous run, but they still need to be addressed.
    Before you invest a lot of time and effort into writing and debugging a custom report, you should probably try to use the standard SAP functionality found in MD06.  On the Processing indicator tab, you can select "Only with new exceptions".  Here you can tag a material/plant as 'processed', and thereafter, the exceptions that existed there before you tagged the part will not be re-displayed.
    Best Regards,
    DB49

  • Split mapping created no message-how to avoid red flag message in SXMB_MONI

    Hi,
    In my scenario I'm putting files in an external server with multi mapping and a condition in graphic mapping in MM, when condition is not true and no files are generated I see a red flag message in XIP MONI, "split mapping created no message".
    I do not want this red flag message to come.
    I see this thread:
    Split mapping created.. No message exists
    My problem is the same, "nikhil a " said that he solved the problem creating a dummy message in Message Mapping, but I don't know how to do that. Someone could explain to me?
    I do not want to use BPM.
    Thanks
    Fabio Boni

    when condition is not true and no files are generated I see a red flag message in XIP MONI, "split mapping created no
    message".
    This is correct behavior i suppose.
    Check if you can verify the condition in the Receiver Determination itself so that the process will stop in the first step itself if Condition = false
    Even when you say that a dummy message is created, it is to be sent somewhere or if not send then again it may give an error.
    Lets see what experts have to suggest here.

  • How to Split the message content?

    Hi ....
        I am having an input File like below format.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ISO8583 xmlns:ns0="http://axis.com/bank_statement">
       <Field1></Field1> -
    0 to 1
       <Filed2></Filed2> -
    0 to 1
       <Filed3></Filed3> -
    0 to unbounded
    </ns0:MT_ISO8583>
    Here Field 3 is repeating many times. The value in the Field 3 has to be splitted and should be mapped to the target feilds. Field 3 will stop repeating until when the first value in the field 3 is N.
    The length of the field is 142 characters in length.
    The field should be splitted based on the following structure.
    More data flag : 1 char (u2018Yu2019/u2019Nu2019) This indicates whether there are more records for the given criteria.
    Number of statements : 2char (00 to 20) Number of statements in this fetch
    The following are repeated as many number of statements
    Transaction date : 8 char ( YYYYMMDD )
    Transaction Id : 9 char (right justified, left padded with spaces)
    Part tran serial num : 4 char (right justified left padded with spaces)
    Tran Type : 1 char ( C - Cash, T - Transfer, L - Clearing )
    Tran sub type : 2 char ( BI, CI, NP, NR)
    Debit credit indicator : 1 char ( D - Debit, C - Credit )
    Tran value date : 8 char ( YYYYMMDD )
    Transaction Amount : 17 char ( with decimal )
    Transaction particulars : 50 Char (left justified, right padded with spaces)
    Transaction Posted date : 14 char ( YYYYMMDDHHMISS )
    Instrument number : 8 char (right justified, left padded with spaces)
    Balance at the end of the transaction : 17 char ( with decimal )
    Can you help me , how to split the message content in the field3?
    Below is the sample message.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ISO8583 xmlns:ns0="http://axis.com/bank_statement">
       <Field1>930000</Field1>
       <Filed2>234259901406</Filed2>
       <Filed3><Y0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 20090209122637 14586. 42]]></Filed3>
       <Filed3><Y0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 20090209122637 14586. 42]]></Filed3>
       <Filed3><Y0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 0090209122637 14586. 42]]></Filed3>
       <Filed3><N0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 20090209122637 14586. 42]]></Filed3>
    </ns0:MT_ISO8583>
    Thanks & Regards,
    Leela

    using substring to get values you want, and map to corresponding target nodes except:
       fields3 ->count->Number of statement
    Regards.
    Liang

  • How to split messages without using Message split (BPM)

    In file to file scenario how to split messages coming from file without using Message split (BPM)

    Thank you very much.

  • How is it possible to split the table cells in Pages, Version 5.1

    How is it possible to split the table cells in Pages, Version 5.1?

    This is a feature removed in the change from Pages 09 to Pages 5.0.1.
    If you need this facility, revert to Pages 09.  If you upgraded to 5.0.1, then the earlier version is still in your Applications folder in a folder called iWork.

  • How do I split a table over two pages in Pages?

    Hi
    I'm trying to split a table in Pages so that the text in the two adjacent rows will fall on two separate pages but I cannot find a way to do this. This was something that is easy to do if using MS Word so I can't believe it would be a feature missing from Pages?
    The document I'm working with is my resume and I had my jobs nicely formatted in a long table so it was easy to work with (job title, dates, achievements etc. in different cells). Since updating to Yosemite and Pages 5.5 I've noticed that I now have my career summary and 'Professional Experience' title on the first page but the table with all my job information is now starting on the second page - leaving just a lot of blank space on the first page. One of the jobs on the second page now also splits across pages 2 and 3. I can see that it is trying to keep everything in the table together and that what I need to do is just split the table at a certain point so that I can put the first part of the table back onto page 1 and the second part of it on page 2 - but it won't give me any option to do this.
    Any ideas?

    Although this thread is several months old, I felt compelled to reply as I have just encountered this gaping hole in Pages functionality.  Jerrold Green 1 is incorrect in asserting that the OP's problem is that Pages won't split a cell across pages.  The OP clearly indicates that Pages is not moving rows that won't fit on the first page of the table, but rather it moves the whole table to the next page.
    So for example, if I have a paragraph of text at the top of page 1, and then insert a table under this paragraph that contains more rows than will fit on the remainder of the page, rather than the rows that won't fit being moved to page 2, Pages moves the entire table to page 2 leaving a big blank space on page 1.  But bizarrely if the table contains more rows than will fit on one whole page, then it will move the overflow rows onto the third page, making you wonder why it didn't just do this on page 1.
    This is with the table arrangement set to Move with Text.  If I set it to Stay on Page, the end of the table just flows over the footer and off the page into oblivion.  If I set Text Wrap to None, it just plonks the table right on top of the other text.  So it gives you the option to do something silly, but not the most sensible option.
    If I am missing something, then can someone please correct me.  Without this basic functionality Pages cannot be considered a professional Word Processor.  I'll unfortunately have to go back to MS Word.

  • How to split big xml-messages with file inbound adapter

    Hello,
    we have big xml-messages in our filesystem, which are processed by XI 3.0 (SP11). We are using the file inbound adapter. Now we want to split these big xml-message into some smaller messages.
    Exist there a corresponding function to the "xml.recordsetsPerMessage" which is working with xml-files?
    Thanks!
    Regards
    Stefan

    Hi,
    maybe you can split the message in the BPM 
    with 1:N mapping?
    Process Integration (PI) & SOA Middleware
    I don't think anythink like "recordsetsPerMessage" is possible for xml messages 
    Regards,
    michal

  • Access 2010 table has too many fields for web database - how to split into two web-compatible tables?

    Hello, 
    I'm in the process of converting an Access 2010 database into a web database and I'm having some trouble. I have a table which has 236 fields, which is more than the 220 field limit for web-compatible tables. I have tried to split this table into two tables
    with a one-to-one relationship, but web tables can only use lookups as relationships. I've tried to connect the tables with a lookup and then synthesize a one-to-one relationship by using data macros but I'm not having much luck.
    I realize that 236 fields is a lot, but it must be set up this way because each field represents a tasks and is a yes/no box to verify that the task has been completed - and the records are different employees for whom which the tasks need to be completed.
    Could someone please help me figure out a way to make this table web compatible?
    Thank you, 
    Ryan

    Hi,
    I found that you've cross post the quesion on our Answer forum, are you satisfiled the reply from there?
    http://answers.microsoft.com/en-us/office/forum/office_2010-access/access-2010-table-has-too-many-fields-for-web/06ee81ea-24ab-48b8-9b8f-0ed08a868bac
    Regards,
    George Zhao
    TechNet Community Support

  • How can we get a alert message in  the current browser we are using the mom

    how can we get a alert message in the current browser we are using the moment we have entered some data in
    the table...
    I need a popup alert the moment a new record is added in a table... in apex database is 11g xe..
    The idea is I am using a apex application. .The moment new data is added in the table ..I am alerted by a message window..that a new record has been added...
    Thanks
    Edited by: pauljohny on Jun 11, 2012 10:23 AM

    pauljohny wrote:
    how can we get a alert message in the current browser we are using the moment we have entered some data in the table...
    "Current browser"? When viewing anything, or just when using an APEX app?
    Ans .. Just when using apex app....even if the apex app is minimised ..The current browser will be the one where I am using apex app...
    What i am looking for some scheduler .. to check ..in the table every 5 minute for change if there is a change..then a popup alert be shown...
    Split it into [at least] 2 components, database and browser. I'd expect someone calling themself a "DBA Architect" to have some ideas about the database side of things, even if not clued up on JavaScript and AJAX?
    I dont think its a database isssue... When i say to check every 5 minutes ..it could be easily done via dbms_scheduler ...I am having issue in getting the popup alert message...
    in apex... Dont know wether there is a plugin like modal window(available from skill builder) which shall help in this scenario,.Or might be have to use java scripting and ajax ..
    and if it is that (Java scripting and Ajax) .....then shall have to be familiar with java scripting and Ajax...and this shall be a bit time consuming..
    Had a feeling this could be accomplished via java scripting and ajax.. ...but still looking for some easy way..

Maybe you are looking for

  • My mac is running very slowly.  I have a report from etrasoft but don't really follow what it means and what I have to do

    Problem description: my mac is running very very slow EtreCheck version: 2.1.8 (121) Report generated 6 March 2015 20:11:31 GMT Download EtreCheck from http://etresoft.com/etrecheck Click the [Click for support] links for help with non-Apple products

  • Gl account no and cost centre relation

    Hi friends,                  I need to know there is any function module available to get cost centre from gl account number or any other way to get that?(requirement is to add cost cente in a report copied from f.08 standard report). Regards, Shans

  • BAPI to Change an Accounting Document

    Hi,     Is there a BAPI function module to Change an Accounting Document...?? Do let me know please.      If there is no BAPI, then please suggest a reliable function module which can change accounting Documents and capture messages (without dialog)

  • Reg. MC8E

    Hi All, I need few information on the transaction MC8E. I haven't worked on SOP, so can you please explain me the use of MC8E and the Input and output of MC8E. Here I have encountered with an issue wherein for particular material the Demands created

  • Fetch new mail messages does not work

    On my notebook the fetch new mail messages does not work Settings: - Fetch new messages:     every minute - Play sound Purr I need to us the manual button. On my imac it works fine with the same accounts