Combine into one IDOC

Dear FI Idoc Gurus,
Iu2019m using basic type PEXR2002 , this idoc is generated when I  do a payment run via F110. The idoc generation as far as I know is standard , with some enhancement done via user exit - EXIT_SAPLIEDP_902.
Currently for each payment document generated one IDOC is created . The Business document / payment document is per vendor. Hence each vendor I get one IDOC .
Client is asking if  I can combine payments of various vendors into one IDOC ? is this possible?  Is it possible through heavy customization?
Please assist thank you.
Best Wishes

Hi,
  I guess its very difficult to combine the different vendor IDOC into single IDOC and require the customized development.
Instead you can collect the different vendor IDOC based on the specific parameter. so that all the IDOC will get collected and send as a single message or single file. for this you can use the IDOC collect functionality.

Similar Messages

  • 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

  • Any chance the Mac mini and the Apple TV will be combined into one unit?

    Any chance the Mac mini and the Apple TV will be combined into one unit?

    No.
    The Apple TV is the guts of an iPad without the screen or battery running a different build of the OS. Ie, its very cheap to make and runs an ARM processor (like all iDevices)
    The Mac mini is 6x the price and is a full intel computer running the OS X.
    Now, it could be that the Apple TV gets more powerful and its OS more diverse and "computer like" (apps + iCloud for example), but for now they're still coming from totally different directions.
    They just happen to look alike

  • Podcasts won't combine into one album.

    Ever since I upgraded to 9.0.0.70 some of my Podcasts (not all of them) will not combine (append) into the original Podcast album. As I download a new issue, each new Podcast issue creates an ablum of its own. I can't seem to get them to combine into one album - the original album. Why is this happening? How can I combine the new issues into the original album?
    Thanks, Jim Finney

    I resolved my issue.
    Do the following:
    1. Go to settings/main menu and make sure the podcast setting is on.
    2. Connect your iPod to your computer and launch iTunes. On the iTunes menu go to edit/preferences/podcasts and click on the iPod preferences button. Make sure you have the podcasts you want updated checked. (WARNING!!! This step will likely erase and podcasts you have on your iPod now). It should warn you of this.
    This resolved it for me and it now works like a charm. You May not even have to do step 2. Let me know how it works out.
    Bob

  • File will not combine into one

    why wont my files combine into one pdf file? I have converted each one into a pdf file, now,  I have went through all of the steps to combine, press combine and  it just sits there. 

    What is the exact error?  Else you could always reinstall your software.

  • How can two or more Pages v 5.0 documents be combined into one?

    I have seven, two page documents, made with my own template, that I would like to combine into one 14 page document and then I would like to convert it into a PDF. I know how to do the PDF conversion but need to know how to combine documents.
    Thanks in advance.

    I recognize that many Australians avoid, at all costs, anything that might, even broadly, be considered a product of being mal eleve, to borrow a French expression. I, on the other hand, am a committed degenerate and, as I travel the world, I do my utmost to share the worst of my habits with those I meet. When visiting Australia I have managed to convert several of the locals to a life of committed degeneracy thereby introducing into that pristine land, the first fragments of sin, not unlike the serpent in the garden of Eden.
    When I next visit your shores, I shall do my best to convert you from your current state of total purity and piety to one more closely resembling my own heinous ways.
    Barry

  • Can two Apple accounts be combined into one

    I have two Apple accounts with iTunes. Can these two accounts be combined into one?

    Thanks. I appreciate it.

  • I have a macbook pro and a ipod and yesterday while I was on my laptop on Facebook playing words with friends with my daughter who was on the iPod playing under her user name it seems that they combined into one profile.  what happened

    I have a macbook pro and a ipod and yesterday while I was on my laptop on Facebook playing words with friends with my daughter who was on the iPod playing under her user name it seems that they combined into one profile.  what happened?  they used to be separate and we could play against each other but now it says its the same user for both even though I signed in on facebook with my log on and she was on her ipod with her profile.  can I fix this? 

    You might need to be asking the folks at Facebook.

  • Music combining into one album

    I have loaded onto my MAC from cd's two albums one by one artist and another by a different artist. The albums are "Greatest Hits" collections and the albums are titled "Greatest Hits". Itunes combined the two albums into one.
    How do I get them back to the original albums?

    See my previous post on Grouping Tracks Into Albums, in particular the topic One cover, too many tracks .
    tt2

  • Each row into one idoc

    hello  all,
    here  i have a basic  problem  ,
    i am given a text file ie. note pad which  has  around  100 rows  ,
    each  row  represents  each  employee details,
    now  i have  to  convert  each  row  into 1  idoc,
    for this  i had created one  datatype whose  structure  coincides   with  the  employee fields  and after  creating  the message interface  i mapped  it  with  the  all ready  imported  idoc,can  any one tell me  how  to  further  with  little  details,  any  help will be  appreciated  ,its  very  urgent,  thank you.

    Hi Kutumba,
    In ID u need to create atlest one business service with a Sender File Communication Channel to receive the file and one Business System for the R/3 System with a Receiver IDoc Communication Channel to receive the Idoc XML.
    U also need to create the Receiver and the Sender Agreements.
    U can also go through this link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
    Try doing this and let me know if u face any further problems.
    Regards
    Neetu

  • 2 music media folders containing songs, want to combine into one before moving to new Mac.

    Hi, I've 2 music folders on my account containing music media, one named iTunes Music, the other Music. One is @ user/Music/iTunes/iTunes Media/iTunes Music, the other is @ user/Public/iTunes Music/Music. This is on a g4 fp iMac using os 10.5.8 leopard, and iTunes 10.6.3.. I remember moving the folder iTunes Music/Music to the public folder many years back so as to be available for other accounts. I don't remember how that went except that it must have worked at the time, and probably wasn't used much by other accounts if at all, but has worked fine for me through the years, and now I've this to clean up before moving all the music media, and play lists to the new (to me) iMac, as I want to leave years of hoarded items/clutter behind so I'll be able to function more efficiently. 
    I'd like to combine all songs into one folder and eliminate any duplicates before moving the music files, and play lists to the newer iMac core 2 duo 2.66 GHz with iTunes 12.0.1.26.. If anyone would be willing to guide me on how to do this, I would be most grateful. What I've been reading on this subject of transferring the media, and play lists to another mac looks to be pretty straight forward. If it wasn't for the two separate folders containing music files I don't think I'd have much of a problem, but I'm unsure of how to proceed, and avoid losing any content other than duplicates.
    Thank you,
    ez

    Would manually dragging and dropping files from the folder Music to the folder iTunes Music, but not any duplicate files, be the way to start or is there a simpler way to combine the two? My library isn't large but it would still take some time, and I'm unsure of what would be the result.

  • Combining into one PnL statement

    Hi,
      Supposed i have a few detailed spreadsheets from different departments, such as sales, production, finance, purchasing, etc. These few departments use different combination of dimensions so it should be apparent that different applications within the same application set should be used. But how do i combine the final figures from the different applications into one PnL statement, one balance sheet and one cash flow statement, assuming i only grab the 4 compulsory dimensions, i.e. account, category, entity and time from all departments?
      any input on this?
    cheers

    Hi,
    *INCLUDE SYSTEM_CONSTANTS.lgl
    // SEND THE RESULTS FROM BP_SALES to THE PROFIT AND LOSS APPLICATION
    *DESTINATION_APP=PROFIT_AND_LOSS
    *XDIM_MEMBERSET PRODUCT = <ALL>   // Send data for all the Products and PRODUCT is a dimension of BP_SALES
    *WHEN SALESAccount.TRANSFER       //SALESAccount is a dimension of BP_SALES Application
    *IS "Y"
    *REC(EXPRESSION=%VALUE%,SALESACCOUNT=SALESACCOUNT.PROFITLOSSACCT,DataSrc="BP_SALESApp")
    *ENDWHEN
    *ENDWHEN
    *COMMIT     
    // Calculate the FX in the P&L Application after Sales data is Transferred
    *RUNLOGIC
    *APP = BP_Profit_Loss
    *LOGIC = FXTRANS
    *ENDRUNLOGIC
    This code is just an example in which the data is transferred from one application to another called "PROFIT_AND_LOSS". The data is transferred for all the Products.
    Hope this gives you some idea. Kindly reciprocate by awarding points.

  • LV freezes when 2 VIs are combined into one

    Hi,
    Please find the attached VI where I have put together both instruNet (P acquisition) and Ohap (weight) VIs into one VI.  I have used write to spreadsheet.vi to record the output.  The iNet VI is programmed to average and record the output every 10 seconds.  I tried using the same approach for the balance VI, but it did not work.  So, looks like the balance is recording the weight every 10 seconds, I am not sure.
    The two VIs run fine when they are executed as two separate VIs.  But, when I combine the two, it freezes.  The run button is bold, but nothing is happening.  No other keys were functional,and I had to do a "ctrl-alt-del".
    NOTE 1. I have run the combined VI earlier with a "write to text.VI" and open/create VI, and there was NO problem.  Also, this earlier VI recorded the raw output for both iNet and Ohap every second.
    NOTE 2. The modified iNet VI (only) with mean, array, spreadsheet - runs fine.
    I am not able to figure out what the problem is.  I am new to both LV and instruNet, and would appreciate if someone could help. 
    Also, just as it is done for the iNet, I would like to get the data from the ohap VI as a mean, say, every 10 seconds or longer.
    Thank you,
    Swarna
    Attachments:
    inet-ohap-db-sm-0424082.vi ‏80 KB

    That basically means that something else has the com port open.  Do you have any other programs trying to access the serial port with the balance at the same time?  Take a look inside ohap Read Measurement to see if there is any code there that may be doing something to the VISA resource.  We can't look at it because we don't have those subVI's.
    Though something doesn't make sense about your description.  The error message says it is happening in ohap initialize which only executes once at the beginning of your program.  But you say that it does work properly for awhile.  So you are either having the error in that initialize subVI at the very beginning and then always getting an error.  Or if it reads for awhile, you shouldn't be getting an error from there because it only executes once.
    How are you running your program?  Please, I hope you aren't running it with the Run continuously button.  Though it doesn't look like you would because you do have a classic architecture of initialize before a loop, run in a loop until Stop is pressed, and close resources after a loop.

  • Multiple deliveries getting combined into one invoice automatically by job

    Hello All,
    I'm facing issue, multiple deliveries are getting combined in one invoice automatically. The invoices are created by background jobs. It should not combine the multiple deliveries into one invoice ideally as it is being created by background jobs. Could any one please share what might be the cause of it.
    Thanks in advance.
    Regards,
    Sumit

    Hi
    When you run the dialog or batch billing job the prgram SDBILLDL is triggered.
    It simply reads the billing due index (VKDFS) and retrieves all due documents
    for processing (internal table V60P_INPUT_VKDFIF)
    The program in the standard processes 1000 entries at a time as required
    and if each entry processed passes the split criteria (outlined in note 11162)
    The system could in theory create one invoice for all 1000 entries picked up.
    You see this processing here:
    CALL FUNCTION 'SD_COLLECTIVE_RUN_EXECUTE'
    LOOP AT V60P_INPUT_VKDFIF WHERE SELKZ NE SPACE.
        ON CHANGE OF V60P_INPUT_VKDFIF-KUNNR OR
                     V60P_INPUT_VKDFIF-VKORG OR
                     V60P_INPUT_VKDFIF-V_FKART.
          IF COUNTER > 0.
            CLEAR SY-CALLD.
            DELETE ADJACENT DUPLICATES FROM XKOMFK.
                  PERFORM RV_INVOICE_CREATE                         >>>>>
    As you see above, the system tries to bill all entries together
    where the customer, sales org and billing type are the same.
    It will do this 1000 times before it forces a split.
    (you will also notice user exits here which can be used to change this
    outcome)
    Check note 11162 for the details of what header fields will cause a split.
    As outlined previously you could use an item data transfer routine and the field
    ZUKRI to force a split on your own terms.
    Hope this helps explain the system behaviour
    Kind regards
            PERFORM RV_INVOICE_CREATE                                       >>>>>>

  • Can Camtasia and Captivate be combined into one project?

    Is there a way to seamlessly combine Camtasia and Captivate into a single Captivate project?  I'd like to capture screens with Camtasia but use Captivate for its quiz interactivity at the end of the project.  Camtasia does a better job of editing screens, zooms and pans are better, but the downside is the larger file size.  So, Camtasia would be the first part of the project and Captivate would be the second part.  Two projects integrated into one.  Any ideas?

    Hi there
    Interesting thought on combining. No way exists that I'm aware of to seamlessly slice, dice and splice.
    You did say someting I'd like to see some clarification on.
    Saber25 wrote:
    ...I'd like to capture screens with Camtasia but use Captivate for its quiz interactivity at the end of the project.  Camtasia does a better job of editing screens, zooms and pans are better...
    Why is it you feel Camtasia is better at editing? To my knowledge Captivate is better at that. Here's what I mean.
    With Camtasia, it's like recording using an older 8MM camera. You end up with film. Now you can split the film apart, trim segments out and splice segments together, but you cannot (to my knowledge and I stand to be corrected on this) edit frames to remove or alter information. For example, in Captivate if I record a screen containing sensitive data such as a person's account number, I'm able to edit the image to obliterate the account number. I might have to repeat the process over a few different slides to do it, but it's reasonably easy to do. I don't believe the same capability exists with Camtasia.
    One thought here is that perhaps you might create Flash based SWF output from Camtasia. (I think it will output SWF - If not, choose FLV) Then create a single slide Captivate and insert that SWF or FLV as an object on the slide. Then configure the container Captivate to open your other quiz project.
    Or, in thinking that way, just insert a blank slide in your quiz project and place the Camtasia content on that blank slide.
    Hopefully something here made sense and will help... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

