Split the IDOC into multiple IDOC if the IDOC has more than 500 records

Hi All,
I developed an outbound IDOC in which we are facing an issue.
There is some limitation on the maximum idoc size it can handle.
If number of records is more than 500, split the idoc into multiple iDoc's, e.g. if it would have 1300 records , the result would be 2 iDoc's with 500 records, and the last one would have 300 records
How can i acheive this.
Regards
Jai

Hi,
1) first you need to know which message type/Idoc type you are triggering.
2) Get the Corresponding processcode from Partner profiles(WE20/ WE41).
3) Then the look for prper user-exit in the related processing FM.
4) write logic to split the IDoc accordingly.
if no proper user exit available then copy the standard processing FM and need to all ALE related configurations.
Catch hold any ABAP expert in your team to do all these.
Suresh

Similar Messages

  • Loading a single row in the file into multiple row in the destination table

    Hi Everyone
    I have a tab seperated data file which has data like
    123 456 789 98 A|B|C|D|E|F...............
    i have mentioned '|' instead of TAB, as i was not able to type it.
    The following data has to be loaded into a table as follows
    COL1 COL2 COL3 COL4 COL5
    123 456 789 98 A
    123 456 789 98 B
    123 456 789 98 C
    123 456 789 98 D
    I am using direct load as the count of data exceeds 20 million

    Take a look at demo 5 here:
    http://www.morganslibrary.org/reference/sqlloader.html

  • Using Liquid, what is the best practice for handling pagination when you have more than 500 items?

    Right now I can only get the first 500 items of my webapp, and don't know how to show the rest of the items.
    IN MY PAGE:
    {module_webapps id="16734" filter="all" template="/Layouts/WebApps/Applications/dashboard-list-a.tpl" render="collection"}
    IN MY TEMPLATE LAYOUT:
    {% for item in items %}
    <tr>
    <td class="name"><a href="{{item.url}}">{{item.name}}</a></td>
    <td class="status">Application {{item.['application status']}}</td>
    </tr>
    {%endfor%}

    <p><a href="{{webApp.pagination.previousPageUrl}}">Previous Page</a></p>
    <p>Current Page: {{webApp.pagination.currentPage}}</p>
    <p><a href="{{webApp.pagination.nextPageUrl}}">Next Page</a></p>

  • Split file into multiple Instance of an IDoc .

    My file (only one file) in the file system contains multiple entities(lets say sales order).Now using File adapter I want to transfer this file into XI and want XI to create multiple instance of an IDoc(for each sales order) and send them to the target system one by one.
    Alternatively can I split the file into multiple entities(sales order) in the file adapter (using dispatcher for e.g) and send multiple message to the configured XI automatically.
    Is any of the alternative possible in XI20.
    Any responce would be highly appreciated.
    Regards,
    Bikky.

    Hi,
    You can get the file adapter to split the file without the need for a dispatcher user exit.  The config goes a little like this:
    mode=FILE2XMBWITHSTRUCTURECONVERSION
    xml.recordsetStructure=SALES_ORDER,1
    xml.recordsetsPerMessage=1
    This last parameter ensures each sales order is posted to the integration engine as a separate message.  Therefore a separate Idoc is created for each.
    Hope this helps.
    Jason

  • Split Single IDOC into Multiple IDOC's Based on Segment Type

    Hi Experts,
    I have a scenario IDOC to FILE ,  Split Single IDOC into Multiple IDOC's based on Segment Type
    Outbound:
    ZIdocName
    Control Record
    Data Record
    Segment 1
    Segment 2
    Segment 3
    Status Record
    I should get output like below
    Inbound:
    ZIdocName
    Control Record
    Data Record
    Segment 1
    Status Record
    ZIdocName
    Control Record
    Data Record
    Segment 2
    Status Record
    ZIdocName
    Control Record
    Data Record
    Segment 3
    Status Record
    Please suggest me step by step process to achieve this task.
    Thanks.

    Thanks a lot Harish for reply.
    I have small doubt. According to your reply , If we have N number of segments in single IDOC with same fields in all segments then for splitting Single IDOC into Multiple IDOC's based on Segment Type we need to duplicate N number of target IDOC tree structure.
    Is that possible to Split single IDOC into Multiple IDOC's based on Segment Type using only one Target IDOC structure without duplicating the Target IDOC structure tree.

  • How can I split an Orders05 iDoc into multiple iDocs?

    Hello,
    Can one of you experts please tell me how I can split an ORDERS05 iDoc into multiple iDocs based upon Delivery addresses? 
    For example, if the iDoc contains 3 different Delivery Addresses then I need to split it into 3 iDocs.
    It has been suggested to me that I can Create a custom function module. In this custom fm split the idoc into 3 based on the delivery address and create it using the FM MASTER_IDOC_DISTRIBUTE.
    Problem is I don't know how to do this.  Any help is greatly appreciated.  Thanks.
    Dan

    Hi Dan Avis
    Write a Custom  Z program .
    1 get order05 idoc number....
    2 get the segment details...(Based on you condition...)
    3 In a loop  send the data to the FM MASTER_IDOC_DISTRIBUTE  (Based on you condition...)
    4 IDOC will generated,,,every loop and
    5 Change the status of original idoc .
    or
    Create Function module and use the FM as process code to create 3 idocs...and processs...new generated idoc and block original idocs...
    Call me if you have questions  @ 302 290 5677
    Thanks
    Ramesh

  • How to Split Single Outbound Idoc into Multiples

    Hi guys
    Hope you all are doing good.
    Can you please let me know , How to Split Single Outbound IDOC into multiples.
    I am looking for some sought of configuration in IDOC/from SHIPMENT Configuration level.  Because this needs to be implemented for Shipment IDOCS.  Please let me know if this can be done through configurations apart from implementing  User exit or copying the outbound shipment function module.
    Awaiting for your valuable replies.
    Best Regards
    Shiva

    Hello,
    1. Routes
    2. Packaging used
    3. Shipment Type
    Regards
    Waza

  • I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to customer. Can you please help me on the same?

    HI Experts,
    I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
    Thanks
    SaiSreevastav

    Hi Sai,
    you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
    Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
    Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
    Convert incoming XML to Excel Sheet
    then after converting to Excel, you can use the payloadswap bean in mail adapter
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    regards,
    Harish

  • HT1473 How do I get iTunes to download an entire album in one file versus splitting it into multiple files with the same Album Title?

    I have added several CDs to my iTunes files, several Albums were added in the form of multiple files of the same Album title with random songs listed, but not the entire album in one file.
    I have tried to reassemble the Album into one file, but could not find a way to do so.

    Generally setting a common Album title and Album Artist will fix things.
    For deeper problems see Grouping tracks into albums.
    tt2

  • "Save as PDF" breaks up the document into multiple PDFs

    Ever since my Lion install, when I open a doc in MSWord and try to "Save as PDF", it breaks up the document into multiple PDFs, not one saved PDF. Haven't seen this problem before. Anyone else experiencing this new "feature"?

    What version of Word?  It's working fine with my Word 2011 on Lion.  (version 14.1.2.  Applied SP1 and the .2 update.)
    A workaround would be to print, then select the PDF dropdown in the lower corner of the print window.
    Otherwise, you'll probably want to ask in the Microsoft forums, as Save As is using Word's programming code, not OSX's code like it does with the print function.

  • Distributing the GOA to multiple locations in the same backend

    Hello Folks,
    We are implementing SRM 5.0 (SAPKIBKT10 Support Package level) with Extended Classic Scenario, with only one backend system (R3 V4.6b) integrated with the SRM system.
    Queries:
    At GOA header - Distribution,  Example is shown below....
    Backend Purchase Organization 1 - Location A
    Backend Purchase Organization 1 - Location B
    When we distribute one GOA to the backend with multiple locations for the same Purchase organiation.
    In the backend system two idocs are getting generated with the same contract number. While processing the first Idoc the system is creating the contract but while processing the second idoc the system is changing the previously created contract, instead of creating a new contract.
    So, in standard does the system creates actually creates two contract numbers for two different locations?
    Can somebody throw some light on the logic of the distribution
    Regds
    Amith
    Edited by: Amith Varma on Feb 26, 2008 4:51 AM

    Hi Amith,
    this is normal behaviour of the system in the case POrgs are set up accross company codes. In the Contract IDoc the Comany Code is derived from the location. When the system finds the same company code, it does not create an additional contract, but just updates the already distributed contract.
    Cheers,
    Claudia

  • Split one row into multiple columns

    Hi,
    Data in one CLOB column in a table storing with delimiter, ##~~##. Ex. ##~~##abc##~~##defgh##~~##ijklm##~~##nopqr (data starts with delimiter). Please help me to split the data into multiple rows like below and it should be in the same order.
    abc
    defgh
    ijklm
    nopqr
    I am using Oracle 11g.
    Thanks.

    Thanks Hoek for your response. Before posting my question in the forum, I tried similar query. It is working with one character as delimiter.
    with test as (select 'ABC,DEF,GHI,JKL,MNO' str from dual )
    select regexp_substr (str, '[^,]+', 1, rownum) split
    from test
    connect by level <= length (regexp_replace (str, '[^,]+')) + 1;
    Above query is giving correct result by fetching 5 rows. I have modified the query like below...
    with test as (select 'ABC,,,DEF,,,GHI,,,JKL,,,MNO' str from dual )
    select regexp_substr (str, '[^,,,]+', 1, rownum) split
    from test
    connect by level <= length (regexp_replace (str, '[^,,,]+')) + 1;
    Above query resulting 13 rows and last 8 rows are nulls. Number of null rows are increasing, if I increase number of characters in delimiter. Could you please tell me how to avoid those null rows.
    Thanks.

  • Split single row into multiple rows containing time periods

    Hi,
    I have a table with rows like this:
    id, intime, outtime
    1, 2010-01-01 00:10, 2010-01-3 20:00
    I would like to split this row into multiple rows, 1 for each 24hr period in the record.
    i.e. The above should translate into:
    id, starttime, endtime, period
    1, 2010-01-01 00:10, 2010-01-02 00:10, 1
    1, 2010-01-02 00:10, 2010-01-03 00:10, 2
    1, 2010-01-03 00:10, 2010-01-03 20:00, 3
    The first starttime should be the intime and the last endtime should be the outtime.
    Is there a way to do this without hard-coding the 24hr periods?
    Thanks,
    Dan Scott
    http://danieljamesscott.org

    Thanks for all the feedback, Dan.
    It appears that the respective solutions provided will give you: a) different resultsets and b) different performance.
    Regarding your 'truly desired resultset' you haven't answered all questions from my previous post (there are differences in the provided examples), but anyway:
    I found that using CEIL or ROUND makes quite a difference, using my 'simple 3 record testset' (30 records vs. 66 records got initially returned, that's less than half of the original). That's quite a difference. However, I must call it a day (since it's almost midnight) for now, so there's room for more optimizement and I haven't thoroughly tested.
    But this might hopefully make a difference performancewise when compared to my previous 'dreaded example':
    SQL> drop table t;
    Table dropped.
    SQL> create table  t as
      2  select 1 id, to_date('2010-01-01 00:10', 'yyyy-mm-dd hh24:mi') intime, to_date('2010-01-03 20:00', 'yyyy-mm-dd hh24:mi') outtime from dual union all
      3  select 2 id, to_date('2010-02-01 00:10', 'yyyy-mm-dd hh24:mi') intime, to_date('2010-02-05 20:00', 'yyyy-mm-dd hh24:mi') outtime from dual union all
      4  select 3 id, to_date('2010-03-01 00:10', 'yyyy-mm-dd hh24:mi') intime, to_date('2010-03-03 00:10', 'yyyy-mm-dd hh24:mi') outtime from dual;
    Table created.
    SQL> select id
      2  ,      max(intime)+level-1 starttime
      3  ,      case
      4           when level = to_char(max(t.outtime), 'dd')
      5           then max(t.outtime)
      6           else max(t.intime)+level
      7         end outtime
      8  ,      level period      
      9  from   t
    10  connect by level <= round(outtime-intime)
    11  group by id, level
    12  order by 1,2;
            ID STARTTIME           OUTTIME                 PERIOD
             1 01-01-2010 00:10:00 02-01-2010 00:10:00          1
             1 02-01-2010 00:10:00 03-01-2010 00:10:00          2
             1 03-01-2010 00:10:00 03-01-2010 20:00:00          3
             2 01-02-2010 00:10:00 02-02-2010 00:10:00          1
             2 02-02-2010 00:10:00 03-02-2010 00:10:00          2
             2 03-02-2010 00:10:00 04-02-2010 00:10:00          3
             2 04-02-2010 00:10:00 05-02-2010 00:10:00          4
             2 05-02-2010 00:10:00 05-02-2010 20:00:00          5
             3 01-03-2010 00:10:00 02-03-2010 00:10:00          1
             3 02-03-2010 00:10:00 03-03-2010 00:10:00          2
    10 rows selected.
    SQL> By the way: I'm assuming you're on 10g, is that correct?
    Can you give us some information regarding the indexes present on your table?

  • Split source message into multiple target messages

    Hi Experts,
    I have a scenario where a source message needs to be split up into multiple messages for the corresponding target systems.
    One source system and three target systems.
    Source system is a .Net application
    Target systems - SAP R/3, Two webservices on different application systems
    Can i implement the scenario above using BPM in the following manner?
    Source->WS Adapter->PI-->RFC Adapter->SAP R/3
    Source->WS Adapter->PI-->WS Adapter->Target 2
    Source->WS Adapter->PI-->WS Adapter->Target 3
    I could have a webservice at the source which would be called by the .Net Application
    Webservice request would be passed to an integration process which would split the message for the three target systems specified.
    Correct me if am wrong.
    Also please get back to me if you need more inputs
    Regards,
    Kalyan

    Hi,
          You can implement the same with out using the BPM itself...
    you can use either of the below options
    1. if target messages are optional like based on certain conditions if you need to route the message to the particular targets
    then you can use multimappings for the same which generates the mappings based on the condition for the particular target.
    2. if each incoming message needs to be routed to the three receivers each time then configure the three receivers at the receiver determinations one for each target...
    3. if you are using the same business system for all the three receivers then create the three interface mappings and configure the same at the interface determination level so that for each message three target messages will be generated and send to target...
    HTH
    Rajesh

  • Split MP3 file into multiple MP3 files

    I've been through the help section and is till cant seem to figure out how to split a large (2 hour) mp3 file into multiple mp3 files.
    I have a 2 hour MP3 recording (Stereo not mono), and I have added markers (by simply pressing keyboard shortcut 'M' to add marker), but now I would like to know how to split that one mp3 files into multiple files from the markers which I have made...
    All my marker types are "Cue" when i pressed 'M' at the locations I want the track to end/start

    You didn't say which version of the program you're using, but in general, there is a way to do this by adding one additional cue at the very end of the file, then "merging" the cues (which converts the space between each cue into a "range"), and batch processing each range out to a separate file.  (Make sure there's a cue at the beginning of the file, or at least the first material you want in a new file.)
    Now that you've done all that work, I'm going to tell you that what you're doing is probably a bad idea.  Opening any mp3 in Audition and resaving back to mp3 means you've doubled the losses and distortion inherent with the mp3 compression.  Audition can't do lossless editing of mp3s.  The bottom line: are you really splitting the file, and does the result have to be mp3 format?  If saving to a (wave file, or any other lossless format, then what I'm saying doesn't matter.
    In any case, "mp3 Direct Cut" is a terrific freeware program that does lossless mp3 editing, and I'd highly recommend you try it.  It's saved my neck a number of times.  See http://www.mpesch3.de.

Maybe you are looking for

  • So I have a 30 GB Video iPod----

    I am pretty technology challened but I already have used a lot of space- Is there anyway to get the 60 GB iPod without having to buy a completley new one? Can you tack on more space? Please help it would be much appreciated!

  • ICal - new mobileme and documents attachment

    After upgrade I can't use documents attachment at event. This is a new limitation of new mobile me. I use a lot this fuction for my work. I pay money to use mobile me and apple changes this function. I have no choice to upgrade to new mobile me. Plea

  • Regarding the Work Flow

    Hi, Can anybody can give me the brief Explanation for work Flow ,steps to be followed in Work Flow, & with a brief Example Thank You

  • Printer 1200n, printer message not in my booklet

    On the message bar, 4 yellow lights appear in bottom row, with icon 2nd from left lit on top row. Message appears that all inks have expired.  However the large ink menu I have that show percentages of how much ink is available, show the least amount

  • My Youtube videos have no volume. Not muted, speakers on. Can you help?

    Started about 3 weeks ago. My Flash and Silverlight add-ons are enabled. I am signed in and 'Youtube' is being allowed to play. Everything looks okay. Can you help? Thank you