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

Similar Messages

  • How can I split my Dj mix into separate tracks and export the tracks

    How can I split my Dj mix into separate tracks and export the tracks. I'm trying to burn my Dj mix to cd and I don't want it to be one long track.

    Henryfrommo wrote:
    How can I split my Dj mix into separate tracks and export the tracks.
    http://www.bulletsandbones.com/GB/GBFAQ.html#exportsections
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • How can I split a pdf file into smaller files using Acrobat XI

    How can I split a pdf file into smaller files using Acrobat XI?

    Hi laforcej
    Open the PDF In Acrobat ...
    Go to Tools -> Pages -> Extract
    Now Select the Page Number you Want to Extract and Save them

  • 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

  • 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 turn a recorded voice into multiple voices that sound like a group of singers?

    I'm using Logic Pro 9. Could someone teach me how to turn a single recorded voice into multiple voices that sound like a group singing together
    by mixing or other techniques ? I don't have the luxury of a group singing together with me when I do recording. Advices would be much appreciated!

    By far the most natural way to achieve this is for the singer to perform multiple takes - even if you've only one singer. At it's simplest, you could just double track the vocal part, although I prefer 3 parts - panned centre, left & right. Then repeat this process for each harmony, & mix accordingly.
    Melodyne & some of the above methods do work on am single voice, but phase cancellation can be an issue if your not careful with each part's timing & panning. If you can only get a couple of decent takes from the singer, far better to perform any harmony/pitching techniques on the second take to avoid any phase issues. It's not uncommon for a singer to perform each vocal part 5-10 times, then comp (edit) the best takes so that you end up with 3 decent takes.
    If you've only only one voice to work with Antares Harmony EFX is a useful alternative.
    http://www.antarestech.com/products/harmony_efx.shtml

  • How do I split a large PDF into multiple documents using Acrobat?

    Will acrobat split a large document into mulitple documents.  Not extract but split.  Also can you delte pages with it?

    Hi servidone,
    You can defintely do this with Adobe Acrobat.  Please see this page for details on how to accomplish the tasks you were asking about: https://helpx.adobe.com/acrobat/using/manipulating-deleting-renumbering-pdf-pages.html
    -David

  • I can't split a home DVD into multiple events. Why?

    I have a DVD of old super 8 movies that I converted into a DVD years ago and want to extract selected segments as short movie clips. I have been able to load the entire DVD as a single event but I wanted to break this single event into multiple events based on various themes. My problem is that I don't seem to be able to split the content at all. The "Split event before selected Clip" always appears to be grayed out. What am I doing wrong?
    paulfromcrystal

    I just figured it out.  Somehow I didn't change it to the correct code of 1.  So on the second shot of 5 allowed I realized I didn't change and save.  Now the dvd played.

  • How can I Split the PDF File into different pages?

    Hi,
    My requirment is to split the pdf file , which is obtained by using FM "convert_otf" , into seperate PDF file for each employee data(PERNR).
    Please suggest me the way to slipt the PDF file that has to be downloaded into the presentation server.

    Hi,
    Ok, looking at that programm didn't actually help me very much to understand what's going on, or where you have the CONVERT_OTF call... Regardless, if the suggestion by Raymond is not feasible in your scenario, the thing I'd try to do is - splitting the spool (OTF) contents before calling CONVERT_OTF into individual documents (feeding it to convert FM piecemeal)... The link to OTF format and commands documentation is here.
    Again, it's difficult to give a good algorithm without knowing the exact OTF contents (could you perhaps somehow export the display of spool in RAW format and attach here?) but it would boil down to approximately following:
    1) set the &first_page per PERNR = 1;
    2) run through OTF lines until the &end_page for PERNR has been identified somehow (hopefully there are Begin/End Form OTF commands '//' in that spool... and they correspond to the split of spool you need...);
    3) extract the otf contents from &first_page to the EP command of &end_page into separate OTF itab and, if necessary, add // (End of form) command at the end of itab;
    4) call CONVERT_OTF on the table and download;
    5) set the &first_page per PERNR = &end page + 1;
    6) repeat from 2) until end of spool OTF data
    Something like that... Depending how the Sapscript translates into OTF, you may also need to prepend a few commands found at the very beginning of the spool to each extracted invividual OTF document...
    I Hope you can get the gist of what I'm suggesting... splitting OTF is definetly easier than trying to split PDF, I feel. It's not ideal solution, because - what if the structure of OTF contents you would be realying on changes for some reason..?
    cheers
    Janis

  • How can I split my current video into several segments. To put on 3 different disks. Can I do this with out losing all the work?

    I need help. I have completed my video and now realize it is too big for a single DVD. Is there a way I can split the video and not lose the current info so I can put video on 3 different disks?
    Thank You
    pbcatt

    pbcatt
    Thanks for the update. Looking forward to your results from further searches for that .iso file.
    If you burn a Timeline content to a video file saved to the computer hard drive, you can use Publish+Share/Computer/and one of those choices to get a video file (.mov, .mpg, .avi, wmv, mp4, m2t). But, this route does not allow for menus. You can take the saved video file and transfer it to USB Flash Drive or memory card, and, if your player supports that, you can playback the file with the player.
    When you burn a Timeline content to DVD-VIDEO on DVD disc, menus are supported. And, what you have on the DVD after the burn to disc are two folders (OpenDVD and VIDEO_TS) in the correct disc system format. It is the VIDEO_TS Folder on the disc that has the video files and menu files for DVD-VIDEO format.
    When you take the Timeline content to Publish+Share/Disc/DVD, but use Folder (4.7 GB), you end up with a saved folder which contains the same OpenDVD Folder and VIDEO_TS Folder that you would have gotten from the direct burn to disc. But, now you need to take just the VIDEO_TS Folder from the saved folder and get it to a DVD disc in the correct disc system format. You do that with a free 3rd party software such as ImgBurn.
    If you go the ISO Image route, your DVD video files (video and menu et al) are saved as a file in format represented by the .iso file extension. It is essentially a copy of your DVD-VIDEO data including menus. The .iso image produced can be taken to DVD disc to produce the DVD-VIDEO on DVD disc.
    So, in the case of burn to folder, you are looking for a saved folder with OpenDVD Folder and VIDEO_TS Folder inside.
    In the case of the burn to ISO Image, you are looking for a file with the .iso file extension.
    The Save In: location of the burn dialog should point to where you are going to find the folder or file after the burn to.
    Please consider. We will be watching for further developments.
    ATR
    Add On...have you told me yet what is exactly shown in the Save In field of your burn dialog?
    C:\Users\owner\Documents or something else?

  • How do I split an existing library into multiple libraries?

    I currently have ~95 GB of music and ~300 GB of movies in iTunes and I’ve stored all of it on an external hard drive. I’m getting a new Mac Book Pro with a 320 GB Hard Drive and I was hoping to migrate the music so it would be stored on the internal hard drive and leave the movies on the external.
    I found a page on Apple’s web site (http://docs.info.apple.com/article.html?path=iTunesMac/7.6/en/15499.html) that says,
    “You can have more than one iTunes library.… you could use separate libraries to keep your music on your computer and your movies on an external hard disk.”
    However it does not explain how to split the libraries once you’ve already got everything stored in the same place. I have a ton of playlists and other file info that I’m afraid of losing or messing up if I just simply move the folder. The “Consolidate Library” method is a great way to move the entire library from one location to another, but is there an easy way to move only certain parts of the library (i.e. just the music)? Is this change even advisable?
    I’ve also tried to create a second library in my current computer (PowerBook running 10.4.11 and iTunes 8.0.2) just to see how it worked and noticed that iTunes Preferences only allowed for one location for the ‘iTunes music’ folder on the ‘Advanced’ Tab.
    Put differently, I created 2 empty libraries, A & B. I changed the location of the music folder in the Advanced tab of preferences for B and closed the application. I then opened the application for library A and checked the preferences tab. The location for A’s music folder had now been changed to match B.
    I must be misunderstanding something but it appears that you can have 2 separate libraries but they both must have the same preferences and be stored in the same folder and, hence, the same location. So how does that work if you want to continue to add music to the internal and add movies to the external?

    Hi Paulac303,
    There are probably many ways to do this, but I know the following two methods work...
    First of all, are you splitting your library down the middle, or just want a new iTunes library with a few of the old things in it?  The reason I ask is because that might decide which method is for you.
    (1) If splitting library roughly in half, then copy the original iTunes library to a new name.  Open iTune with the new library name via holding down the option key while opening iTunes --- eventually a menu opens that asks if you want to create a new library or choose an old one.  Choose the copy of your library.  When it opens, delete everything (highlight and press the delete key) you don't want in this library.  Quit iTune and open your original library and delete everything from it that you didn't delete in the copy.  You're done.
    (2) If you just want to add a few of your old things to a new library, then hold down the option key while opening iTune.  Once again the menu opens that asks if you with to create a new library or choose an old one.  Pick Create Library.  Then you can import any of your old songs/movies into your new library.  The actual music media files are typically located in the directory /Users/<yourusername>/Music/iTunes/iTunes Music/<artist>/<album>/<song> or perhaps in /Users/<yourusername>/Music/iTunes/iTunes Media/Music/<artist>/<album>/<song>  Sometimes the <artist> directory is under a Collections/ directory, but you'll find what you want.  Just Add to Library the artists/albums/songs you want in your new library.  If you wish you can then open your old library and delete the items you transferred to the new one.
    Hope this helps,
    Switon

  • Breaking up of, One IDoc to many IDocs & combing Many IDocs into one IDoc?

    Does anybody have any sample code of:
    Splitting an IDoc into multiple IDocs and
    Combining many similar IDocs into one IDoc
    Any pointers will be appreciated.
    Regards
    Mahesh

    This is the code for splitting of an inbound idoc into multiple idoc
    REPORT ztemp no standard page heading .
    ******************Data Declaration for selection screen***************
    TABLES: edidc,edidd.
    CALL SELECTION-SCREEN 9000.
    SELECTION-SCREEN: BEGIN OF SCREEN 9000,
                      BEGIN OF BLOCK b1 WITH FRAME.
    SELECT-OPTIONS: idocno FOR edidc-docnum.
    SELECTION-SCREEN:END OF BLOCK b1 ,
                      END OF SCREEN 9000.
    *******************Data Declaration ************************************
    DATA : it_contrl LIKE TABLE OF edidc WITH HEADER LINE,
           it_hdata     LIKE TABLE OF edidd WITH HEADER LINE,
           it_fdata  LIKE TABLE OF edidd WITH HEADER LINE,
            it_gdata  LIKE TABLE OF edidd WITH HEADER LINE,
           it_data LIKE TABLE OF edidd WITH HEADER LINE,
           it_status LIKE TABLE OF bdidocstat WITH HEADER LINE,
           it_bdwfretvar LIKE TABLE OF bdwfretvar WITH HEADER LINE,
           it_bdi_ser LIKE TABLE OF bdi_ser WITH HEADER LINE,
           it_ldata LIKE TABLE OF edidd WITH HEADER LINE,
           it_tede2  LIKE  tede2,
           vbeln LIKE vbak-vbeln,
           idocnum LIKE  edidc-docnum,
           result LIKE bdwfap_par-result,
           it_stat LIKE edids.
    DATA : count TYPE i ,
           counter TYPE i ,
           temp TYPE i VALUE 1 ,
           line TYPE i ,
           tab LIKE sy-tabix.
    *********************passing values to control record*****************
    it_contrl-direct = '2'.
    it_contrl-rcvprn = 'ID3IDES802'.
    it_contrl-rcvprt = 'LS'.
    it_contrl-doctyp = 'ORDERS05'.
    it_contrl-idoctp = 'ORDERS05'.
    it_contrl-sndpor = 'ZSOFI'.
    it_contrl-sndprt = 'LI'.
    it_contrl-sndprn = '1000'.
    it_contrl-mestyp = 'ORDERS'.
    APPEND it_contrl.
    ************************Select query for data*************************
    SELECT   * FROM edid4 INTO CORRESPONDING FIELDS OF TABLE it_fdata
    WHERE   docnum IN idocno.
    SELECT   * FROM edid4 INTO CORRESPONDING FIELDS OF TABLE it_data
    WHERE   docnum IN idocno AND segnam NOT LIKE 'E1EDP%'  .
    SELECT   * FROM edid4 INTO CORRESPONDING FIELDS OF TABLE it_hdata
    WHERE   docnum IN idocno AND segnam  LIKE 'E1EDP%'.
    **************select query to count the no of E1EDP01 segment*********
    SELECT COUNT( * ) FROM edid4 INTO count  WHERE docnum IN idocno AND
    segnam = 'E1EDP01'.
    *************to determine the no of idocs to be generated************
    count = count / 5.
    PERFORM datasplit.
    **********************************for remaining idocs*****************
    counter = count MOD 5.
    IF counter NE 0.
      PERFORM dataremain. .
    ENDIF.
    *&      Form  datasplit
          text
    -->  p1        text
    <--  p2        text
    FORM datasplit  .
      LOOP AT it_data.
        MOVE-CORRESPONDING it_data TO it_gdata.
        APPEND it_gdata.
      ENDLOOP.
      DO count TIMES.
        PERFORM split.
        perform idoccreate.
        enddo.
    ENDFORM.                   " datasplit
    *&      Form  SPLIT
          text
    -->  p1        text
    <--  p2        text
    FORM split .
      LOOP AT it_hdata.
        IF temp <= 5.
          ON CHANGE OF it_hdata-segnam.
            IF it_hdata-segnam = 'E1EDP01'.
              MOVE-CORRESPONDING it_hdata TO it_gdata.
              APPEND it_gdata.
            ELSE.
              MOVE-CORRESPONDING it_hdata TO it_gdata.
              APPEND it_gdata.
              temp = temp + 1.
            ENDIF.
          ENDON.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " SPLIT
    *&      Form  dataremain
          text
    -->  p1        text
    <--  p2        text
    FORM dataremain .
      CLEAR it_gdata[].
      LOOP AT it_data.
        MOVE-CORRESPONDING it_data TO it_gdata.
        APPEND it_gdata.
      ENDLOOP.
      LOOP AT it_hdata .
        IF sy-tabix  > 10.
          MOVE-CORRESPONDING it_hdata TO it_gdata.
          APPEND it_gdata.
        ENDIF.
      ENDLOOP.
      perform idoccreate.
    ENDFORM.                    " dataremain
    *&      Form  idoccreate
          text
    -->  p1        text
    <--  p2        text
    form idoccreate .
    ***********************for creating the inbound idocs****************
    CALL FUNCTION 'IDOC_INBOUND_WRITE_TO_DB'
       EXPORTING
         pi_status_message             = it_stat
         pi_do_handle_error            = 'X'
       PI_NO_DEQUEUE                 = ' '
         pi_return_data_flag           = 'X'
      PI_RFC_MULTI_CP               = '    '
       IMPORTING
         pe_idoc_number                = idocnum
         pe_state_of_processing        = sy-subrc
         pe_inbound_process_data       = it_tede2     "for process code
        TABLES
          t_data_records                = it_gdata
      T_LINKED_OBJECTS              =
        CHANGING
          pc_control_record             = it_contrl
    EXCEPTIONS
       IDOC_NOT_SAVED                = 1
       OTHERS                        = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      COMMIT WORK.
    *it_contrl-status = '64'.
    modify it_contrl index 1.
    ****************for posting the idoc**************************
      CALL FUNCTION 'IDOC_INPUT_ORDERS'
        EXPORTING
          input_method                = 'A'
          mass_processing             = '1'
       IMPORTING
         workflow_result             = result
      APPLICATION_VARIABLE        =
      IN_UPDATE_TASK              =
      CALL_TRANSACTION_DONE       =
       DOCUMENT_NUMBER             = vbeln
        TABLES
          idoc_contrl                 = it_contrl[]
          idoc_data                   = it_gdata[]
          idoc_status                 = it_status[]
          return_variables            = it_bdwfretvar[]
          serialization_info          = it_bdi_ser[]
      EDI_TEXT                    =
      EDI_TEXT_LINES              =
       CLEAR : it_contrl-docnum.
      COMMIT WORK.
    endform.                    " idoccreate

  • 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

  • How can i split a library into two.. i no longer want to sync all of my wifes songs and apps.. i have a separate account, but want to take my music and apps from hers so i now have my own and she has her own.. so that syncing is easier

    how can i split a library.. my wife and i used to share it, but now we have our own id's.. i want my music and apps off of hers so that i can sync my phone and only my music and apps will "come over"

    how do i share then? can she upload music if we share it somehow?
    If so how??
    i am also having the same problems now with IPhoto, she has all of her/our pics in my IPhoto library.
    I have told her that now i have bought her the Ipad she would have to log into her user, the only thing is there is no music in her itunes account nor photos in her I Photo library, i have spent all day trying to find a way to "share" but no luck,
    Please help i`m going mad!
    Surely we could just share these...?
    I need step by step instructions please someone send me a link on "how to share pics and music!"

  • HT201066 How can I split a long recording audio file into multiple audio files?

    Hi,
    How can I split a long recording audio file into multiple audio files?
    With Windows I was using Nero software, which is not available for Mac. Is there any similar app for free for Mac?
    Thanks!

    Hello ingiorgio
    You can import the track into GarageBand and then split the tracks there. Once that it is done you can highlight the ruler section and then share the song to iTunes to get them separated out. 
    GarageBand - Split regions in the Tracks area
    http://help.apple.com/garageband/mac/10.0/#gbnd76fcce04
    GarageBand - Share songs to iTunes
    http://help.apple.com/garageband/mac/10.0/#gbndfb96a96f
    Regards,
    -Norm G.

Maybe you are looking for

  • Not able to connect to my mac from my work PC

    hi, I am trying to access from my work PC through RDP to connect my Macebook Pro at home. I also setup the port on my router as 5590(TCP), 3283(TCP/UDP), 5988(TCP) on my verizon router. And I added my IP address to it but still not able to login to m

  • V8 blocks attachment downloads from SMF forums

    Since updating to v8, attachments in the SMF forums I run are not being properly recognised, and (although the file type may be recognised fir, say, a JPEG file) it is offered for saving as index.php. A midi or MP3 attachment will be offered for savi

  • Set reference point in objects and measure distance

    1) How can I set the reference point in objects?   for example:           a) exactly in the center of a pad or a via         b) exactly in any corner of the board outline 2) How can I measure the distance of two points with the maximum accuracy?   fo

  • Logged after two attempts

    Hi Well, maybe the subject is not precisely formed, so I explain my problem in details. I have an JSF application (created in Creator 2) where I have several page fragments e.g. top-menu, right-menu. Now, in page fragment top-menu I have login form a

  • Automate dataload into BPC

    hi, I've data in SAP BW system and need to upload this data into BPC on daily basis. I can download SAP BW data using "BW functionality Info Spokes" into a "BPC desired format (tab delimited)". After this, how can I automate upload of "daily files" i