Maybe you are looking for

  • I want to make a mixed CD for when I drive.

    Why can't I burn any of my playlists now? I have a full catalog of music I put on iTunes from my own CDs. Every time I do, it burns one or two songs and then gives unknown error 4450. I read it has to do with copyrights or some stuff like that. So I

  • Best Practice for Customization of ESS 50.4

    Hi , We have implemented ESS 50.4 on EP 6.0 SP 14 and R3 4.6C . I want to know what is the best practice for minor modification of ESS transaction . For eg : I need to hide the change button in Personal information screen . Pls let me know . PS : Gua

  • How an i play video data coming byte by byte over a n/w

    Actually i have written a java program where i am receiving a video file in bytes using udp packets from a server trhough LAN. I want to play each packet as soon as it it received on the client side in its original format without storing the data on

  • Best Practices: Flash Player 10.1 and Flash Lite 4

    I've found the documentation for Flash Lite 4.  It appears to support most everything you'd want to do in AS3, aside from some desktop-specific APIs like Clipboard, File, ContextualMenu, etc.. I've also noticed that there's a Flash Lite 4 compile tar

  • Bex reporting issue

    Hi gurus I m facing a typical error in Bex Reporting. This report displays the details of consumer address details. The data is successfully browsed from data tgt browser in ODS.while creating the reporting and query it gives me these 3 errors. Note: