How can I send multiple attachments using SO_DYNP_OBJECT_SEND?

Hi,
I hope someone can offer advice on my problem.
My requirement is to allow users to select one or more documents from an ALV grid.  I am then required to send these documents to multiple users via email using function module SO_DYNP_OBJECT_SEND.
I can successfully send one document as an attachment.  However, I can't seem to figure out how to send multiple documents as attachments using SO_DYNP_OBJECT_SEND.  Is this done in the packing list?
Is there some way to tell the program where the 1st attachment ends and the 2nd attachment starts?
My attachment content is in i_att_cont.
  CALL FUNCTION 'SO_DYNP_OBJECT_SEND'
    EXPORTING
      object_hd_change = l_title
      object_type      = 'RAW'
      raw_editor       = abap_true
      starting_at_x    = '5'
      starting_at_y    = '1'
      ending_at_x      = '120'
      ending_at_y      = '20'
      edit_title       = 'X'
      external_commit  = abap_true
    TABLES
      objcont          = i_objcont
      rec_tab          = i_rec_tab
      packing_list     = i_packing_list
      att_cont         = i_att_cont
      exclude_fcode    = i_exclude_fcode
    EXCEPTIONS
      object_not_sent  = 1
      owner_not_exist  = 2
      parameter_error  = 3
      OTHERS           = 4.
If you require more information, please let me know.  I will be happy to provide it.
Thanks.

I finally found the solution.
The trick is to ensure you put the correct values in the body_start, body_num and objlen fields of the packing list.
Each additional attachment should start (body_start) at the end of the last attachment + 1.
The value for body_num is equal to the number of lines in the attachment being added.
And the objlen field is calculated by multiplying the number of lines in the attachent * 255.
Static data
   gs_packing_list-file_ext = lv_ext.
   gs_packing_list-transf_bin = 'X'.
   gs_packing_list-objla = sy-langu.
   gs_packing_list-objtp = 'EXT'.
   gs_packing_list-objdes = lv_filename.
   gs_packing_list-objnam = 'Attachment'.
   gs_packing_list-head_start = 1.
   gs_packing_list-head_num = 1.
Body Start
   CLEAR lv_count.
   DESCRIBE TABLE gt_temp_att_cont LINES lv_count.
   gs_packing_list-body_start = lv_count + 1.
Body Num + Object Length
   CLEAR lv_count.
   DESCRIBE TABLE gt_att_cont LINES lv_count.
   gs_packing_list-body_num = lv_count.
   gs_packing_list-objlen = lv_count * 255.
   APPEND gs_packing_list TO gt_packing_list.
Hopefully this helps some desperate soul in the future.

Similar Messages

  • How can we send multiple attachments in a mail from iPad 2

    Hi,
    I am using a ipad2. I want to know how we can send multiple attachments through mail from iPad. I did not find any option of doing this. Is there a way to do this.
    Regards,
    Satyabrat

    You can't do it natively on the iPad (unless you just want to send up to 5 photos from the Photos app). I use the GoodReader app which supports quite a few document/file types (e.g. PDF, Excel, Word, pictures), and from that I can select multiple files (including different types) and attach them to the same email.

  • TS3276 I am unable to send large attachments such as video or pictures. No problem when using windows 7. How can I send large attachments? Thanks, ..Sam

    How can I send large attachments such as pictures or home videos?.....with windows 7 it asked me to send using Skydrive. I downloaded Skydrive and still no better........
    Thanks
    Sam

    How big of a file you can send over an email, is not determined by Apple, but rather by your email service provider.  For example, if you have a Gmail email address, they let you send up to 25 MB of data
    http://support.google.com/mail/answer/8770?hl=en.
    To find out how big of a file your email service provider will let you send, do a google search for "your email provider maximum file size".
    If you need to send larger files, look into something like "Drop Box" -
    https://www.dropbox.com.

  • How do I send multiple attachments in word format when the document is created in pages

    How do I send multiple attachments in word format on one em. The documents are in pages/numbers and if I use 'share' they each go into a separate  e mail

    Your welcome.
    New problem. Just purchased Docs Go Pro for iPad  word processor and there are buttons missing. Then when I go back to the App Store I clicked on app support and up comes server/webpage gone (basically). I Binged and there is not a direct site for support. How or who can be a help?

  • How can i send multiple sms from my iphone 4

    how can i send multiple sms from my i phone 4

    Turn Group Messaging (instructions in lin that follows) off and send the message to multiple recipients. The result may be dependent on your carrier. If manually keying in numbers rather than using contacts, use the return key after each number. http://support.apple.com/kb/HT5760

  • How can I send multiple photos in an email?

    How can I send multiple photos in an email?

    In Photos, when looking at your pictures, click the Action arrow first (upper right), before selecting any pictures.  Then you can tap select the pictures you want to send then click "Share" in the upper left.  From there you can Email.
    If you click and open one picture first, the Action button will only allow you to share that one picture.
    (Yeah, took me a while to figure this out. )
    ivan

  • How can i send multiple films from iMovie06HD to iDVD? ( iDVD gave me ****)

    After 2 weeks of jerky videos, unexpected shutdowns, multiplex and buring errors i yesterday finally had something. Than i noticed, that the chapters didn't work. Allright, i thought, those 5-min chapter-marks are a mess anyway. I got myself iMovie06HD to finally set the markers myself.
    My Problem: I have got four films to burn on that dvd. Each of which is about half an hour and i want them to be on that dvd as four single films with own chapter menues.
    How can i send multiple films to iDVD from iMovie06HD? All i found was "only send selected clips" which i did but then my four single films arrive at iDVD as ONE whole film, with chapters yes - but there is no way to create a menu with four single films. I tried all i could imagine. I tried to solve the problem by creating four iMovie projects which will also create four corresponding iDVD projects. I tried to export the movies in multiple formats but then the chapter markers seem to be gone.
    I have to admit i'm desperate. I hope i made my problem clear to you and somebody knows a solution. Thank you! Cheers, Matthias

    Just drag and drop each iMovie project on to the iDVD menu - being careful to avoid any of the drop zones.

  • How can I send multiple string commands into a VISA write?

    Hi Fellow LabVIEW users
    I am very new to LabVIEW (2.5 months) so please forgive me if my lingo is not up to par.
    How can I send multiple string commands to a VISA write. For example each string command looks like this
    1) 3A00 0000 0000 FFFF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0033 (Scenario 1)
    2) 3A01 0000 0000 FFFF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0034 (Scenario 2)
    3) 3A01 0000 0000 33FF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0067 (Scenario 3).
    and so on and so forth. And there are a number of scenarios.
    Each String scenario will give a different string output which will be interpreted differently in the front panel.
    Right now I have to manually change the string commands on the front panel to give me the desired output. How can I do this without manually changing the commands i.e. hard coding each scenario into the block diagram?
    Thanks, any feedback will help.
    mhaque

    Please stick to your original post.

  • How can I send multiple pics to email from my iPhone 5

    How can I send multiple pics from photos app on I phone 5 to an e mail?

    Open the album or event folder on your iPhone.  Click the "arrow" icon in the upper right side of your screen.
    Click the pictures you'd like to share via email (they will show a little checkmark when selected).
    Click the "share button at the lower left corner of your screen...
    Taa daa!
    Bob

  • How can I send multiple pictures to the Kodak link (under file & then order prints)? if the photos are not sequential can it be done?

    how can I send multiple pictures to the Kodak link (under file & then order prints)?  if the photos are not sequential can it be done?

    Does the order matter here?Because the photos will be sent for printing. If there is any other reason, can you please cite example.

  • How can I send whatsapp messages using Siri ?

    Hi,
    How can I send whatsapp messages using Siri ? or how can I ask Siri to read my whatsapp messages ?
    thanks for help!

    kladrian wrote:
    this is not the case in particular
    Yes it is.  If it wasn't the case, then why are you asking the question to begin with?
    why everytime I have a question about a simple activity present in Android system I get in response ... "you can't sorry" !?
    1.  Because iOS is not Android
    2.  Because it's the truth, whether you like it or not

  • How can I scan multiple items using my HP photosmart 2610 and them be able to be in one attachment​?

    I have an HP photosmart 2610 4 in1. How can I scan multiple items and put them in the same attachment using e-mail? Using my laptop.

    Hi @needyrhelp,
    Welcome to the HP Forums!
    I see that you are wondering how to scan multiple items using your HP photosmart 2610 and for them to be able to be in one attachment in your e-mail. I am happy to look into this for you!
    Please see the how to scan guide for the Operating System you are using. Here is the list of how to scan guides, Scan. Select your Operating System from the list, then select How to scan with HP software, then How to scan a multi-page original text document into a single file. You will need to scan each page one at a time, and add it to the same document. The how to scan guide will show you how. After done scanning to the file, then see the link for How to attach a scan to an email.
    If you do not know the Operating System you are using, please visit this website. Whatsmyos.
    Hope this information is helpful, and thank you for posting!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • How can I save multiple links using the "save link as" function?

    I'm trying to save about 300 pdf files. The link to each one is listed ona website. To save each one I'm right clicking on the link, selecting "save link as" and repeat.
    How can I select multiple links and save them?

    Actually you can save multiple page pdf's in elements.
    Try something like this:
    (This is easier if you have the project bin open)
    1. Select the first page
    2. Right click on that page in the project bin and choose Add Blank Page or as many pages as you need.
    3. Use the move tool and drag your pages down into the blank pages in the project bin
    4 Then File>Save As>Acrobat.PDF

  • How can i send multiple Key note files attached in one e-mail

    I've problem with mail attachment. I want to send multiple files from keynote as 4 attached in one mail. Anyone know how? Do I've to wasting time send it one by one? Your kind advice will be a lot appreciated. Thank you ;)

    You can only email one file at a time from the app. Unless you can copy and paste all four files into the email, you can't do it in the Mail App either. There is a third party app called Group Email with Attachments that will allow you to do this. You will have to be running iOS 4 to attach documents I believe.
    Message was edited by: Demo

  • How can I send multiple App links (a la playlist) to a friend?

    Hi,
    I have a list of Apps in iTunes. For the sake of argument, let's assume they're all free.
    To send a link of an App to a friend, I use the "Send Link" (or "Tell a friend") option in iTunes for each App. The friend can then install each App by clicking on the URL etc etc
    How can I do this for say 30 Apps?...all in one go?
    Can you create a playlist of Apps to then email/share/export?
    I have tried the same way as you do for songs, but it doesn't work. I can't drag an app into a playlist or folder. I have drag&&dropped the actual ipa files into email, but I'm sure there's a smarter way...
    Any ideas?
    I think this is a great way of bundling Apps in either an informal playlist friend-to-friend sharing way, or, even theme it in a more commercial way by recommending bundles ...e.g. when Travelling in a certain country (i.e. Apps for Maps & Hotels & Petrol Stations & Food etc etc)
    Kind Regards
    Mark

    Hi Vinodkumar,
    You have desribed the way that I run my process. However, for subcontracting we must also put the PV into the PIR or the PPM creation will have no link from PV to Vendor and therefore it will not create a PPM.
    In R/3 planning, we leave the PV blank in the PIR so the system will automatically choose the correct PV based on the validity dates. I would like to leave the PV blank in the PIR and have APO create PPMs for all Vendors that this material is extended to for each PV. But as far as I know this is not possible. Then APO planning can choose the correct PPM based on validity dates.
    Thanks,
    Eric

Maybe you are looking for